From f279123baf5f8377e0ec5a12b36c2cf67da34076 Mon Sep 17 00:00:00 2001 From: xuyucheng Date: Fri, 15 Jul 2022 14:45:09 +0800 Subject: [PATCH] mode --- src/view/home/content/func/index.vue | 1 + .../home/content/question/createModel.vue | 110 +++++++++++------- 2 files changed, 69 insertions(+), 42 deletions(-) diff --git a/src/view/home/content/func/index.vue b/src/view/home/content/func/index.vue index 9cd598c..7e124da 100644 --- a/src/view/home/content/func/index.vue +++ b/src/view/home/content/func/index.vue @@ -10,6 +10,7 @@ /> {{ item }} - + - 区间区间 得分比 - + X + + {{ item }} + + + {{interval_symbol[index]['0']}} + < = X - - - - + > + + and X + + {{ item }} + + + {{interval_symbol[index]['1']}} + + - - - < = X < - - - - - - - - - X < @@ -457,7 +473,8 @@ export default { }, data() { return { - pop_visible:false, + pop_visible: false, + interval_data: [">", ">=", "=", "!=", "<=", "<"], options: { enableBasicAutocompletion: true, enableSnippets: true, @@ -518,6 +535,8 @@ export default { category: ["输入", "类型", "备注"], selectValue: [], selectID: [], + interval_add_visible:[], + interval_symbol:[], }; }, @@ -602,6 +621,13 @@ export default { val.push(""); }, + addInterval() { + this.data.decision_setting.interval.push([]); + this.data.decision_setting.score.push(""); + this.interval_add_visible.push(false) + this.interval_symbol.push({0:"",1:""}) + }, + removeContain(index) { this.data.decision_setting.contain.splice(index, 1); this.data.decision_setting.score.splice(index, 1); @@ -620,7 +646,7 @@ export default { }, associateTag() { - this.pop_visible = false + this.pop_visible = false; this.data.tags = this.selectValue; this.$emit("associateTag", this.selectID); },