Commit caf93cb4 authored by 皮倩雯's avatar 皮倩雯

fix: '修复巡检反馈报错'

parent 435ac045
Pipeline #81047 passed with stages
......@@ -112,9 +112,17 @@ const patrolFeedback = () => {
title: '巡检类型',
dataIndex: 'inspectionType',
key: 'inspectionType',
onCell: () => ({
style: {
minWidth: 100,
},
}),
render: record => {
let arr = record?.split(',').filter(i => i !== '');
return arr.map(item => <Tag color="green">{item}</Tag>);
if (arr) {
return arr?.map(item => <Tag color="green">{item}</Tag>);
}
return <span>-</span>;
},
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment