| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- import { BasicColumn } from '/@/components/Table';
- import { FormSchema } from '/@/components/Table';
- import { alarmCellRender } from '/@/views/monitor/sealedMonitor/monitor.data';
- export const boardData = [
- {
- label: '存在风险情况数量',
- value: '10',
- },
- {
- label: '低风险',
- value: '27',
- },
- {
- label: '一般风险',
- value: '27',
- },
- {
- label: '较高风险',
- value: '27',
- },
- {
- label: '高风险',
- value: '27',
- },
- ];
- // 实时数据相关
- export const columns: BasicColumn[] = [
- {
- title: '区域',
- dataIndex: 'areaName',
- width: 100,
- },
- {
- title: '煤矿名称',
- dataIndex: 'mineName',
- width: 200,
- },
- {
- title: '密闭名称',
- dataIndex: 'devicePos',
- width: 100,
- },
- {
- title: '所属煤层',
- dataIndex: 'coalSeamName',
- width: 100,
- },
- {
- title: '自燃倾向性',
- dataIndex: 'coalSeamLevel',
- width: 100,
- },
- {
- title: '监测压差(Pa)',
- dataIndex: 'sourcePressure',
- width: 100,
- },
- {
- title: '日常压差均值(Pa)',
- dataIndex: 'dailyYaCha',
- width: 100,
- },
- {
- title: '绝对压差变化(%)',
- dataIndex: 'yaChaChange',
- width: 100,
- },
- {
- title: '风险分析',
- dataIndex: 'alarmName',
- width: 100,
- customRender: ({ record }) => {
- const riskMap = {
- '1': '低风险',
- '2': '一般风险',
- '3': '较高风险',
- '4': '高风险',
- };
- return alarmCellRender(record, (r) => riskMap[r.alarmName] || r.alarmName);
- // if (typeof text !== 'string') {
- // return '-';
- // }
- // return riskMap[text] || text;
- },
- },
- {
- title: '预警时间',
- dataIndex: 'createTime',
- width: 100,
- },
- {
- title: '是否解决',
- customRender: () => '未解决',
- width: 100,
- },
- ];
- export const searchFormSchema: FormSchema[] = [
- {
- field: 'mineName',
- label: '所属执法处',
- component: 'Select',
- componentProps: {
- options: [
- { label: '执法一处', value: '0' },
- { label: '执法二处', value: '1' },
- { label: '执法三处', value: '2' },
- ],
- },
- colProps: { span: 6 },
- },
- {
- field: 'mineName',
- label: '所属区域',
- component: 'Select',
- componentProps: {
- options: [
- { label: '执法一处', value: '0' },
- { label: '执法二处', value: '1' },
- { label: '执法三处', value: '2' },
- ],
- },
- colProps: { span: 6 },
- },
- {
- field: 'mineName',
- label: '煤矿名称',
- component: 'Input',
- colProps: { span: 6 },
- },
- {
- field: 'mineNameAbbr',
- label: '煤矿简称',
- component: 'Input',
- colProps: { span: 6 },
- },
- {
- field: 'productStatus',
- label: '生产状态',
- component: 'Select',
- componentProps: {
- options: [
- { label: '拟建矿井', value: '0' },
- { label: '正常生产矿井', value: '1' },
- { label: '长期停产矿井', value: '2' },
- ],
- },
- colProps: { span: 6 },
- },
- {
- field: 'riskLevel',
- label: '自燃倾向性',
- component: 'Select',
- componentProps: {
- options: [
- { label: 'Ⅰ类容易自燃', value: '0' },
- { label: 'Ⅱ类自燃', value: '1' },
- { label: 'Ⅲ类不易自燃', value: '2' },
- ],
- },
- colProps: { span: 6 },
- },
- ];
|