瀏覽代碼

[Mod 0000] 隐藏预警分析操作按钮

hongrunxia 1 周之前
父節點
當前提交
2d1d892323

+ 3 - 1
src/views/vent/monitorManager/comment/AlarmHistoryTable.vue

@@ -37,6 +37,7 @@
   import HistoryCurveModal from './components/HistoryCurveModal.vue';
   import { useModal } from '/@/components/Modal';
   import { message } from 'ant-design-vue';
+  import { usePermission } from '/@/hooks/web/usePermission';
 
   const props = defineProps({
     columnsType: {
@@ -75,6 +76,7 @@
     },
   });
 
+  const { hasPermission } = usePermission();
   const getDeviceListApi = (params) => defHttp.post({ url: '/monitor/device', params });
   const globalConfig = inject('globalConfig');
   const alarmHistory = ref();
@@ -190,7 +192,7 @@
       columns: props.columnsType ? columns : (props.columns as any[]),
       canResize: true,
       showTableSetting: false,
-      showActionColumn: true,
+      showActionColumn: !hasPermission('ventanalyAlarmAnalysis:noShow'),
       bordered: false,
       size: 'small',
       scroll: tableScroll,

+ 1 - 1
src/views/vent/monitorManager/gateMonitor/gate.threejs.ts

@@ -579,7 +579,7 @@ export const mountedThree = (playerDom) => {
     }
 
     model.animate();
-    startAnimation();
+    // startAnimation();
   });
 };