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
7acb4073
Commit
7acb4073
authored
Dec 22, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产详情内容上移
parent
2a85c39b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
44 deletions
+37
-44
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+36
-44
AssetDetailDrawer.jsx
src/view/Manage/AssetManage/Component/AssetDetailDrawer.jsx
+1
-0
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
7acb4073
...
@@ -977,7 +977,42 @@ const AssetAction = (props) => {
...
@@ -977,7 +977,42 @@ const AssetAction = (props) => {
}}
}}
>
>
<Spin spinning={loading}>
<Spin spinning={loading}>
<div className='flex' style={{ justifyContent: 'right' }}>
{
(action!=='add' && (id||'')!=='') && <div>
<div className='mb-3'>
<Descriptions column={1}>
<Descriptions.Item
label={<div className='title-text' style={{ textAlign: 'right', width: 90 }}>资产目录路径</div>}
style={{ paddingBottom: 0 }}
>
<div className='flex' style={{ flexDirection: 'column' }}>
{
(assetPaths||[]).map((item, key) => {
return (
<a key={key} onClick={() => { jumpToPath(item); }}>
<span>{item?.dataAssetName||''}</span>
</a>
);
})
}
</div>
</Descriptions.Item>
</Descriptions>
</div>
</div>
}
<Form form={form} onValuesChange={onValuesChange}>
<div className='flex mb-3' style={{ justifyContent: 'space-between', alignItems: 'center' }}>
<Radio.Group buttonStyle='solid' value={currentAttribute} onChange={(e) => {
setCurrentAttribute(e.target.value)
}}>
{
(attributes??[]).map((item,key) => (
<Radio.Button key={key} value={item}>{item}</Radio.Button>
))
}
</Radio.Group>
<Space>
<Space>
{
{
(!readonly && (reference===AssetManageReference||canEdit)) && <React.Fragment>
(!readonly && (reference===AssetManageReference||canEdit)) && <React.Fragment>
...
@@ -1021,48 +1056,6 @@ const AssetAction = (props) => {
...
@@ -1021,48 +1056,6 @@ const AssetAction = (props) => {
</Space>
</Space>
</div>
</div>
{
{
(action!=='add' && (id||'')!=='') && <div>
<div className='pl-common py-compact-common'>
<Descriptions column={1}>
<Descriptions.Item
label={<div className='title-text' style={{ textAlign: 'right', width: 90 }}>资产目录路径</div>}
style={{ paddingBottom: 0 }}
>
<div className='flex' style={{ flexDirection: 'column' }}>
{
(assetPaths||[]).map((item, key) => {
return (
<a key={key} onClick={() => { jumpToPath(item); }}>
<span>{item?.dataAssetName||''}</span>
</a>
);
})
}
</div>
</Descriptions.Item>
</Descriptions>
</div>
</div>
}
{/* <div
style={{
flex: 1,
overflow: 'auto',
}}
> */}
<Form form={form} onValuesChange={onValuesChange}>
<Radio.Group buttonStyle='solid' className='mb-3' value={currentAttribute} onChange={(e) => {
setCurrentAttribute(e.target.value)
}}>
{
(attributes??[]).map((item,key) => (
<Radio.Button key={key} value={item}>{item}</Radio.Button>
))
}
</Radio.Group>
{
attributes?.map((attribute, index) => {
attributes?.map((attribute, index) => {
return <div key={index} style={{ display: (attribute===currentAttribute)?'':'none' }}>
return <div key={index} style={{ display: (attribute===currentAttribute)?'':'none' }}>
<Descriptions column={1} bordered>
<Descriptions column={1} bordered>
...
@@ -1136,7 +1129,6 @@ const AssetAction = (props) => {
...
@@ -1136,7 +1129,6 @@ const AssetAction = (props) => {
</Form>
</Form>
</Spin>
</Spin>
{/* </div> */}
<div>
<div>
<Divider orientation='left'>字段级资产目录信息</Divider>
<Divider orientation='left'>字段级资产目录信息</Divider>
...
...
src/view/Manage/AssetManage/Component/AssetDetailDrawer.jsx
View file @
7acb4073
...
@@ -15,6 +15,7 @@ const AssetDetailDrawer = (props) => {
...
@@ -15,6 +15,7 @@ const AssetDetailDrawer = (props) => {
width=
'80%'
width=
'80%'
placement=
"right"
placement=
"right"
closable=
{
true
}
closable=
{
true
}
bodyStyle=
{
{
padding
:
'15px'
}
}
destroyOnClose
destroyOnClose
onClose=
{
()
=>
{
onClose=
{
()
=>
{
onCancel
&&
onCancel
();
onCancel
&&
onCancel
();
...
...
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