Commit 4c9a96c6 by fanyj

tijiao

parent 9e7a38dc
...@@ -19,7 +19,7 @@ const AssetBrowse = (props) => { ...@@ -19,7 +19,7 @@ const AssetBrowse = (props) => {
const [ nodeParams, setNodeParams ] = useState({ centerId: null, expandId: '', nodeType: '' }); const [ nodeParams, setNodeParams ] = useState({ centerId: null, expandId: '', nodeType: '' });
const [ expandTree, setExpandTree ] = useState(true); const [ expandTree, setExpandTree ] = useState(true);
const [ expandRelation, setExpandRelation ] = useState(true); const [ expandRelation, setExpandRelation ] = useState(false);
const [ assetCount, setAssetCount ] = useState(0); const [ assetCount, setAssetCount ] = useState(0);
const [ resizeRelation, setResizeRelation ] = useState(false); const [ resizeRelation, setResizeRelation ] = useState(false);
const [ assetFullScreen, setAssetFullScreen ] = useState(false); const [ assetFullScreen, setAssetFullScreen ] = useState(false);
......
...@@ -24,7 +24,7 @@ const CodeInput = ({ value = '', onChange, restrict = false, action }) => { ...@@ -24,7 +24,7 @@ const CodeInput = ({ value = '', onChange, restrict = false, action }) => {
return <Input return <Input
placeholder="请输入编号(只允许输入大写英文字母,并且最多3个)" placeholder="请输入编号(只允许输入大写英文字母,并且最多3个)"
disabled={action!=='add'} //disabled={action!=='add'}
maxLength={restrict?3:null} maxLength={restrict?3:null}
value={value} value={value}
onChange={onCodeChange} onChange={onCodeChange}
...@@ -260,7 +260,17 @@ const UpdateDirectoryModal = (props) => { ...@@ -260,7 +260,17 @@ const UpdateDirectoryModal = (props) => {
</Radio.Group> </Radio.Group>
</Form.Item> </Form.Item>
} }
{ <Form.Item
label="编号"
name="code"
rules={[{ required: true, message: '必填项' }]}
style={{ marginBottom }}
>
{
(action==='detail') ? <span>{dir?.code}</span> : <CodeInput restrict={codeRestrict} action={action} />
}
</Form.Item>
{/* {
codeRestrict && <Form.Item codeRestrict && <Form.Item
label="编号" label="编号"
name="code" name="code"
...@@ -271,7 +281,7 @@ const UpdateDirectoryModal = (props) => { ...@@ -271,7 +281,7 @@ const UpdateDirectoryModal = (props) => {
(action==='detail') ? <span>{dir?.code}</span> : <CodeInput restrict={codeRestrict} action={action} /> (action==='detail') ? <span>{dir?.code}</span> : <CodeInput restrict={codeRestrict} action={action} />
} }
</Form.Item> </Form.Item>
} } */}
<Form.Item <Form.Item
label="名称" label="名称"
name="name" name="name"
......
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