Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
4c9a96c6
Commit
4c9a96c6
authored
Mar 20, 2025
by
fanyj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tijiao
parent
9e7a38dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
index.jsx
src/view/Manage/AssetBrowse/index.jsx
+1
-1
UpdateDirectoryModal.jsx
...iew/Manage/AssetManage/Component/UpdateDirectoryModal.jsx
+13
-3
No files found.
src/view/Manage/AssetBrowse/index.jsx
View file @
4c9a96c6
...
@@ -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
(
tru
e
);
const
[
expandRelation
,
setExpandRelation
]
=
useState
(
fals
e
);
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
);
...
...
src/view/Manage/AssetManage/Component/UpdateDirectoryModal.jsx
View file @
4c9a96c6
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment