From 3457909638c660c0cfcb521b6104ab64c679b914 Mon Sep 17 00:00:00 2001
From: zenglf <18502938215@163.com>
Date: 星期二, 19 九月 2023 16:23:16 +0800
Subject: [PATCH] 修改页面左右展示比例

---
 src/views/eam/PredictiveWorkPlanList.vue |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/views/eam/PredictiveWorkPlanList.vue b/src/views/eam/PredictiveWorkPlanList.vue
index 0a96f78..839030f 100644
--- a/src/views/eam/PredictiveWorkPlanList.vue
+++ b/src/views/eam/PredictiveWorkPlanList.vue
@@ -66,6 +66,7 @@
         @click='handleAdd'
         type='primary'
         icon='plus'
+        v-has="'predictiveWorkPlan:add&edit&delete'"
       >鏂板
       </a-button>
       <a-button
@@ -118,21 +119,25 @@
           <a
             v-if="record.status == '2'"
             @click="handleRevise(record)"
+            v-has="'predictiveWorkplan:update&take'"
           >鍗囩増</a>
           <a
             v-if="record.status == '1'"
             @click="handleTakeEffect(record)"
+            v-has="'predictiveWorkplan:update&take'"
           >鐢熸晥</a>
           <a-divider type="vertical"/>
           <a
             v-if="record.status == '1'"
             @click="handleEdit(record)"
+            v-has="'predictiveWorkPlan:add&edit&delete'"
           >缂栬緫</a>
           <a-divider type="vertical"/>
           <a-popconfirm
             v-if="record.status == '1'"
             title="纭畾鍒犻櫎鍚�?"
             @confirm="() => handleDelete(record.id)"
+            v-has="'predictiveWorkPlan:add&edit&delete'"
           >
             <a>鍒犻櫎</a>
           </a-popconfirm>
@@ -419,7 +424,10 @@
         this.selectionRows = selectionRows
         this.planId = this.selectedRowKeys[0]
         this.equipmentId = selectionRows[0].equipment_id
-        this.isAdd = true
+        this.isAdd = selectionRows[0].status=='1';
+        this.isDel = selectionRows[0].status=='1';
+        this.isEdit = selectionRows[0].status=='1';
+        
       },
 
       onChange(e) {
@@ -433,12 +441,12 @@
         this.$refs.modalForm.disableSubmit = false
         this.$refs.modalForm.isRevise = false
       },
-      handleAdd: function() {
-        this.$refs.modalForm.add()
-        this.$refs.modalForm.title = '鏂板'
-        this.$refs.modalForm.disableSubmit = false
-        this.$refs.modalForm.isRevise = false
-      },
+      // handleAdd: function() {
+      //   this.$refs.modalForm.add()
+      //   this.$refs.modalForm.title = '鏂板'
+      //   this.$refs.modalForm.disableSubmit = false
+      //   this.$refs.modalForm.isRevise = false
+      // },
 
       //鍗囩増
       handleRevise: function(record) {

--
Gitblit v1.9.3