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