lxh 17 小時之前
父節點
當前提交
586bc9b5d9
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/views/vent/monitorManager/deviceMonitorWarn/index.vue

+ 3 - 0
src/views/vent/monitorManager/deviceMonitorWarn/index.vue

@@ -7,6 +7,7 @@
       size="small"
       style="position: absolute; left: 15px; top: -66px; color: var(--vent-font-color)"
       @click="getBack"
+      v-if="hasPermission('deviceWarn:return')"
       >返回</a-button
     >
     <div class="content">
@@ -70,6 +71,7 @@
   import { getAutoScrollContainer } from '/@/utils/common/compUtils';
   import { useRouter } from 'vue-router';
   import { render } from '/@/utils/common/renderUtils';
+  import { usePermission } from '/@/hooks/web/usePermission';
 
   const props = defineProps({
     formConfig: {
@@ -78,6 +80,7 @@
     },
   });
 
+   const { hasPermission } = usePermission();
   let router = useRouter();
   let activeIndex = ref(0);
   let devicekindType = ref('modelsensor');