|
@@ -588,7 +588,7 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="3" tab="报警历史" v-if="!noWarningArr.find((item) => deviceType.startsWith(item))">
|
|
|
+ <a-tab-pane key="3" tab="报警历史" v-if="!noWarningArr.find((item) => deviceType.startsWith(item)) || !hasPermission('safety:hideWarning')">
|
|
|
<div class="tab-item">
|
|
|
<AlarmHistoryTable
|
|
|
ref="alarmHistoryTable"
|
|
@@ -680,6 +680,7 @@
|
|
|
import { useMethods } from '/@/hooks/system/useMethods';
|
|
|
import { useGo } from '/@/hooks/web/usePage';
|
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
|
+ import { usePermission } from '/@/hooks/web/usePermission';
|
|
|
|
|
|
type DeviceType = { deviceType: string; deviceName: string; datalist: any[] };
|
|
|
const glob = useGlobSetting();
|
|
@@ -693,6 +694,8 @@
|
|
|
default: () => {},
|
|
|
},
|
|
|
});
|
|
|
+
|
|
|
+ const { hasPermission } = usePermission();
|
|
|
const { handleExportXls } = useMethods();
|
|
|
const go = useGo();
|
|
|
const echatsOption = {
|