From 083bc7004fa08f6eebd3003d421db5045ca78d5f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 15:54:36 +0800
Subject: [PATCH] 删除无用代码

---
 src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue |   52 ++--------------------------------------------------
 1 files changed, 2 insertions(+), 50 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
index 29112da..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,9 +206,7 @@
       this.outLoading = true
       exportOutManageRecordCancel(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() {
@@ -296,7 +257,7 @@
       this.upLoading = false;
       if (response.code == 200) {
         this.$message.success('涓婁紶鎴愬姛');
-        this.refreshTable()()
+        this.refreshTable()
       } else {
         this.$message.error('涓婁紶澶辫触');
       }
@@ -326,9 +287,6 @@
       if (this.title == '鏂板') {
         addManageRecordCancel(obj).then(res => {
           this.addLoading = false
-          if (res.code == 201) {
-            return
-          }
           this.addDialogVisible = false
           this.$message({
             type: 'success',
@@ -339,9 +297,6 @@
       } else {
         doManageRecordCancel(obj).then(res => {
           this.addLoading = false
-          if (res.code == 201) {
-            return
-          }
           this.addDialogVisible = false
           this.$message({
             type: 'success',
@@ -380,7 +335,6 @@
           if (action === 'confirm') {
             // 鐐瑰嚮鈥滅‘瀹氣�濇寜閽紝鍏佽鍏抽棴
             ratifyManageRecordCancel({ id: row.id, ratifyState: '閫氳繃' }).then(res => {
-              if (res.code === 201) return
               this.refreshTable()
               done();
               this.$message({
@@ -394,7 +348,6 @@
           } else if (action === 'cancel') {
             // 鐐瑰嚮鈥滃彇娑堚�濇寜閽紝涓嶅厑璁稿叧闂�
             ratifyManageRecordCancel({ id: row.id, ratifyState: '涓嶉�氳繃' }).then(res => {
-              if (res.code === 201) return
               this.refreshTable()
               done();
               this.$message({
@@ -422,7 +375,6 @@
       })
         .then(() => {
           delManageRecordCancel({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refresh();
           });

--
Gitblit v1.9.3