Explorar o código

联锁列表权限

yuhan hai 10 meses
pai
achega
e6d00f024b

+ 1 - 1
src/components/module_interLock/UEquipmentTree/UEquipmentTreeDrag.vue

@@ -145,7 +145,7 @@
       },
       isSysManage(){
         return cookie.get('SSORole') === 'globalAdmin'
-      }
+      },
     },
     created() {
       this.getTpmTreeData()

+ 5 - 1
src/views/module_interLock/InterlockSummary/InterlockSummaryList.vue

@@ -170,6 +170,7 @@
   import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
   import { httpAction, getAction } from '@/api/manage'
   import { colAuthFilter } from "@/utils/authFilter"
+  import cookie from 'js-cookie'
 
   export default {
     name: 'InterlockSummaryList',
@@ -303,7 +304,7 @@
             auth: 'testdemo:action',
             // scopedSlots: { customRender: 'action' },
             customRender: (text,record,index)=> {
-              if(record.limitType === '0'){
+              if(this.isSysManage || record.limitType === '0'){
                 var onlyViewEdit = (
                   <span class="edit-view-btn"></span>
                 )
@@ -394,6 +395,9 @@
         /** 其中:interlockType判断点击的是否为系统(0为装置,1为系统,2为未选中) */
         return this.$store.getters.clickSystemNode
       },
+      isSysManage(){
+        return cookie.get('SSORole') === 'globalAdmin'
+      },
     },
     methods: {
       // 合并后悬浮行背景色一起显示--后来取消此需求