diff --git a/src/assets/css/element.scss b/src/assets/css/element.scss index 5157b2c..fa119dd 100644 --- a/src/assets/css/element.scss +++ b/src/assets/css/element.scss @@ -418,3 +418,7 @@ .el-color-predefine__color-selector.selected { --el-color-primary: #fff !important; } + +.el-input-number.is-disabled .el-input-number__decrease, .el-input-number.is-disabled .el-input-number__increase{ + border-color: var(--el-border-color) !important; +} diff --git a/src/assets/js/data_dictionary.js b/src/assets/js/data_dictionary.js index dc19f53..8c8b0dd 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -241,3 +241,10 @@ export const layoutFnGetTrainingLevel = async (params) => { const resData = await getTrainingLevel(params); return ref(resData.varList); }; +// 试题标签 +export const layoutFnGetTestQuestionLabels = async () => { + const resData = await getLevels({ + DICTIONARIES_ID: "a60ebc858e2c46108bf82bbd8acc8f50", + }); + return ref(resData.list); +}; diff --git a/src/request/training_process_management.js b/src/request/training_process_management.js index ad0934b..93e761e 100644 --- a/src/request/training_process_management.js +++ b/src/request/training_process_management.js @@ -1,4 +1,20 @@ -import { post } from "@/request/axios.js"; +import { post, upload } from "@/request/axios.js"; export const setExamPaperManagementDelete = (params) => post("/stageexampaperinput/delete", params); // 试卷管理删除 +export const setExamPaperManagementAdd = (params) => + upload("/stageexampaperinput/add", params); // 试卷管理添加 +export const setExamPaperManagementEdit = (params) => + upload("/stageexampaperinput/edit", params); // 试卷管理修改 +export const setExamPaperManagementInherit = (params) => + post("/stageexampaperinput/inherit", params); // 试卷管理继承 +export const setExamPaperManagementAddToDraft = (params) => + upload("/stageexampaperCache/add", params); // 试卷管理保存到草稿 +export const setExamPaperManagementTestQuestionsDelete = (params) => + post("/paperQuestion/delete", params); // 试卷管理试题删除 +export const setExamPaperManagementTestQuestionsAdd = (params) => + post("/paperQuestion/add", params); // 试卷管理试题新增 +export const setExamPaperManagementTestQuestionsEdit = (params) => + post("/paperQuestion/edit", params); // 试卷管理试题修改 +export const getAssociatedCoursewareNameList = (params) => + post("/videocourseware/getCourseWareName", params); // 关联课件名称 diff --git a/src/views/training_process_management/exam_paper_management/add.vue b/src/views/training_process_management/exam_paper_management/add.vue index f157976..9257298 100644 --- a/src/views/training_process_management/exam_paper_management/add.vue +++ b/src/views/training_process_management/exam_paper_management/add.vue @@ -1,7 +1,380 @@ - + + + diff --git a/src/views/training_process_management/exam_paper_management/components/add_test_questions.vue b/src/views/training_process_management/exam_paper_management/components/add_test_questions.vue new file mode 100644 index 0000000..3cc789c --- /dev/null +++ b/src/views/training_process_management/exam_paper_management/components/add_test_questions.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/views/training_process_management/exam_paper_management/index.vue b/src/views/training_process_management/exam_paper_management/index.vue index 722d561..1eb9420 100644 --- a/src/views/training_process_management/exam_paper_management/index.vue +++ b/src/views/training_process_management/exam_paper_management/index.vue @@ -93,7 +93,7 @@ 查看