|
|
@@ -111,9 +111,11 @@ export default function UserPage() {
|
|
|
valueType: 'select',
|
|
|
fieldProps: { options: deptOptions, showSearch: true },
|
|
|
render: (_, r) => {
|
|
|
+ if (!r.deptId)
|
|
|
+ return <span className="text-(--ant-color-text-quaternary) text-xs">无部门</span>;
|
|
|
const dept = deptOptions.find((d) => d.value === r.deptId);
|
|
|
return (
|
|
|
- dept?.label ?? <span className="text-(--ant-color-text-quaternary) text-xs">无</span>
|
|
|
+ dept?.label ?? <span className="text-(--ant-color-text-quaternary) text-xs">无部门</span>
|
|
|
);
|
|
|
},
|
|
|
},
|