From 8001c651a2a0450fcb1e959e993c245224555815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Thu, 18 Jul 2024 15:34:24 +0800 Subject: [PATCH] xg --- .../system/ManuallyCreatingTasks/index.vue | 134 +++++++++--------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/src/views/system/ManuallyCreatingTasks/index.vue b/src/views/system/ManuallyCreatingTasks/index.vue index c00ce33..8741fd4 100644 --- a/src/views/system/ManuallyCreatingTasks/index.vue +++ b/src/views/system/ManuallyCreatingTasks/index.vue @@ -426,7 +426,7 @@ export default { }, ], listindex: 0, - optionstriggerConditionOperator: [], // 将这部分选项的 + // optionstriggerConditionOperator: [], // 将这部分选项的 dictDataType: "", }; }, @@ -459,24 +459,24 @@ export default { }, // 且或 infolistoptionslistS() { - var dictType = "trigger_logic"; - getAgencytype(dictType).then((res) => { - this.optionslistS = res.data; - }); + // var dictType = "trigger_logic"; + // getAgencytype(dictType).then((res) => { + // this.optionslistS = res.data; + // }); }, // 诊断 optiononditionOperators() { - var dictType = "trigger_condition_name"; - getAgencytype(dictType).then((res) => { - this.optionsname = res.data; - }); + // var dictType = "trigger_condition_name"; + // getAgencytype(dictType).then((res) => { + // this.optionsname = res.data; + // }); }, // 包含 optiononditionOperator() { - var dictType = "trigger_condition_operator"; - getAgencytype(dictType).then((res) => { - this.updata.triggerConditionList.optionstriggerConditionOperator = res.data; - }); + // var dictType = "trigger_condition_operator"; + // getAgencytype(dictType).then((res) => { + // this.updata.triggerConditionList.optionstriggerConditionOperator = res.data; + // }); }, // 包含 changetriggerLogic(e, index) { @@ -484,43 +484,43 @@ export default { // this.openlist.triggerConditionList[index].optionstriggerConditionOperator.find( // (el) => el.dictValue == e // ).dictLabel; - this.updata.triggerConditionList[index].triggerConditionValue = null; + // this.updata.triggerConditionList[index].triggerConditionValue = null; }, // 诊断 changetriggerConditionName(e, index) { - var dictType = e; - getAgencytype(dictType).then((res) => { - this.ConditionValue = res.data; - }); - this.updata.triggerConditionList[index].triggerConditionName = - this.optionsname.find((el) => el.dictValue == e).dictLabel; - this.updata.triggerConditionList[index].triggerConditionValue = null; - this.updata.triggerConditionList[index].triggerConditionOperator = null - this.dictDataType = this.optionsname.find((el) => el.dictValue == e).dictDataType; - this.handlelist(index) - this.updata.triggerConditionList[index].dictDataType = - this.optionsname.find((el) => el.dictValue == e).dictDataType; + // var dictType = e; + // getAgencytype(dictType).then((res) => { + // this.ConditionValue = res.data; + // }); + // this.updata.triggerConditionList[index].triggerConditionName = + // this.optionsname.find((el) => el.dictValue == e).dictLabel; + // this.updata.triggerConditionList[index].triggerConditionValue = null; + // this.updata.triggerConditionList[index].triggerConditionOperator = null + // this.dictDataType = this.optionsname.find((el) => el.dictValue == e).dictDataType; + // this.handlelist(index) + // this.updata.triggerConditionList[index].dictDataType = + // this.optionsname.find((el) => el.dictValue == e).dictDataType; }, // 包含或等号接口 handlelist(index) { - var dictType = "trigger_condition_operator"; - // this.openlist.triggerConditionList[index].optionstriggerConditionOperator=[] - getList(dictType, this.dictDataType).then((res) => { - this.$set(this.updata.triggerConditionList[index], 'optionstriggerConditionOperator', res.data) - this.$forceUpdate(); - }); + // var dictType = "trigger_condition_operator"; + // // this.openlist.triggerConditionList[index].optionstriggerConditionOperator=[] + // getList(dictType, this.dictDataType).then((res) => { + // this.$set(this.updata.triggerConditionList[index], 'optionstriggerConditionOperator', res.data) + // this.$forceUpdate(); + // }); }, // 包含 optiononditionOperator() { - var dictType = "trigger_condition_operator"; - getAgencytype(dictType).then((res) => { - this.updata.triggerConditionList.optionstriggerConditionOperator = res.data; - }); + // var dictType = "trigger_condition_operator"; + // getAgencytype(dictType).then((res) => { + // this.updata.triggerConditionList.optionstriggerConditionOperator = res.data; + // }); }, // 且或 changetriggerLogicsname(e, index) { - this.updata.triggerConditionList[index].triggerLogic = e; - this.updata.triggerConditionList[index].triggerLogicName = this.optionslistS.find((el) => el.dictValue == e).dictLabel; + // this.updata.triggerConditionList[index].triggerLogic = e; + // this.updata.triggerConditionList[index].triggerLogicName = this.optionslistS.find((el) => el.dictValue == e).dictLabel; }, // 弹框确定 // submit() { @@ -585,31 +585,31 @@ export default { }, // 删除属性 delitemlistname(index, item) { - this.updata.triggerConditionList.splice(index, 1); - setTimeout(() => { - this.getMaxTableHeight() - }, 20); + // this.updata.triggerConditionList.splice(index, 1); + // setTimeout(() => { + // this.getMaxTableHeight() + // }, 20); }, addtriggerCondition() { - var obj = { - routeId: "", - routeName: "", - triggerConditionName: "", - triggerConditionOperator: "", - triggerConditionValue: "", - triggerConditionOperatorName: "", - dictDataType: "STRING", - triggerLogic: "AND", - triggerLogicName: "", - }; - if (this.updata.triggerConditionList.length == 3) { - this.$message.error("至多仅支持两种属性"); - } else { - this.updata.triggerConditionList.push(obj); - } - setTimeout(() => { - this.getMaxTableHeight() - }, 20); + // var obj = { + // routeId: "", + // routeName: "", + // triggerConditionName: "", + // triggerConditionOperator: "", + // triggerConditionValue: "", + // triggerConditionOperatorName: "", + // dictDataType: "STRING", + // triggerLogic: "AND", + // triggerLogicName: "", + // }; + // if (this.updata.triggerConditionList.length == 3) { + // this.$message.error("至多仅支持两种属性"); + // } else { + // this.updata.triggerConditionList.push(obj); + // } + // setTimeout(() => { + // this.getMaxTableHeight() + // }, 20); }, //宣教传值 propagandaontemplate(item) { @@ -720,12 +720,12 @@ export default { // el.templateType = "SCRIPT"; // } // }); - this.updata.triggerConditionList.forEach((e) => { - e.routeId = this.$route.query.id; - e.routeName = this.$route.query.routeName; - delete e.optionstriggerConditionOperator - }); - delete this.updata.triggerConditionList.optionstriggerConditionOperator + // this.updata.triggerConditionList.forEach((e) => { + // e.routeId = this.$route.query.id; + // e.routeName = this.$route.query.routeName; + // delete e.optionstriggerConditionOperator + // }); + // delete this.updata.triggerConditionList.optionstriggerConditionOperator // return signrouteadd(this.updata).then((res) => { this.$notify({