|
@@ -1,5 +1,6 @@
|
|
|
import { reactive, markRaw, defineAsyncComponent } from 'vue';
|
|
|
import { getAssetURL } from '/@/utils/ui';
|
|
|
+import { useGlobSetting } from '/@/hooks/setting';
|
|
|
|
|
|
//中间区域数据-通风
|
|
|
export const centerAreaListT1 = [
|
|
@@ -26,7 +27,19 @@ export const centerAreaListB1 = [
|
|
|
//内外因火灾菜单列表
|
|
|
export const typeMenuList = [{ name: '内因火灾' }, { name: '外因火灾' }, { name: '火灾指标' }];
|
|
|
//瓦斯监测菜单列表
|
|
|
-export const typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' },{ name: '瓦斯参数' },];
|
|
|
+export function getMonitorComponent() {
|
|
|
+ const { sysOrgCode } = useGlobSetting();
|
|
|
+ let typeMenuListGas;
|
|
|
+ switch (sysOrgCode) {
|
|
|
+ case 'sdmtjtdltmk': //大柳塔
|
|
|
+ typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' },];
|
|
|
+ return typeMenuListGas;
|
|
|
+ default:
|
|
|
+ typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' }, { name: '瓦斯参数' },];
|
|
|
+ return typeMenuListGas;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
//当前加载组件
|
|
|
export const componentName = {
|
|
|
fireWork: markRaw(defineAsyncComponent(() => import('./common/fireWork.vue'))),
|
|
@@ -101,17 +114,17 @@ export const ventilateTopList = [
|
|
|
list: [],
|
|
|
},
|
|
|
{ id: 3, imgSrc: false, label: '', value: null, text: '--', list: [] },
|
|
|
- {
|
|
|
- id: 4,
|
|
|
- imgSrc: false,
|
|
|
- label: '其他信息',
|
|
|
- value: null,
|
|
|
- text: '',
|
|
|
- list: [
|
|
|
- { id: 0, label: 'O₂', value: '--' },
|
|
|
- { id: 1, label: 'CO', value: '--' },
|
|
|
- ],
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // id: 4,
|
|
|
+ // imgSrc: false,
|
|
|
+ // label: '其他信息',
|
|
|
+ // value: null,
|
|
|
+ // text: '',
|
|
|
+ // list: [
|
|
|
+ // { id: 0, label: 'O₂', value: '--' },
|
|
|
+ // { id: 1, label: 'CO', value: '--' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
];
|
|
|
//束管监测选项列表
|
|
|
export const contentList = [
|
|
@@ -231,14 +244,34 @@ export const tabLists = [
|
|
|
];
|
|
|
//外因火灾-传感器table列
|
|
|
export const columns = [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ dataIndex: '',
|
|
|
+ key: 'rowIndex',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ customRender: ({ index }) => {
|
|
|
+ return `${index + 1}`;
|
|
|
+ },
|
|
|
+ },
|
|
|
{ rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' },
|
|
|
- { rowIndex: 2, dataIndex: 'warnLevel_str', title: '状态', type: '1', align: 'center' },
|
|
|
+ { rowIndex: 2, dataIndex: 'warnLevel_str',width:80, title: '状态', type: '1', align: 'center' },
|
|
|
{ rowIndex: 3, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' },
|
|
|
];
|
|
|
//外因火灾-烟雾传感器table列
|
|
|
export const columnsSmoke = [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ dataIndex: '',
|
|
|
+ key: 'rowIndex',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ customRender: ({ index }) => {
|
|
|
+ return `${index + 1}`;
|
|
|
+ },
|
|
|
+ },
|
|
|
{ rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' },
|
|
|
- { rowIndex: 2, dataIndex: 'val', title: '值', type: '1', align: 'center' },
|
|
|
- { rowIndex: 3, dataIndex: 'warnLevel_str', title: '状态', type: '1', align: 'center' },
|
|
|
+ { rowIndex: 2, dataIndex: 'val', width:80, title: '值', type: '1', align: 'center' },
|
|
|
+ { rowIndex: 3, dataIndex: 'warnLevel_str', width:80,title: '状态', type: '1', align: 'center' },
|
|
|
{ rowIndex: 4, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' },
|
|
|
];
|