This commit is contained in:
2024-09-14 15:40:58 +08:00
parent e82143e915
commit 73a243f41d
2 changed files with 40 additions and 15 deletions

View File

@ -168,11 +168,11 @@
<el-form :model="formInline" class="demo-form-inline" :inline="true"
v-if="formInline.taskNodeType == 'QUESTIONNAIRE_SCALE'">
<el-form-item label="问卷模板">
<question @on-template="questionontemplate"></question>
<question @on-template="questionontemplate" :node="formInline.phoneDialMethod"></question>
</el-form-item>
<el-form-item label="开启人工随访" label-width="150px">
<el-switch v-model="formInline.phoneDialMethod" active-color="#13ce66" active-value="COMMON"
inactive-value=" ">
@change="changephoneDialMethodtwo" inactive-value="AI">
</el-switch>
</el-form-item>
<!-- <el-form-item label="问卷有效期">
@ -282,7 +282,7 @@
话术模板
<span>
<scripts @on-template="messageontemplateword" :templateId="formInline.phoneId"
:templateName="formInline.phoneTemplateName"></scripts>
:node="formInline.phoneDialMethod" :templateName="formInline.phoneTemplateName"></scripts>
</span>
</div>
<!-- <div class="itemlist" v-if="formInline.phoneDialMethod == 'COMMON' || !formInline.phoneDialMethod">
@ -630,7 +630,6 @@ export default {
this.formInline.messageTemplateId = item.templateId;
this.formInline.messageTemplateName = item.templateName;
this.list[this.listindex].messageTemplateCode = item.messageTemplateCode
},
//
messageontemplateword(item) {
@ -682,6 +681,12 @@ export default {
delitem(item, index, list) {
list.splice(index, 1);
},
changephoneDialMethodtwo() {
this.formInline.questionInfoId = ''
this.formInline.questionInfoName = ''
this.formInline.phoneId = ''
this.formInline.phoneTemplateName = ''
},
changephoneDialMethod(e) {
if (e == 'AI') {
this.formInline.phoneId = ''
@ -745,6 +750,7 @@ export default {
display: inline-block !important;
float: inline-start !important;
}
.titlemengt {
width: 98.5%;
border-radius: 10px;

View File

@ -97,7 +97,7 @@
</span>
<el-form-item label="开启人工随访" v-if="form.taskNodeType == 'QUESTIONNAIRE_SCALE'" style="margin-left: 75px">
<el-switch v-model="form.phoneDialMethod" active-color="#13ce66" active-value="COMMON"
@change="changephoneDialMethod" inactive-value="AI">
@change="changephoneDialMethodtwo" inactive-value="AI">
</el-switch>
</el-form-item>
<el-form-item label="宣教库模板选择" prop="" v-if="form.taskNodeType == 'PROPAGANDA_ARTICLE'">
@ -542,15 +542,34 @@ export default {
look() {
this.lookNodeContent = true;
},
//
changephoneDialMethod(e) {
changephoneDialMethodtwo() {
this.form.templateId = "";
this.form.templateName = "";
this.form.phoneTemplateId = "";
this.form.phoneTemplateName = "";
this.form.robotPublishId = "";
this.lookitemnew = "";
},
//
changephoneDialMethod(e) {
if (e == "AI") {
// this.form.templateId=''
// id
this.form.phoneTemplateId = "";
this.form.phoneTemplateName = "";
//
// this.phoneNodeContent = "";
this.lookitemnew = "";
} else if (e == "COMMON") {
// idid
this.form.templateId = "";
this.form.templateName = "";
this.form.phoneTemplateId = "";
this.form.phoneTemplateName = "";
//
// this.phoneNodeContent = "";
this.lookitemnew = "";
}
},
infolistword() {
var dictType = "text_message_remind";
getAgencytype(dictType).then((res) => {