diff --git a/src/api/userManage.js b/src/api/userManage.js index 258ac2c..02c67bf 100644 --- a/src/api/userManage.js +++ b/src/api/userManage.js @@ -13,6 +13,12 @@ const api = { url: '/user/'+data.id, method: 'get' }) + }, + getDealMoneyList: data => { // 获取资金交易明细 + return service({ + url: '/user/'+data.id, + method: 'get' + }) } } export default api diff --git a/src/view/dealDetailManage/auctionDetail.vue b/src/view/dealDetailManage/auctionDetail.vue new file mode 100644 index 0000000..a5a1eeb --- /dev/null +++ b/src/view/dealDetailManage/auctionDetail.vue @@ -0,0 +1,155 @@ + + + + diff --git a/src/view/dealDetailManage/dealDetailMoney.vue b/src/view/dealDetailManage/dealDetailMoney.vue new file mode 100644 index 0000000..a975bb2 --- /dev/null +++ b/src/view/dealDetailManage/dealDetailMoney.vue @@ -0,0 +1,151 @@ + + + + diff --git a/src/view/dealDetailManage/dealDetailPoint.vue b/src/view/dealDetailManage/dealDetailPoint.vue new file mode 100644 index 0000000..64a3d62 --- /dev/null +++ b/src/view/dealDetailManage/dealDetailPoint.vue @@ -0,0 +1,149 @@ + + + diff --git a/src/view/dealDetailManage/learningDetail.vue b/src/view/dealDetailManage/learningDetail.vue new file mode 100644 index 0000000..d613647 --- /dev/null +++ b/src/view/dealDetailManage/learningDetail.vue @@ -0,0 +1,220 @@ + + + + diff --git a/src/view/dealDetailManage/raffleDetail.vue b/src/view/dealDetailManage/raffleDetail.vue new file mode 100644 index 0000000..acfb7fe --- /dev/null +++ b/src/view/dealDetailManage/raffleDetail.vue @@ -0,0 +1,155 @@ + + + + diff --git a/src/view/dealDetailManage/testDetail.vue b/src/view/dealDetailManage/testDetail.vue new file mode 100644 index 0000000..cbd2af5 --- /dev/null +++ b/src/view/dealDetailManage/testDetail.vue @@ -0,0 +1,156 @@ + + + diff --git a/src/view/teacherManage/teacherDetail.vue b/src/view/teacherManage/teacherDetail.vue index 0247f69..14ecc3f 100644 --- a/src/view/teacherManage/teacherDetail.vue +++ b/src/view/teacherManage/teacherDetail.vue @@ -159,7 +159,7 @@ function getStateName(state) {
{{teacherInfo.publish_exam}}份
diff --git a/src/view/userManage/view.vue b/src/view/userManage/view.vue index 9721651..a1c1ba1 100644 --- a/src/view/userManage/view.vue +++ b/src/view/userManage/view.vue @@ -16,6 +16,14 @@ const route = useRoute() // 变量 const userManageInfo = ref({}) const imgs = ref([]) +const detail_type = ref({ + dealDetailMoney:'dealDetailMoney', + dealDetailPoint:'dealDetailPoint', + learningDetail:'learningDetail', + testDetail:'testDetail', + auctionDetail:'auctionDetail',// 竞拍 + raffleDetail:'raffleDetail',// 抽奖 +}) // 生命周期 onMounted(() => { getUserDetail() @@ -31,48 +39,17 @@ async function getUserDetail() { // console.log(imgs.value) } } -const tip_text = ref('') -const dialogVisible = ref(false) -const a_type = ref(0) -function actionFunc(type) { - dialogVisible.value = true - a_type.value = type - switch (type){ - case 3: - tip_text.value = '是否同意该教师申请?'; - break; - case 2: - tip_text.value = '是否拒绝该教师申请?'; - break; - } -} -async function actionOk() { // 确认提交 - const res = await api.teacherOperator({ - teacher_id:userManageInfo.value.user_id, - status:a_type.value - }) - if(res.code === 0) { - ElMessage({ - type: 'success', - message: res.msg - }) - getUserDetail() - } -} -function getStateName(state) { - let str = '' - switch (state){ - case 1: - str = '待审核' - break; - case 2: - str = '已拒绝' - break; - case 3: - str = '已同意' - break; - } - return str +function toDealDetail(type) { + // let url = '' + // switch (type){ + // case detail_type.value.dealDetailMoney: + // url = 'dealDetailMoney'; + // break; + // case 2: + // url = 'dealDetailPoint'; + // break; + // } + router.push({name:type,params:{user_id:route.params.id}}) }