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
1a6b2288
Unverified
Commit
1a6b2288
authored
Feb 02, 2023
by
zhu-mingye
Committed by
GitHub
Feb 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: delete cluster config alias (#1603)
* refactor: delete cluster config alias * format code
parent
c5c61b37
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
19 additions
and
45 deletions
+19
-45
ClusterConfiguration.java
...n/src/main/java/org/dinky/model/ClusterConfiguration.java
+0
-5
History.java
dinky-admin/src/main/java/org/dinky/model/History.java
+1
-1
JobInstance.java
dinky-admin/src/main/java/org/dinky/model/JobInstance.java
+1
-1
ClusterConfigurationMapper.xml
.../src/main/resources/mapper/ClusterConfigurationMapper.xml
+1
-5
HistoryMapper.xml
dinky-admin/src/main/resources/mapper/HistoryMapper.xml
+1
-1
JobInstanceMapper.xml
dinky-admin/src/main/resources/mapper/JobInstanceMapper.xml
+1
-1
dinky.sql
dinky-doc/sql/dinky.sql
+0
-1
dinky_ddl.sql
dinky-doc/sql/upgrade/0.8.0_schema/mysql/dinky_ddl.sql
+2
-0
data.d.ts
...c/components/Studio/StudioConsole/StudioHistory/data.d.ts
+1
-1
index.tsx
...c/components/Studio/StudioConsole/StudioHistory/index.tsx
+5
-5
index.tsx
...c/components/Studio/StudioConsole/StudioProcess/index.tsx
+1
-1
index.tsx
...ponents/Studio/StudioRightTool/StudioJarSetting/index.tsx
+1
-1
index.tsx
...s/Studio/StudioRightTool/StudioKubernetesConfig/index.tsx
+1
-1
index.tsx
...components/Studio/StudioRightTool/StudioSetting/index.tsx
+1
-1
pages.ts
dlink-web/src/locales/en-US/pages.ts
+0
-1
pages.ts
dlink-web/src/locales/zh-CN/pages.ts
+0
-1
index.tsx
dlink-web/src/pages/DevOps/JobInstanceTable/index.tsx
+1
-1
data.d.ts
dlink-web/src/pages/DevOps/data.d.ts
+1
-1
ClusterConfigurationForm.tsx
...sterConfiguration/components/ClusterConfigurationForm.tsx
+0
-9
index.tsx
...rationCenter/ClusterManage/ClusterConfiguration/index.tsx
+0
-6
data.d.ts
dlink-web/src/pages/RegistrationCenter/data.d.ts
+0
-1
No files found.
dinky-admin/src/main/java/org/dinky/model/ClusterConfiguration.java
View file @
1a6b2288
...
@@ -25,7 +25,6 @@ import org.dinky.db.model.SuperEntity;
...
@@ -25,7 +25,6 @@ import org.dinky.db.model.SuperEntity;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
...
@@ -49,11 +48,7 @@ public class ClusterConfiguration extends SuperEntity {
...
@@ -49,11 +48,7 @@ public class ClusterConfiguration extends SuperEntity {
private
Integer
tenantId
;
private
Integer
tenantId
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
alias
;
private
String
type
;
private
String
type
;
private
String
configJson
;
private
String
configJson
;
private
Boolean
isAvailable
;
private
Boolean
isAvailable
;
...
...
dinky-admin/src/main/java/org/dinky/model/History.java
View file @
1a6b2288
...
@@ -83,7 +83,7 @@ public class History implements Serializable {
...
@@ -83,7 +83,7 @@ public class History implements Serializable {
private
String
statusText
;
private
String
statusText
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
cluster
Alias
;
private
String
cluster
Name
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
taskAlias
;
private
String
taskAlias
;
...
...
dinky-admin/src/main/java/org/dinky/model/JobInstance.java
View file @
1a6b2288
...
@@ -85,7 +85,7 @@ public class JobInstance implements Serializable {
...
@@ -85,7 +85,7 @@ public class JobInstance implements Serializable {
private
String
type
;
private
String
type
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
cluster
Alias
;
private
String
cluster
Name
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
jobManagerAddress
;
private
String
jobManagerAddress
;
...
...
dinky-admin/src/main/resources/mapper/ClusterConfigurationMapper.xml
View file @
1a6b2288
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
<resultMap
id=
"BaseResultMap"
type=
"org.dinky.model.ClusterConfiguration"
>
<resultMap
id=
"BaseResultMap"
type=
"org.dinky.model.ClusterConfiguration"
>
<id
column=
"id"
property=
"id"
/>
<id
column=
"id"
property=
"id"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"alias"
property=
"alias"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"config_json"
property=
"configJson"
/>
<result
column=
"config_json"
property=
"configJson"
/>
<result
column=
"is_available"
property=
"isAvailable"
/>
<result
column=
"is_available"
property=
"isAvailable"
/>
...
@@ -18,7 +17,7 @@
...
@@ -18,7 +17,7 @@
<!-- 通用查询结果列 -->
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, name,
alias,
type,config_json,is_available,note, enabled, create_time, update_time
id, name, type,config_json,is_available,note, enabled, create_time, update_time
</sql>
</sql>
...
@@ -32,9 +31,6 @@
...
@@ -32,9 +31,6 @@
<if
test=
'param.name!=null and param.name!=""'
>
<if
test=
'param.name!=null and param.name!=""'
>
and a.name like "%${param.name}%"
and a.name like "%${param.name}%"
</if>
</if>
<if
test=
'param.alias!=null and param.alias!=""'
>
and a.alias like "%${param.alias}%"
</if>
<if
test=
'param.createTime!=null and param.createTime!=""'
>
<if
test=
'param.createTime!=null and param.createTime!=""'
>
and a.create_time
<![CDATA[>=]]>
str_to_date( #{param.createTime},'%Y-%m-%d %H:%i:%s')
and a.create_time
<![CDATA[>=]]>
str_to_date( #{param.createTime},'%Y-%m-%d %H:%i:%s')
</if>
</if>
...
...
dinky-admin/src/main/resources/mapper/HistoryMapper.xml
View file @
1a6b2288
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<select
id=
"selectForProTable"
resultType=
"org.dinky.model.History"
>
<select
id=
"selectForProTable"
resultType=
"org.dinky.model.History"
>
select
select
a.*,
a.*,
(select b.
alias FROM dinky_cluster b where b.id=a.cluster_id) as clusterAlias
,
(select b.
name FROM dinky_cluster b where b.id=a.cluster_id) as clusterName
,
(select c.alias FROM dinky_task c where c.id=a.task_id) as taskAlias
(select c.alias FROM dinky_task c where c.id=a.task_id) as taskAlias
from
from
dinky_history a
dinky_history a
...
...
dinky-admin/src/main/resources/mapper/JobInstanceMapper.xml
View file @
1a6b2288
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
select
select
a.*,
a.*,
dh.type as type,
dh.type as type,
(select dc.
alias FROM dinky_cluster dc where dc.id=a.cluster_id) as clusterAlias
(select dc.
name FROM dinky_cluster dc where dc.id=a.cluster_id) as clusterName
from
from
dinky_job_instance a
dinky_job_instance a
<if
test=
'!(param.isHistory!=null and param.isHistory==true)'
>
<if
test=
'!(param.isHistory!=null and param.isHistory==true)'
>
...
...
dinky-doc/sql/dinky.sql
View file @
1a6b2288
...
@@ -143,7 +143,6 @@ CREATE TABLE `dinky_cluster_configuration` (
...
@@ -143,7 +143,6 @@ CREATE TABLE `dinky_cluster_configuration` (
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'ID'
,
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'ID'
,
`tenant_id`
int
(
11
)
NOT
NULL
DEFAULT
1
COMMENT
'tenant id'
,
`tenant_id`
int
(
11
)
NOT
NULL
DEFAULT
1
COMMENT
'tenant id'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'cluster configuration name'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'cluster configuration name'
,
`alias`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'cluster configuration alias'
,
`type`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'cluster type'
,
`type`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'cluster type'
,
`config_json`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
COMMENT
'json of configuration'
,
`config_json`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
COMMENT
'json of configuration'
,
`is_available`
tinyint
(
1
)
NOT
NULL
DEFAULT
0
COMMENT
'is available'
,
`is_available`
tinyint
(
1
)
NOT
NULL
DEFAULT
0
COMMENT
'is available'
,
...
...
dinky-doc/sql/upgrade/0.8.0_schema/mysql/dinky_ddl.sql
View file @
1a6b2288
...
@@ -73,3 +73,4 @@ ALTER TABLE dinky_schema_history RENAME INDEX `dlink_schema_history_s_idx` TO `s
...
@@ -73,3 +73,4 @@ ALTER TABLE dinky_schema_history RENAME INDEX `dlink_schema_history_s_idx` TO `s
ALTER
TABLE
dinky_cluster
DROP
COLUMN
`alias`
;
ALTER
TABLE
dinky_cluster
DROP
COLUMN
`alias`
;
ALTER
TABLE
dinky_fragment
DROP
COLUMN
`alias`
;
ALTER
TABLE
dinky_fragment
DROP
COLUMN
`alias`
;
ALTER
TABLE
dinky_database
DROP
COLUMN
`alias`
;
ALTER
TABLE
dinky_database
DROP
COLUMN
`alias`
;
ALTER
TABLE
dinky_cluster_configuration
DROP
COLUMN
`alias`
;
\ No newline at end of file
dlink-web/src/components/Studio/StudioConsole/StudioHistory/data.d.ts
View file @
1a6b2288
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
export
type
HistoryItem
=
{
export
type
HistoryItem
=
{
id
:
number
;
id
:
number
;
clusterId
:
number
;
clusterId
:
number
;
cluster
Alias
:
string
;
cluster
Name
:
string
;
session
:
string
;
session
:
string
;
jobId
:
string
;
jobId
:
string
;
jobName
:
string
;
jobName
:
string
;
...
...
dlink-web/src/components/Studio/StudioConsole/StudioHistory/index.tsx
View file @
1a6b2288
...
@@ -159,11 +159,11 @@ const StudioHistory = (props: any) => {
...
@@ -159,11 +159,11 @@ const StudioHistory = (props: any) => {
<
MessageOutlined
/>
{
row
.
session
}
<
MessageOutlined
/>
{
row
.
session
}
</
Tag
>
</
Tag
>
)
:
''
}
)
:
''
}
{
row
.
cluster
Alias
?
(
{
row
.
cluster
Name
?
(
<
Tag
color=
"green"
key=
{
row
.
cluster
Alias
}
>
<
Tag
color=
"green"
key=
{
row
.
cluster
Name
}
>
<
ClusterOutlined
/>
{
row
.
cluster
Alias
}
<
ClusterOutlined
/>
{
row
.
cluster
Name
}
</
Tag
>
</
Tag
>
)
:
(<
Tag
color=
"green"
key=
{
row
.
cluster
Alias
}
>
)
:
(<
Tag
color=
"green"
key=
{
row
.
cluster
Name
}
>
<
ClusterOutlined
/>
{
l
(
'pages.devops.jobinfo.localenv'
)
}
<
ClusterOutlined
/>
{
l
(
'pages.devops.jobinfo.localenv'
)
}
</
Tag
>)
}
</
Tag
>)
}
{
row
.
type
?
(
{
row
.
type
?
(
...
@@ -275,7 +275,7 @@ const StudioHistory = (props: any) => {
...
@@ -275,7 +275,7 @@ const StudioHistory = (props: any) => {
/
>
/
>
<
Modal
<
Modal
width=
{
'80%'
}
width=
{
'80%'
}
visible
=
{
modalVisit
}
open
=
{
modalVisit
}
destroyOnClose
destroyOnClose
centered
centered
footer=
{
false
}
footer=
{
false
}
...
...
dlink-web/src/components/Studio/StudioConsole/StudioProcess/index.tsx
View file @
1a6b2288
...
@@ -194,7 +194,7 @@ const StudioProcess = (props: any) => {
...
@@ -194,7 +194,7 @@ const StudioProcess = (props: any) => {
let
itemList
=
[];
let
itemList
=
[];
for
(
let
item
of
cluster
)
{
for
(
let
item
of
cluster
)
{
let
tag
=
(<><
Tag
let
tag
=
(<><
Tag
color=
{
item
.
enabled
?
"processing"
:
"error"
}
>
{
item
.
type
}
</
Tag
>
{
item
.
alias
===
""
?
item
.
name
:
item
.
alias
}
</>);
color=
{
item
.
enabled
?
"processing"
:
"error"
}
>
{
item
.
type
}
</
Tag
>
{
item
.
name
}
</>);
itemList
.
push
(<
Option
value=
{
item
.
id
}
label=
{
tag
}
>
itemList
.
push
(<
Option
value=
{
item
.
id
}
label=
{
tag
}
>
{
tag
}
{
tag
}
</
Option
>)
</
Option
>)
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioJarSetting/index.tsx
View file @
1a6b2288
...
@@ -51,7 +51,7 @@ const StudioJarSetting = (props: any) => {
...
@@ -51,7 +51,7 @@ const StudioJarSetting = (props: any) => {
const
itemList
=
[];
const
itemList
=
[];
for
(
const
item
of
clusterConfiguration
)
{
for
(
const
item
of
clusterConfiguration
)
{
const
tag
=
(<><
Tag
const
tag
=
(<><
Tag
color=
{
item
.
enabled
?
"processing"
:
"error"
}
>
{
item
.
type
}
</
Tag
>
{
item
.
alias
===
""
?
item
.
name
:
item
.
alias
}
</>);
color=
{
item
.
enabled
?
"processing"
:
"error"
}
>
{
item
.
type
}
</
Tag
>
{
item
.
name
}
</>);
itemList
.
push
(<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
label=
{
tag
}
>
itemList
.
push
(<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
label=
{
tag
}
>
{
tag
}
{
tag
}
</
Option
>)
</
Option
>)
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioKubernetesConfig/index.tsx
View file @
1a6b2288
...
@@ -49,7 +49,7 @@ const StudioKubernetesConfig = (props: any) => {
...
@@ -49,7 +49,7 @@ const StudioKubernetesConfig = (props: any) => {
const
getClusterConfigurationOptions
=
()
=>
{
const
getClusterConfigurationOptions
=
()
=>
{
const
itemList
=
[];
const
itemList
=
[];
for
(
const
item
of
clusterConfiguration
)
{
for
(
const
item
of
clusterConfiguration
)
{
const
tag
=
(<><
Tag
color=
{
item
.
enabled
?
"processing"
:
"error"
}
>
{
item
.
type
}
</
Tag
>
{
item
.
alias
===
""
?
item
.
name
:
item
.
alias
}
</>);
const
tag
=
(<><
Tag
color=
{
item
.
enabled
?
"processing"
:
"error"
}
>
{
item
.
type
}
</
Tag
>
{
item
.
name
}
</>);
//opeartor mode can not have normal application config
//opeartor mode can not have normal application config
if
(
current
.
task
.
type
==
'kubernetes-application-operator'
&&
item
.
type
==
'FlinkKubernetesOperator'
){
if
(
current
.
task
.
type
==
'kubernetes-application-operator'
&&
item
.
type
==
'FlinkKubernetesOperator'
){
itemList
.
push
(<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
label=
{
tag
}
>
{
tag
}
</
Option
>)
itemList
.
push
(<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
label=
{
tag
}
>
{
tag
}
</
Option
>)
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioSetting/index.tsx
View file @
1a6b2288
...
@@ -72,7 +72,7 @@ const StudioSetting = (props: any) => {
...
@@ -72,7 +72,7 @@ const StudioSetting = (props: any) => {
const
itemList
=
[];
const
itemList
=
[];
for
(
const
item
of
clusterConfiguration
)
{
for
(
const
item
of
clusterConfiguration
)
{
const
tag
=
(<><
Tag
const
tag
=
(<><
Tag
color=
{
item
.
enabled
?
"processing"
:
"error"
}
>
{
item
.
type
}
</
Tag
>
{
item
.
alias
===
""
?
item
.
name
:
item
.
alias
}
</>);
color=
{
item
.
enabled
?
"processing"
:
"error"
}
>
{
item
.
type
}
</
Tag
>
{
item
.
name
}
</>);
itemList
.
push
(<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
label=
{
tag
}
>
itemList
.
push
(<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
label=
{
tag
}
>
{
tag
}
{
tag
}
</
Option
>)
</
Option
>)
...
...
dlink-web/src/locales/en-US/pages.ts
View file @
1a6b2288
...
@@ -516,7 +516,6 @@ export default {
...
@@ -516,7 +516,6 @@ export default {
'pages.rc.clusterConfigManagement'
:
'Cluster Config Management'
,
'pages.rc.clusterConfigManagement'
:
'Cluster Config Management'
,
'pages.rc.clusterConfig.name'
:
'Cluster Config Name'
,
'pages.rc.clusterConfig.name'
:
'Cluster Config Name'
,
'pages.rc.clusterConfig.alias'
:
'Alias'
,
'pages.rc.clusterConfig.id'
:
'Cluster Config ID'
,
'pages.rc.clusterConfig.id'
:
'Cluster Config ID'
,
'pages.rc.clusterConfig.type'
:
'Type'
,
'pages.rc.clusterConfig.type'
:
'Type'
,
'pages.rc.clusterConfig.hadoopConfigPath'
:
'Hadoop Config file path'
,
'pages.rc.clusterConfig.hadoopConfigPath'
:
'Hadoop Config file path'
,
...
...
dlink-web/src/locales/zh-CN/pages.ts
View file @
1a6b2288
...
@@ -522,7 +522,6 @@ export default {
...
@@ -522,7 +522,6 @@ export default {
'pages.rc.clusterConfigManagement'
:
'集群配置管理'
,
'pages.rc.clusterConfigManagement'
:
'集群配置管理'
,
'pages.rc.clusterConfig.name'
:
'集群配置名称'
,
'pages.rc.clusterConfig.name'
:
'集群配置名称'
,
'pages.rc.clusterConfig.alias'
:
'别名'
,
'pages.rc.clusterConfig.id'
:
'集群配置ID'
,
'pages.rc.clusterConfig.id'
:
'集群配置ID'
,
'pages.rc.clusterConfig.type'
:
'类型'
,
'pages.rc.clusterConfig.type'
:
'类型'
,
'pages.rc.clusterConfig.hadoopConfigPath'
:
'Hadoop 配置文件路径'
,
'pages.rc.clusterConfig.hadoopConfigPath'
:
'Hadoop 配置文件路径'
,
...
...
dlink-web/src/pages/DevOps/JobInstanceTable/index.tsx
View file @
1a6b2288
...
@@ -191,7 +191,7 @@ const JobInstanceTable = (props: any) => {
...
@@ -191,7 +191,7 @@ const JobInstanceTable = (props: any) => {
},
},
},
{
},
{
title
:
l
(
'pages.rc.cluster.instanceName'
),
title
:
l
(
'pages.rc.cluster.instanceName'
),
dataIndex
:
"cluster
Alias
"
,
dataIndex
:
"cluster
Name
"
,
sorter
:
true
,
sorter
:
true
,
},
{
},
{
title
:
l
(
'global.table.jobid'
),
title
:
l
(
'global.table.jobid'
),
...
...
dlink-web/src/pages/DevOps/data.d.ts
View file @
1a6b2288
...
@@ -29,7 +29,7 @@ export type JobInstanceTableListItem = {
...
@@ -29,7 +29,7 @@ export type JobInstanceTableListItem = {
taskId
:
number
,
taskId
:
number
,
step
:
number
,
step
:
number
,
clusterId
:
number
,
clusterId
:
number
,
cluster
Alias
:
string
,
cluster
Name
:
string
,
type
:
string
,
type
:
string
,
jobManagerAddress
:
string
,
jobManagerAddress
:
string
,
jid
:
string
,
jid
:
string
,
...
...
dlink-web/src/pages/RegistrationCenter/ClusterManage/ClusterConfiguration/components/ClusterConfigurationForm.tsx
View file @
1a6b2288
...
@@ -52,7 +52,6 @@ const ClusterConfigurationForm: React.FC<ClusterConfigurationFormProps> = (props
...
@@ -52,7 +52,6 @@ const ClusterConfigurationForm: React.FC<ClusterConfigurationFormProps> = (props
const
[
formVals
,
setFormVals
]
=
useState
<
Partial
<
ClusterConfigurationTableListItem
>>
({
const
[
formVals
,
setFormVals
]
=
useState
<
Partial
<
ClusterConfigurationTableListItem
>>
({
id
:
props
.
values
.
id
,
id
:
props
.
values
.
id
,
name
:
props
.
values
.
name
,
name
:
props
.
values
.
name
,
alias
:
props
.
values
.
alias
,
type
:
props
.
values
.
type
?
props
.
values
.
type
:
"Yarn"
,
type
:
props
.
values
.
type
?
props
.
values
.
type
:
"Yarn"
,
configJson
:
props
.
values
.
configJson
,
configJson
:
props
.
values
.
configJson
,
note
:
props
.
values
.
note
,
note
:
props
.
values
.
note
,
...
@@ -105,7 +104,6 @@ const ClusterConfigurationForm: React.FC<ClusterConfigurationFormProps> = (props
...
@@ -105,7 +104,6 @@ const ClusterConfigurationForm: React.FC<ClusterConfigurationFormProps> = (props
const
formValues
=
{
const
formValues
=
{
id
:
formVals
.
id
,
id
:
formVals
.
id
,
name
:
fieldsValue
.
name
,
name
:
fieldsValue
.
name
,
alias
:
fieldsValue
.
alias
,
type
:
fieldsValue
.
type
,
type
:
fieldsValue
.
type
,
note
:
fieldsValue
.
note
,
note
:
fieldsValue
.
note
,
enabled
:
fieldsValue
.
enabled
,
enabled
:
fieldsValue
.
enabled
,
...
@@ -326,12 +324,6 @@ const ClusterConfigurationForm: React.FC<ClusterConfigurationFormProps> = (props
...
@@ -326,12 +324,6 @@ const ClusterConfigurationForm: React.FC<ClusterConfigurationFormProps> = (props
rules=
{
[{
required
:
true
,
message
:
l
(
'pages.rc.clusterConfig.namePlaceholder'
)}]
}
>
rules=
{
[{
required
:
true
,
message
:
l
(
'pages.rc.clusterConfig.namePlaceholder'
)}]
}
>
<
Input
placeholder=
{
l
(
'pages.rc.clusterConfig.namePlaceholder'
)
}
/>
<
Input
placeholder=
{
l
(
'pages.rc.clusterConfig.namePlaceholder'
)
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
name=
"alias"
label=
{
l
(
'pages.rc.clusterConfig.alias'
)
}
>
<
Input
placeholder=
{
l
(
'pages.rc.clusterConfig.aliasPlaceholder'
)
}
/>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
name=
"note"
name=
"note"
label=
{
l
(
'global.table.note'
)
}
label=
{
l
(
'global.table.note'
)
}
...
@@ -354,7 +346,6 @@ const ClusterConfigurationForm: React.FC<ClusterConfigurationFormProps> = (props
...
@@ -354,7 +346,6 @@ const ClusterConfigurationForm: React.FC<ClusterConfigurationFormProps> = (props
const
formValues
=
{
const
formValues
=
{
id
:
formVals
.
id
,
id
:
formVals
.
id
,
name
:
fieldsValue
.
name
,
name
:
fieldsValue
.
name
,
alias
:
fieldsValue
.
alias
,
type
:
fieldsValue
.
type
,
type
:
fieldsValue
.
type
,
note
:
fieldsValue
.
note
,
note
:
fieldsValue
.
note
,
enabled
:
fieldsValue
.
enabled
,
enabled
:
fieldsValue
.
enabled
,
...
...
dlink-web/src/pages/RegistrationCenter/ClusterManage/ClusterConfiguration/index.tsx
View file @
1a6b2288
...
@@ -104,12 +104,6 @@ const ClusterConfigurationTableList: React.FC<{}> = (props: any) => {
...
@@ -104,12 +104,6 @@ const ClusterConfigurationTableList: React.FC<{}> = (props: any) => {
hideInForm
:
true
,
hideInForm
:
true
,
hideInSearch
:
true
,
hideInSearch
:
true
,
},
},
{
title
:
l
(
'pages.rc.clusterConfig.alias'
),
sorter
:
true
,
dataIndex
:
'alias'
,
hideInTable
:
false
,
},
{
{
title
:
l
(
'pages.rc.clusterConfig.type'
),
title
:
l
(
'pages.rc.clusterConfig.type'
),
sorter
:
true
,
sorter
:
true
,
...
...
dlink-web/src/pages/RegistrationCenter/data.d.ts
View file @
1a6b2288
...
@@ -60,7 +60,6 @@ export type ClusterTableListItem = {
...
@@ -60,7 +60,6 @@ export type ClusterTableListItem = {
export
type
ClusterConfigurationTableListItem
=
{
export
type
ClusterConfigurationTableListItem
=
{
id
:
number
,
id
:
number
,
name
:
string
,
name
:
string
,
alias
:
string
,
type
:
string
,
type
:
string
,
config
:
any
,
config
:
any
,
configJson
:
string
,
configJson
:
string
,
...
...
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