From 87b03ed8b6586087dcb83670ba1ca3cd9c5e4d9a Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 8 Aug 2024 18:02:45 +0800 Subject: [PATCH] fix --- public/static/ueditorPlus/ueditor.config.js | 2 +- src/api/index.js | 62 +++--- src/components/ueditor/index.vue | 3 +- src/pages/ques/detail/index.vue | 22 +- src/pages/ques/list/index.vue | 9 +- src/pages/testPaper/detail/auto.vue | 1 - src/pages/testPaper/detail/index.vue | 233 +++++++++++++++++--- src/pages/testPaper/detail/manual.vue | 8 +- src/pages/testPaper/list/index.vue | 10 +- 9 files changed, 255 insertions(+), 95 deletions(-) diff --git a/public/static/ueditorPlus/ueditor.config.js b/public/static/ueditorPlus/ueditor.config.js index 5006162..7c9cfd1 100644 --- a/public/static/ueditorPlus/ueditor.config.js +++ b/public/static/ueditorPlus/ueditor.config.js @@ -50,7 +50,7 @@ // 服务器统一请求接口路径 - serverUrl: "http://121.37.12.51/exam/exam/upload/configAndUpload", + serverUrl: "http://192.168.31.51:9000/exam/exam/upload/configAndUpload", imageActionName: "imgUpload", imageAllowFiles: [ ".png", diff --git a/src/api/index.js b/src/api/index.js index 27aff70..04b4365 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -5,26 +5,26 @@ export default { encrypt: `/nakadai/data/encrypt`, queryProfessional: `/exam/exam/professional/queryProfessional`, - categoriesDel: `/exam/question/bank/categories/batchDeletion`, - categoriesFind: `/exam/question/bank/categories/findById`, - getAllQuestionBankCategories: `/exam/question/bank/categories/getAllQuestionBankCategories`, - categoriesSave: `/exam/question/bank/categories/saveOrUpdate`, - categoriesDisable: `/exam/question/bank/categories/updateStatus`, + categoriesDel: `/exam/exam/question/bank/categories/batchDeletion`, + categoriesFind: `/exam/exam/question/bank/categories/findById`, + getAllQuestionBankCategories: `/exam/exam/question/bank/categories/getAllQuestionBankCategories`, + categoriesSave: `/exam/exam/question/bank/categories/saveOrUpdate`, + categoriesDisable: `/exam/exam/question/bank/categories/updateStatus`, - questionBankDel: `/exam/questionBank/batchDeletion`, - questionBankFind: `/exam/questionBank/findById`, - questionBankList: `/exam/questionBank/pagingQuery`, - questionBankSave: `/exam/questionBank/saveOrUpdate`, - questionBankDisable: `/exam/questionBank/updateStatus`, - copyQuestionBank: `/exam/questionBank/copyQuestionBank`, - questionBankStructureLevel: `/exam/question/bank/categories/questionBankStructureLevel`, + questionBankDel: `/exam/exam/questionBank/batchDeletion`, + questionBankFind: `/exam/exam/questionBank/findById`, + questionBankList: `/exam/exam/questionBank/pagingQuery`, + questionBankSave: `/exam/exam/questionBank/saveOrUpdate`, + questionBankDisable: `/exam/exam/questionBank/updateStatus`, + copyQuestionBank: `/exam/exam/questionBank/copyQuestionBank`, + questionBankStructureLevel: `/exam/exam/question/bank/categories/questionBankStructureLevel`, - TreeStructure: `/exam/knowledgeHierarchy/TreeStructure`, - classificationTreeStructure: `/exam/knowledgeHierarchy/classificationTreeStructure`, - knowledgeHierarchyDel: `/exam/knowledgeHierarchy/batchDeletion`, - knowledgeHierarchyFind: `/exam/knowledgeHierarchy/findById`, - knowledgeHierarchySave: `/exam/knowledgeHierarchy/saveOrUpdate`, - knowledgeHierarchyList: `/exam/knowledgeHierarchy/pagingQuery`, + TreeStructure: `/exam/exam/knowledgeHierarchy/TreeStructure`, + classificationTreeStructure: `/exam/exam/knowledgeHierarchy/classificationTreeStructure`, + knowledgeHierarchyDel: `/exam/exam/knowledgeHierarchy/batchDeletion`, + knowledgeHierarchyFind: `/exam/exam/knowledgeHierarchy/findById`, + knowledgeHierarchySave: `/exam/exam/knowledgeHierarchy/saveOrUpdate`, + knowledgeHierarchyList: `/exam/exam/knowledgeHierarchy/pagingQuery`, libraryClassificationDel: `/exam/exam/libraryClassification/delete`, libraryClassificationSave: `/exam/exam/libraryClassification/save`, @@ -57,17 +57,17 @@ export default { saveExamPaperTemplate: `/exam/exam/paperTemplate/saveExamPaperTemplate`, templateDetails: `/exam/exam/paperTemplate/templateDetails`, - addQuestion: `/exam/questions/addQuestion`, - findQuestion: `/exam/questions/findById`, - listQuestion: `/exam/questions/pagingQuery`, - updateQuestion: `/exam/questions/updateQuestion`, - batchImportQuestions: `${host}/exam/questions/batchImportQuestions`, - checkQuestion: `/exam/questions/checkQuestion`, - delQuestion: `/exam/questions/batchDeletion`, - checkQuestionIsUse: `/exam/questions/checkQuestionIsUse`, - copyQuestion: `/exam/questions/copyQuestion`, - createNewVersion: `/exam/questions/createNewVersion`, - disableOrEnableQuestion: `/exam/questions/disableOrEnableQuestion`, - findAllByQuestionBank: `/exam/questions/findAllByQuestionBank`, - selectQuestionsByTypeAndDifficulty: `/exam/questions/selectQuestionsByTypeAndDifficulty`, + addQuestion: `/exam/exam/questions/addQuestion`, + findQuestion: `/exam/exam/questions/findById`, + listQuestion: `/exam/exam/questions/pagingQuery`, + updateQuestion: `/exam/exam/questions/updateQuestion`, + batchImportQuestions: `${host}/exam/exam/questions/batchImportQuestions`, + checkQuestion: `/exam/exam/questions/checkQuestion`, + delQuestion: `/exam/exam/questions/batchDeletion`, + checkQuestionIsUse: `/exam/exam/questions/checkQuestionIsUse`, + copyQuestion: `/exam/exam/questions/copyQuestion`, + createNewVersion: `/exam/exam/questions/createNewVersion`, + disableOrEnableQuestion: `/exam/exam/questions/disableOrEnableQuestion`, + findAllByQuestionBank: `/exam/exam/questions/findAllByQuestionBank`, + selectQuestionsByTypeAndDifficulty: `/exam/exam/questions/selectQuestionsByTypeAndDifficulty`, } \ No newline at end of file diff --git a/src/components/ueditor/index.vue b/src/components/ueditor/index.vue index 1d97a15..75c2ed6 100644 --- a/src/components/ueditor/index.vue +++ b/src/components/ueditor/index.vue @@ -5,6 +5,7 @@