This commit is contained in:
闫晓茹 2024-07-01 17:58:23 +08:00
parent c8b11bbecc
commit 3fac2242e0
2 changed files with 26 additions and 2 deletions

View File

@ -654,6 +654,13 @@ export default {
? e.list.forEach((el) => { ? e.list.forEach((el) => {
el.routeNodeDay = e.routeNodeDay; el.routeNodeDay = e.routeNodeDay;
el.routeNodeName = e.routeNodeName; el.routeNodeName = e.routeNodeName;
console.log(el, 'el')
if (el.phoneDialMethod == 'COMMON' && el.templateId) {
el.templateType = 'QUESTIONNAIRE'
} else if (el.phoneDialMethod == 'COMMON' && el.phoneTemplateId) {
el.templateType = 'SCRIPT'
}
this.itemlist.specialDiseaseNodeList.push(el); this.itemlist.specialDiseaseNodeList.push(el);
}) })
: ""; : "";
@ -669,6 +676,8 @@ export default {
// ); // );
console.log(this.itemlist, 'itemlist') console.log(this.itemlist, 'itemlist')
// return // return
specialDiseaseNode(this.itemlist).then((res) => { specialDiseaseNode(this.itemlist).then((res) => {
this.info(); this.info();
loading.close(); loading.close();

View File

@ -325,7 +325,13 @@
</div> </div>
<div class="itemlist"> <div class="itemlist">
话术模板 话术模板
<span class="spanname" v-if="formInline.questionInfoId"> <span
class="spanname"
v-if="
formInline.questionInfoId &&
formInline.phoneDialMethod == 'COMMON'
"
>
<scripts <scripts
@on-template="messageontemplateword" @on-template="messageontemplateword"
:templateId="formInline.phoneId" :templateId="formInline.phoneId"
@ -643,7 +649,16 @@ export default {
upload() { upload() {
this.updata.routeNodeList = this.list; this.updata.routeNodeList = this.list;
// console.log(this.updata,'this.updata') // console.log(this.updata,'this.updata')
// return this.updata.routeNodeList.forEach((el) => {
if (el.phoneDialMethod == "COMMON" && el.questionInfoId) {
el.templateType = "QUESTIONNAIRE";
} else if (el.phoneDialMethod == "COMMON" && el.phoneId) {
el.templateType = "SCRIPT";
}
});
console.log(this.updata,'updata')
return
signrouteadd(this.updata).then((res) => { signrouteadd(this.updata).then((res) => {
this.$notify({ this.$notify({
type: "success", type: "success",