Bladeren bron

[Feat 0000] 通风182可配置首页的监测条改为权限控制型

houzekong 1 maand geleden
bovenliggende
commit
a1c2013db4
1 gewijzigde bestanden met toevoegingen van 7 en 5 verwijderingen
  1. 7 5
      src/views/vent/home/configurable/vent182.vue

+ 7 - 5
src/views/vent/home/configurable/vent182.vue

@@ -9,11 +9,13 @@
       <div v-if="!route.query.embed" class="top-bg">
         <div class="main-title">{{ mainTitle }}</div>
       </div>
-      <a class="ant-dropdown-link module-dropdown" @click.prevent="showBar = !showBar">
-        全矿井通风检测
-        <CaretDownOutlined />
-      </a>
-      <MonitorBar v-if="showBar" class="module-monitor-bar" :is-data-real-time="isDataRealTime" :data="data" />
+      <template v-if="hasPermission('show:monitorBar')">
+        <a class="ant-dropdown-link module-dropdown" @click.prevent="showBar = !showBar">
+          全矿井通风检测
+          <CaretDownOutlined />
+        </a>
+        <MonitorBar v-if="showBar" class="module-monitor-bar" :is-data-real-time="isDataRealTime" :data="data" />
+      </template>
       <!-- <a-dropdown class="module-dropdown" :class="{ 'module-dropdown-original': isOriginal }" :trigger="['click']" placement="bottomRight">
         <template #overlay>
         </template>