From b6f3b1f3d63762fca85425816b908a18f2100aaa Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 24 Jul 2024 17:51:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E5=BA=93=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E7=AD=89=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/ueditor/ueditor.config.js | 2 +- src/App.vue | 17 + src/api/index.js | 33 +- src/components/breadcrumb/index.vue | 47 ++- src/layouts/navbar/index.vue | 12 +- src/pages/ques/index.vue | 290 +++++++------- src/pages/quesBank/index.vue | 59 +-- src/pages/quesBankType/index.vue | 42 +- src/pages/theoryExam/knowledge.vue | 487 ------------------------ src/plugins/requests/index.js | 16 +- src/setting.js | 4 +- src/styles/common.scss | 25 ++ 12 files changed, 317 insertions(+), 717 deletions(-) delete mode 100644 src/pages/theoryExam/knowledge.vue diff --git a/public/static/ueditor/ueditor.config.js b/public/static/ueditor/ueditor.config.js index 5a27678..9b8abe9 100644 --- a/public/static/ueditor/ueditor.config.js +++ b/public/static/ueditor/ueditor.config.js @@ -1,6 +1,6 @@ !function () { window.UEDITOR_HOME_URL = "./static/ueditor/"; var s = window.UEDITOR_HOME_URL || l(); function l (s, l) { return function (s, l) { var t = l; /^(\/|\\\\)/.test(l) ? t = /^.+?\w(\/|\\\\)/.exec(s)[0] + l.replace(/^(\/|\\\\)/, "") : /^[a-z]+:/i.test(l) || (s = s.split("#")[0].split("?")[0].replace(/[^\\\/]+$/, ""), t = s + "" + l); return function (s) { var l = /^[a-z]+:\/\//.exec(s)[0], t = null, e = []; (s = (s = s.replace(l, "").split("?")[0].split("#")[0]).replace(/\\/g, "/").split(/\//))[s.length - 1] = ""; for (; s.length;)".." === (t = s.shift()) ? e.pop() : "." !== t && e.push(t); return l + e.join("/") }(t) }(s || self.document.URL || self.location.href, l || (t = document.getElementsByTagName("script"))[t.length - 1].src); var t } window.UEDITOR_CONFIG = { - UEDITOR_HOME_URL: s, serverHeaders: { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept, Authorization', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS' }, serverUrl: "http://192.168.31.51:9000/exam/exam/upload/configAndUpload", toolbars: [[ + UEDITOR_HOME_URL: s, serverHeaders: { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept, Authorization', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS' }, serverUrl: "http://192.168.31.51:9950/exam/exam/upload/configAndUpload", toolbars: [[ "fullscreen", "source", "|", diff --git a/src/App.vue b/src/App.vue index 7f56b68..5227dba 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,10 @@ @@ -10,6 +15,12 @@ import util from '@/libs/util' export default { name: "App", + data () { + return { + Setting, + ip: localStorage.getItem('ip') ? +localStorage.getItem('ip') : 0, + }; + }, created () { //在页面加载时读取localStorage里的状态信息 if (util.local.get(Setting.storeKey)) { @@ -20,6 +31,12 @@ export default { window.addEventListener("beforeunload", () => { util.local.get(Setting.tokenKey) && util.local.set(Setting.storeKey, this.$store.state); }); + }, + methods: { + ipChange (val) { + localStorage.setItem('ip', val) + location.reload() + }, } }; \ No newline at end of file diff --git a/src/api/index.js b/src/api/index.js index 565fd00..ba5f710 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,6 +1,5 @@ import Setting from '@/setting' -const { apiBaseURL: host } = Setting -// const host = 'http://192.168.31.217:9000/' +const host = 'http://192.168.31.51:9000' export default { categoriesDel: `/exam/question/bank/categories/batchDeletion`, @@ -14,4 +13,34 @@ export default { questionBankList: `/exam/questionBank/pagingQuery`, questionBankSave: `/exam/questionBank/saveOrUpdate`, questionBankDisable: `/exam/questionBank/updateStatus`, + copyQuestionBank: `/exam/questionBank/copyQuestionBank`, + + TreeStructure: `/exam/knowledgeHierarchy/TreeStructure`, + knowledgeHierarchyDel: `/exam/knowledgeHierarchy/batchDeletion`, + knowledgeHierarchyFind: `/exam/knowledgeHierarchy/findById`, + knowledgeHierarchySave: `/exam/knowledgeHierarchy/saveOrUpdate`, + + knowledgePointsDel: `/exam/knowledgePoints/batchDeletion`, + knowledgePointsFind: `/exam/knowledgePoints/findById`, + knowledgePointsList: `/exam/knowledgePoints/pagingQuery`, + knowledgePointsSave: `/exam/knowledgePoints/saveOrUpdate`, + knowledgePointsDisable: `/exam/knowledgePoints/updateStatus`, + + libraryClassificationDel: `/exam/exam/libraryClassification/delete`, + libraryClassificationSave: `/exam/exam/libraryClassification/save`, + libraryClassificationList: `/exam/exam/libraryClassification/treeList`, + libraryClassificationUpdate: `/exam/exam/libraryClassification/update`, + libraryClassificationDisable: `/exam/exam/libraryClassification/updateStatus`, + libraryClassificationFind: `/exam/exam/libraryClassification/details`, + + paperLibraryDel: `/exam/exam/paperLibrary/delete`, + libraryList: `/exam/exam/paperLibrary/libraryList`, + paperLibrarySave: `/exam/exam/paperLibrary/save`, + paperLibraryUpdate: `/exam/exam/paperLibrary/update`, + paperLibraryDisable: `/exam/exam/paperLibrary/updateStatus`, + + examClassificationDel: `/exam/exam/classification/delete`, + examClassificationSave: `/exam/exam/classification/save`, + examClassificationList: `/exam/exam/classification/treeList`, + examClassificationUpdate: `/exam/exam/classification/update`, } \ No newline at end of file diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue index 5fca155..585c0ad 100644 --- a/src/components/breadcrumb/index.vue +++ b/src/components/breadcrumb/index.vue @@ -3,15 +3,10 @@