微调
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user