From f9d865b6157a1c649468a9d533ff9ac022805ccd Mon Sep 17 00:00:00 2001 From: axlrose2333 <690927457@qq.com> Date: Tue, 28 Feb 2023 17:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=99=E5=B8=88=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=92=8C=E8=AF=95=E5=8D=B7=E7=AE=A1=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E4=BC=98=E5=8C=96=E6=89=8B=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/userManage.js | 18 + src/utils/custom.js | 6 + src/view/course/components/chapter.vue | 14 +- .../course/components/examinationPool.vue | 74 ++- src/view/examinationManage/index.vue | 96 +++- src/view/teacherManage/index.vue | 388 +-------------- src/view/teacherManage/teacherApply/index.vue | 405 ++++++++++++++++ src/view/teacherManage/teacherList/index.vue | 405 ++++++++++++++++ src/view/userManage/index.vue | 451 ++++++++++++++++++ src/view/userManage/view.vue | 279 +++++++++++ 10 files changed, 1697 insertions(+), 439 deletions(-) create mode 100644 src/api/userManage.js create mode 100644 src/view/teacherManage/teacherApply/index.vue create mode 100644 src/view/teacherManage/teacherList/index.vue create mode 100644 src/view/userManage/index.vue create mode 100644 src/view/userManage/view.vue diff --git a/src/api/userManage.js b/src/api/userManage.js new file mode 100644 index 0000000..258ac2c --- /dev/null +++ b/src/api/userManage.js @@ -0,0 +1,18 @@ +import service from '@/utils/request' +const api = { + // 积分 + getUserList : data => { + return service({ + url: '/user', + method: 'get', + params:data + }) + }, + viewUser : data => { + return service({ + url: '/user/'+data.id, + method: 'get' + }) + } +} +export default api diff --git a/src/utils/custom.js b/src/utils/custom.js index 9743a23..5f6ffee 100644 --- a/src/utils/custom.js +++ b/src/utils/custom.js @@ -1,3 +1,4 @@ +import cityList from '@/utils/city.json'; const custom = { getStdSubject: (data) => { // 获取标准类型格式 let arr= [] @@ -61,6 +62,11 @@ const custom = { break; } return name + }, + getProvinceName(province) { + if(province < 0 || !province) return '' + return cityList[province].name } + } export default custom diff --git a/src/view/course/components/chapter.vue b/src/view/course/components/chapter.vue index 4868285..94852ba 100644 --- a/src/view/course/components/chapter.vue +++ b/src/view/course/components/chapter.vue @@ -129,7 +129,7 @@ function addChapterchildFunc(item) { // 打开新增子章节窗口 function editChapterChildFunc(item,main_index) { // 打开编辑子章节窗口 dialogChapterChildTitle.value = '编辑子章节' // current_chapter.value = chapter_data.value[main_index] - item.exam_ids =item.exam_id?[item.exam_id]: [] + // item.exam_ids =item.exam_id?[item.exam_id]: [] item.examination_id = item.exam_id chapterChildForm.value = _.cloneDeep(item) dialogChapterChildVisible.value = true @@ -165,16 +165,10 @@ async function enterChapterChildDialog() { // 提交小章节 function getFilePath(file) { // 获取上传文件之后的地址 chapterChildForm.value.url = file.url chapterChildForm.value.url_name = file.url_name -} -function chooseChapterChildExercises() { // 打开选择习题窗口 - -} -function openExercisesWinFunc() { // 打开媒体库 - } function addExamFunc(data) { - chapterChildForm.value.examination_id = data[0] - chapterChildForm.value.exam_ids = data + chapterChildForm.value.examination_id = data + chapterChildForm.value.exam_id = data } + + + diff --git a/src/view/teacherManage/teacherApply/index.vue b/src/view/teacherManage/teacherApply/index.vue new file mode 100644 index 0000000..66c983f --- /dev/null +++ b/src/view/teacherManage/teacherApply/index.vue @@ -0,0 +1,405 @@ + + + + diff --git a/src/view/teacherManage/teacherList/index.vue b/src/view/teacherManage/teacherList/index.vue new file mode 100644 index 0000000..374b590 --- /dev/null +++ b/src/view/teacherManage/teacherList/index.vue @@ -0,0 +1,405 @@ + + + + diff --git a/src/view/userManage/index.vue b/src/view/userManage/index.vue new file mode 100644 index 0000000..6b9a9a0 --- /dev/null +++ b/src/view/userManage/index.vue @@ -0,0 +1,451 @@ + + + + diff --git a/src/view/userManage/view.vue b/src/view/userManage/view.vue new file mode 100644 index 0000000..9721651 --- /dev/null +++ b/src/view/userManage/view.vue @@ -0,0 +1,279 @@ + + +