From e41884fc60462cdf0909298906bcf90e602ce426 Mon Sep 17 00:00:00 2001 From: WUSIJIAN <13825895+wsj0228@user.noreply.gitee.com> Date: Fri, 5 Dec 2025 12:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=91=E9=87=8F=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.ts | 2 +- .../product/component/exportDialog.vue | 56 +++++++++++++++++-- .../product/component/importDialog.vue | 2 +- src/views/customerService/product/index.vue | 4 +- .../report/component/exportDialog.vue | 56 +++++++++++++++++-- 5 files changed, 104 insertions(+), 16 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index 246e1dd..e191df6 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -135,7 +135,7 @@ const responseErrorHandler = (error: any) => { if (error.message === 'Network Error') { ElMessage.error('网络连接错误,请检查网络设置'); } else { - ElMessage.error('网络异常,请检查连接'); + // ElMessage.error('网络异常,请检查连接'); } return Promise.reject(error); } diff --git a/src/views/customerService/product/component/exportDialog.vue b/src/views/customerService/product/component/exportDialog.vue index 7a70815..85f4361 100644 --- a/src/views/customerService/product/component/exportDialog.vue +++ b/src/views/customerService/product/component/exportDialog.vue @@ -1,13 +1,20 @@ @@ -15,6 +22,7 @@ + + diff --git a/src/views/customerService/product/component/importDialog.vue b/src/views/customerService/product/component/importDialog.vue index 0c1acd4..be1f792 100644 --- a/src/views/customerService/product/component/importDialog.vue +++ b/src/views/customerService/product/component/importDialog.vue @@ -314,7 +314,7 @@ const generateTemplateZip = async (): Promise => { const zip = new JSZip(); const templateFolder = zip.folder('产品导入模板'); if (templateFolder) { - templateFolder.file('产品基本信息模板.txt', createTextFile('产品名称:\n产品详情:', '产品基本信息模板.txt')); + templateFolder.file('产品名称.txt', createTextFile('产品详情:', '产品名称.txt')); // templateFolder.file('使用说明.txt', createTextFile('使用说明', '使用说明.txt')); } return await zip.generateAsync({ type: 'blob', compression: 'DEFLATE' }); diff --git a/src/views/customerService/product/index.vue b/src/views/customerService/product/index.vue index 35e375c..7d734bf 100644 --- a/src/views/customerService/product/index.vue +++ b/src/views/customerService/product/index.vue @@ -44,7 +44,7 @@ @@ -64,7 +64,7 @@