diff --git a/src/views/system/ManageNodeInformation/index.vue b/src/views/system/ManageNodeInformation/index.vue index 6c75e48..a48480e 100644 --- a/src/views/system/ManageNodeInformation/index.vue +++ b/src/views/system/ManageNodeInformation/index.vue @@ -216,15 +216,6 @@ :value="item.dictValue" > -
- +

{{ uitem.taskSubdivisionName }}

-
@@ -346,7 +324,7 @@ prop="" v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'" > - - { @@ -968,6 +939,7 @@ export default { // this.taskinfo(); }); }, + // 重播次数 infolistMESSAGE() { var dictType = "redial_times"; getAgencytype(dictType).then((res) => { @@ -975,6 +947,7 @@ export default { this.taskinfo(); }); }, + // 弹框确定 upload() { const loading = this.$loading({ lock: true, @@ -992,12 +965,13 @@ export default { this.$notify({ type: "success", title: "提示", - message: "修改触发条件成功成功", + message: "修改触发条件成功", }); this.infolist(); this.openfalse(); }); }, + // 关闭弹框 openfalse() { this.openlist.triggerConditionList = [ { @@ -1016,6 +990,7 @@ export default { this.open = false; this.resetForm("openlist"); }, + // 批量新增添加属性 addtriggerCondition() { this.idd++; var obj = { @@ -1035,9 +1010,9 @@ export default { this.$message.error("最多批量添加2条"); } else { this.openlist.triggerConditionList.push(obj); - // console.log(this.form) } }, + // 删除属性 delitemlistname(index, item) { this.openlist.triggerConditionList.splice(index, 1); }, @@ -1100,9 +1075,7 @@ export default { addlistname() { this.show3 = !this.show3; }, - delitemlist(index, item) { - this.updata.splice(index, 1); - }, + // 适用范围 changeoptions(e) { this.parentDictCode = this.options.find( (el) => el.dictValue == e @@ -1114,6 +1087,7 @@ export default { this.parentDictCodelist = res.rows; }); }, + // 回显 info() { const loading = this.$loading({ lock: true, @@ -1136,12 +1110,7 @@ export default { loading.close(); this.agreeNumber = res.data.agreeNumber; this.totalNumber = res.data.totalNumber; - console.log( - res.data.specialDiseaseNodeList, - "res.data.specialDiseaseNodeList" - ); res.data.specialDiseaseNodeList.forEach((e) => { - console.log(e, "eeeeeeeeeeeeeeeee"); if (e.messagePushSign) { e.messagePushSign = "" + e.messagePushSign; } @@ -1161,11 +1130,8 @@ export default { "routeNodeName" ); this.form = this.lists[0].list[0]; - console.log(this.form, "this.form"); if (this.form.taskType) { - console.log(111111111111); this.changeTaskType(this.form.taskType, this.form.taskSubdivision); - console.log(this.form.taskSubdivision, "this.form.taskSubdivision"); } }); } else { @@ -1196,7 +1162,6 @@ export default { ], }); this.form = this.lists[0].list[0]; - console.log(this.form, "6555555555555555"); } }, handleData(list, key, keytwo) { @@ -1216,7 +1181,7 @@ export default { ite.routeNodeName == item.routeNodeName ) ); - + let keys = [...new Set(array)]; let newList = keys.map((item) => { return { @@ -1230,7 +1195,7 @@ export default { }); return newList; }, - + // 且或 infolistoptionslistS() { var dictType = "trigger_logic"; @@ -1262,12 +1227,12 @@ export default { getAgencytype(dictType).then((res) => { this.options = res.data; }); - this.infolist() + this.infolist(); }, + // 展示触发条件 infolist() { this.routeId = this.$route.query.id; triggerConditionList(this.routeId).then((res) => { - console.log(res, "res"); this.openlist.triggerConditionList = res.data; if (res.data.length == 1) { @@ -1295,12 +1260,10 @@ export default { }, //wangeditor传值 onNodeContent(item) { - console.log(item, "itemfu"); this.form.nodeContent = item.nodeContent; var abc = new RegExp("
", "g"); var bbb = this.form.nodeContent.replace(abc, ""); this.form.nodeContent = bbb; - console.log(this.form.nodeContent, " this.form.nodeContent"); }, //小程序传值 miniProgramtemplate(item) { @@ -1322,7 +1285,6 @@ export default { }, // 短信 messageontemplateMESSAGE(item) { - console.log(item, "2222222"); this.form.phoneMessageTemplateId = item.templateId; this.form.phoneMessageTemplateName = item.templateName; this.form.messagePreview = item.templateContent; @@ -1364,10 +1326,6 @@ export default { }) : ""; }); - console.log( - this.itemlist.specialDiseaseNodeList, - " this.itemlist.specialDiseaseNodeList" - ); // this.updata.specialDiseaseNodeList = // this.updata.specialDiseaseNodeList.filter( // (e) => @@ -1398,8 +1356,9 @@ export default { this.form.templateId = item.templateId; this.form.templateName = item.templateName; }, - + bottomclickevent(uitem, index, uindex) { + console.log(uitem, index, uindex, "uitem, index, uindex"); if ( this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" && this.form.taskSubdivisiontemplateType != "PROPAGANDA" @@ -1487,56 +1446,72 @@ export default { } }); }, - + // 添加管理路径节点 addlist() { + list(this.parentDictCode).then((res) => { + // this.parentDictCodelist = res.rows; + res.rows.forEach((e) => { + this.lists.forEach((el) => { + el.routeNodeName = e.dictLabel; + }); + }); + }); this.lists.push({ routeNodeName: "", routeNodeDay: "", list: [ { - nodeContent: "", + nodeContent: "

", templateId: "", templateName: "", taskType: "", - taskTypeName: "", + officialRemindContent: "", taskSubdivision: "", taskSubdivisionName: "", + appletRemindContent: "", + appletPromptDescription: "", taskStatus: "", secondClassifyDescribe: "", executionTime: "", appletPushSign: "0", officialPushSign: "0", messagePushSign: "0", + messagePreview: "", taskSubdivisiontemplateType: "", }, ], }); + // }, }, + // 添加节点 additem(item) { item.list.push({ - nodeContent: "", + nodeContent: "

", templateId: "", templateName: "", taskType: "", - taskTypeName: "", + officialRemindContent: "", taskSubdivision: "", taskSubdivisionName: "", + appletRemindContent: "", + appletPromptDescription: "", taskStatus: "", secondClassifyDescribe: "", executionTime: "", appletPushSign: "0", officialPushSign: "0", messagePushSign: "0", + messagePreview: "", taskSubdivisiontemplateType: "", }); }, + // 删除节点 delitemh(item, index) { item.list.splice(this.itemindex, 1); if (item.list.length == 0) { this.lists.splice(index, 1); } }, - }, }; diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index d177e51..71cf40f 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -45,15 +45,7 @@ :value="item.dictValue" > - +