89 lines
2.3 KiB
TypeScript
89 lines
2.3 KiB
TypeScript
import { BasicColumn } from '/@/components/Table';
|
|
import { FormSchema } from '/@/components/Table';
|
|
import { rules } from '/@/utils/helper/validator';
|
|
import { render } from '/@/utils/common/renderUtils';
|
|
import { getWeekMonthQuarterYear } from '/@/utils';
|
|
//主列表数据
|
|
export const asyncMaincolumns: BasicColumn[] = [
|
|
{
|
|
title: '同步时间',
|
|
align: 'center',
|
|
dataIndex: 'createTime',
|
|
width: '150px'
|
|
},
|
|
{
|
|
title: '同步人',
|
|
align: 'center',
|
|
dataIndex: 'createBy_dictText',
|
|
width: '120px'
|
|
},
|
|
{
|
|
title: '源平台',
|
|
align: 'center',
|
|
dataIndex: 'orgName',
|
|
width: '150px'
|
|
},
|
|
{
|
|
title: '目标平台',
|
|
align: 'center',
|
|
dataIndex: 'targetOrgName',
|
|
width: '150px',
|
|
customRender: ({ record }) => {
|
|
return record.asyncStatusList?.[0]?.zorgName || '-';
|
|
}
|
|
},
|
|
{
|
|
title: '业务字段',
|
|
align: 'center',
|
|
dataIndex: 'dataStatus',
|
|
width: '120px',
|
|
customRender: ({ record }) => {
|
|
const dataItem = record.asyncStatusList?.find(item => item.code === 'data');
|
|
return dataItem ? (dataItem.status === '200' ? '成功' : '失败') : '-';
|
|
}
|
|
},
|
|
{
|
|
title: '指令资源',
|
|
align: 'center',
|
|
dataIndex: 'fileStatus',
|
|
width: '120px',
|
|
customRender: ({ record }) => {
|
|
const fileItem = record.asyncStatusList?.find(item => item.code === 'file');
|
|
return fileItem ? (fileItem.status === '200' ? '成功' : '失败') : '-';
|
|
}
|
|
},
|
|
];
|
|
//子列表数据
|
|
export const asyncStatusColumns: BasicColumn[] = [
|
|
{
|
|
title: '同步内容',
|
|
align: 'center',
|
|
dataIndex: 'name',
|
|
width:'200px'
|
|
},
|
|
{
|
|
title: '同步状态',
|
|
align: 'center',
|
|
dataIndex: 'status',
|
|
width:'100px'
|
|
},
|
|
{
|
|
title: '同步结果',
|
|
align: 'center',
|
|
dataIndex: 'msg',
|
|
},
|
|
{
|
|
title: '更新时间',
|
|
align: 'center',
|
|
dataIndex: 'updateTime',
|
|
width:'200px'
|
|
},
|
|
];
|
|
// 高级查询数据
|
|
export const superQuerySchema = {
|
|
type: { title: '类型(同步的是什么类型的数据)', order: 0, view: 'text', type: 'string' },
|
|
descr: { title: '备注/描述', order: 1, view: 'text', type: 'string' },
|
|
createBy: { title: '创建人', order: 2, view: 'text', type: 'string' },
|
|
createTime: { title: '创建日期', order: 3, view: 'datetime', type: 'string' },
|
|
};
|