Commit d7b66e94 by 张恒

fix(ckwz): 修复上级位置字段显示和组件类型问题

- 将上级位置字段的组件类型从 select 改为 tree-select-component
- 添加 customRender 函数处理上级位置字段的显示逻辑
- 优化上级位置字段的渲染,优先显示 parentName 或 parentId
- 移除多余的样式标签结束符 whitespace
parent b1460e44
......@@ -80,13 +80,16 @@ export const columns: BasicColumn[] = [
resizable: true,
dataIndex: 'parentId',
title: '上级位置',
componentType: 'select',
componentType: 'tree-select-component',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
customRender: ({ record }) => {
return record.parentName || record.parentId || '';
},
},
{
......
......@@ -419,4 +419,4 @@
</style>
\ No newline at end of file
</style>
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