From 1822c8e60f6e6cfc74c15e899b8d66aedee8e443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 12 Jul 2024 09:19:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ManuallyCreatingTasks/index.vue | 69 ++++++++++--------- src/views/system/components/message.vue | 4 +- src/views/system/components/miniProgram.vue | 4 +- .../system/components/officialAccount.vue | 4 +- src/views/system/components/propaganda.vue | 4 +- src/views/system/components/question.vue | 4 +- src/views/system/components/script.vue | 4 +- 7 files changed, 49 insertions(+), 44 deletions(-) diff --git a/src/views/system/ManuallyCreatingTasks/index.vue b/src/views/system/ManuallyCreatingTasks/index.vue index c28e9fc..9eb08a0 100644 --- a/src/views/system/ManuallyCreatingTasks/index.vue +++ b/src/views/system/ManuallyCreatingTasks/index.vue @@ -716,40 +716,45 @@ export default { } }, upload() { - this.updata.routeNodeList = this.list; - // this.updata.routeNodeList.forEach((el) => { - // if (el.phoneDialMethod == "COMMON" && el.questionInfoId) { - // el.templateType = "QUESTIONNAIRE"; - // } else if (el.phoneDialMethod == "COMMON" && el.phoneId) { - // el.templateType = "SCRIPT"; - // } else if (el.phoneDialMethod == "AI" && el.phoneId) { - // el.templateType = "SCRIPT"; - // } - // }); - this.updata.triggerConditionList.forEach((e) => { - e.routeId = this.$route.query.id; - e.routeName = this.$route.query.routeName; - delete e.optionstriggerConditionOperator - }); - delete this.updata.triggerConditionList.optionstriggerConditionOperator - // return - signrouteadd(this.updata).then((res) => { - this.$notify({ - type: "success", - title: "提示", - message: "保存成功,即将返回签约患者列表", - duration: 3000, + this.$confirm('保存此任务, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + }).then(() => { + this.updata.routeNodeList = this.list; + // this.updata.routeNodeList.forEach((el) => { + // if (el.phoneDialMethod == "COMMON" && el.questionInfoId) { + // el.templateType = "QUESTIONNAIRE"; + // } else if (el.phoneDialMethod == "COMMON" && el.phoneId) { + // el.templateType = "SCRIPT"; + // } else if (el.phoneDialMethod == "AI" && el.phoneId) { + // el.templateType = "SCRIPT"; + // } + // }); + this.updata.triggerConditionList.forEach((e) => { + e.routeId = this.$route.query.id; + e.routeName = this.$route.query.routeName; + delete e.optionstriggerConditionOperator }); - setTimeout(() => { - this.$store - .dispatch("tagsView/delView", this.$route) - .then(({ visitedViews }) => { - this.$router.push({ - path: "/patient/signRecord", + delete this.updata.triggerConditionList.optionstriggerConditionOperator + // return + signrouteadd(this.updata).then((res) => { + this.$notify({ + type: "success", + title: "提示", + message: "保存成功,即将返回签约患者列表", + duration: 3000, + }); + setTimeout(() => { + this.$store + .dispatch("tagsView/delView", this.$route) + .then(({ visitedViews }) => { + this.$router.push({ + path: "/patient/signRecord", + }); }); - }); - }, 3000); - }); + }, 3000); + }); + }) }, // 获取表格最高高度 getMaxTableHeight() { diff --git a/src/views/system/components/message.vue b/src/views/system/components/message.vue index 3f2e56c..f15c363 100644 --- a/src/views/system/components/message.vue +++ b/src/views/system/components/message.vue @@ -188,11 +188,11 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - this.$refs.DepartmentList.resetQuery() this.queryParams.departmentId = null; this.itemname = null; this.resetForm("queryForm"); - this.handleQuery(); + this.$refs.DepartmentList.resetQuery() + // this.handleQuery(); }, }, }; diff --git a/src/views/system/components/miniProgram.vue b/src/views/system/components/miniProgram.vue index 49a6d0e..3284b76 100644 --- a/src/views/system/components/miniProgram.vue +++ b/src/views/system/components/miniProgram.vue @@ -193,10 +193,10 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - this.$refs.DepartmentList.resetQuery() this.queryParams.departmentId = null; this.resetForm("queryForm"); - this.handleQuery(); + this.$refs.DepartmentList.resetQuery() + // this.handleQuery(); }, }, }; diff --git a/src/views/system/components/officialAccount.vue b/src/views/system/components/officialAccount.vue index f295b64..0819025 100644 --- a/src/views/system/components/officialAccount.vue +++ b/src/views/system/components/officialAccount.vue @@ -172,10 +172,10 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - this.$refs.DepartmentList.resetQuery() this.queryParams.departmentId = null; this.resetForm("queryForm"); - this.handleQuery(); + this.$refs.DepartmentList.resetQuery() + // this.handleQuery(); }, } }; diff --git a/src/views/system/components/propaganda.vue b/src/views/system/components/propaganda.vue index bf79c41..5240299 100644 --- a/src/views/system/components/propaganda.vue +++ b/src/views/system/components/propaganda.vue @@ -280,9 +280,9 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - this.$refs.DepartmentList.resetQuery() this.resetForm("queryForm"); - this.handleQuery(); + this.$refs.DepartmentList.resetQuery() + // this.handleQuery(); }, }, }; diff --git a/src/views/system/components/question.vue b/src/views/system/components/question.vue index 43ec9d1..b29038d 100644 --- a/src/views/system/components/question.vue +++ b/src/views/system/components/question.vue @@ -197,9 +197,9 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - this.$refs.DepartmentList.resetQuery() this.resetForm("queryForm"); - this.handleQuery(); + this.$refs.DepartmentList.resetQuery() + // this.handleQuery(); }, }, }; diff --git a/src/views/system/components/script.vue b/src/views/system/components/script.vue index 426dcec..c527ffe 100644 --- a/src/views/system/components/script.vue +++ b/src/views/system/components/script.vue @@ -234,9 +234,9 @@ export default { scriptSort: null, scriptRemark: null, }; - this.$refs.DepartmentList.resetQuery() this.resetForm("queryForm"); - this.getList(); + this.$refs.DepartmentList.resetQuery() + // this.getList(); }, }, };