xg
This commit is contained in:
parent
e82143e915
commit
73a243f41d
@ -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">
|
||||||
@ -623,28 +623,27 @@ export default {
|
|||||||
messageontemplateMESSAGE(item) {
|
messageontemplateMESSAGE(item) {
|
||||||
this.formInline.phoneMessageTemplateId = item.templateId;
|
this.formInline.phoneMessageTemplateId = item.templateId;
|
||||||
this.formInline.phoneMessageTemplateName = item.templateName;
|
this.formInline.phoneMessageTemplateName = item.templateName;
|
||||||
this.list[this.listindex].messageTemplateCode=item.messageTemplateCode
|
this.list[this.listindex].messageTemplateCode = item.messageTemplateCode
|
||||||
|
|
||||||
},
|
},
|
||||||
messageontemplateMESSAGEtwo(item) {
|
messageontemplateMESSAGEtwo(item) {
|
||||||
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) {
|
||||||
this.formInline.phoneId = item.templateId;
|
this.formInline.phoneId = item.templateId;
|
||||||
this.formInline.phoneTemplateName = item.templateName;
|
this.formInline.phoneTemplateName = item.templateName;
|
||||||
this.list[this.listindex].scriptInfoId=item.scriptInfoId
|
this.list[this.listindex].scriptInfoId = item.scriptInfoId
|
||||||
this.list[this.listindex].phoneTemplateId=item.phoneTemplateId
|
this.list[this.listindex].phoneTemplateId = item.phoneTemplateId
|
||||||
},
|
},
|
||||||
//公众号传值
|
//公众号传值
|
||||||
officialAccountontemplate(item) {
|
officialAccountontemplate(item) {
|
||||||
this.formInline.officialTemplateId = item.templateId;
|
this.formInline.officialTemplateId = item.templateId;
|
||||||
this.formInline.officialTemplateName = item.templateName;
|
this.formInline.officialTemplateName = item.templateName;
|
||||||
this.formInline.officialRemindContent = item.templateContent;
|
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.appletTemplateId = item.templateId;
|
||||||
this.formInline.appletTemplateName = item.templateName;
|
this.formInline.appletTemplateName = item.templateName;
|
||||||
this.formInline.appletRemindContent = item.templateContent;
|
this.formInline.appletRemindContent = item.templateContent;
|
||||||
this.list[this.listindex].appletTemplateCode=item.appletTemplateCode
|
this.list[this.listindex].appletTemplateCode = item.appletTemplateCode
|
||||||
},
|
},
|
||||||
clicktimelineitem(item, index) {
|
clicktimelineitem(item, index) {
|
||||||
this.formInline = item;
|
this.formInline = 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 = ''
|
||||||
@ -741,10 +746,11 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<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;
|
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;
|
||||||
|
|||||||
@ -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") {
|
||||||
|
// 清空问卷id话术id和对应名字
|
||||||
|
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) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user