This commit is contained in:
闫晓茹 2024-07-08 15:47:31 +08:00
parent a7309bae00
commit d31403eb04
2 changed files with 40 additions and 20 deletions

View File

@ -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("<br>", "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 = '<p></p>'
this.form.nodeContent = wangeditorlist.find(e => e.taskSubdivision == this.form.taskSubdivision && e.specialDiseaseNodeId == this.form.specialDiseaseNodeId)?.nodeContent
console.log(this.form.nodeContent, 'this.form.nodeContent8858585')
// console.log(this.form.nodeContent, 'this.form.nodeContent8858585')
}
});
@ -981,4 +1002,4 @@ export default {
},
},
};
// </script>
// </script>

View File

@ -1114,14 +1114,14 @@ export default {
uitem.taskSubdivisiontemplateType == "PROPAGANDA" &&
uitem.templateId
) {
await getPropaganda(uitem.templateId).then((response) => {
getPropaganda(uitem.templateId).then((response) => {
this.formview = response.data;
});
} else if (
uitem.taskSubdivisiontemplateType == "QUESTIONNAIRE" &&
uitem.templateId
) {
await questionname(uitem.templateId).then((res) => {
questionname(uitem.templateId).then((res) => {
this.lookitemnew = res.data;
});
} else if (
@ -1136,8 +1136,8 @@ export default {
}
this.form = uitem;
setTimeout(() => {
loading.close();
}, 1500);
loading.close();
}, 1200);
},
handleStep() {
this.active = 2;
@ -1354,12 +1354,11 @@ export default {
},
};
</script>
<style>
<style scoped lang="scss">
[v-cloak] {
display: none !important;
}</style>
<style scoped lang="scss">
}
::v-deep iframe {
width: 100%;