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
8f7d1cb0
Commit
8f7d1cb0
authored
Mar 25, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
草稿放开字段编辑
parent
5f6ccbbf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+2
-1
AttributeMaintain.jsx
src/view/Manage/AssetManage/Component/AttributeMaintain.jsx
+14
-7
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
8f7d1cb0
...
@@ -1443,7 +1443,7 @@ const AssetAction = (props) => {
...
@@ -1443,7 +1443,7 @@ const AssetAction = (props) => {
</div>
</div>
<Space style={{ marginLeft: 'auto' }}>
<Space style={{ marginLeft: 'auto' }}>
{
{
!readonly && (reference===AssetManageReference||
(reference!==AssetDraftReference&&canEdit)
) && <React.Fragment>
!readonly && (reference===AssetManageReference||
canEdit
) && <React.Fragment>
{
{
isMetadataEdit ? <React.Fragment>
isMetadataEdit ? <React.Fragment>
<Button onClick={() => {
<Button onClick={() => {
...
@@ -1545,6 +1545,7 @@ const AssetAction = (props) => {
...
@@ -1545,6 +1545,7 @@ const AssetAction = (props) => {
<AttributeMaintain
<AttributeMaintain
visible={attributeMaintainParam.visible}
visible={attributeMaintainParam.visible}
metadataId={attributeMaintainParam.metadataId}
metadataId={attributeMaintainParam.metadataId}
reference={reference}
onCancel={onAttributeMaintainCancel}
onCancel={onAttributeMaintainCancel}
onChange={onAttributeMaintainChange}
onChange={onAttributeMaintainChange}
/>
/>
...
...
src/view/Manage/AssetManage/Component/AttributeMaintain.jsx
View file @
8f7d1cb0
import
React
,
{
useState
,
useEffect
,
useContext
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useContext
,
useMemo
}
from
'react'
;
import
{
Button
,
Upload
,
Drawer
,
Table
,
Pagination
,
Divider
,
Form
,
Typography
,
Select
,
Space
,
Radio
,
Modal
,
Spin
}
from
'antd'
;
import
{
Button
,
Upload
,
Drawer
,
Table
,
Pagination
,
Divider
,
Form
,
Typography
,
Select
,
Space
,
Radio
,
Modal
,
Spin
}
from
'antd'
;
import
{
UploadOutlined
,
DownloadOutlined
}
from
'@ant-design/icons'
;
import
{
UploadOutlined
,
DownloadOutlined
}
from
'@ant-design/icons'
;
...
@@ -6,14 +6,10 @@ import { dispatch } from '../../../../model';
...
@@ -6,14 +6,10 @@ import { dispatch } from '../../../../model';
import
{
showMessage
,
formatDate
}
from
'../../../../util'
;
import
{
showMessage
,
formatDate
}
from
'../../../../util'
;
import
{
AppContext
}
from
'../../../../App'
;
import
{
AppContext
}
from
'../../../../App'
;
import
download
from
'../../../../util/download'
;
import
download
from
'../../../../util/download'
;
import
{
AssetDraftReference
,
AssetManageReference
}
from
'../../../../util/constant'
;
const
catalogs
=
[
{
title
:
'字段级资产目录'
,
key
:
'1'
},
{
title
:
'映射关系'
,
key
:
'2'
},
]
const
FC
=
(
props
)
=>
{
const
FC
=
(
props
)
=>
{
const
{
onCancel
,
onSuccess
,
visible
,
metadataId
,
onChange
}
=
props
;
const
{
onCancel
,
onSuccess
,
visible
,
metadataId
,
onChange
,
reference
}
=
props
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
catalogId
,
setCatalogId
]
=
useState
(
'1'
);
const
[
catalogId
,
setCatalogId
]
=
useState
(
'1'
);
...
@@ -94,6 +90,17 @@ const FC = (props) => {
...
@@ -94,6 +90,17 @@ const FC = (props) => {
//eslint-disable-next-line react-hooks/exhaustive-deps
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
visible
,
pagination
,
catalogId
])
},
[
visible
,
pagination
,
catalogId
])
const
catalogs
=
useMemo
(()
=>
{
if
(
reference
===
AssetDraftReference
)
{
return
[{
title
:
'字段级资产目录'
,
key
:
'1'
}]
}
return
[
{
title
:
'字段级资产目录'
,
key
:
'1'
},
{
title
:
'映射关系'
,
key
:
'2'
},
]
},
[
reference
])
const
getLogs
=
()
=>
{
const
getLogs
=
()
=>
{
setLoading
(
true
);
setLoading
(
true
);
if
(
catalogId
===
'1'
)
{
if
(
catalogId
===
'1'
)
{
...
...
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