| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- import { BasicColumn } from '/@/components/Table/src/types/table';
- import { EyeOutlined } from '@ant-design/icons-vue';
- import { h } from 'vue';
- /**
- * 密闭统计表格列配置
- */
- export function getClosedStatisticsColumns(): BasicColumn[] {
- return [
- {
- title: '序号',
- // dataIndex: 'code',
- align: 'center',
- customRender: ({ index }: { index: number }) => `${index + 1}`,
- },
- {
- title: '区域',
- dataIndex: 'name',
- align: 'center',
- // width: 80,
- },
- {
- title: '密闭总数',
- dataIndex: 'mbStatusNum',
- align: 'center',
- },
- {
- title: '正常生产',
- dataIndex: 'mbStatusNum0',
- align: 'center',
- },
- {
- title: '拟建矿井',
- dataIndex: 'mbStatusNum1',
- align: 'center',
- },
- {
- title: '正常建设',
- dataIndex: 'mbStatusNum2',
- align: 'center',
- },
- {
- title: '自行停产',
- dataIndex: 'mbStatusNum3',
- align: 'center',
- },
- {
- title: '正在关闭',
- dataIndex: 'mbStatusNum4',
- align: 'center',
- },
- {
- title: '责令停产',
- dataIndex: 'mbStatusNum5',
- align: 'center',
- },
- {
- title: '责令停止',
- dataIndex: 'mbStatusNum6',
- align: 'center',
- },
- {
- title: '已关闭',
- dataIndex: 'mbStatusNum7',
- align: 'center',
- },
- {
- title: '长期停产',
- dataIndex: 'mbStatusNum8',
- align: 'center',
- },
- {
- title: '长期停建',
- dataIndex: 'mbStatusNum9',
- align: 'center',
- },
- {
- title: '停产整改',
- dataIndex: 'mbStatusNum10',
- align: 'center',
- },
- {
- title: '长期停建(失联)',
- dataIndex: 'mbStatusNum11',
- align: 'center',
- width: 140,
- },
- {
- title: '停建整改',
- dataIndex: 'mbStatusNum12',
- align: 'center',
- },
- {
- title: '自行停建',
- dataIndex: 'mbStatusNum13',
- align: 'center',
- },
- {
- title: '正在关闭',
- dataIndex: 'mbStatusNum14',
- align: 'center',
- },
- {
- title: '其他',
- dataIndex: 'mbStatusNumQt',
- align: 'center',
- },
- {
- title: '操作',
- dataIndex: 'operation',
- align: 'center',
- // 渲染“查看”图标(匹配图片中的眼睛按钮)
- customRender: () => h(EyeOutlined, { style: { cursor: 'pointer' }, onClick: () => alert('查看详情') }),
- },
- ];
- }
|