xg
This commit is contained in:
parent
e82143e915
commit
73a243f41d
@ -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">
|
||||
@ -623,28 +623,27 @@ export default {
|
||||
messageontemplateMESSAGE(item) {
|
||||
this.formInline.phoneMessageTemplateId = item.templateId;
|
||||
this.formInline.phoneMessageTemplateName = item.templateName;
|
||||
this.list[this.listindex].messageTemplateCode=item.messageTemplateCode
|
||||
this.list[this.listindex].messageTemplateCode = item.messageTemplateCode
|
||||
|
||||
},
|
||||
messageontemplateMESSAGEtwo(item) {
|
||||
this.formInline.messageTemplateId = item.templateId;
|
||||
this.formInline.messageTemplateName = item.templateName;
|
||||
this.list[this.listindex].messageTemplateCode=item.messageTemplateCode
|
||||
|
||||
this.list[this.listindex].messageTemplateCode = item.messageTemplateCode
|
||||
},
|
||||
// 话术
|
||||
messageontemplateword(item) {
|
||||
this.formInline.phoneId = item.templateId;
|
||||
this.formInline.phoneTemplateName = item.templateName;
|
||||
this.list[this.listindex].scriptInfoId=item.scriptInfoId
|
||||
this.list[this.listindex].phoneTemplateId=item.phoneTemplateId
|
||||
this.list[this.listindex].scriptInfoId = item.scriptInfoId
|
||||
this.list[this.listindex].phoneTemplateId = item.phoneTemplateId
|
||||
},
|
||||
//公众号传值
|
||||
officialAccountontemplate(item) {
|
||||
this.formInline.officialTemplateId = item.templateId;
|
||||
this.formInline.officialTemplateName = item.templateName;
|
||||
this.formInline.officialRemindContent = item.templateContent;
|
||||
this.list[this.listindex].officialTemplateCode=item.officialTemplateCode
|
||||
this.list[this.listindex].officialTemplateCode = item.officialTemplateCode
|
||||
|
||||
},
|
||||
//小程序传值
|
||||
@ -652,7 +651,7 @@ export default {
|
||||
this.formInline.appletTemplateId = item.templateId;
|
||||
this.formInline.appletTemplateName = item.templateName;
|
||||
this.formInline.appletRemindContent = item.templateContent;
|
||||
this.list[this.listindex].appletTemplateCode=item.appletTemplateCode
|
||||
this.list[this.listindex].appletTemplateCode = item.appletTemplateCode
|
||||
},
|
||||
clicktimelineitem(item, index) {
|
||||
this.formInline = 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 = ''
|
||||
@ -741,10 +746,11 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-form--inline .el-form-item__label{
|
||||
::v-deep .el-form--inline .el-form-item__label {
|
||||
display: inline-block !important;
|
||||
float: inline-start !important;
|
||||
}
|
||||
|
||||
.titlemengt {
|
||||
width: 98.5%;
|
||||
border-radius: 10px;
|
||||
|
||||
@ -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") {
|
||||
// 清空问卷id话术id和对应名字
|
||||
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) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user