From 7572538ccdfc16d50f829f5ecd2d8c1a42fd7ef1 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期二, 05 九月 2023 09:37:02 +0800
Subject: [PATCH] 设备台账按钮权限

---
 src/views/eam/modules/equipmentNew/EquipmentProcessParametersList.vue   |    3 ++-
 src/views/eam/modules/equipmentNew/EquipmentDocumentList.vue            |    6 ++++--
 src/views/eam/modules/equipmentNew/EquipmentPrecisionParametersList.vue |    3 ++-
 src/views/eam/EquipmentList.vue                                         |   11 ++++++-----
 4 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/src/views/eam/EquipmentList.vue b/src/views/eam/EquipmentList.vue
index cb2edeb..e390312 100644
--- a/src/views/eam/EquipmentList.vue
+++ b/src/views/eam/EquipmentList.vue
@@ -48,10 +48,10 @@
         @click="searchReset"
         icon="reload"
       >閲嶇疆</a-button>
-      <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
-      <a-button type="primary" icon="download" @click="handleExportXls('璁惧鍙拌处')">瀵煎嚭</a-button>
+      <a-button @click="handleAdd" type="primary" icon="plus" v-has="'equipmentAccount:add&delete&import&Edit'">鏂板</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('璁惧鍙拌处')" v-has="'equipmentAccount:outport'">瀵煎嚭</a-button>
       <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
-        <a-button type="primary" icon="import">瀵煎叆</a-button>
+        <a-button type="primary" icon="import"  v-has="'equipmentAccount:add&delete&import&Edit'">瀵煎叆</a-button>
       </a-upload>
     </div>
 
@@ -206,13 +206,14 @@
             <a-menu-item>
               <a @click="equipmentResumeShow(record)">璁惧灞ュ巻</a>
             </a-menu-item>
-            <a-menu-item>
-              <a @click="handleEdit(record)">缂栬緫</a>
+            <a-menu-item  v-has="'equipmentAccount:add&delete&import&Edit'">
+              <a @click="handleEdit(record)" >缂栬緫</a>
             </a-menu-item>
             <a-menu-item>
               <a-popconfirm
                 title="纭畾鍒犻櫎鍚�?"
                 @confirm="() => handleDelete(record.id)"
+                v-has="'equipmentAccount:add&delete&import&Edit'"
               >
                 <a>鍒犻櫎</a>
               </a-popconfirm>
diff --git a/src/views/eam/modules/equipmentNew/EquipmentDocumentList.vue b/src/views/eam/modules/equipmentNew/EquipmentDocumentList.vue
index 7002013..af5b351 100644
--- a/src/views/eam/modules/equipmentNew/EquipmentDocumentList.vue
+++ b/src/views/eam/modules/equipmentNew/EquipmentDocumentList.vue
@@ -24,6 +24,7 @@
         @click="handleAdd"
         type="primary"
         icon="plus"
+        v-has="'accountSons:add&edit&delete&submit'"
       >鏂板</a-button>
       <!-- <a-button type="primary" icon="download" @click="handleExportXls('璁惧鏂囨。')">瀵煎嚭</a-button>
       <a-upload
@@ -35,7 +36,7 @@
         @change="handleImportExcel">
           <a-button type="primary" icon="import">瀵煎叆</a-button>
       </a-upload> -->
-      <a-dropdown v-if="selectedRowKeys.length > 0">
+      <a-dropdown v-if="selectedRowKeys.length > 0" v-has="'accountSons:add&edit&delete&submit'">
         <a-menu slot="overlay">
           <a-menu-item
             key="1"
@@ -85,7 +86,7 @@
           slot="action"
           slot-scope="text, record"
         >
-          <a @click="handleEdit(record)">缂栬緫</a>
+          <a @click="handleEdit(record)" v-has="'accountSons:add&edit&delete&submit'">缂栬緫</a>
 
           <a-divider type="vertical" />
 
@@ -125,6 +126,7 @@
           <a-popconfirm
             title="纭畾鍒犻櫎鍚�?"
             @confirm="() => handleDelete(record.id)"
+            v-has="'accountSons:add&edit&delete&submit'"
           >
             <a>鍒犻櫎</a>
           </a-popconfirm>
diff --git a/src/views/eam/modules/equipmentNew/EquipmentPrecisionParametersList.vue b/src/views/eam/modules/equipmentNew/EquipmentPrecisionParametersList.vue
index ade384d..ae5971d 100644
--- a/src/views/eam/modules/equipmentNew/EquipmentPrecisionParametersList.vue
+++ b/src/views/eam/modules/equipmentNew/EquipmentPrecisionParametersList.vue
@@ -22,7 +22,7 @@
         @change="handleImportExcel">
           <a-button type="primary" icon="import">瀵煎叆</a-button>
       </a-upload> -->
-      <a-dropdown v-if="selectedRowKeys.length > 0">
+      <a-dropdown v-if="selectedRowKeys.length > 0" v-has="'accountSons:add&edit&delete&submit'">
         <a-menu slot="overlay">
           <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>鍒犻櫎</a-menu-item>
           <a-menu-item key="1" @click="handleSubmitBatch"><a-icon type="to-top" />鎻愪氦</a-menu-item>
@@ -85,6 +85,7 @@
               <a-button
                 type="primary"
                 @click="handleEdit(record)"
+                v-has="'accountSons:add&edit&delete&submit'"
               >鎻愪氦</a-button>
             </span>
           </div>
diff --git a/src/views/eam/modules/equipmentNew/EquipmentProcessParametersList.vue b/src/views/eam/modules/equipmentNew/EquipmentProcessParametersList.vue
index 2646bd9..7716a81 100644
--- a/src/views/eam/modules/equipmentNew/EquipmentProcessParametersList.vue
+++ b/src/views/eam/modules/equipmentNew/EquipmentProcessParametersList.vue
@@ -21,7 +21,7 @@
         @change="handleImportExcel">
           <a-button type="primary" icon="import">瀵煎叆</a-button>
       </a-upload> -->
-      <a-dropdown v-if="selectedRowKeys.length > 0">
+      <a-dropdown v-if="selectedRowKeys.length > 0" v-has="'accountSons:add&edit&delete&submit'">
         <a-menu slot="overlay">
           <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>鍒犻櫎</a-menu-item>
           <a-menu-item key="1" @click="handleSubmitBatch"><a-icon type="to-top" />鎻愪氦</a-menu-item>
@@ -70,6 +70,7 @@
               <a-button
                 type="primary"
                 @click="handleEdit(record)"
+                v-has="'accountSons:add&edit&delete&submit'"
               >鎻愪氦</a-button>
             </span>
           </div>

--
Gitblit v1.9.3