From 54840f8a9a40cfb300ebb11976f54a8256890f21 Mon Sep 17 00:00:00 2001 From: axlrose2333 <690927457@qq.com> Date: Thu, 16 Mar 2023 18:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E7=AB=9E=E6=8B=8D=EF=BC=9B?= =?UTF-8?q?=E5=B8=82=E5=9C=BA=E7=AE=A1=E7=90=86=EF=BC=9B=E6=95=99=E5=B8=88?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/integral.js | 30 +- src/api/market.js | 15 + src/api/teacher.js | 7 + src/view/auctionManage/index.vue | 11 +- src/view/drawManage/index.vue | 465 ++++++++++++++++++ src/view/examinationManage/index.vue | 9 +- .../assistantList/assistantDetail.vue | 157 +++--- src/view/marketManage/assistantList/index.vue | 32 +- src/view/marketManage/managerList/index.vue | 237 +++++++++ .../managerList/managerDetail.vue | 249 ++++++++++ .../teacherManage/assistantList/index.vue | 2 +- 11 files changed, 1100 insertions(+), 114 deletions(-) create mode 100644 src/view/drawManage/index.vue create mode 100644 src/view/marketManage/managerList/index.vue create mode 100644 src/view/marketManage/managerList/managerDetail.vue diff --git a/src/api/integral.js b/src/api/integral.js index 040ba1c..6ee24e0 100644 --- a/src/api/integral.js +++ b/src/api/integral.js @@ -36,6 +36,34 @@ const api = { method: 'delete', data }) - } + }, + getDrawList: data => { + return service({ + url: '/lottery', + method: 'get', + params:data + }) + }, + addDrawData: data => { // 创建竞拍 + return service({ + url: '/lottery', + method: 'post', + data + }) + }, + editDrawData: data => { // 编辑竞拍 + return service({ + url: '/lottery', + method: 'post', + data + }) + }, + delDrawData: data => { // 删除竞拍 + return service({ + url: '/lottery', + method: 'delete', + data + }) + }, } export default api diff --git a/src/api/market.js b/src/api/market.js index 4a8924e..138c3a8 100644 --- a/src/api/market.js +++ b/src/api/market.js @@ -15,5 +15,20 @@ const api = { params:data }) }, + /*主管*/ + getManagerList : data => { // 主管列表 + return service({ + url: '/manager', + method: 'get', + params:data + }) + }, + getManagerDetail: data => { // 主管详情 + return service({ + url: '/manager/'+data.managerId, + method: 'get', + params:data + }) + }, } export default api diff --git a/src/api/teacher.js b/src/api/teacher.js index cb5f964..dd998e8 100644 --- a/src/api/teacher.js +++ b/src/api/teacher.js @@ -28,5 +28,12 @@ const api = { params:data }) }, + assistantOperator : data => {// 审核提交-助教 + return service({ + url: '/assistant/change', + method: 'post', + data + }) + }, } export default api diff --git a/src/view/auctionManage/index.vue b/src/view/auctionManage/index.vue index 37a3d33..f01e354 100644 --- a/src/view/auctionManage/index.vue +++ b/src/view/auctionManage/index.vue @@ -192,8 +192,15 @@ async function saveData() { const params = { ...auctionForm.value } + let func = '' + if(params.id) { // 编辑 + func = 'editAucitonData' + } + else{ // 新增 + func = 'addAucitonData' + } // console.log(params);return - const res = await api.addAucitonData(params) + const res = await api[func](params) if(res.code === 0) { ElMessage({ type: 'success', @@ -404,7 +411,7 @@ function fileChange(index) { 取消 - 立即添加 + 确定 diff --git a/src/view/drawManage/index.vue b/src/view/drawManage/index.vue new file mode 100644 index 0000000..21a76ac --- /dev/null +++ b/src/view/drawManage/index.vue @@ -0,0 +1,465 @@ + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + 新增 + + 确定要删除吗? + + 取消 + 确定 + + + 删除 + + + + + + + + + + + + + + + + + + + {{custom.timestampToDate(scope.row.begin_time)}} + + + + + {{custom.timestampToDate(scope.row.end_time)}} + + + + + + + {{scope.row.loading_egg?'是':'否'}} + + + + + + {{getStateName(scope.row)}} + + + + + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确定 + + + + + + diff --git a/src/view/examinationManage/index.vue b/src/view/examinationManage/index.vue index b851794..22a15ab 100644 --- a/src/view/examinationManage/index.vue +++ b/src/view/examinationManage/index.vue @@ -404,7 +404,7 @@ function addGroupFunc(data) { :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload" > - + @@ -443,6 +443,13 @@ function addGroupFunc(data) { diff --git a/src/view/marketManage/managerList/managerDetail.vue b/src/view/marketManage/managerList/managerDetail.vue new file mode 100644 index 0000000..78a7b72 --- /dev/null +++ b/src/view/marketManage/managerList/managerDetail.vue @@ -0,0 +1,249 @@ + + + + 助教详情 + + + + + + + + 昵称:{{managerInfo.nickname}} + + + ID:{{managerInfo.user_id}} + + + 注册时间:{{formatDate(managerInfo.CreatedAt)}} + + + + + + + + + 管理区域: + {{managerInfo.province>-1?cityList[managerInfo.province].name:'无'}} + + + + + 身份证号码: + {{managerInfo.id_card}} + + + 手机号码: + {{managerInfo.phone}} + + + + + 域内助教人数: + {{managerInfo.assistant_num}} + + + 域内学员人数: + {{managerInfo.student_num}} + + + + + 课程总订单数: + {{managerInfo.course_num}} + + + 课程总学费: + {{managerInfo.course_income}} + + + 课程总佣金: + {{managerInfo.course_income}} + + + + + 测试总订单数: + {{managerInfo.exam_num}} + + + 测试总学费: + {{managerInfo.exam_income}} + + + 测试总佣金: + {{managerInfo.exam_income}} + + + + + + {{tip_text}} + + + 取消 + + 确定 + + + + + + + diff --git a/src/view/teacherManage/assistantList/index.vue b/src/view/teacherManage/assistantList/index.vue index 1768422..cc96b41 100644 --- a/src/view/teacherManage/assistantList/index.vue +++ b/src/view/teacherManage/assistantList/index.vue @@ -136,7 +136,7 @@ function close_pv(){ p_visible.value = false } async function pOk() { // 审核提交 - const res = await api.teacherOperator({ + const res = await api.assistantOperator({ teacher_id:teacher_id.value, status:p_type.value, desc:pForm.value.desc
确定要删除吗?