From 7b75ee9ce38f235254b3e796a7e1862afadc9b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 18 Jun 2024 10:06:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=93=E7=97=85=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/specialDiseaseNode/index.vue | 64 ++++++++++++------- 1 file changed, 41 insertions(+), 23 deletions(-) diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index 258ee18..2dcf970 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -183,7 +183,7 @@
{ console.log(e, "eeeeeeeeeeeeeeeee"); - if(e.messagePushSign){ + if (e.messagePushSign) { e.messagePushSign = "" + e.messagePushSign; - - }if( e.officialPushSign ){ + } + if (e.officialPushSign) { e.officialPushSign = "" + e.officialPushSign; - } - if(e.appletPushSign){ - e.appletPushSign = "" + e.appletPushSign; - + if (e.appletPushSign) { + e.appletPushSign = "" + e.appletPushSign; } - if(e.phonePushSign){ - e.phonePushSign = ""+e.phonePushSign - + if (e.phonePushSign) { + e.phonePushSign = "" + e.phonePushSign; } }); this.lists = this.handleData( @@ -729,6 +725,12 @@ export default { onNodeContent(item) { console.log(item, "itemfu"); this.form.nodeContent = item.nodeContent; + // this.html += `
${this.add}
`; + var abc = new RegExp("
", "g"); + var bbb = this.form.nodeContent.replace(abc, ""); + // console.log(bbb, "bbb"); + this.form.nodeContent = bbb; + // console.log(this.form.nodeContent, " this.form.nodeContent"); }, //小程序传值 miniProgramtemplate(item) { @@ -793,15 +795,19 @@ export default { }) : ""; }); - this.updata.specialDiseaseNodeList = - this.updata.specialDiseaseNodeList.filter( - (e) => - e.routeNodeDay && - e.routeNodeName && - e.taskType && - e.taskSubdivision && - e.taskStatus - ); + console.log( + this.updata.specialDiseaseNodeList, + " this.updata.specialDiseaseNodeList" + ); + // this.updata.specialDiseaseNodeList = + // this.updata.specialDiseaseNodeList.filter( + // (e) => + // !e.routeNodeDay && + // !e.routeNodeName && + // !e.taskType && + // !e.taskSubdivision && + // !e.taskStatus + // ); specialDiseaseNode(this.updata).then((res) => { this.info(); loading.close(); @@ -870,6 +876,7 @@ export default { }, //点击任务细分 changetaskSubdivision(code, type) { + console.log(code, type, "code, type"); this.form.taskSubdivisionName = this.taskPartitionList?.find( (e) => e.taskPartitionCode == code )?.taskPartitionName; @@ -889,6 +896,17 @@ export default { if (code == el.taskPartitionCode) { this.form.executionTime = el.executionTime; this.form.taskSubdivisiontemplateType = el.templateType; + if ( + this.form.taskSubdivisiontemplateType == "SCRIPT" || + this.form.taskSubdivisiontemplateType == "PROPAGANDA" || + this.form.taskSubdivisiontemplateType == "QUESTIONNAIRE" + ) { + this.form.nodeContent = `

`; + } + console.log( + this.form.taskSubdivisiontemplateType, + "this.form.taskSubdivisiontemplateType" + ); if (!type) { this.form.templateId = ""; this.form.templateName = "";