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