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/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue |   51 ++-------------------------------------------------
 1 files changed, 2 insertions(+), 49 deletions(-)

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) {

--
Gitblit v1.9.3