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
a448bac9
Commit
a448bac9
authored
Oct 19, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产项
parent
fa76e217
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
24 deletions
+45
-24
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+1
-1
table.jsx
src/view/Manage/AssetResourceManage/table.jsx
+39
-18
Task.jsx
src/view/Manage/MetadataHarvester/Component/Task.jsx
+1
-1
ExpandedModelTable.jsx
src/view/Manage/Model/Component/ExpandedModelTable.jsx
+1
-1
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+1
-1
SuggestTable.jsx
src/view/Manage/Model/Component/SuggestTable.jsx
+1
-1
PartitionCURD.jsx
src/view/Manage/ModelConfig/Component/PartitionCURD.jsx
+1
-1
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
a448bac9
...
...
@@ -69,7 +69,7 @@ const AssetItem = (props) => {
return
(
<
Tooltip
overlayClassName=
'tooltip-common'
title=
{
(
typeof
metadata
===
'string'
)
?
(
content
||
''
)
:
<
div
style=
{
{
width
:
500
,
maxHeight
:
300
,
overflow
:
'auto'
}
}
>
title=
{
(
typeof
metadata
===
'string'
)
?
(
content
||
''
)
:
<
div
style=
{
{
width
:
500
}
}
>
<
Table
dataSource=
{
metadata
?.
columnItems
||
[]
}
columns=
{
cols
}
...
...
src/view/Manage/AssetResourceManage/table.jsx
View file @
a448bac9
...
...
@@ -1392,6 +1392,13 @@ const MetadataColumnTooltipTitle = ({ data }) => {
return (
[
{
title: '序号',
width: 60,
dataIndex: 'index',
ellipsis: true,
render: (_, __, index) => (index+1)
},
{
title: '名称',
width: 160,
dataIndex: 'name',
...
...
@@ -1408,17 +1415,25 @@ const MetadataColumnTooltipTitle = ({ data }) => {
width: 150,
dataIndex: 'typeName',
ellipsis: true,
render: (text, record) => {
let suffix = (record.size!==null&&record.size!==undefined) ? `
(
$
{
record
.
size
})
` : ''
if(record.size && record.decimalDigits){
suffix = `
(
$
{
record
.
size
},
$
{
record
.
decimalDigits
})
`
}
return `
$
{
text
}
$
{
suffix
}
`
}
},
{
title: '是否允许为空',
dataIndex: 'isNullable',
width: 1
0
0,
width: 1
2
0,
ellipsis: true,
},
{
title: '是否为主键',
dataIndex: 'isPrimaryKey',
width: 1
0
0,
width: 1
2
0,
ellipsis: true,
},
]
...
...
@@ -1458,20 +1473,26 @@ const MetadataColumnTooltipTitle = ({ data }) => {
}
return (
<div style={{ maxHeight: 300, overflow: 'auto' }}>
<div className='mb-2'>
<Select
value={currentMetadataId}
onChange={(value) => {
setMetadataId(value)
}}
style={{ width: 170 }}
>
{
(data??[]).map((item, index) => <Select.Option value={item.metadataId} key={index}>{item.enName}</Select.Option>)
}
</Select>
</div>
<div>
{
((data??[]).length > 1) && <div className='mb-2'>
<Select
value={currentMetadataId}
onChange={(value) => {
setMetadataId(value)
}}
style={{ width: 170 }}
dropdownStyle={{
zIndex: 1100
}}
>
{
(data??[]).map((item, index) => <Select.Option value={item.metadataId} key={index}>{item.enName}</Select.Option>)
}
</Select>
</div>
}
<AntdTable
dataSource={columnData}
columns={cols}
...
...
@@ -1495,7 +1516,7 @@ const MetadataColumn = ({ data }) => {
return []
}, [data])
return (
<React.Fragment>
{
...
...
@@ -1506,7 +1527,7 @@ const MetadataColumn = ({ data }) => {
<Typography.Text ellipsis={true}>
{decodeData}
</Typography.Text>
</Tooltip> : (
(typeof decodeData === 'object'
) ? <Tooltip
</Tooltip> : (
Array.isArray(decodeData
) ? <Tooltip
overlayClassName='tooltip-common'
title={<MetadataColumnTooltipTitle data={decodeData} />}
>
...
...
src/view/Manage/MetadataHarvester/Component/Task.jsx
View file @
a448bac9
...
...
@@ -94,7 +94,7 @@ const FC = (props) => {
return
(
<
Tooltip
title=
{
<
div
style=
{
{
maxWidth
:
400
,
maxHeight
:
300
,
overflow
:
'auto'
}
}
>
<
div
style=
{
{
maxWidth
:
400
}
}
>
{
text
}
</
div
>
}
...
...
src/view/Manage/Model/Component/ExpandedModelTable.jsx
View file @
a448bac9
...
...
@@ -46,7 +46,7 @@ const ModelNameColumn = (props) => {
let
_textComponent
=
<
span
style=
{
{
color
:
'#000'
}
}
>
{
text
}
</
span
>;
if
(
data
.
digest
)
{
_textComponent
=
<
div
style=
{
{
width
:
500
,
maxHeight
:
300
,
overflow
:
'auto'
}
}
>
_textComponent
=
<
div
style=
{
{
width
:
500
}
}
>
<
Table
rowKey=
'name'
dataSource=
{
data
.
digest
.
attributeDigests
||
[]
}
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
a448bac9
...
...
@@ -88,7 +88,7 @@ const ModelNameColumn = (props) => {
let _textComponent = <span style={{ color: '#000' }}>{text}</span>;
if (data.digest) {
_textComponent = <div
style={{ maxHeight: 300, overflow: 'auto' }}
>
_textComponent = <div>
<Table
rowKey='name'
dataSource={data.digest.attributeDigests||[]}
...
...
src/view/Manage/Model/Component/SuggestTable.jsx
View file @
a448bac9
...
...
@@ -41,7 +41,7 @@ const ResizeableHeaderCell = props => {
const
SourceComponent
=
(
props
)
=>
{
const
{
data
,
onClick
,
name
}
=
props
;
const
moreSourceComponent
=
<
div
style=
{
{
maxWidth
:
400
,
maxHeight
:
300
,
overflow
:
'auto'
}
}
>
const
moreSourceComponent
=
<
div
style=
{
{
maxWidth
:
400
}
}
>
{
(
data
||
[]).
map
((
source
,
index
)
=>
{
return
(
...
...
src/view/Manage/ModelConfig/Component/PartitionCURD.jsx
View file @
a448bac9
...
...
@@ -91,7 +91,7 @@ const PartitionCURD = (props) => {
<
Tooltip
placement=
'topLeft'
title=
{
<
div
style=
{
{
maxWidth
:
400
,
maxHeight
:
300
,
overflow
:
'auto'
}
}
>
<
div
style=
{
{
maxWidth
:
400
}
}
>
{
text
||
''
}
</
div
>
}
...
...
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