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

View File

@ -97,7 +97,7 @@
</span> </span>
<el-form-item label="开启人工随访" v-if="form.taskNodeType == 'QUESTIONNAIRE_SCALE'" style="margin-left: 75px"> <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" <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-switch>
</el-form-item> </el-form-item>
<el-form-item label="宣教库模板选择" prop="" v-if="form.taskNodeType == 'PROPAGANDA_ARTICLE'"> <el-form-item label="宣教库模板选择" prop="" v-if="form.taskNodeType == 'PROPAGANDA_ARTICLE'">
@ -542,15 +542,34 @@ export default {
look() { look() {
this.lookNodeContent = true; this.lookNodeContent = true;
}, },
// changephoneDialMethodtwo() {
changephoneDialMethod(e) {
this.form.templateId = ""; this.form.templateId = "";
this.form.templateName = ""; this.form.templateName = "";
this.form.phoneTemplateId = ""; this.form.phoneTemplateId = "";
this.form.phoneTemplateName = ""; this.form.phoneTemplateName = "";
this.form.robotPublishId = "";
this.lookitemnew = ""; 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() { infolistword() {
var dictType = "text_message_remind"; var dictType = "text_message_remind";
getAgencytype(dictType).then((res) => { getAgencytype(dictType).then((res) => {