From 2d55ed180fddd028bf4f839345bf0ef4d2f032e7 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 07 三月 2025 13:34:31 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev

---
 src/views/CNAS/systemManagement/customerSatisfaction/index.vue |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/src/views/CNAS/systemManagement/customerSatisfaction/index.vue b/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
index 4a1900c..6ea9848 100644
--- a/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
+++ b/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
@@ -218,7 +218,6 @@
         this.tableLoading = true
         pageClientSatisfaction({ ...entity, ...page }).then(res => {
           this.tableLoading = false
-          if (res.code === 201) return
           this.tableData = res.data.records
           this.page.total = res.data.total
         }).catch(err => {
@@ -229,7 +228,6 @@
         this.tableLoading1 = true
         pageAnalyseFile({ ...entity, ...page }).then(res => {
           this.tableLoading1 = false
-          if (res.code === 201) return
           this.tableData1 = res.data.records
           this.page1.total = res.data.total
         }).catch(err => {
@@ -286,7 +284,6 @@
         this.tableLoading = true
         delClientSatisfaction({ clientSatisfactionId: row.clientSatisfactionId }).then(res => {
           this.tableLoading = false
-          if (res.code === 201) return
           this.$message.success('鍒犻櫎鎴愬姛')
           this.searchList()
         }).catch(err => {
@@ -307,14 +304,7 @@
     },
     // 涓嬭浇瀹㈡埛绂忓缓
     upload(row) {
-      let url = '';
-      if (row.type == 1) {
-        url = this.javaApi + '/img/' + row.fileUrl
-        this.$download.saveAs(url, row.fileName);
-      } else {
-        url = this.javaApi + '/word/' + row.fileUrl
-        this.$download.saveAs(url, row.fileName);
-      }
+      this.$download.downloadFileFromUrl(row.fileUrl, row.fileName);
     },
     // 鍒犻櫎瀹㈡埛鍒嗘瀽闄勪欢
     delFile(row) {
@@ -326,7 +316,6 @@
         this.tableLoading = true
         delAnalyseFile({ analyseFileId: row.analyseFileId }).then(res => {
           this.tableLoading = false
-          if (res.code === 201) return
           this.$message.success('鍒犻櫎鎴愬姛')
           this.searchList()
         }).catch(err => {

--
Gitblit v1.9.3