| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- 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: 'id',
- align: 'center',
- },
- {
- title: '区域',
- dataIndex: 'region',
- align: 'center',
- // width: 80,
- },
- {
- title: '密闭总数',
- dataIndex: 'closedTotal',
- align: 'center',
- },
- {
- title: '正常生产',
- dataIndex: 'normalProduce',
- align: 'center',
- },
- {
- title: '正常建设',
- dataIndex: 'normalBuild',
- align: 'center',
- },
- {
- title: '拟建矿井',
- dataIndex: 'toRetireMine',
- align: 'center',
- },
- {
- title: '自行停产',
- dataIndex: 'selfStopProduce',
- align: 'center',
- },
- {
- title: '自行停建',
- dataIndex: 'selfStopBuild',
- align: 'center',
- },
- {
- title: '责令停止整顿',
- dataIndex: 'orderStopRectify',
- align: 'center',
- },
- {
- title: '责令停止建设',
- dataIndex: 'orderStopBuild',
- align: 'center',
- },
- {
- title: '停产整改',
- dataIndex: 'stopProduceRectify',
- align: 'center',
- },
- {
- title: '停建整改',
- dataIndex: 'stopBuildRectify',
- align: 'center',
- },
- {
- title: '长期停产',
- dataIndex: 'longTermStopProduce',
- align: 'center',
- },
- {
- title: '长期停建',
- dataIndex: 'longTermStopBuild',
- align: 'center',
- },
- {
- title: '长期停建(失联)',
- dataIndex: 'longTermClose',
- width: 180,
- align: 'center',
- },
- {
- title: '操作',
- dataIndex: 'operation',
- align: 'center',
- // 渲染“查看”图标(匹配图片中的眼睛按钮)
- customRender: () => h(EyeOutlined, { style: { cursor: 'pointer' }, onClick: () => alert('查看详情') }),
- },
- ];
- }
- export const tableMockData = [
- {
- id: '101',
- region: '执法一处',
- closedTotal: 140,
- normalProduce: 10,
- normalBuild: 10,
- toRetireMine: 10,
- selfStopProduce: 10,
- selfStopBuild: 10,
- orderStopRectify: 10,
- orderStopBuild: 10,
- stopProduceRectify: 10,
- stopBuildRectify: 10,
- longTermStopProduce: 10,
- longTermStopBuild: 10,
- longTermClose: 10,
- },
- {
- id: '102',
- region: '执法二处',
- closedTotal: 140,
- normalProduce: 10,
- normalBuild: 10,
- toRetireMine: 10,
- selfStopProduce: 10,
- selfStopBuild: 10,
- orderStopRectify: 10,
- orderStopBuild: 10,
- stopProduceRectify: 10,
- stopBuildRectify: 10,
- longTermStopProduce: 10,
- longTermStopBuild: 10,
- longTermClose: 10,
- },
- {
- id: '103',
- region: '执法三处',
- closedTotal: 140,
- normalProduce: 10,
- normalBuild: 10,
- toRetireMine: 10,
- selfStopProduce: 10,
- selfStopBuild: 10,
- orderStopRectify: 10,
- orderStopBuild: 10,
- stopProduceRectify: 10,
- stopBuildRectify: 10,
- longTermStopProduce: 10,
- longTermStopBuild: 10,
- longTermClose: 10,
- },
- {
- id: '104',
- region: '执法四处',
- closedTotal: 140,
- normalProduce: 10,
- normalBuild: 10,
- toRetireMine: 10,
- selfStopProduce: 10,
- selfStopBuild: 10,
- orderStopRectify: 10,
- orderStopBuild: 10,
- stopProduceRectify: 10,
- stopBuildRectify: 10,
- longTermStopProduce: 10,
- longTermStopBuild: 10,
- longTermClose: 10,
- },
- {
- id: '105',
- region: '执法五处',
- closedTotal: 140,
- normalProduce: 10,
- normalBuild: 10,
- toRetireMine: 10,
- selfStopProduce: 10,
- selfStopBuild: 10,
- orderStopRectify: 10,
- orderStopBuild: 10,
- stopProduceRectify: 10,
- stopBuildRectify: 10,
- longTermStopProduce: 10,
- longTermStopBuild: 10,
- longTermClose: 10,
- },
- {
- id: '107',
- region: '执法七处',
- closedTotal: 140,
- normalProduce: 10,
- normalBuild: 10,
- toRetireMine: 10,
- selfStopProduce: 10,
- selfStopBuild: 10,
- orderStopRectify: 10,
- orderStopBuild: 10,
- stopProduceRectify: 10,
- stopBuildRectify: 10,
- longTermStopProduce: 10,
- longTermStopBuild: 10,
- longTermClose: 10,
- },
- ]
|