From 0be026b392f99e3b44801d572d84ac432639d0f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 19 Apr 2024 11:35:15 +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 --- src/views/system/specialDiseaseNode/index.vue | 43 +++++++++++-------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index e5efdd2..5b55d23 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -460,25 +460,30 @@ export default { //暂存 TemporaryStorage() { this.$refs.wangeditor.emit() - const loading = this.$loading({ - lock: true, - text: '暂存中', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }); - this.updata.specialDiseaseNodeList = [] - this.lists.forEach(e => { - e.list.length > 0 ? e.list.forEach(el => { - el.routeNodeDay = e.routeNodeDay - el.routeNodeName = e.routeNodeName - this.updata.specialDiseaseNodeList.push(el) - }) : "" - }) - this.updata.specialDiseaseNodeList = this.updata.specialDiseaseNodeList.filter(e => e.routeNodeDay && e.routeNodeName && e.taskType && e.taskSubdivision && e.taskStatus) - specialDiseaseNode(this.updata).then(res => { - this.info(); - loading.close(); - this.$modal.msgSuccess("暂存成功!"); + this.$confirm('确认暂存时将过滤掉部分内容未填写完成的子节点,是否确认暂存?', '提示', { + confirmButtonText: '确认', + cancelButtonText: '取消', + }).then(() => { + const loading = this.$loading({ + lock: true, + text: '暂存中', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + this.updata.specialDiseaseNodeList = [] + this.lists.forEach(e => { + e.list.length > 0 ? e.list.forEach(el => { + el.routeNodeDay = e.routeNodeDay + el.routeNodeName = e.routeNodeName + this.updata.specialDiseaseNodeList.push(el) + }) : "" + }) + this.updata.specialDiseaseNodeList = this.updata.specialDiseaseNodeList.filter(e => e.routeNodeDay && e.routeNodeName && e.taskType && e.taskSubdivision && e.taskStatus) + specialDiseaseNode(this.updata).then(res => { + this.info(); + loading.close(); + this.$modal.msgSuccess("暂存成功!"); + }) }) }, //问卷传值