Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
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
wangpeng
dinky
Commits
13214ce0
Unverified
Commit
13214ce0
authored
Mar 08, 2024
by
Zzm0809
Committed by
GitHub
Mar 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Optimization] Optimization Env of Select options (#3262)
Co-authored-by:
Zzm0809
<
Zzm0809@users.noreply.github.com
>
parent
cb81b4d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
function.tsx
...rc/pages/DataStudio/RightContainer/JobConfig/function.tsx
+13
-4
No files found.
dinky-web/src/pages/DataStudio/RightContainer/JobConfig/function.tsx
View file @
13214ce0
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
*/
*/
import
{
TagAlignLeft
}
from
'@/components/StyledComponents'
;
import
{
TagAlignLeft
}
from
'@/components/StyledComponents'
;
import
{
getTabIcon
}
from
'@/pages/DataStudio/MiddleContainer/function'
;
import
{
getAlertIcon
}
from
'@/pages/RegCenter/Alert/AlertInstance/function'
;
import
{
getAlertIcon
}
from
'@/pages/RegCenter/Alert/AlertInstance/function'
;
import
{
RUN_MODE
}
from
'@/services/constants'
;
import
{
RUN_MODE
}
from
'@/services/constants'
;
import
{
Alert
,
ALERT_TYPE
,
Cluster
}
from
'@/types/RegCenter/data.d'
;
import
{
Alert
,
ALERT_TYPE
,
Cluster
}
from
'@/types/RegCenter/data.d'
;
...
@@ -147,7 +148,12 @@ export const buildClusterConfigOptions = (
...
@@ -147,7 +148,12 @@ export const buildClusterConfigOptions = (
export
const
buildEnvOptions
=
(
env
:
TaskInfo
[]
=
[])
=>
{
export
const
buildEnvOptions
=
(
env
:
TaskInfo
[]
=
[])
=>
{
const
envList
:
DefaultOptionType
[]
=
[
const
envList
:
DefaultOptionType
[]
=
[
{
{
label
:
l
(
'button.disable'
),
label
:
(
<
Space
>
<
Badge
status=
'error'
/>
{
l
(
'button.disable'
)
}
</
Space
>
),
value
:
-
1
,
value
:
-
1
,
key
:
-
1
key
:
-
1
}
}
...
@@ -156,9 +162,12 @@ export const buildEnvOptions = (env: TaskInfo[] = []) => {
...
@@ -156,9 +162,12 @@ export const buildEnvOptions = (env: TaskInfo[] = []) => {
for
(
const
item
of
env
)
{
for
(
const
item
of
env
)
{
const
tag
=
(
const
tag
=
(
<
TagAlignLeft
>
<
TagAlignLeft
>
{
item
.
enabled
?
<
Badge
status=
'success'
/>
:
<
Badge
status=
'error'
/>
}
<
Space
size=
{
'small'
}
>
{
item
.
fragment
?
<
PaperClipOutlined
/>
:
undefined
}
{
item
.
enabled
?
<
Badge
status=
'success'
/>
:
<
Badge
status=
'error'
/>
}
{
item
.
name
}
{
getTabIcon
(
item
.
dialect
,
20
)
}
{
item
.
name
}
{
item
.
fragment
?
<
PaperClipOutlined
/>
:
undefined
}
</
Space
>
</
TagAlignLeft
>
</
TagAlignLeft
>
);
);
...
...
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