Cpte-Vue3/src/views/base/point/Point.data.ts

57 lines
1.1 KiB
TypeScript

import { BasicColumn } from '/@/components/Table';
import { render } from '@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '库区',
align: 'center',
dataIndex: 'areaId_dictText',
},
{
title: '库位编码',
align: 'center',
dataIndex: 'pointCode',
},
{
title: '状态',
align: 'center',
dataIndex: 'status_dictText',
customRender: ({ text }) => {
const color = text == '占用' ? 'red' : text == '空闲' ? 'green' : 'gray';
return render.renderTag(text, color);
},
},
{
title: '巷道编码',
align: 'center',
dataIndex: 'colNum',
},
{
title: '层',
align: 'center',
dataIndex: 'layerNum',
},
{
title: '深位',
align: 'center',
dataIndex: 'rowNum',
},
{
title: '是否启用',
align: 'center',
dataIndex: 'izActive',
},
{
title: '描述',
align: 'center',
dataIndex: 'description',
},
{
title: '创建日期',
align: 'center',
dataIndex: 'createTime',
sorter: true
},
];