From 58192a194d0667ebb880a16cbde36363fdc1d535 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 15:03:59 +0800
Subject: [PATCH] 删除无用代码 修改前端下载方法

---
 src/views/business/inspectionTask/components/InspectionWord.vue                                                                      |    2 
 src/views/CNAS/resourceDemand/device/component/files.vue                                                                             |    2 
 src/views/CNAS/resourceDemand/device/component/management.vue                                                                        |   35 --
 src/views/CNAS/systemManagement/internalAuditManagement/components/ViewTestRecord.vue                                                |    2 
 src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue                                                                   |   46 ---
 src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue                                                               |    2 
 src/views/CNAS/process/method/standardMethod/index.vue                                                                               |   24 -
 src/views/CNAS/systemManagement/managementReview/components/managementReviewPlan.vue                                                 |    2 
 src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue |    2 
 src/views/CNAS/systemManagement/documentControl/components/FileList.vue                                                              |   26 -
 src/views/business/unpass/components/unPassDialog.vue                                                                                |    2 
 src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue                                                        |    2 
 src/views/business/productOrder/index.vue                                                                                            |    4 
 src/views/CNAS/resourceDemand/device/component/calibration.vue                                                                       |    2 
 src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue                                             |   33 --
 src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue                                                 |   32 --
 src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue                                                                |   41 ---
 src/views/CNAS/systemManagement/customerSatisfaction/index.vue                                                                       |    2 
 src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue                                                     |   31 --
 src/views/CNAS/process/uncertainty/index.vue                                                                                         |   31 --
 src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue                                                                   |   55 ----
 src/views/structural/capabilityAndLaboratory/laboratory/index.vue                                                                    |    2 
 src/views/performance/class/index.vue                                                                                                |    1 
 src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue                                          |   32 --
 src/views/CNAS/process/sampleDisposal/index.vue                                                                                      |   42 ---
 src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue                                                       |    2 
 src/views/business/reportPreparation/index.vue                                                                                       |    2 
 src/views/CNAS/process/reportResults/index.vue                                                                                       |   31 --
 src/views/business/inspectionTask/inspection.vue                                                                                     |   32 --
 src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue                                                             |   51 ---
 src/views/CNAS/process/complaint/index.vue                                                                                           |   31 --
 src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue                                                     |   39 --
 src/views/CNAS/process/demand/index.vue                                                                                              |    1 
 src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue                                                               |   39 --
 src/plugins/download.js                                                                                                              |   61 ++--
 35 files changed, 61 insertions(+), 683 deletions(-)

diff --git a/src/plugins/download.js b/src/plugins/download.js
index 36db93e..97dc59a 100644
--- a/src/plugins/download.js
+++ b/src/plugins/download.js
@@ -81,37 +81,40 @@
         downloadLoadingInstance.close();
       });
   },
-  async downloadFileFromUrl(url, filename) {
-    try {
-      let state = /\.(jpg|jpeg|png|gif)$/i.test(url) // 鍒ゆ柇鏄惁涓哄浘鐗�
-      let url1 = ''
-      if (state) {
-        url1 = Vue.prototype.javaApi + '/img/' + url;
-      } else {
-        url1 = Vue.prototype.javaApi + '/word/' + url
+  async saveAs(text, name, opts) {
+    if (typeof text === "string") {
+      try {
+        let state = /\.(jpg|jpeg|png|gif)$/i.test(text) // 鍒ゆ柇鏄惁涓哄浘鐗�
+        let url1 = ''
+        if (state) {
+          url1 = Vue.prototype.javaApi + '/img/' + text;
+        } else {
+          url1 = Vue.prototype.javaApi + '/word/' + text
+        }
+        // 浣跨敤 fetch 鑾峰彇鏂囦欢
+        const response = await fetch(url1);
+        if (!response.ok) {
+          throw new Error('鏂囦欢涓嬭浇澶辫触: ' + response.statusText);
+        }
+        // 灏嗘枃浠惰浆鎹负 Blob
+        const blob = await response.blob();
+        // 浣跨敤 saveAs 淇濆瓨鏂囦欢
+        saveAs(blob, filename);
+        Message.success("鏁版嵁瀵煎嚭鎴愬姛");
+      } catch (error) {
+        Message.error(error);
       }
-      // 浣跨敤 fetch 鑾峰彇鏂囦欢
-      const response = await fetch(url1);
-      if (!response.ok) {
-        throw new Error('鏂囦欢涓嬭浇澶辫触: ' + response.statusText);
-      }
-      // 灏嗘枃浠惰浆鎹负 Blob
-      const blob = await response.blob();
-      // 浣跨敤 saveAs 淇濆瓨鏂囦欢
-      saveAs(blob, filename);
-      Message.success("鏁版嵁瀵煎嚭鎴愬姛");
-    } catch (error) {
-      Message.error(error);
+    } else {
+      // 娴佷笅杞�
+      blobToText(text)
+        .then((result) => {
+          Message.error(result.msg);
+        })
+        .catch(() => {
+          saveAs(text, name, opts);
+          Message.success("鏁版嵁瀵煎嚭鎴愬姛");
+        });
     }
-  },
-  saveAs(text, name, opts) {
-    // 娴佷笅杞�
-    blobToText(text).then((result) => {
-      Message.error(result.msg);
-    }).catch(() => {
-      saveAs(text, name, opts);
-      Message.success("鏁版嵁瀵煎嚭鎴愬姛");
-    });
   },
   async printErrMsg(data) {
     const resText = await data.text();
diff --git a/src/views/CNAS/process/complaint/index.vue b/src/views/CNAS/process/complaint/index.vue
index 5a998b3..93604ef 100644
--- a/src/views/CNAS/process/complaint/index.vue
+++ b/src/views/CNAS/process/complaint/index.vue
@@ -348,40 +348,9 @@
     ...mapGetters(["userId"]),
   },
   mounted() {
-    // this.entityCopy = this.HaveJson(this.componentData.entity);
     this.getList()
   },
   methods: {
-    // 鏉冮檺鍒嗛厤
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let up = false
-      let del = false
-      let add = false
-      let out = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'doProcessComplain') {
-          up = true
-        }
-        if (power[i].menuMethod == 'addProcessComplain') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delProcessComplain') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportProcessComplain') {
-          out = true
-        }
-      }
-      if (!up) {
-        this.componentData.do.splice(2, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(1, 1)
-      }
-      this.outPower = out
-      this.addPower = add
-    },
     openAdd() {
       this.addInfo = {}
       this.addDialogVisible = true
diff --git a/src/views/CNAS/process/demand/index.vue b/src/views/CNAS/process/demand/index.vue
index 7007925..cd5c514 100644
--- a/src/views/CNAS/process/demand/index.vue
+++ b/src/views/CNAS/process/demand/index.vue
@@ -477,7 +477,6 @@
     };
   },
   mounted() {
-    // this.getPower()
     this.getAuthorizedPerson()
     this.refreshTable()
   },
diff --git a/src/views/CNAS/process/method/standardMethod/index.vue b/src/views/CNAS/process/method/standardMethod/index.vue
index ead5404..03f64ba 100644
--- a/src/views/CNAS/process/method/standardMethod/index.vue
+++ b/src/views/CNAS/process/method/standardMethod/index.vue
@@ -276,30 +276,6 @@
       this.queryParams = {};
       this.getList();
     },
-    // 鏉冮檺鍒嗛厤
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem("power"));
-      let up = false;
-      let del = false;
-      let add = false;
-      let inPower = false;
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == "addStandardMethod") {
-          add = true;
-        }
-        if (power[i].menuMethod == "delStandardMethod") {
-          del = true;
-        }
-        if (power[i].menuMethod == "upStandardMethod") {
-          up = true;
-        }
-        if (power[i].menuMethod == "importStandardDetails") {
-          inPower = true;
-        }
-      }
-      this.addPower = add;
-      this.inPower = inPower;
-    },
     openAdd() {
       this.title = "鏂板";
       this.addForm = {};
diff --git a/src/views/CNAS/process/reportResults/index.vue b/src/views/CNAS/process/reportResults/index.vue
index 4b58fd3..a34f9fa 100644
--- a/src/views/CNAS/process/reportResults/index.vue
+++ b/src/views/CNAS/process/reportResults/index.vue
@@ -185,35 +185,6 @@
     this.getAuthorizedPerson()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let up = false
-      let del = false
-      let add = false
-      let out = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'doProcessReport') {
-          up = true
-        }
-        if (power[i].menuMethod == 'addProcessReport') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delProcessReport') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportProcessReport') {
-          out = true
-        }
-      }
-      if (!up) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.outPower = out
-      this.addPower = add
-    },
     handleDown() {
       if (this.mutilSelect.length == 0) {
         this.$message.warning('璇烽�夋嫨瑕佸鍑虹殑鏁版嵁')
@@ -222,7 +193,7 @@
       this.outLoading = true
       exportProcessReport({ ids: this.mutilSelect.map(m => m.id) }).then(res => {
         this.outLoading = false
-        this.$download.downloadFileFromUrl(res.data, "鎶ュ憡缁撴灉");
+        this.$download.saveAs(res.data, "鎶ュ憡缁撴灉");
       })
     },
     openAdd() {
diff --git a/src/views/CNAS/process/sampleDisposal/index.vue b/src/views/CNAS/process/sampleDisposal/index.vue
index c534d45..e446687 100644
--- a/src/views/CNAS/process/sampleDisposal/index.vue
+++ b/src/views/CNAS/process/sampleDisposal/index.vue
@@ -249,51 +249,11 @@
     };
   },
   mounted() {
-    // this.entityCopy = this.HaveJson(this.componentData.entity);
     this.getCustomPageList()
     this.getList()
     this.getList0()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let add = false
-      let out = false
-      let submitProcessTotaldeal = false
-      let checkProcessTotaldeal = false
-      let ratifyProcessTotaldeal = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addProcessDeal') {
-          add = true
-        }
-        // if (power[i].menuMethod == 'exportProcessEvaluate') {
-        //   out = true
-        // }
-        if (power[i].menuMethod == 'submitProcessTotaldeal') {
-          submitProcessTotaldeal = true
-        }
-        if (power[i].menuMethod == 'checkProcessTotaldeal') {
-          checkProcessTotaldeal = true
-        }
-        if (power[i].menuMethod == 'ratifyProcessTotaldeal') {
-          ratifyProcessTotaldeal = true
-        }
-      }
-      if (!ratifyProcessTotaldeal) {
-        this.componentData.do.splice(4, 1)
-      }
-      if (!checkProcessTotaldeal) {
-        this.componentData.do.splice(3, 1)
-      }
-      if (!submitProcessTotaldeal) {
-        this.componentData.do.splice(2, 1)
-      }
-      if (!add) {
-        this.componentData0.do.splice(1, 1)
-        this.componentData0.do.splice(0, 1)
-      }
-      this.addPower = add
-    },
     // 鑾峰彇閫佹牱鍗曚綅鍒楄〃
     getCustomPageList() {
       selectCustomPageList({
@@ -510,7 +470,7 @@
         return
       }
       // 鍚庣涓嬭浇
-      this.$download.downloadFileFromUrl(row.url, row.month + ' 鏍峰搧澶勭悊鐢宠琛�');
+      this.$download.saveAs(row.url, row.month + ' 鏍峰搧澶勭悊鐢宠琛�');
     },
     handleDelete(row) {
       this.$confirm("鏄惁鍒犻櫎璇ユ潯鏁版嵁?", "鎻愮ず", {
diff --git a/src/views/CNAS/process/uncertainty/index.vue b/src/views/CNAS/process/uncertainty/index.vue
index 8aca44f..1ec4859 100644
--- a/src/views/CNAS/process/uncertainty/index.vue
+++ b/src/views/CNAS/process/uncertainty/index.vue
@@ -144,35 +144,6 @@
     this.getList()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let up = false
-      let del = false
-      let add = false
-      let out = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'doProcessEvaluate') {
-          up = true
-        }
-        if (power[i].menuMethod == 'addProcessEvaluate') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delProcessEvaluate') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportProcessEvaluate') {
-          out = true
-        }
-      }
-      if (!del) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!up) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.outPower = out
-      this.addPower = add
-    },
     handleDown0() {
       this.outLoading = true
       exportProcessEvaluate(this.queryParams).then(res => {
@@ -187,7 +158,7 @@
         this.$message.warning('鏆傛棤鏂囦欢')
         return
       }
-      this.$download.downloadFileFromUrl(row.reportUrl, row.reportName);
+      this.$download.saveAs(row.reportUrl, row.reportName);
     },
     beforeUpload(file) {
       if (file.size > 1024 * 1024 * 10) {
diff --git a/src/views/CNAS/resourceDemand/device/component/calibration.vue b/src/views/CNAS/resourceDemand/device/component/calibration.vue
index 10954a3..f11b502 100644
--- a/src/views/CNAS/resourceDemand/device/component/calibration.vue
+++ b/src/views/CNAS/resourceDemand/device/component/calibration.vue
@@ -416,7 +416,7 @@
       })
     },
     handleAttachmentClick(row) {
-      this.$download.downloadFileFromUrl(row.systemFileName, row.systemFileName)
+      this.$download.saveAs(row.systemFileName, row.systemFileName)
     },
     //瀵煎嚭
     handleDown() {
diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue b/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue
index 49004f4..f087f71 100644
--- a/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue
+++ b/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue
@@ -197,7 +197,7 @@
     },
     // 涓嬭浇
     upload(row) {
-      this.$download.downloadFileFromUrl(row.fileUrl, row.fileName)
+      this.$download.saveAs(row.fileUrl, row.fileName)
     },
     // 鍒犻櫎
     delete(row) {
diff --git a/src/views/CNAS/resourceDemand/device/component/files.vue b/src/views/CNAS/resourceDemand/device/component/files.vue
index c28facd..de1e95e 100644
--- a/src/views/CNAS/resourceDemand/device/component/files.vue
+++ b/src/views/CNAS/resourceDemand/device/component/files.vue
@@ -618,7 +618,7 @@
     handleAttachmentClick(row) {
       console.log(row)
       if (row.fileName) {
-        this.$download.downloadFileFromUrl(row.fileName)
+        this.$download.saveAs(row.fileName)
       } else {
         this.$message.warning('鏈笂浼犳枃浠讹紒')
       }
diff --git a/src/views/CNAS/resourceDemand/device/component/management.vue b/src/views/CNAS/resourceDemand/device/component/management.vue
index d090b6e..c608c6e 100644
--- a/src/views/CNAS/resourceDemand/device/component/management.vue
+++ b/src/views/CNAS/resourceDemand/device/component/management.vue
@@ -554,13 +554,10 @@
 		}
 	},
 	mounted() {
-		// this.entityCopy = this.HaveJson(this.componentData.entity)
-		// this.getPower()
 		this.selectEnumByCategory()
 		this.selectDevicePrincipal()
 		this.obtainItemParameterList()
 		this.getInsProductIds()
-		// this.$customEvents.$on('largeCategory', this.handleNotification);
 		// 鍒濆鍖�
 		this.clickSidebar(this.clickNodeVal)
 	},
@@ -619,38 +616,6 @@
 				const blob = new Blob([res], { type: 'application/octet-stream' });
 				this.$download.saveAs(blob, '璁惧浠櫒涓�瑙堣〃.doc')
 			})
-		},
-		// 鏉冮檺鍒嗛厤
-		getPower(radio) {
-			let power = JSON.parse(sessionStorage.getItem('power'))
-			let up = false
-			let del = false
-			let add = false
-			let config = false
-			for (var i = 0; i < power.length; i++) {
-				if (power[i].menuMethod == 'upDeviceParameter') {
-					up = true
-				}
-				if (power[i].menuMethod == 'delDeviceParameter') {
-					del = true
-				}
-				if (power[i].menuMethod == 'addDeviceParameter') {
-					add = true
-				}
-				if (power[i].menuMethod == 'saveDataAcquisitionConfiguration') {
-					config = true
-				}
-			}
-			if (!config) {
-				this.componentData.do.splice(2, 1)
-			}
-			if (!up) {
-				this.componentData.do.splice(1, 1)
-			}
-			if (!del) {
-				this.componentData.do.splice(0, 1)
-			}
-			this.addPower = add
 		},
 		// 鑾峰彇瀛楀吀
 		selectEnumByCategory() {
diff --git a/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue b/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue
index 71a7c67..7fd26db 100644
--- a/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue
+++ b/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue
@@ -254,7 +254,7 @@
         this.$message.warning('鏆傛棤鏂囦欢')
         return
       }
-      this.$download.downloadFileFromUrl(row.systemFileName, row.fileName)
+      this.$download.saveAs(row.systemFileName, row.fileName)
     }
   }
 }
diff --git a/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue b/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue
index 1e281d6..a209069 100644
--- a/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue
+++ b/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue
@@ -110,7 +110,7 @@
     },
     // 涓嬭浇
     upload(row) {
-      this.$download.downloadFileFromUrl(row.fileUrl, row.fileName);
+      this.$download.saveAs(row.fileUrl, row.fileName);
     },
     // 鍒犻櫎
     delete(row) {
diff --git a/src/views/CNAS/systemManagement/customerSatisfaction/index.vue b/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
index 6ea9848..8e371d5 100644
--- a/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
+++ b/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
@@ -304,7 +304,7 @@
     },
     // 涓嬭浇瀹㈡埛绂忓缓
     upload(row) {
-      this.$download.downloadFileFromUrl(row.fileUrl, row.fileName);
+      this.$download.saveAs(row.fileUrl, row.fileName);
     },
     // 鍒犻櫎瀹㈡埛鍒嗘瀽闄勪欢
     delFile(row) {
diff --git a/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue b/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
index d6cc6d9..deab03b 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
@@ -314,37 +314,6 @@
       this.page.current = 1;
       this.getList();
     },
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let up = false
-      let del = false
-      let add = false
-      // let check = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageDocumentControlled') {
-          up = true
-        }
-        if (power[i].menuMethod == 'addManageDocumentControlled') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageDocumentControlled') {
-          del = true
-        }
-        // if (power[i].menuMethod == 'checkManageDocumentControlled') {
-        //   check = true
-        // }
-      }
-      // if (!check) {
-      //   this.componentData.do.splice(2, 1)
-      // }
-      if (!del) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!up) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-    },
     getAuthorizedPerson() {
       selectUserCondition().then(res => {
         let data = []
@@ -461,7 +430,7 @@
     },
     handleDown(row) {
       if (!row.url) return this.$message.warning('鏂囦欢鏈笂浼�')
-      this.$download.downloadFileFromUrl(row.url, row.url);
+      this.$download.saveAs(row.url, row.url);
     },
     async uploadPDF(pdfBlob) {
       const formData = new FormData();
diff --git a/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
index 879f070..647782b 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
@@ -288,38 +288,6 @@
     this.selectEnumByCategory()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let out = false
-      let del = false
-      let add = false
-      // let check = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'exportManageDocumentIssueRecycle') {
-          out = true
-        }
-        if (power[i].menuMethod == 'addManageDocumentIssueRecycle') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageDocumentIssueRecycle') {
-          del = true
-        }
-        // if (power[i].menuMethod == 'checkManageDocumentControlled') {
-        //   check = true
-        // }
-      }
-      // if (!check) {
-      //   this.componentData.do.splice(2, 1)
-      // }
-      if (!del) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-    },
     getList() {
       this.tableLoading = true;
       let param = { ...this.queryParams, ...this.page };
diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
index 8f9d12a..17be48c 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
@@ -369,35 +369,6 @@
     this.selectEnumByCategory()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let up = false
-      let del = false
-      let add = false
-      let out = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageDocumentAlter') {
-          up = true
-        }
-        if (power[i].menuMethod == 'addManageDocumentAlter') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageDocumentAlter') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportManageDocumentAlter') {
-          out = true
-        }
-      }
-      if (!del) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!up) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-    },
     getList() {
       this.tableLoading = true;
       let param = { ...this.queryParams, ...this.page };
@@ -568,7 +539,7 @@
     // 涓嬭浇闄勪欢
     handleDown(row) {
       if (!row.alterAfterUrl) return this.$message.warning('鏂囦欢鏈笂浼�')
-      this.$download.downloadFileFromUrl(row.alterAfterUrl, row.alterAfterUrl)
+      this.$download.saveAs(row.alterAfterUrl, row.alterAfterUrl)
     },
     // 鎵撳紑瀹℃牳寮规
     handleCheck(row) {
diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileList.vue b/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
index 4696f3e..51b4a27 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
@@ -252,37 +252,13 @@
     // 涓嬭浇鏂囦欢
     handleDown(row) {
       if (!row.url) return this.$message.warning('鏂囦欢鏈笂浼�')
-      this.$download.downloadFileFromUrl(row.url, row.url);
+      this.$download.saveAs(row.url, row.url);
     },
     // 鏌ョ湅鏂囦欢
     handleLook(row) {
       if (!row.url) return this.$message.warning('鏂囦欢鏈笂浼�')
       this.currentInfo = row
       this.lookDialogVisible = true
-    },
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let up = false
-      let upFile = false
-      let add = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'doManageDocumentList') {
-          up = true
-        }
-        if (power[i].menuMethod == 'exportManageDocumentList') {
-          add = true
-        }
-        if (power[i].menuMethod == 'uploadFileManageDocumentList') {
-          upFile = true
-        }
-      }
-      if (!upFile) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!up) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
     },
     // 涓婁紶鏂囦欢
     handleUp(row) {
diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue b/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
index 0cb20d9..4ffb93a 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
@@ -229,38 +229,6 @@
     this.selectEnumByCategory()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let out = false
-      let del = false
-      let add = false
-      // let check = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'exportManageDocumentCancel') {
-          out = true
-        }
-        if (power[i].menuMethod == 'addManageDocumentCancel') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageDocumentCancel') {
-          del = true
-        }
-        // if (power[i].menuMethod == 'checkManageDocumentControlled') {
-        //   check = true
-        // }
-      }
-      // if (!check) {
-      //   this.componentData.do.splice(2, 1)
-      // }
-      if (!del) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-    },
     getList() {
       this.tableLoading = true;
       let param = { ...this.queryParams, ...this.page };
diff --git a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
index d64c541..2b0c02c 100644
--- a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
@@ -193,50 +193,6 @@
     this.getAuthorizedPerson()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let add = false
-      let del = false
-      let up = false;
-      let out = false;
-      let check = false
-      let ratify = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageRecordCheck') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageRecordCheck') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportInManageRecordCheck') {
-          up = true
-        }
-        if (power[i].menuMethod == 'checkManageRecordCheck') {
-          check = true
-        }
-        if (power[i].menuMethod == 'ratifyManageRecordCheck') {
-          ratify = true
-        }
-        if (power[i].menuMethod == 'exportOutManageRecordCheck') {
-          out = true
-        }
-      }
-      if (!ratify) {
-        this.componentData.do.splice(3, 1)
-      }
-      if (!check) {
-        this.componentData.do.splice(2, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-      this.upPower = up
-    },
     getList() {
       this.tableLoading = true;
       let param = { ...this.queryParams, ...this.page };
@@ -283,7 +239,7 @@
       // queryParams
       exportOutManageRecordCheck(this.queryParams).then(res => {
         this.outLoading = false
-        this.$download.downloadFileFromUrl(res.data, '鏂囦欢瀹℃壒璁板綍')
+        this.$download.saveAs(res.data, '鏂囦欢瀹℃壒璁板綍')
       })
     },
     getAuthorizedPerson() {
diff --git a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
index 3ab5cc0..73e419d 100644
--- a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
@@ -191,43 +191,6 @@
     this.getFileList()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let add = false
-      let del = false
-      let up = false;
-      let out = false;
-      let ratify = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageRecordCancel') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageRecordCancel') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportInManageRecordCancel') {
-          up = true
-        }
-        if (power[i].menuMethod == 'ratifyManageRecordCancel') {
-          ratify = true
-        }
-        if (power[i].menuMethod == 'exportOutManageRecordCancel') {
-          out = true
-        }
-      }
-      if (!ratify) {
-        this.componentData.do.splice(2, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-      this.upPower = up
-    },
     openAdd() {
       this.addInfo = {}
       this.title = '鏂板'
@@ -243,7 +206,7 @@
       this.outLoading = true
       exportOutManageRecordCancel(this.queryParams).then(res => {
         this.outLoading = false
-        this.$download.downloadFileFromUrl(res.data, "浣滃簾鏂囦欢閿�姣佽褰�");
+        this.$download.saveAs(res.data, "浣滃簾鏂囦欢閿�姣佽褰�");
       })
     },
     getList() {
diff --git a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue
index cf9982a..4da0bf3 100644
--- a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue
@@ -246,43 +246,6 @@
     // this.selectTreeList()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let add = false
-      let del = false
-      let up = false;
-      let out = false;
-      let edit = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageRecordIssueRecycle') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageRecordIssueRecycle') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportInManageRecordIssueRecycle') {
-          up = true
-        }
-        if (power[i].menuMethod == 'doManageRecordIssueRecycle') {
-          edit = true
-        }
-        if (power[i].menuMethod == 'exportOutManageRecordIssueRecycle') {
-          out = true
-        }
-      }
-      if (!add) {
-        this.componentData.do.splice(2, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-      this.upPower = up
-    },
     // 鏂板
     openAdd() {
       // this.$refs.ValueTable.openAddDia(this.$api.manageRecordIssueRecycle.addManageRecordIssueRecycle);
@@ -300,7 +263,7 @@
       this.outLoading = true
       exportOutManageRecordIssueRecycle(this.queryParams).then(res => {
         this.outLoading = false
-        this.$download.downloadFileFromUrl(res.data, '鏂囦欢鍙戞斁涓庡洖鏀惰褰�')
+        this.$download.saveAs(res.data, '鏂囦欢鍙戞斁涓庡洖鏀惰褰�')
       })
     },
     getList() {
diff --git a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
index cc13d08..b00e8cb 100644
--- a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
@@ -249,45 +249,6 @@
     this.getList0()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let add = false
-      let del = false
-      let up = false;
-      let sub = false
-      let ratify = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageRecordVerify') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageRecordVerify') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportManageRecordVerify') {
-          up = true
-        }
-        if (power[i].menuMethod == 'submitManageRecordTotal') {
-          sub = true
-        }
-        if (power[i].menuMethod == 'ratifyManageRecordTotal') {
-          ratify = true
-        }
-      }
-      if (!ratify) {
-        this.componentData.do.splice(3, 1)
-      }
-      if (!sub) {
-        this.componentData.do.splice(2, 1)
-      }
-      if (!del) {
-        this.componentData0.do.splice(1, 1)
-      }
-      if (!add) {
-        this.componentData0.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.upPower = up
-    },
     openAdd(title, row) {
       this.title = title;
       if (row) {
@@ -393,7 +354,7 @@
       }).catch(err => { });
     },
     handleDown0(row) {
-      this.$download.downloadFileFromUrl(row.url, '澶栨潵鏂囦欢纭璁板綍')
+      this.$download.saveAs(row.url, '澶栨潵鏂囦欢纭璁板綍')
     },
     // 鎻愪氦
     handleSubmit(row) {
diff --git a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
index 60eafd1..2df716e 100644
--- a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
@@ -281,61 +281,14 @@
     }
   },
   mounted() {
-    // this.entityCopy = this.HaveJson(this.componentData.entity);
-    // this.entityCopy0 = this.HaveJson(this.componentData0.entity);
     this.getList()
     this.getList0()
     this.getFileList()
     this.selectEnumByCategory()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let add = false
-      let del = false
-      let up = false;
-      let out = false;
-      let submit = false
-      let ratify = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageRecordIntervals') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageRecordIntervals') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportInManageRecordIntervals') {
-          up = true
-        }
-        if (power[i].menuMethod == 'exportOutManageRecordIntervals') {
-          out = true
-        }
-        if (power[i].menuMethod == 'submitManageRecordIntervalsTotal') {
-          submit = true
-        }
-        if (power[i].menuMethod == 'ratifyManageRecordIntervalsTotal') {
-          ratify = true
-        }
-      }
-      if (!ratify) {
-        this.componentData0.do.splice(3, 1)
-      }
-      if (!submit) {
-        this.componentData0.do.splice(2, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-      this.upPower = up
-    },
     // 鏂板
     openAdd() {
-      // this.$refs.ValueTable.openAddDia(this.$api.manageRecordIssueRecycle.addManageRecordIssueRecycle);
       this.addInfo = {}
       this.title = '鏂板'
       this.addDialogVisible = true;
@@ -345,7 +298,7 @@
       this.outLoading = true
       exportOutManageRecordIntervals(this.queryParams).then(res => {
         this.outLoading = false
-        this.$download.downloadFileFromUrl(res.message, "鏂囦欢瀹氭湡瀹℃煡璁板綍");
+        this.$download.saveAs(res.message, "鏂囦欢瀹氭湡瀹℃煡璁板綍");
       })
     },
     getList() {
@@ -532,7 +485,7 @@
       }
     },
     handleDown0(row) {
-      this.$download.downloadFileFromUrl(row.url, "鎵�鏈夋枃浠跺畾鏈熸鏌ヨ褰�");
+      this.$download.saveAs(row.url, "鎵�鏈夋枃浠跺畾鏈熸鏌ヨ褰�");
     },
     // 鎻愪氦
     handleSubmit(row) {
diff --git a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
index 47d4106..958866b 100644
--- a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
@@ -484,59 +484,6 @@
     this.selectTreeList()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let add = false
-      let del = false
-      let out = false;
-      let ratify = false
-      let audit1 = false
-      let audit2 = false
-      let audit3 = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageRecordAudit') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageRecordAudit') {
-          del = true
-        }
-        if (power[i].menuMethod == 'ratifyManageRecordAudit') {
-          ratify = true
-        }
-        if (power[i].menuMethod == 'exportOutManageRecordAudit') {
-          out = true
-        }
-        if (power[i].menuMethod == 'manageRecordAudit1') {
-          audit1 = true
-        }
-        if (power[i].menuMethod == 'manageRecordAudit2') {
-          audit2 = true
-        }
-        if (power[i].menuMethod == 'manageRecordAudit3') {
-          audit3 = true
-        }
-      }
-      if (!audit3) {
-        this.componentData.do.splice(8, 1)
-      }
-      if (!audit2) {
-        this.componentData.do.splice(7, 1)
-      }
-      if (!audit1) {
-        this.componentData.do.splice(6, 1)
-      }
-      if (!ratify) {
-        this.componentData.do.splice(5, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(4, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(3, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-    },
     openAdd() {
       this.addInfo = {
         method: '淇',
@@ -550,7 +497,7 @@
       this.outLoading = true
       exportOutManageRecordAudit(this.queryParams).then(res => {
         this.outLoading = false
-        this.$download.downloadFileFromUrl(res.data, "鏂囦欢淇琛�");
+        this.$download.saveAs(res.data, "鏂囦欢淇琛�");
       })
     },
     getList() {
diff --git a/src/views/CNAS/systemManagement/internalAuditManagement/components/ViewTestRecord.vue b/src/views/CNAS/systemManagement/internalAuditManagement/components/ViewTestRecord.vue
index a96569d..8470fe6 100644
--- a/src/views/CNAS/systemManagement/internalAuditManagement/components/ViewTestRecord.vue
+++ b/src/views/CNAS/systemManagement/internalAuditManagement/components/ViewTestRecord.vue
@@ -116,7 +116,7 @@
     },
     // 涓嬭浇
     upload(row) {
-      this.$download.downloadFileFromUrl(row.fileUrl, row.fileName)
+      this.$download.saveAs(row.fileUrl, row.fileName)
     },
     // 鍒犻櫎
     delete(row) {
diff --git a/src/views/CNAS/systemManagement/managementReview/components/managementReviewPlan.vue b/src/views/CNAS/systemManagement/managementReview/components/managementReviewPlan.vue
index b663322..62cd6a5 100644
--- a/src/views/CNAS/systemManagement/managementReview/components/managementReviewPlan.vue
+++ b/src/views/CNAS/systemManagement/managementReview/components/managementReviewPlan.vue
@@ -282,7 +282,7 @@
     },
     handleDown0(url, name) {
       if (!url) return this.$message.warning('鏂囦欢鏈笂浼�')
-      this.$download.downloadFileFromUrl(url, name);
+      this.$download.saveAs(url, name);
     }
   }
 };
diff --git a/src/views/business/inspectionTask/components/InspectionWord.vue b/src/views/business/inspectionTask/components/InspectionWord.vue
index 51c9645..59dff20 100644
--- a/src/views/business/inspectionTask/components/InspectionWord.vue
+++ b/src/views/business/inspectionTask/components/InspectionWord.vue
@@ -2032,7 +2032,7 @@
       downFile({
         id: row.id,
       }).then(res => {
-        this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName);
+        this.$download.saveAs(res.data.fileUrl, row.fileName);
       }).catch(error => {
 
       })
diff --git a/src/views/business/inspectionTask/inspection.vue b/src/views/business/inspectionTask/inspection.vue
index 9df7731..2b37c16 100644
--- a/src/views/business/inspectionTask/inspection.vue
+++ b/src/views/business/inspectionTask/inspection.vue
@@ -788,7 +788,6 @@
     this.getInsStateDicts();
     this.getComparisonList();
     this.getAuthorizedPerson();
-    // this.getPower();
     this.startWorker();
     // this.getList0() // 浠诲姟鍒囨崲
     this.scrollInit();
@@ -798,7 +797,6 @@
     this.getInsStateDicts();
     this.getComparisonList();
     this.getAuthorizedPerson();
-    // this.getPower();
     this.startWorker();
     // this.getList0() // 浠诲姟鍒囨崲
     this.scrollInit();
@@ -1500,34 +1498,6 @@
         a.download = "table.png";
         a.click();
       });
-    },
-    // 鏉冮檺鑾峰彇
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem("power"));
-      let fileDel = false;
-      let fileAdd = false;
-      let collected = false;
-      let temDataAcquisition = false;
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == "uploadFile") {
-          fileAdd = true;
-        }
-        if (power[i].menuMethod == "delfile") {
-          fileDel = true;
-        }
-        if (power[i].menuMethod == "isItAllowedToModifyTheCollectedValues") {
-          collected = true;
-        }
-        if (power[i].menuMethod == "temDataAcquisition") {
-          temDataAcquisition = true;
-        }
-      }
-      if (!fileDel) {
-        // this.componentData0.do.splice(1, 1);
-      }
-      this.fileAdd = fileAdd;
-      this.collected = collected;
-      this.temDataAcquisition = temDataAcquisition;
     },
     uploadSample() {
       doInsOrder({
@@ -2879,7 +2849,7 @@
     },
     handleDown(row) {
       downFile({ id: row.id }).then((res) => {
-        this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName)
+        this.$download.saveAs(res.data.fileUrl, row.fileName)
       })
         .catch((error) => { });
     },
diff --git a/src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue b/src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue
index d1decf8..18d1d0f 100644
--- a/src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue
+++ b/src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue
@@ -154,7 +154,7 @@
     // 涓嬭浇
     handleDown(row) {
       downFile({ id: row.id, }).then(res => {
-        this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName);
+        this.$download.saveAs(res.data.fileUrl, row.fileName);
       }).catch(error => {
 
       })
diff --git a/src/views/business/productOrder/index.vue b/src/views/business/productOrder/index.vue
index 0d97704..5fefbe3 100644
--- a/src/views/business/productOrder/index.vue
+++ b/src/views/business/productOrder/index.vue
@@ -986,7 +986,7 @@
       downFile({
         id: row.id,
       }).then(res => {
-        this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName);
+        this.$download.saveAs(res.data.fileUrl, row.fileName);
       }).catch(error => {
 
       })
@@ -995,7 +995,7 @@
     download(row) {
       let url = row.urlS ? row.urlS : row.url;
       if (url) {
-        this.$download.downloadFileFromUrl(url, this.downLoadInfo.fileName);
+        this.$download.saveAs(url, row.entrustCode);
       }
     },
     // 鎾ら攢
diff --git a/src/views/business/reportPreparation/index.vue b/src/views/business/reportPreparation/index.vue
index 3ff9d9c..88a3833 100644
--- a/src/views/business/reportPreparation/index.vue
+++ b/src/views/business/reportPreparation/index.vue
@@ -547,7 +547,7 @@
       downFile({
         id: row.id,
       }).then(res => {
-        this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName);
+        this.$download.saveAs(res.data.fileUrl, row.fileName);
       }).catch(error => {
 
       })
diff --git a/src/views/business/unpass/components/unPassDialog.vue b/src/views/business/unpass/components/unPassDialog.vue
index d7de2a8..c2f06e0 100644
--- a/src/views/business/unpass/components/unPassDialog.vue
+++ b/src/views/business/unpass/components/unPassDialog.vue
@@ -180,7 +180,7 @@
       downFile({
         id: row.id,
       }).then(res => {
-        this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName);
+        this.$download.saveAs(res.data.fileUrl, row.fileName);
       }).catch(error => {
 
       })
diff --git a/src/views/performance/class/index.vue b/src/views/performance/class/index.vue
index 209139c..0934b6f 100644
--- a/src/views/performance/class/index.vue
+++ b/src/views/performance/class/index.vue
@@ -444,7 +444,6 @@
       this.monthList.push(i);
     }
     this.monthList.reverse();
-    // this.getPower();
   },
   methods: {
     refresh() {
diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index ad3396d..4e20b20 100644
--- a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
@@ -332,7 +332,7 @@
         this.$message.warning('鏆傛棤闄勪欢')
         return;
       }
-      this.$download.downloadFileFromUrl(row.fileUrl, row.fileUrl);
+      this.$download.saveAs(row.fileUrl, row.fileUrl);
     },
     openAdd() {
       this.qualificationsConnectVisible = true;

--
Gitblit v1.9.3