From 9ee0d877dac69744a3448b6624d96fae546d6960 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 27 Jun 2025 17:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=85=E9=81=93bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data-create/epc-template/index.vue | 21 +++++++++++--------- src/views/data-create/gw-template/index.vue | 19 ++++++++++-------- src/views/data-create/nw-template/index.vue | 21 +++++++++++--------- 3 files changed, 35 insertions(+), 26 deletions(-) diff --git a/src/views/data-create/epc-template/index.vue b/src/views/data-create/epc-template/index.vue index bbe08cf..9a49bdd 100644 --- a/src/views/data-create/epc-template/index.vue +++ b/src/views/data-create/epc-template/index.vue @@ -191,7 +191,7 @@ export default { confirmButtonText: '商务标下载', cancelButtonText: '技术标下载', }) - .then(() => { + .then(() => { // 表格下载 this.downloadNew( @@ -205,14 +205,17 @@ export default { }) .catch((action) => { // 普通下载 - this.downloadNew( - '/stateGrid/downloadStateGridTemp', - { - id: row.id, - isJsb: 1, - }, - `技术标_${row.name}.doc`, - ) + if (action === 'close') return + if (action === 'cancel') { + this.downloadNew( + '/stateGrid/downloadStateGridTemp', + { + id: row.id, + isJsb: 1, + }, + `技术标_${row.name}.doc`, + ) + } }) }, diff --git a/src/views/data-create/gw-template/index.vue b/src/views/data-create/gw-template/index.vue index 3f4bcdd..7c9c9d5 100644 --- a/src/views/data-create/gw-template/index.vue +++ b/src/views/data-create/gw-template/index.vue @@ -205,14 +205,17 @@ export default { }) .catch((action) => { // 普通下载 - this.downloadNew( - '/stateGrid/downloadStateGridTemp', - { - id: row.id, - isJsb: 1, - }, - `技术标_${row.name}.doc`, - ) + if (action === 'close') return + if (action === 'cancel') { + this.downloadNew( + '/stateGrid/downloadStateGridTemp', + { + id: row.id, + isJsb: 1, + }, + `技术标_${row.name}.doc`, + ) + } }) }, diff --git a/src/views/data-create/nw-template/index.vue b/src/views/data-create/nw-template/index.vue index e39308d..9ce927a 100644 --- a/src/views/data-create/nw-template/index.vue +++ b/src/views/data-create/nw-template/index.vue @@ -191,7 +191,7 @@ export default { confirmButtonText: '商务标下载', cancelButtonText: '技术标下载', }) - .then(() => { + .then(() => { // 表格下载 this.downloadNew( @@ -205,14 +205,17 @@ export default { }) .catch((action) => { // 普通下载 - this.downloadNew( - '/stateGrid/downloadStateGridTemp', - { - id: row.id, - isJsb: 1, - }, - `技术标_${row.name}.doc`, - ) + if (action === 'close') return + if (action === 'cancel') { + this.downloadNew( + '/stateGrid/downloadStateGridTemp', + { + id: row.id, + isJsb: 1, + }, + `技术标_${row.name}.doc`, + ) + } }) },