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/outDocumenRecordt.vue |   43 +------------------------------------------
 1 files changed, 1 insertions(+), 42 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
index 6b7dd89..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) {
@@ -431,7 +392,6 @@
       }).then(res => {
         this.checkLoading = false
         this.noCheckLoading = false
-        if (res.code === 201) return
         this.$message({
           type: 'success',
           message: '鎿嶄綔鎴愬姛!'
@@ -448,7 +408,6 @@
       })
         .then(() => {
           delManageRecordVerify({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.getList0()
           });

--
Gitblit v1.9.3