From 18230c18a0882ae99d93e5b97a5dc270385909d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 24 Jun 2024 15:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=A6=E5=8F=91=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ManageNodeInformation/index.vue | 78 +++++++------------ .../system/editorialSpecialization/index.vue | 20 ++++- 2 files changed, 48 insertions(+), 50 deletions(-) diff --git a/src/views/system/ManageNodeInformation/index.vue b/src/views/system/ManageNodeInformation/index.vue index 0f5b139..a358193 100644 --- a/src/views/system/ManageNodeInformation/index.vue +++ b/src/views/system/ManageNodeInformation/index.vue @@ -169,7 +169,11 @@ >
- + + + + + { - if (res.code == 200) { - this.$notify({ type: "success", title: "提示", @@ -1005,9 +1022,7 @@ export default { this.parentDictCodelist = res.rows; }); }, - changetoday(e){ - console.log(e,'eeeeeeeeeeeeeooooooooooooo') - }, + // 回显 info() { const loading = this.$loading({ @@ -1143,7 +1158,6 @@ export default { var dictType = "trigger_condition_operator"; getList(dictType, this.dictDataType).then((res) => { - console.log(res, "res"); this.optionstriggerConditionOperator = res.data; }); }, @@ -1158,19 +1172,13 @@ export default { ).dictLabel; this.openlist.triggerConditionList[index].triggerConditionValue = null; }, - // 数值=s - // changetriggerLogics(e,index){ - // console.log(e,index,'e,index') - // this.openlist.triggerConditionList[index].triggerConditionOperator = - // this.optionstriggerConditionOperator.find( - // (el) => el.dictValue == e - // ).dictLabel; - // this.openlist.triggerConditionList[index].triggerConditionValue = null; - // }, + // 诊断 changetriggerConditionName(e, index) { - console.log(e, index, "e诊断, index"); - // this.dictDataType = e; + var dictType = e; + getAgencytype(dictType).then((res) => { + this.ConditionValue = res.data; + }); this.openlist.triggerConditionList[index].triggerConditionName = this.optionsname.find((el) => el.dictValue == e).dictLabel; this.openlist.triggerConditionList[index].triggerConditionOperator = null; @@ -1180,15 +1188,11 @@ export default { ).dictDataType; this.openlist.triggerConditionList[index].dictDataType = this.optionsname.find((el) => el.dictValue == e).dictDataType; - console.log( - this.openlist.triggerConditionList[index].dictDataType, - "this.dictDataType" - ); this.handlelist(); }, + // 且或 changetriggerLogicsname(e, index) { - console.log(e,'qie') this.openlist.triggerConditionList[index].triggerLogic = e; this.openlist.triggerConditionList[index].triggerLogicName = this.optionslistS.find((el) => el.dictValue == e).dictLabel; @@ -1206,20 +1210,7 @@ export default { this.routeId = this.$route.query.id; triggerConditionList(this.routeId).then((res) => { this.openlist.triggerConditionList = res.data; - this.handlelist(); - - // this.openlist.triggerConditionList.forEach((o) => { - // // this.triggerConditionCode=o.triggerConditionCode - // this.handlelist(); - // // o.dictDataType = this.optionstriggerConditionOperator.find( - // // (el) => el.dictValue == o.triggerConditionOperator - // // )?.dictDataType; - // }); - // console.log( - // this.openlist.triggerConditionList, - // " this.openlist.triggerConditionList" - // ); - + this.handlelist(); if (res.data.length == 1) { // 新增一条时 this.updata = res.data[0]; @@ -1237,15 +1228,10 @@ export default { } else { // 新增两条或者三条 this.updata = res.data[0]; - // this.handlelist(); this.updata.triggerConditionOperatorName = this.optionstriggerConditionOperator.find( (el) => el.dictValue == this.updata.triggerConditionOperator )?.dictLabel; - console.log( - this.updata.triggerConditionOperatorName, - "updata.triggerConditionOperatorName" - ); res.data.splice(0, 1); this.updatalist = res.data; this.updatalist.forEach((e) => { @@ -1275,13 +1261,8 @@ export default { o.dictDataType = this.optionsname.find( (el) => el.dictValue == o.triggerConditionCode )?.dictDataType; - console.log(o.dictDataType, "dict"); + // console.log(o.dictDataType, "dict"); }); - console.log( - this.openlist.triggerConditionList, - " this.openlist.triggerConditionList11111111111" - ); - this.$set(this.updata, "suitRange", this.openlist.suitRange); }); }, @@ -1289,7 +1270,6 @@ export default { edit() { this.open = true; this.infolistname(); - // this.infolist() }, //wangeditor传值 onNodeContent(item) { diff --git a/src/views/system/editorialSpecialization/index.vue b/src/views/system/editorialSpecialization/index.vue index 1914db5..95de306 100644 --- a/src/views/system/editorialSpecialization/index.vue +++ b/src/views/system/editorialSpecialization/index.vue @@ -244,6 +244,19 @@ value-format="yyyy-MM-dd" > + + + + { + this.ConditionValue = res.data; + }); this.updata.triggerConditionList[index].triggerConditionName = this.optionsname.find((el) => el.dictValue == e).dictLabel; this.updata.triggerConditionList[index].triggerConditionOperator = null; @@ -567,7 +585,7 @@ export default { }; if (this.updata.triggerConditionList.length == 3) { - this.$message.error("最多批量添加2条"); + this.$message.error("至多仅支持两种属性"); } else { this.updata.triggerConditionList.push(obj); }