From d5d5099358796510cfa9788dc8819a2c6c73ce83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Thu, 4 Jul 2024 10:32:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E5=8D=B7=E5=92=8C?= =?UTF-8?q?=E8=AF=9D=E6=9C=AF=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ManageNodeInformation/index.vue | 69 ++++++++--- .../system/ManageNodeInformation/indexjs.js | 16 +++ src/views/system/specialDiseaseNode/index.vue | 109 ++++++++++++++---- 3 files changed, 156 insertions(+), 38 deletions(-) diff --git a/src/views/system/ManageNodeInformation/index.vue b/src/views/system/ManageNodeInformation/index.vue index 1cfee1f..5e389f3 100644 --- a/src/views/system/ManageNodeInformation/index.vue +++ b/src/views/system/ManageNodeInformation/index.vue @@ -343,6 +343,15 @@ :templateName="form.templateName" > + + 预览 + -
-
+ + 确 定 + +
+ +
话术模板: + + 预览 +
+ + 预览 +
-
-
+ + 确 定 + + -
-
+ + 确 定 + +
diff --git a/src/views/system/ManageNodeInformation/indexjs.js b/src/views/system/ManageNodeInformation/indexjs.js index 794d72c..ec43717 100644 --- a/src/views/system/ManageNodeInformation/indexjs.js +++ b/src/views/system/ManageNodeInformation/indexjs.js @@ -46,6 +46,9 @@ export default { name: "specialDiseaseNode", data() { return { + lookNodeContent: false, + lookquestionname: false, + lookquestionlist: false, formview: {}, lookitemnew: {}, baseUrl: process.env.VUE_APP_BASE_API, @@ -628,6 +631,19 @@ export default { this.phoneNodeContent = item.phoneNodeContent; }, + // 预览话术图 + look() { + this.lookNodeContent = true + }, + // 预览问卷 + lookquestion() { + this.lookquestionname = true + }, + // 问卷库模板选择 + looklist() { + this.lookquestionlist = true + }, + changephoneDialMethod(e) { console.log(e) if (e == 'AI') { diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index 66bd416..9bb7dfc 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -159,6 +159,15 @@ :templateName="form.templateName" >
+ + 预览 + -
-
+ + 确 定 + +
+ +
话术模板: + + 预览 + +
+ + 预览 +
-
-
+ + 确 定 + + -
+ -
+ + 确 定 + +
@@ -575,6 +615,9 @@ export default { data() { return { formview: {}, + lookquestionname: false, + lookquestionlist: false, + lookNodeContent: false, lookitemnew: {}, baseUrl: process.env.VUE_APP_BASE_API, showquestion: false, @@ -665,6 +708,19 @@ export default { }, mounted() {}, methods: { + // 问卷库模板选择 + looklist() { + this.lookquestionlist = true; + }, + // 预览问卷 + lookquestion() { + this.lookquestionname = true; + }, + // 预览话术图 + look() { + this.lookNodeContent = true; + }, + // 切换人工和自动 changephoneDialMethod(e) { console.log(e); if (e == "AI") { @@ -673,7 +729,7 @@ export default { this.form.phoneTemplateId = ""; this.form.phoneTemplateName = ""; // 清空话术和问卷 - this.phoneNodeContent = ""; + // this.phoneNodeContent = ""; this.lookitemnew = ""; } else if (e == "COMMON") { // 清空问卷id话术id和对应名字 @@ -684,7 +740,7 @@ export default { this.form.phoneTemplateId = ""; this.form.phoneTemplateName = ""; // 清空话术和问卷 - this.phoneNodeContent = ""; + // this.phoneNodeContent = ""; this.lookitemnew = ""; } }, @@ -767,14 +823,17 @@ export default { this.form = this.lists[0].list[0]; console.log(this.form, "this,form"); // 宣教模板回显 - if (this.form.templateType == "PROPAGANDA"&&this.form.templateId) { + if (this.form.templateType == "PROPAGANDA" && this.form.templateId) { getPropaganda(this.form.templateId).then((response) => { console.log(response, " this.formview "); this.formview = response.data; }); - } else if (this.form.templateType == "QUESTIONNAIRE"||this.form.templateType == "SCRIPT"&&this.form.templateId) { - console.log(this.form.templateId,'this.form.templateId5555555555') + } else if ( + this.form.templateType == "QUESTIONNAIRE" || + (this.form.templateType == "SCRIPT" && this.form.templateId) + ) { + console.log(this.form.templateId, "this.form.templateId5555555555"); // 问卷模板回显 questionname(this.form.templateId).then((res) => { @@ -989,13 +1048,16 @@ export default { setTimeout(() => { this.form = uitem; - if (this.form.templateType == "PROPAGANDA"&&this.form.templateId) { + if (this.form.templateType == "PROPAGANDA" && this.form.templateId) { // 宣教 getPropaganda(this.form.templateId).then((response) => { this.formview = response.data; }); - } else if (this.form.templateType == "QUESTIONNAIRE"&&this.form.templateId) { - console.log(this.form.templateId,'this.form.templateId') + } else if ( + this.form.templateType == "QUESTIONNAIRE" && + this.form.templateId + ) { + console.log(this.form.templateId, "this.form.templateId"); questionname(this.form.templateId).then((res) => { // 问卷 console.log(res, "res"); @@ -1209,6 +1271,7 @@ export default { height: 500px; } .imageScriptpreview { + // background: red; width: 100%; margin-top: 20px; }