This commit is contained in:
sjl
2024-11-05 11:23:38 +08:00
parent c0fcba6a25
commit 7f8aeebb1e
6 changed files with 148 additions and 71 deletions

View File

@@ -107,6 +107,16 @@
prop: 'statMethod',
label: '数据统计类型',
width: 180,
render: (row) => {
const methods = row.statMethod || []; // 确保statMethod存在
if (methods.length === 0) {
return '/'; // 空值时显示/
} else if (methods.length > 2) {
return methods.join(', '); // 超过两个用逗号分隔
} else {
return methods.join(' '); // 少于等于两个时用空格分隔
}
},
},
{
prop: 'classId',