Browse Source

新建部门带出上一次编辑数据修复

release_0.0.4
‘lijianhao’ 2 years ago
parent
commit
33210217dc
  1. 2
      web/client/src/sections/organization/components/depModal.js
  2. 2
      web/client/src/sections/organization/components/userModal.js

2
web/client/src/sections/organization/components/depModal.js

@ -30,7 +30,7 @@ const DepModal = (props) => {
onFinish={onFinish} onFinish={onFinish}
formRef={formRef} formRef={formRef}
destroyOnClose destroyOnClose
initialValues={data || null} initialValues={depModalType === 'edit' ? data : null}
> >
<ProFormText <ProFormText
name={['name']} name={['name']}

2
web/client/src/sections/organization/components/userModal.js

@ -45,7 +45,7 @@ const UserModal = (props) => {
label="姓名" label="姓名"
required required
placeholder="请输入姓名" placeholder="请输入姓名"
rules={[{ required: true, message: '请输入姓名' },{ max: 10, message: '请输入10个字以内的名称' }]} rules={[{ required: true, message: '请输入姓名' },{ max: 5, message: '请输入5个字以内的名称' }]}
/> />
< ProFormText < ProFormText
name={['contract', 'phone']} name={['contract', 'phone']}

Loading…
Cancel
Save