Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
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
zhaowei
dlink
Commits
4592269a
Commit
4592269a
authored
May 27, 2022
by
zhu-mingye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 **数据开发** 页面 数据源 && 元数据 的别名为空的问题
parent
cf2db300
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
index.tsx
...components/Studio/StudioLeftTool/StudioDataBase/index.tsx
+1
-1
index.tsx
...components/Studio/StudioLeftTool/StudioMetaData/index.tsx
+4
-4
No files found.
dlink-web/src/components/Studio/StudioLeftTool/StudioDataBase/index.tsx
View file @
4592269a
...
...
@@ -31,7 +31,7 @@ const StudioDataBase = (props: any) => {
key
:
"alias"
,
sorter
:
true
,
render
:
(
dom
,
entity
)
=>
{
return
<
a
onClick=
{
()
=>
setRow
(
entity
)
}
>
{
dom
}
</
a
>;
return
<
a
onClick=
{
()
=>
setRow
(
entity
)
}
>
{
entity
.
alias
===
""
?
entity
.
name
:
entity
.
alias
}
</
a
>;
},
}];
};
...
...
dlink-web/src/components/Studio/StudioLeftTool/StudioMetaData/index.tsx
View file @
4592269a
...
...
@@ -55,9 +55,9 @@ const StudioMetaData = (props: any) => {
};
const
getDataBaseOptions
=
()
=>
{
return
<>
{
database
.
map
(({
id
,
alias
,
type
,
enabled
})
=>
(
<
Option
value=
{
id
}
label=
{
<><
Tag
color=
{
enabled
?
"processing"
:
"error"
}
>
{
type
}
</
Tag
>
{
alias
}
</>
}
>
<
Tag
color=
{
enabled
?
"processing"
:
"error"
}
>
{
type
}
</
Tag
>
{
alias
}
return
<>
{
database
.
map
(({
id
,
name
,
alias
,
type
,
enabled
})
=>
(
<
Option
value=
{
id
}
label=
{
<><
Tag
color=
{
enabled
?
"processing"
:
"error"
}
>
{
type
}
</
Tag
>
{
alias
===
""
?
name
:
alias
}
</>
}
>
<
Tag
color=
{
enabled
?
"processing"
:
"error"
}
>
{
type
}
</
Tag
>
{
alias
===
""
?
name
:
alias
}
</
Option
>
))
}
</>
};
...
...
@@ -77,7 +77,7 @@ const StudioMetaData = (props: any) => {
return
(
<>
<
Select
// style={{width: '10
0%'}}
style=
{
{
width
:
'9
0%'
}
}
placeholder=
"选择数据源"
optionLabelProp=
"label"
onChange=
{
onChangeDataBase
}
...
...
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