فهرست منبع

[Mod 0000] 给风门添加监测模块按钮权限

hongrunxia 1 هفته پیش
والد
کامیت
145bbc6d1c
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/views/vent/monitorManager/gateMonitor/index.vue

+ 4 - 4
src/views/vent/monitorManager/gateMonitor/index.vue

@@ -89,7 +89,7 @@
     <div class="bottom-tabs-box" @mousedown="setDivHeight($event, 350, scroll)">
       <dv-border-box8 :dur="5" :style="`padding: 5px; height: ${scroll.y + 120}px`">
         <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange">
-          <a-tab-pane key="1" tab="实时监测">
+          <a-tab-pane v-if="!hasPermission('show:noMonitor')" key="1" tab="实时监测">
             <MonitorTable
               v-if="activeKey === '1'"
               ref="MonitorDataTable"
@@ -175,7 +175,7 @@
                 :chartsColumns="chartsColumns" :device-list-api="list" device-type="gate" />
             </div>
           </a-tab-pane> -->
-          <a-tab-pane key="3" tab="历史数据">
+          <a-tab-pane v-if="!hasPermission('show:noHistory')" key="3" tab="历史数据">
             <div class="tab-item" v-if="activeKey === '3'">
               <HistoryTable :columnsType="deviceType" :device-type="deviceType" designScope="gate-history" :scroll="scroll">
                 <template #filterCell="{ column, record }">
@@ -243,7 +243,7 @@
               </HistoryTable>
             </div>
           </a-tab-pane>
-          <a-tab-pane key="4" tab="报警历史">
+          <a-tab-pane v-if="!hasPermission('show:noAlarm')" key="4" tab="报警历史">
             <div class="tab-item" v-if="activeKey === '4'">
               <template v-if="sysOrgCode != 'zmhjhzmy'">
                 <AlarmHistoryTable
@@ -271,7 +271,7 @@
               </template>
             </div>
           </a-tab-pane>
-          <a-tab-pane key="5" tab="操作历史">
+          <a-tab-pane v-if="!hasPermission('show:noHandleHistory')" key="5" tab="操作历史">
             <div class="tab-item" v-if="activeKey === '5'">
               <HandlerHistoryTable
                 columns-type="operator_history"