|
|
@@ -1,20 +1,5 @@
|
|
|
import { BasicColumn } from '/@/components/Table';
|
|
|
import { FormSchema } from '/@/components/Table';
|
|
|
-import { TreeItem } from '/@/components/Tree/index';
|
|
|
-export const boardData = [
|
|
|
- {
|
|
|
- label: '存在风险情况数量',
|
|
|
- value: '10',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '闭内气体涌出',
|
|
|
- value: '27',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '闭外气体涌出',
|
|
|
- value: '27',
|
|
|
- },
|
|
|
-];
|
|
|
// 实时数据相关
|
|
|
export const columns: BasicColumn[] = [
|
|
|
{
|
|
|
@@ -49,12 +34,12 @@ export const columns: BasicColumn[] = [
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
- title: '密闭内压力',
|
|
|
+ title: '密闭内压力(Pa)',
|
|
|
dataIndex: 'sourcePressure',
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
- title: '密闭外压力',
|
|
|
+ title: '密闭外压力(Pa)',
|
|
|
dataIndex: 'sourcePressure',
|
|
|
width: 100,
|
|
|
},
|
|
|
@@ -63,8 +48,7 @@ export const columns: BasicColumn[] = [
|
|
|
dataIndex: 'alarmName',
|
|
|
width: 100,
|
|
|
customRender: ({ text }) => {
|
|
|
- // 解构获取真正的 text 字符串值
|
|
|
- // 先校验 text 是字符串类型,再处理分割逻辑
|
|
|
+ // 解构获取字符串值
|
|
|
if (typeof text !== 'string') {
|
|
|
return '-';
|
|
|
}
|
|
|
@@ -96,6 +80,7 @@ export const columns: BasicColumn[] = [
|
|
|
},
|
|
|
{
|
|
|
title: '是否解决',
|
|
|
+ dataIndex: 'content',
|
|
|
customRender: () => '未解决',
|
|
|
width: 100,
|
|
|
},
|
|
|
@@ -160,69 +145,3 @@ export const historyColumns: BasicColumn[] = [
|
|
|
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 },
|
|
|
- },
|
|
|
-];
|