浏览代码

联锁总表权限设置

wyh 4 月之前
父节点
当前提交
ab6b93962d

+ 3 - 3
src/components/module_interLock/UEquipmentTree/UEquipmentTree.vue

@@ -1,8 +1,8 @@
 <template>
   <div class="equipment-tree-container">
     <div v-if="treeData.type != 'history'">
-      <a-button  type="primary" icon="plus"  style="width:13%;" @click="handleAdd"/>
-      <a-input-search style="width:85%;margin-left:2%" allow-clear placeholder="请输入" @change="onChange" />
+      <a-button  type="primary" icon="plus"  style="width:12%;" @click="handleAdd" v-has="'add:tree'"/>
+      <a-input-search style="width:86%;margin-left:2%" allow-clear placeholder="请输入" @change="onChange" />
     </div>
     <div v-if="treeData.type == 'history'">
       <a-input-search style="width:100%;margin-left:2%" allow-clear placeholder="请输入" @change="onChange" />
@@ -21,7 +21,7 @@
         <template v-slot:title="nodeData">
           <div style="display: flex; justify-content: space-between; width: 100%;">
             <div>{{nodeData.interlockName}}</div>
-            <div v-if="treeData.type != 'history'">
+            <div v-if="treeData.type != 'history'" v-has="'edit:tree'">
               <a-dropdown>
                 <a-icon type="more" />
                 <a-menu slot="overlay">

+ 2 - 2
src/views/module_interLock/InterlockSummary/InterlockSummaryList.vue

@@ -40,7 +40,7 @@
 
     <!-- 操作按钮区域 -->
     <div class="table-operator">
-      <a-button v-if="interlockType == '1'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button v-if="interlockType == '1'" v-has="'add:summary'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
       <!-- <a-button type="primary" icon="download" @click="handleExportXls('联锁总表')">导出</a-button>
       <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
         <a-button type="primary" icon="import">导入</a-button>
@@ -244,7 +244,7 @@
             // scopedSlots: { customRender: 'action' },
             customRender: (text,record,index)=> {
               var childrenEdit = (<a onclick={() => { this.handleEdit(record) }}>编辑</a>)
-              var childrenDivider = (<a-divider type="vertical" />)
+              var childrenDivider = (<a-divider type="vertical"/>)
               var childrenMore = (
                 <a-dropdown>
                   <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>