From 07ff08d0316e1af314649b16742ac03f6dc3909b Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 09 九月 2024 16:29:44 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/user/UserCreate.jsx | 37 +++++-------------------------------- 1 files changed, 5 insertions(+), 32 deletions(-) diff --git a/zy-acs-flow/src/page/user/UserCreate.jsx b/zy-acs-flow/src/page/user/UserCreate.jsx index 27ae515..04e888d 100644 --- a/zy-acs-flow/src/page/user/UserCreate.jsx +++ b/zy-acs-flow/src/page/user/UserCreate.jsx @@ -30,6 +30,7 @@ import DialogCloseButton from "../components/DialogCloseButton"; import StatusSelectInput from "../components/StatusSelectInput"; import MemoInput from "../components/MemoInput"; +import TreeSelectInput from "../components/TreeSelectInput"; const UserCreate = (props) => { const { open, setOpen } = props; @@ -93,13 +94,6 @@ validate={required()} /> </Grid> - {/* <Grid item xs={6} display="flex" gap={1}> - <TextInput - label="table.field.user.password" - source="password" - parse={v => v} - /> - </Grid> */} <Grid item xs={6} display="flex" gap={1}> <TextInput label="table.field.user.nickname" @@ -107,13 +101,6 @@ parse={v => v} /> </Grid> - {/* <Grid item xs={6} display="flex" gap={1}> - <TextInput - label="table.field.user.avatar" - source="avatar" - parse={v => v} - /> - </Grid> */} <Grid item xs={6} display="flex" gap={1}> <TextInput label="table.field.user.code" @@ -146,26 +133,12 @@ parse={v => v} /> </Grid> - {/* <Grid item xs={6} display="flex" gap={1}> - <SelectInput - label="table.field.user.emailVerified" - source="emailVerified" - choices={[ - { id: 0, name: '鍚�' }, - { id: 1, name: '鏄�' }, - ]} - /> - </Grid> */} <Grid item xs={6} display="flex" gap={1}> - <ReferenceInput + <TreeSelectInput + resource="dept" + label="table.field.user.deptId" source="deptId" - reference="dept" - > - <AutocompleteInput - label="table.field.user.deptId" - optionText="name" - /> - </ReferenceInput> + /> </Grid> <Grid item xs={6} display="flex" gap={1}> <TextInput -- Gitblit v1.9.1