| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598 |
- import { h } from 'vue';
- import { FormSchema } from '/@/components/Form';
- import { BasicColumn } from '/@/components/Table';
- import { Tag } from 'ant-design-vue';
- /** 煤层预警参数 表格配置 */
- export const columnsCoalAlarm: BasicColumn[] = [
- {
- title: '煤矿名称',
- dataIndex: 'mineName',
- width: 400,
- },
- {
- title: '煤层名称',
- dataIndex: 'coalSeamName',
- width: 400,
- },
- {
- title: '创建时间',
- dataIndex: 'createTime',
- width: 400,
- },
- /* {
- title: '职务',
- dataIndex: 'post',
- width: 150,
- slots: { customRender: 'post' },
- },*/
- ];
- /** 采空区超限 表格配置 */
- export const columnsGoafLimit: BasicColumn[] = [
- {
- title: '采空区名称',
- dataIndex: 'devicePos',
- width: 400,
- },
- {
- title: '气温',
- dataIndex: 'fireAirTemperature',
- width: 200,
- },
- {
- title: '水温',
- dataIndex: 'fireWaterTemperature',
- width: 200,
- },
- {
- title: '状态',
- dataIndex: 'status',
- width: 200,
- customRender({ text }) {
- return h(
- Tag,
- {
- color: text == 1 ? 'success' : 'error',
- },
- text == 1 ? '正常' : '异常'
- );
- },
- },
- {
- title: '创建时间',
- dataIndex: 'createTime',
- width: 300,
- },
- ];
- export const searchFormSchema: FormSchema[] = [
- {
- label: '煤矿名称',
- field: 'mineCode',
- component: 'MineCascader',
- colProps: { span: 6 },
- },
- ];
- export const schemasCoalAlarm: FormSchema[] = [
- // "mineCode": null,
- // "coalSeamId": null,
- {
- label: 'ID',
- field: 'id',
- show: false,
- component: 'Input',
- },
- {
- label: '规则名称:',
- field: 'ruleName',
- labelWidth: 118,
- component: 'Input',
- colProps: { span: 24 },
- },
- {
- field: 'm1',
- label: '密闭内外压差变化风险提示模型',
- // labelWidth: 110,
- component: 'Divider',
- },
- {
- field: 'ycWarn1',
- label: '预警等级(Ⅰ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '<= 绝对压差变化(%) <=',
- colProps: { span: 12 },
- },
- { field: 'ycWarn1Start', label: '', show: false, component: 'Input' },
- { field: 'ycWarn1End', label: '', show: false, component: 'Input' },
- {
- field: 'ycWarn2',
- label: '预警等级(Ⅱ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '<= 绝对压差变化(%) <=',
- colProps: { span: 12 },
- },
- { field: 'ycWarn2Start', label: '', show: false, component: 'Input' },
- { field: 'ycWarn2End', label: '', show: false, component: 'Input' },
- {
- field: 'ycWarn3',
- label: '预警等级(Ⅲ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '<= 绝对压差变化(%) <=',
- colProps: { span: 12 },
- },
- { field: 'ycWarn3Start', label: '', show: false, component: 'Input' },
- { field: 'ycWarn3End', label: '', show: false, component: 'Input' },
- {
- field: 'ycWarn4',
- label: '预警等级(Ⅳ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' 绝对压差变化(%) <=',
- colProps: { span: 12 },
- },
- // { field: 'ycWarn4', label: '', show: false, component: 'Input' },
- {
- field: 'm2',
- label: '煤自然发火隐患分级预警模型',
- // labelWidth: 110,
- component: 'Divider',
- },
- {
- field: 'fireWarn1CoRzl',
- label: '预警等级(Ⅰ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' CO日增率(%) <=',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn1CoRzl', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn1CoZf',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' CO增幅(μ) <=',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn1CoZf', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn1CoNd',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' CO浓度(ppm) <=',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn1CoNd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn1O2',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' O2(%) <=',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn1O2', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn1T',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' T-μT(℃) <',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn1T', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn1Co2',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' CO2(%) <=',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn1Co2', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn2CoRzl',
- label: '预警等级(Ⅱ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '< CO日增率(%) <=',
- colProps: { span: 12 },
- },
- { field: 'fireWarn2CoRzlStart', label: '', show: false, component: 'Input' },
- { field: 'fireWarn2CoRzlEnd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn2CoZf',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '< CO增幅(μ) <=',
- colProps: { span: 12 },
- },
- { field: 'fireWarn2CoZfStart', label: '', show: false, component: 'Input' },
- { field: 'fireWarn2CoZfEnd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn2CoNd',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '< CO浓度(ppm) <=',
- colProps: { span: 12 },
- },
- { field: 'fireWarn2CoNdStart', label: '', show: false, component: 'Input' },
- { field: 'fireWarn2CoNdEnd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn2T',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '<= T-μT(℃) <=',
- colProps: { span: 12 },
- },
- { field: 'fireWarn2TStart', label: '', show: false, component: 'Input' },
- { field: 'fireWarn2TEnd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn2Co2',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' CO2(%) <',
- colProps: { span: 12, style: 'margin-right: 1px' },
- },
- {
- field: 'fireWarn3CoRzl',
- label: '预警等级(Ⅲ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '< CO日增率(%) <=',
- colProps: { span: 12 },
- },
- { field: 'fireWarn3CoRzlStart', label: '', show: false, component: 'Input' },
- { field: 'fireWarn3CoRzlEnd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn3CoZf',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '< CO增幅(μ) <=',
- colProps: { span: 12 },
- },
- { field: 'fireWarn3CoZfStart', label: '', show: false, component: 'Input' },
- { field: 'fireWarn3CoZfEnd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn3CoNd',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '<= CO浓度(ppm) <=',
- colProps: { span: 12 },
- },
- { field: 'fireWarn3CoNdStart', label: '', show: false, component: 'Input' },
- { field: 'fireWarn3CoNdEnd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn3T',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeNumber',
- /** 借用 */
- groupName: '< T-μT(℃) <=',
- colProps: { span: 12 },
- },
- { field: 'fireWarn3TStart', label: '', show: false, component: 'Input' },
- { field: 'fireWarn3TEnd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn3Co2',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' CO2(%) <',
- colProps: { span: 12, style: 'margin-right: 1px' },
- },
- {
- field: 'fireWarn4CoRzl',
- label: '预警等级(Ⅳ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputLowerNumber',
- /** 借用 */
- groupName: '< CO日增率(%) ',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn4CoRzl', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn4CoZf',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputLowerNumber',
- /** 借用 */
- groupName: '< CO增幅(μ) ',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn4CoZf', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn4CoNd',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputLowerNumber',
- /** 借用 */
- groupName: '< CO浓度(ppm) ',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn4CoNd', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn4T',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputLowerNumber',
- /** 借用 */
- groupName: '< T-μT(℃) ',
- colProps: { span: 12 },
- },
- // { field: 'fireWarn4T', label: '', show: false, component: 'Input' },
- {
- field: 'fireWarn4Co2',
- label: ' ',
- suffix: '',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputLowerNumber',
- /** 借用 */
- groupName: '<= CO2(%) ',
- colProps: { span: 12 },
- },
- {
- field: 'm3',
- label: '火区密闭启封判定模型',
- // labelWidth: 110,
- component: 'Divider',
- },
- // { field: 'ycWarn4', label: '', show: false, component: 'Input' },
- {
- field: 'openWarn1',
- label: '预警等级(Ⅰ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' 空气温度(℃) <',
- colProps: { span: 12 },
- },
- {
- field: 'openWarn2',
- label: '预警等级(Ⅱ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' 氧气浓度(%) <',
- colProps: { span: 12 },
- },
- {
- field: 'openWarn3',
- label: '预警等级(Ⅲ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' 不含甲烷、乙烯、CO浓度(%) <',
- colProps: { span: 12 },
- },
- {
- field: 'openWarn4',
- label: '预警等级(Ⅳ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputGreaterNumber',
- /** 借用 */
- groupName: ' 出水温度(℃) <',
- colProps: { span: 12 },
- },
- {
- field: 'openWarn5',
- label: '预警等级(Ⅴ):',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputLowerNumber',
- /** 借用 */
- groupName: '< 指标稳定时长(天) ',
- colProps: { span: 12 },
- },
- ];
- export const goafAlarmModel = {
- ch4Val: {
- alarmField: 'ch4Val',
- lowerLimit: undefined,
- upperLimit: undefined,
- },
- o2Val: {
- alarmField: 'o2Val',
- lowerLimit: undefined,
- upperLimit: undefined,
- },
- coVal: {
- alarmField: 'coVal',
- lowerLimit: undefined,
- upperLimit: undefined,
- },
- co2Val: {
- alarmField: 'co2Val',
- lowerLimit: undefined,
- upperLimit: undefined,
- },
- c2h4Val: {
- alarmField: 'c2h4Val',
- lowerLimit: undefined,
- upperLimit: undefined,
- },
- c2h2Val: {
- alarmField: 'c2h2Val',
- lowerLimit: undefined,
- upperLimit: undefined,
- },
- sourcePressure: {
- alarmField: 'sourcePressure',
- lowerLimit: undefined,
- upperLimit: undefined,
- },
- temperature: {
- alarmField: 'temperature',
- lowerLimit: undefined,
- upperLimit: undefined,
- },
- };
- export const schemasGoafLimit: FormSchema[] = [
- {
- field: 'ch4Val',
- label: '甲烷',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeGoaf',
- defaultValue: goafAlarmModel.ch4Val,
- /** 借用 */
- groupName: '下限 - 上限',
- colProps: { span: 12 },
- },
- {
- field: 'o2Val',
- label: '氧气',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeGoaf',
- defaultValue: goafAlarmModel.o2Val,
- /** 借用 */
- groupName: '下限 - 上限',
- colProps: { span: 12 },
- },
- {
- field: 'coVal',
- label: '一氧化碳',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeGoaf',
- defaultValue: goafAlarmModel.coVal,
- /** 借用 */
- groupName: '下限 - 上限',
- colProps: { span: 12 },
- },
- {
- field: 'co2Val',
- label: '二氧化碳',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeGoaf',
- defaultValue: goafAlarmModel.co2Val,
- /** 借用 */
- groupName: '下限 - 上限',
- colProps: { span: 12 },
- },
- {
- field: 'c2h4Val',
- label: '乙烯',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeGoaf',
- defaultValue: goafAlarmModel.c2h4Val,
- /** 借用 */
- groupName: '下限 - 上限',
- colProps: { span: 12 },
- },
- {
- field: 'c2h2Val',
- label: '乙炔',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeGoaf',
- defaultValue: goafAlarmModel.c2h2Val,
- /** 借用 */
- groupName: '下限 - 上限',
- colProps: { span: 12 },
- },
- {
- field: 'sourcePressure',
- label: '压差',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeGoaf',
- defaultValue: goafAlarmModel.sourcePressure,
- /** 借用 */
- groupName: '下限 - 上限',
- colProps: { span: 12 },
- },
- {
- field: 'temperature',
- label: '温度',
- labelWidth: 118,
- component: 'Input',
- slot: 'InputRangeGoaf',
- defaultValue: goafAlarmModel.temperature,
- /** 借用 */
- groupName: '下限 - 上限',
- colProps: { span: 12 },
- },
- ];
|