From af655dbbc7c405d9bbfbc2e9d4f5e69096f65201 Mon Sep 17 00:00:00 2001 From: fl <3098731433@qq.com> Date: Mon, 23 Jun 2025 18:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=B8=8B=E8=BC=89=E5=88=86?= =?UTF-8?q?=E9=A1=9E=E9=A0=81=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data-create/epc-template/index.vue | 17 +++++++++++++---- src/views/data-create/gw-template/index.vue | 15 ++++++++++++--- src/views/data-create/nw-template/index.vue | 17 +++++++++++++---- 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/src/views/data-create/epc-template/index.vue b/src/views/data-create/epc-template/index.vue index 90a55cb..bbe08cf 100644 --- a/src/views/data-create/epc-template/index.vue +++ b/src/views/data-create/epc-template/index.vue @@ -188,22 +188,31 @@ export default { this.$confirm('请选择下载的模板类型?', '温馨提示', { distinguishCancelAndClose: true, - confirmButtonText: '表格下载', - cancelButtonText: '普通下载', + confirmButtonText: '商务标下载', + cancelButtonText: '技术标下载', }) - .then(() => { + .then(() => { // 表格下载 this.downloadNew( '/stateGrid/downloadStateGridTemp', { id: row.id, + isJsb: 0, }, - `国网模板_${row.name}.doc`, + `商务标_${row.name}.doc`, ) }) .catch((action) => { // 普通下载 + 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 6a196a8..3f4bcdd 100644 --- a/src/views/data-create/gw-template/index.vue +++ b/src/views/data-create/gw-template/index.vue @@ -188,8 +188,8 @@ export default { this.$confirm('请选择下载的模板类型?', '温馨提示', { distinguishCancelAndClose: true, - confirmButtonText: '表格下载', - cancelButtonText: '普通下载', + confirmButtonText: '商务标下载', + cancelButtonText: '技术标下载', }) .then(() => { // 表格下载 @@ -198,12 +198,21 @@ export default { '/stateGrid/downloadStateGridTemp', { id: row.id, + isJsb: 0, }, - `国网模板_${row.name}.doc`, + `商务标_${row.name}.doc`, ) }) .catch((action) => { // 普通下载 + 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 7613ff6..e39308d 100644 --- a/src/views/data-create/nw-template/index.vue +++ b/src/views/data-create/nw-template/index.vue @@ -188,22 +188,31 @@ export default { this.$confirm('请选择下载的模板类型?', '温馨提示', { distinguishCancelAndClose: true, - confirmButtonText: '表格下载', - cancelButtonText: '普通下载', + confirmButtonText: '商务标下载', + cancelButtonText: '技术标下载', }) - .then(() => { + .then(() => { // 表格下载 this.downloadNew( '/stateGrid/downloadStateGridTemp', { id: row.id, + isJsb: 0, }, - `国网模板_${row.name}.doc`, + `商务标_${row.name}.doc`, ) }) .catch((action) => { // 普通下载 + this.downloadNew( + '/stateGrid/downloadStateGridTemp', + { + id: row.id, + isJsb: 1, + }, + `技术标_${row.name}.doc`, + ) }) },