From d31403eb04455f68da68e8893a6a322967b1244b 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, 8 Jul 2024 15:47:31 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../system/ManageNodeInformation/indexjs.js | 45 ++++++++++++++-----
src/views/system/specialDiseaseNode/index.vue | 15 +++----
2 files changed, 40 insertions(+), 20 deletions(-)
diff --git a/src/views/system/ManageNodeInformation/indexjs.js b/src/views/system/ManageNodeInformation/indexjs.js
index e725b60..68e85e5 100644
--- a/src/views/system/ManageNodeInformation/indexjs.js
+++ b/src/views/system/ManageNodeInformation/indexjs.js
@@ -385,6 +385,7 @@ export default {
// 宣教模板回显
if (this.form.templateType == "PROPAGANDA" && this.form.templateId) {
getPropaganda(this.form.templateId).then((response) => {
+ console.log(response.data,'data')
this.formview = response.data;
});
} else
@@ -625,7 +626,7 @@ export default {
if (item.nodeContent) {
// console.log(555)
this.form.nodeContent = item.nodeContent;
- console.log(this.form.nodeContent, 'this.form.nodeContentthis.form.nodeContentthis.form.nodeContent')
+ // console.log(this.form.nodeContent, 'this.form.nodeContentthis.form.nodeContentthis.form.nodeContent')
var abc = new RegExp("
", "g");
var bbb = this.form.nodeContent.replace(abc, "");
this.form.nodeContent = bbb;
@@ -725,8 +726,11 @@ export default {
});
this.itemlist.specialDiseaseNodeList = [];
this.lists.forEach((e) => {
+ console.log(e,'taskSubdivisiontemplateType')
e.list.length > 0
? e.list.forEach((el) => {
+ console.log(el,'taskSubdivisiontemplateType')
+
el.routeNodeDay = e.routeNodeDay;
el.routeNodeName = e.routeNodeName;
if (el.phoneDialMethod == 'COMMON' && el.templateId) {
@@ -799,26 +803,43 @@ export default {
},
// 点击
async bottomclickevent(uitem, index, uindex) {
- await this.onemit()
+ await this.onemit();
+ const loading = this.$loading({
+ lock: true,
+ text: "加载中",
+ spinner: "el-icon-loading",
+ background: "rgba(0, 0, 0, 0.7)",
+ });
this.listindex = index;
this.itemindex = uindex;
- if (uitem.templateType == "PROPAGANDA" && uitem.templateId) {
- getPropaganda(uitem.templateId).then((response) => {
+ if (
+ uitem.taskSubdivisiontemplateType == "PROPAGANDA" &&
+ uitem.templateId
+ ) {
+ await getPropaganda(uitem.templateId).then((response) => {
this.formview = response.data;
});
- } else if (uitem.templateType == "QUESTIONNAIRE" && uitem.templateId) {
- questionname(uitem.templateId).then((res) => {
+ } else if (
+ uitem.taskSubdivisiontemplateType == "QUESTIONNAIRE" &&
+ uitem.templateId
+ ) {
+ await questionname(uitem.templateId).then((res) => {
this.lookitemnew = res.data;
});
- } else if (uitem.templateType == 'SCRIPT' && uitem.flowScheme) {
- this.phoneNodeContent = 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.
+ setTimeout(() => {
+ loading.close();
+ }, 1500);
},
handleStep() {
@@ -878,7 +899,7 @@ export default {
this.form.executionTime = this.taskPartitionList?.find(
(e) => e.taskPartitionCode == code
)?.executionTime;
-
+
this.taskPartitionList.forEach((el) => {
if (code == el.taskPartitionCode) {
this.form.executionTime = el.executionTime;
@@ -901,7 +922,7 @@ export default {
wangeditorlist = JSON.parse(localStorage.getItem('wangeditorlist'))
this.form.nodeContent = '