diff --git a/src/views/QuestionBank/index.vue b/src/views/QuestionBank/index.vue index 2cfd256..87d87e2 100644 --- a/src/views/QuestionBank/index.vue +++ b/src/views/QuestionBank/index.vue @@ -19,8 +19,9 @@ {{ node.label }} + + > 添加下级 编辑 @@ -156,7 +157,7 @@ + :props="{ emitPath: false ,checkStrictly:true}" :clearable="true" :options="QuestionClass"> @@ -177,11 +178,11 @@ - - - + + 不设置 {{sritem}} @@ -241,7 +242,6 @@ }, data() { return { - randomQuestionTypeList:[], FormClassType: 0, loading: false, currentEditDimension: {}, @@ -295,9 +295,7 @@ scoreRules:['高','中','低'], }; }, - created() { - this.getQuestionClassListHeadler2(); - }, + created() { }, mounted() { let ContentAreaHight = window.innerHeight - document.getElementById("elRow").offsetTop - 70; @@ -311,39 +309,6 @@ this.getQuestionClassListHeadler(); }, methods: { - getSubTree1(id, list) { - let result = []; - result = list.filter((t) => t.ParentId == id); - if (result.length) { - result = result.map((item) => { - item.value = item.id; - item.label = item.ClassificationName; - item.children = this.getSubTree1(item.id, list); - if(!item.children || !item.children.length){ - delete item.children; - } - return item; - }); - } - return result; - }, - getQuestionClassListHeadler2() { - let _this = this; - getQuestionClassList().then((res) => { - let alllist = res.data.data; - let list = alllist.filter(t=>!t.ParentId); - list = list.map((t) => { - t.value = t.id; - t.label = t.ClassificationName; - t.children = this.getSubTree1(t.id,alllist); - if(!t.children || !t.children.length){ - delete t.children; - } - return t; - }); - this.randomQuestionTypeList = list; - }); - }, AddSubject() { this.FormClassType = 0; // if(!this.Dataform.scoperule) diff --git a/vue.config.js b/vue.config.js index 7cc6e8a..71620b0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -38,15 +38,16 @@ module.exports = { }, proxy: { '/development': { - target: `http://inteview.t1j2.com/`, //后台服务地址 - // target:'https://localhost:44399', + // target: `http://inteview.t1j2.com/`, //后台服务地址 + target:'http://localhost:8877', changeOrigin: true, pathRewrite: { '^/development': '' } }, '/api': { - target: `http://inteview.t1j2.com/`, //后台服务地址 + // target: `http://inteview.t1j2.com/`, //后台服务地址 + target:'http://localhost:8877', changeOrigin: true, pathRewrite: {} }