| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- import { BasicColumn } from '/@/components/Table';
- export const columns: BasicColumn[] = [
- {
- title: '序号',
- width: 60,
- align: 'center',
- customRender: ({ index }: { index: number }) => `${index + 1}`
- },
- {
- title: '巡检卡ID',
- dataIndex: 'id',
- key: 'id',
- align: 'center',
- },
- {
- title: '地点',
- dataIndex: 'strInstallPos',
- key: 'strInstallPos',
- align: 'center',
- },
- {
- title: '巡检人',
- children: [
- {
- title: '早班',
- dataIndex: 'nameEarly',
- key: 'nameEarly',
- align: 'center',
- },
- {
- title: '中班',
- dataIndex: 'nameNoon',
- key: 'nameNoon',
- align: 'center',
- },
- {
- title: '晚班',
- dataIndex: 'nameNight',
- key: 'nameNight',
- align: 'center',
- },
- ],
- },
- {
- title: '是否巡检',
- children: [
- {
- title: '',
- dataIndex: 'insType',
- key: 'insType',
- align: 'center',
- },
- {
- title: '早班',
- dataIndex: 'morning',
- key: 'morning',
- align: 'center',
- },
- {
- title: '中班',
- dataIndex: 'afterNoon',
- key: 'afterNoon',
- align: 'center',
- },
- {
- title: '晚班',
- dataIndex: 'evening',
- key: 'eevening',
- align: 'center',
- },
- ],
- },
- {
- title: '操作',
- dataIndex: 'action',
- width: 250,
- align: 'center',
- slots: { customRender: 'action' },
- },
- ];
- export const columnsTask: BasicColumn[] = ([
- {
- title: '序号',
- width: 60,
- align: 'center',
- customRender: ({ index }: { index: number }) => `${index + 1}`
- },
- {
- title: '所属队别',
- dataIndex: 'name',
- key: 'name',
- align: 'center',
- },
- {
- title: '早班巡检',
- dataIndex: 'accountEarly',
- key: 'accountEarly',
- align: 'center',
- },
- {
- title: '中班巡检',
- dataIndex: 'accountNoon',
- key: 'accountNoon',
- align: 'center',
- },
- {
- title: '晚班巡检',
- dataIndex: 'accountNight',
- key: 'accountNight',
- align: 'center',
- },
- {
- title: '操作',
- dataIndex: 'action',
- width: 120,
- align: 'center',
- slots: { customRender: 'action' },
- },
- ])
- //分页参数
- export const pagination = {
- current: 1, // 当前页码
- pageSize: 10, // 每页显示条数
- total: 0, // 总条目数,后端返回
- // showTotal: (total, range) => `${range[0]}-${range[1]} 条,总共 ${total} 条`, // 分页右下角显示信息
- showSizeChanger: true, // 是否可改变每页显示条数
- pageSizeOptions: ['10', '20', '50'], // 可选的每页显示条数
- };
|