diff --git a/src/views/system/components/wangEditor.vue b/src/views/system/components/wangEditor.vue index 05b43ad..c2d30ca 100644 --- a/src/views/system/components/wangEditor.vue +++ b/src/views/system/components/wangEditor.vue @@ -7,7 +7,7 @@ :mode="mode" /> // ::v-deep .el-textarea__inner { // color: black !important; diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index 6d6d07b..4f47dc7 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -241,17 +241,18 @@
@@ -363,7 +364,7 @@
@@ -807,6 +808,7 @@ export default { this.taskinfo(); }); }, + // 回显 info() { const loading = this.$loading({ lock: true, @@ -1091,67 +1093,28 @@ export default { }, // 点击 async bottomclickevent(uitem, index, uindex) { - // console.log(uitem, index, uindex,'uitem, index, uindex') - + console.log(uitem, index, uindex,'uitem, index, uindex') await this.onemit() this.listindex = index; this.itemindex = uindex; - if (uitem.templateType == "PROPAGANDA" && uitem.templateId) { + if (uitem.taskSubdivisiontemplateType == "PROPAGANDA" && uitem.templateId) { getPropaganda(uitem.templateId).then((response) => { this.formview = response.data; }); - } else if (uitem.templateType == "QUESTIONNAIRE" && uitem.templateId) { + } else if (uitem.taskSubdivisiontemplateType == "QUESTIONNAIRE" && uitem.templateId) { questionname(uitem.templateId).then((res) => { - // console.log( this.lookitemnew,' this.lookitemnew') - this.lookitemnew = res.data; }); - } else if (uitem.templateType == 'SCRIPT' && uitem.flowScheme) { + } else if (uitem.taskSubdivisiontemplateType == 'SCRIPT' && uitem.flowScheme) { this.phoneNodeContent = uitem.flowScheme } this.taskPartitionList = []; if (uitem.taskType) { + this.changeTaskType(uitem.taskType, uitem.taskSubdivision); } this.form = uitem; - // this.form. }, - // bottomclickevent(uitem, index, uindex) { - // // this.phoneNodeContent = ""; - // // this.lookitemnew = ""; - // if ( - // this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" && - // this.form.taskSubdivisiontemplateType != "PROPAGANDA" - // ) { - // this.$refs.wangeditor.emit(); - // } - // setTimeout(() => { - // this.form = uitem; - // if (this.form.templateType == "PROPAGANDA" && this.form.templateId) { - // getPropaganda(this.form.templateId).then((response) => { - // // 宣教 - // this.formview = response.data; - // }); - // } else if ( - // this.form.templateType == "QUESTIONNAIRE" && - // this.form.templateId - // ) { - // questionname(this.form.templateId).then((res) => { - // // 问卷 - // this.lookitemnew = res.data; - // }); - // } else if (this.form.templateType == "SCRIPT" && this.form.flowScheme) { - // // 话术 - // this.phoneNodeContent = this.form.flowScheme; - // } - // this.taskPartitionList = []; - // if (this.form.taskType) { - // this.changeTaskType(this.form.taskType, this.form.taskSubdivision); - // } - // this.listindex = index; - // this.itemindex = uindex; - // }, 150); - // }, handleStep() { this.active = 2; }, @@ -1164,6 +1127,7 @@ export default { }, //任务类型 changeTaskType(code, taskSubdivision) { + console.log(code,) this.taskPartitionDictId = '' let id = this.selectTaskTypeList?.find((e) => e.taskTypeCode == code)?.id; @@ -1452,6 +1416,7 @@ export default { background-color: #fff; width: 100%; height: 130px; + margin: 20px 0 0; padding: 20px 50px 0px 20px;