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}
formRef={formRef}
destroyOnClose
initialValues={data || null}
initialValues={depModalType === 'edit' ? data : null}
>
<ProFormText
name={['name']}

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

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

Loading…
Cancel
Save