From 7d3b5f5314493a77d520dc4ae53db8ca03b57ada Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 25 十二月 2024 10:57:57 +0800
Subject: [PATCH] 历史记录也不能编辑删除

---
 src/components/view/a8-external-document-confirmation-records.vue |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/src/components/view/a8-external-document-confirmation-records.vue b/src/components/view/a8-external-document-confirmation-records.vue
index c0564b3..8402380 100644
--- a/src/components/view/a8-external-document-confirmation-records.vue
+++ b/src/components/view/a8-external-document-confirmation-records.vue
@@ -69,7 +69,7 @@
   data(){
     return{
       title0:'鏌ョ湅',
-      activeName:'濉啓',
+      activeName:'鍘嗗彶璁板綍',
       lookDialogVisible:false,
       noCheckLoading:false,
       checkLoading:false,
@@ -141,12 +141,18 @@
             id: 'update',
             font: '淇敼',
             type: 'text',
-            method: 'doDiy'
+            method: 'doDiy',
+            disabFun:(row, index) => {
+              return !this.addPower||!!this.currentInfo.ratifyUserName
+            }
           },{
             id: 'delete',
             font: '鍒犻櫎',
             type: 'text',
-            method: 'doDiy'
+            method: 'doDiy',
+            disabFun:(row, index) => {
+              return !this.addPower||!!this.currentInfo.ratifyUserName
+            }
           }],
           tagField: {},
           selectField: {},
@@ -176,6 +182,17 @@
       return this.javaApi +this.$api.manageRecordTotal.exportManageRecordVerify
     }
   },
+  watch: {
+    'activeName' (val1, val2) {
+      if(val1=='濉啓'){
+        this.componentData0.do.forEach((item)=>{
+          item.disabFun = (row, index) => {
+            return !this.addPower||!!this.currentInfo.ratifyUserName
+          }
+        })
+      }
+    }
+  },
   mounted() {
     this.entityCopy = this.HaveJson(this.componentData.entity);
     this.getPower()

--
Gitblit v1.9.3