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) { if (this.form.templateType == "PROPAGANDA" && this.form.templateId) {
getPropaganda(this.form.templateId).then((response) => { getPropaganda(this.form.templateId).then((response) => {
console.log(response.data,'data')
this.formview = response.data; this.formview = response.data;
}); });
} else } else
@ -625,7 +626,7 @@ export default {
if (item.nodeContent) { if (item.nodeContent) {
// console.log(555) // console.log(555)
this.form.nodeContent = item.nodeContent; 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 abc = new RegExp("<br>", "g");
var bbb = this.form.nodeContent.replace(abc, ""); var bbb = this.form.nodeContent.replace(abc, "");
this.form.nodeContent = bbb; this.form.nodeContent = bbb;
@ -725,8 +726,11 @@ export default {
}); });
this.itemlist.specialDiseaseNodeList = []; this.itemlist.specialDiseaseNodeList = [];
this.lists.forEach((e) => { this.lists.forEach((e) => {
console.log(e,'taskSubdivisiontemplateType')
e.list.length > 0 e.list.length > 0
? e.list.forEach((el) => { ? e.list.forEach((el) => {
console.log(el,'taskSubdivisiontemplateType')
el.routeNodeDay = e.routeNodeDay; el.routeNodeDay = e.routeNodeDay;
el.routeNodeName = e.routeNodeName; el.routeNodeName = e.routeNodeName;
if (el.phoneDialMethod == 'COMMON' && el.templateId) { if (el.phoneDialMethod == 'COMMON' && el.templateId) {
@ -799,26 +803,43 @@ export default {
}, },
// 点击 // 点击
async bottomclickevent(uitem, index, uindex) { 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.listindex = index;
this.itemindex = uindex; this.itemindex = uindex;
if (uitem.templateType == "PROPAGANDA" && uitem.templateId) { if (
getPropaganda(uitem.templateId).then((response) => { uitem.taskSubdivisiontemplateType == "PROPAGANDA" &&
uitem.templateId
) {
await getPropaganda(uitem.templateId).then((response) => {
this.formview = response.data; this.formview = response.data;
}); });
} else if (uitem.templateType == "QUESTIONNAIRE" && uitem.templateId) { } else if (
questionname(uitem.templateId).then((res) => { uitem.taskSubdivisiontemplateType == "QUESTIONNAIRE" &&
uitem.templateId
) {
await questionname(uitem.templateId).then((res) => {
this.lookitemnew = res.data; this.lookitemnew = res.data;
}); });
} else if (uitem.templateType == 'SCRIPT' && uitem.flowScheme) { } else if (
this.phoneNodeContent = uitem.flowScheme uitem.taskSubdivisiontemplateType == "SCRIPT" &&
uitem.flowScheme
) {
this.phoneNodeContent = uitem.flowScheme;
} }
this.taskPartitionList = []; this.taskPartitionList = [];
if (uitem.taskType) { if (uitem.taskType) {
this.changeTaskType(uitem.taskType, uitem.taskSubdivision); this.changeTaskType(uitem.taskType, uitem.taskSubdivision);
} }
this.form = uitem; this.form = uitem;
// this.form. setTimeout(() => {
loading.close();
}, 1500);
}, },
handleStep() { handleStep() {
@ -878,7 +899,7 @@ export default {
this.form.executionTime = this.taskPartitionList?.find( this.form.executionTime = this.taskPartitionList?.find(
(e) => e.taskPartitionCode == code (e) => e.taskPartitionCode == code
)?.executionTime; )?.executionTime;
this.taskPartitionList.forEach((el) => { this.taskPartitionList.forEach((el) => {
if (code == el.taskPartitionCode) { if (code == el.taskPartitionCode) {
this.form.executionTime = el.executionTime; this.form.executionTime = el.executionTime;
@ -901,7 +922,7 @@ export default {
wangeditorlist = JSON.parse(localStorage.getItem('wangeditorlist')) wangeditorlist = JSON.parse(localStorage.getItem('wangeditorlist'))
this.form.nodeContent = '<p></p>' this.form.nodeContent = '<p></p>'
this.form.nodeContent = wangeditorlist.find(e => e.taskSubdivision == this.form.taskSubdivision && e.specialDiseaseNodeId == this.form.specialDiseaseNodeId)?.nodeContent 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.taskSubdivisiontemplateType == "PROPAGANDA" &&
uitem.templateId uitem.templateId
) { ) {
await getPropaganda(uitem.templateId).then((response) => { getPropaganda(uitem.templateId).then((response) => {
this.formview = response.data; this.formview = response.data;
}); });
} else if ( } else if (
uitem.taskSubdivisiontemplateType == "QUESTIONNAIRE" && uitem.taskSubdivisiontemplateType == "QUESTIONNAIRE" &&
uitem.templateId uitem.templateId
) { ) {
await questionname(uitem.templateId).then((res) => { questionname(uitem.templateId).then((res) => {
this.lookitemnew = res.data; this.lookitemnew = res.data;
}); });
} else if ( } else if (
@ -1136,8 +1136,8 @@ export default {
} }
this.form = uitem; this.form = uitem;
setTimeout(() => { setTimeout(() => {
loading.close(); loading.close();
}, 1500); }, 1200);
}, },
handleStep() { handleStep() {
this.active = 2; this.active = 2;
@ -1354,12 +1354,11 @@ export default {
}, },
}; };
</script> </script>
<style>
<style scoped lang="scss">
[v-cloak] { [v-cloak] {
display: none !important; display: none !important;
}</style> }
<style scoped lang="scss">
::v-deep iframe { ::v-deep iframe {
width: 100%; width: 100%;