| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- import { BasicColumn } from '/@/components/Table';
- import { FormSchema } from '/@/components/Table';
- import { render } from '/@/utils/common/renderUtils';
- export const columns: BasicColumn[] = [
- {
- title: '主键',
- dataIndex: 'id',
- ifShow: false,
- },
- {
- title: '创建人',
- dataIndex: 'createBy',
- width: 100,
- },
- {
- title: '创建日期',
- dataIndex: 'createTime',
- width: 160,
- // sorter:true,
- },
- {
- title: '文件名称',
- dataIndex: 'fileName',
- width: 160,
- },
- // {
- // title: '文件路径',
- // dataIndex: 'filePath',
- // width: 160,
- // },
- // {
- // title: '所属部门',
- // dataIndex: 'orgCode',
- // width: 160,
- // },
- {
- title: '报表类型',
- dataIndex: 'reportType',
- width: 160,
- customRender: ({ text }) => {
- return render.renderDict(text, 'reportType');
- },
- },
- {
- title: '报表版本',
- dataIndex: 'reportVersion',
- width: 100,
- },
- // {
- // title: '所属矿编号',
- // dataIndex: 'sysOrgCode',
- // width: 100,
- // },
- ];
- // export const searchFormSchema: FormSchema[] = [
- // {
- // label: '报表类型',
- // field: 'reportType',
- // component: 'JDictSelectTag',
- // componentProps: {
- // dictCode: 'reportType',
- // placeholder: '请选择报表类型',
- // },
- // colProps: { span: 6 },
- // },
- // ];
- //报表历史记录
- export const columnsHis: BasicColumn[] = [
- {
- title: '主键',
- dataIndex: 'id',
- ifShow: false,
- },
- {
- title: '创建人',
- dataIndex: 'createBy',
- width: 100,
- },
- {
- title: '创建日期',
- dataIndex: 'createTime',
- width: 160,
- },
- {
- title: '文件名称',
- dataIndex: 'fileName',
- width: 160,
- },
- // {
- // title: '文件路径',
- // dataIndex: 'filePath',
- // width: 160,
- // },
- {
- title: '报表类型',
- dataIndex: 'reportType',
- width: 100,
- },
- {
- title: '报表版本',
- dataIndex: 'reportVersion',
- width: 100,
- },
- ];
- //数据映射报表
- export const columnsMap: BasicColumn[] = [
- {
- title: '序号',
- width: 60,
- align: 'center',
- customRender: ({ index }: { index: number }) => `${index + 1}`,
- },
- {
- title: '所属矿名称',
- dataIndex: 'sysOrgName',
- align: 'center',
- width: 120,
- },
- {
- title: '数据名称',
- dataIndex: 'name',
- align: 'center',
- },
- {
- title: '矿报表单元格',
- dataIndex: 'mineCells',
- align: 'center',
- },
- {
- title: '集团报表单元格所在列',
- dataIndex: 'groupCol',
- align: 'center',
- width: 120,
- },
- {
- title: '集团报表单元格所在行',
- dataIndex: 'groupRow',
- align: 'center',
- width: 120,
- },
- {
- title: '集团报表单元格所在sheet页',
- dataIndex: 'groupSheet',
- align: 'center',
- width: 120,
- },
- {
- title: '是否计算',
- dataIndex: 'isCompute',
- align: 'center',
- width: 120,
- },
- {
- title: ' 计算公式',
- dataIndex: 'formula',
- align: 'center',
- width: 120,
- },
- {
- title: '操作',
- dataIndex: 'action',
- width: 200,
- align: 'center',
- slots: { customRender: 'action' },
- },
- ];
|