From 4bd9ecdb092c88d050e58d5a150b62e5e90b65b0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 14 三月 2025 16:10:14 +0800
Subject: [PATCH] 删除无用代码

---
 src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue |   69 ++--------------------------------
 1 files changed, 5 insertions(+), 64 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
index 61ac164..234e7f1 100644
--- a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
@@ -341,10 +341,8 @@
   selectUserCondition,
 } from "@/api/business/inspectionTask.js";
 export default {
-  components: {
-    filePreview,
-    limsTable
-  },
+  name: 'RevisionRecord',
+  components: {filePreview, limsTable},
   data() {
     return {
       addPower: true,
@@ -484,64 +482,12 @@
     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: '淇',
       }
       this.title = '鏂板'
+      this.file = null
       this.addDialogVisible = true;
     },
     // 瀵煎嚭
@@ -549,9 +495,7 @@
       this.outLoading = true
       exportOutManageRecordAudit(this.queryParams).then(res => {
         this.outLoading = false
-        if (res.code == 201) return this.$message.error('瀵煎嚭澶辫触')
-        let url = this.javaApi + '/word/' + res.data
-        this.$download.saveAs(url, "鏂囦欢淇琛�");
+        this.$download.saveAs(res.data, "鏂囦欢淇琛�");
       })
     },
     getList() {
@@ -680,6 +624,7 @@
     handleEdit(row) {
       this.addInfo = row
       this.title = '淇敼'
+      this.file = null
       this.addDialogVisible = true;
     },
     // 瀹℃壒
@@ -691,9 +636,6 @@
       })
         .then(() => {
           ratifyManageRecordAudit({ id: row.id }).then(res => {
-            if (res.code === 201) {
-              return;
-            }
             this.$message.success('鎿嶄綔鎴愬姛');
             this.refreshTable();
           })
@@ -749,7 +691,6 @@
       })
         .then(() => {
           delManageRecordAudit({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refresh();
           });

--
Gitblit v1.9.3