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 @@ + + +