Files
template-10561/src/views/pwl/pwlProject/components/data/table2Columns.ts
b2894lxlx d8b4cba12d 1、审计内容里的操作功能优化
2、审计内容9增加一个表的内容生成
3、添加取证单弹窗
2026-01-13 12:23:55 +08:00

63 lines
1.3 KiB
TypeScript

// 创建测试结果渲染函数
export function createTestResultRender() {
return ({ text }) => {
if (text === '通过') return '<span style="color: #52c41a">通过</span>';
if (text === '不通过') return '<span style="color: #ff4d4f">不通过</span>';
return text || '待检查';
};
}
// 审计内容2表格列
export const strategyAuditColumns = [
{
title: '序号',
dataIndex: 'index',
key: 'index',
width: 60,
align: 'center'
},
{
title: '审计内容',
dataIndex: 'auditContent',
key: 'auditContent',
width: 150,
align: 'center',
// ellipsis: true
},
{
title: '检查的证据及测试内容',
dataIndex: 'checkEvidence',
key: 'checkEvidence',
width: 350,
align: 'center',
// ellipsis: true
},
{
title: '测试结果',
dataIndex: 'testResult',
key: 'testResult',
width: 100,
align: 'center',
customRender: createTestResultRender()
},
{
title: '工作底稿索引',
dataIndex: 'workPaperIndex',
key: 'workPaperIndex',
width: 200,
align: 'center',
// ellipsis: true
},
// {
// title: '操作',
// key: 'action',
// width: 100,
// align: 'center'
// }
];
export default {
strategyAuditColumns,
createTestResultRender
};