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
055bd177
Unverified
Commit
055bd177
authored
Sep 08, 2023
by
Licho
Committed by
GitHub
Sep 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning (#2299)
* fix: warnning * Spotless Apply * fix: warnning menu * Spotless Apply --------- Co-authored-by:
leechor
<
leechor@users.noreply.github.com
>
parent
be77c51b
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
212 additions
and
242 deletions
+212
-242
config.ts
dinky-web/config/config.ts
+1
-1
index.tsx
dinky-web/src/components/RightContextMenu/index.tsx
+12
-15
pages.ts
dinky-web/src/locales/zh-CN/pages.ts
+4
-1
index.tsx
.../pages/AuthCenter/Role/components/RoleModalForm/index.tsx
+9
-11
index.tsx
...uthCenter/Tenant/components/TenantModalTransfer/index.tsx
+11
-13
index.tsx
.../pages/AuthCenter/User/components/PasswordModal/index.tsx
+9
-11
index.tsx
...es/AuthCenter/User/components/RoleModalTransfer/index.tsx
+11
-13
index.tsx
.../pages/AuthCenter/User/components/UserModalForm/index.tsx
+9
-11
index.tsx
...ages/DataStudio/FooterContainer/JobRunningModal/index.tsx
+26
-28
index.tsx
.../pages/DataStudio/RightContainer/HistoryVersion/index.tsx
+39
-41
index.tsx
...b/src/pages/DataStudio/RightContainer/JobConfig/index.tsx
+0
-2
model.ts
dinky-web/src/pages/DataStudio/model.ts
+2
-2
index.tsx
dinky-web/src/pages/Other/Login/ChooseModal/index.tsx
+14
-16
index.tsx
...ther/PersonCenter/OperationLogRecord/ResultShow/index.tsx
+10
-12
index.tsx
...ges/RegCenter/Document/components/DocumentModal/index.tsx
+9
-11
index.tsx
...ages/RegCenter/GitProject/components/BuildSteps/index.tsx
+17
-19
index.tsx
.../pages/RegCenter/GitProject/components/CodeTree/index.tsx
+11
-13
index.tsx
...s/RegCenter/GlobalVar/components/GlobalVarModal/index.tsx
+9
-11
index.tsx
...ss/components/ProcessList/SubStepsTable/ShowLog/index.tsx
+9
-11
No files found.
dinky-web/config/config.ts
View file @
055bd177
...
...
@@ -131,7 +131,7 @@ export default defineConfig({
default
:
'zh-CN'
,
antd
:
true
,
// default true, when it is true, will use `navigator.language` overwrite default
baseNavigator
:
tru
e
,
baseNavigator
:
fals
e
,
useLocalStorage
:
true
},
...
...
dinky-web/src/components/RightContextMenu/index.tsx
View file @
055bd177
...
...
@@ -17,7 +17,7 @@
*
*/
import
{
Dropdown
,
Menu
}
from
'antd'
;
import
{
Dropdown
}
from
'antd'
;
import
{
MenuItemType
}
from
'antd/es/menu/hooks/useItems'
;
import
{
MenuInfo
}
from
'rc-menu/es/interface'
;
import
React
from
'react'
;
...
...
@@ -33,21 +33,18 @@ type RightContextMenuProps = {
const
RightContextMenu
:
React
.
FC
<
RightContextMenuProps
>
=
(
props
)
=>
{
const
{
onClick
,
items
,
openChange
,
open
,
contextMenuPosition
}
=
props
;
const
menu
=
<
Menu
onClick=
{
onClick
}
items=
{
items
}
/>;
return
(
<>
<
Dropdown
arrow
trigger=
{
[
'contextMenu'
]
}
overlayStyle=
{
{
...
contextMenuPosition
}
}
overlay=
{
menu
}
open=
{
open
}
onOpenChange=
{
openChange
}
>
{
/*占位*/
}
<
div
style=
{
{
...
contextMenuPosition
}
}
/>
</
Dropdown
>
</>
<
Dropdown
arrow
trigger=
{
[
'contextMenu'
]
}
overlayStyle=
{
{
...
contextMenuPosition
}
}
menu=
{
{
onClick
:
onClick
,
items
:
items
}
}
open=
{
open
}
onOpenChange=
{
openChange
}
>
{
/*占位*/
}
<
div
style=
{
{
...
contextMenuPosition
}
}
/>
</
Dropdown
>
);
};
...
...
dinky-web/src/locales/zh-CN/pages.ts
View file @
055bd177
...
...
@@ -87,6 +87,7 @@ export default {
//-------------------------------- devops --------------------------------
// devops
'pages.devops.jobinfo.localenv'
:
'本地环境'
,
'devops.joblist.joblist'
:
'任务列表'
,
'devops.joblist.history'
:
'历史'
,
'devops.joblist.detail'
:
'详情'
,
...
...
@@ -1196,5 +1197,7 @@ export default {
'catalog.udf.templateId'
:
'UDF 模板'
,
'catalog.udf.templateId.placeholder'
:
'请选择 UDF 模板'
,
'catalog.udf.className'
:
'类或方法名'
,
'catalog.udf.className.placeholder'
:
'请输入类或方法名'
'catalog.udf.className.placeholder'
:
'请输入类或方法名'
,
'button.push'
:
'提交'
};
dinky-web/src/pages/AuthCenter/Role/components/RoleModalForm/index.tsx
View file @
055bd177
...
...
@@ -79,17 +79,15 @@ const RoleModalForm: React.FC<RoleModalProps> = (props) => {
* render
*/
return
(
<>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
values
.
id
?
l
(
'role.update'
)
:
l
(
'role.create'
)
}
open=
{
modalVisible
}
onCancel=
{
()
=>
handleCancel
()
}
onOk=
{
()
=>
submitForm
()
}
>
<
RoleProForm
form=
{
form
}
values=
{
values
}
/>
</
Modal
>
</>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
values
.
id
?
l
(
'role.update'
)
:
l
(
'role.create'
)
}
open=
{
modalVisible
}
onCancel=
{
()
=>
handleCancel
()
}
onOk=
{
()
=>
submitForm
()
}
>
<
RoleProForm
form=
{
form
}
values=
{
values
}
/>
</
Modal
>
);
};
export
default
RoleModalForm
;
dinky-web/src/pages/AuthCenter/Tenant/components/TenantModalTransfer/index.tsx
View file @
055bd177
...
...
@@ -40,19 +40,17 @@ const TenantModalTransfer: React.FC<TableTransferFromProps> = (props) => {
};
return
(
<>
<
Modal
title=
{
l
(
'tenant.AssignUser'
)
}
open=
{
modalVisible
}
destroyOnClose
maskClosable=
{
false
}
width=
{
'75%'
}
onCancel=
{
()
=>
onCancel
()
}
onOk=
{
()
=>
handleSubmit
(
targetKeys
)
}
>
<
TenantTransfer
tenant=
{
tenant
}
onChange=
{
(
value
)
=>
handleValueChange
(
value
)
}
/>
</
Modal
>
</>
<
Modal
title=
{
l
(
'tenant.AssignUser'
)
}
open=
{
modalVisible
}
destroyOnClose
maskClosable=
{
false
}
width=
{
'75%'
}
onCancel=
{
()
=>
onCancel
()
}
onOk=
{
()
=>
handleSubmit
(
targetKeys
)
}
>
<
TenantTransfer
tenant=
{
tenant
}
onChange=
{
(
value
)
=>
handleValueChange
(
value
)
}
/>
</
Modal
>
);
};
export
default
TenantModalTransfer
;
dinky-web/src/pages/AuthCenter/User/components/PasswordModal/index.tsx
View file @
055bd177
...
...
@@ -85,17 +85,15 @@ const PasswordModal: React.FC<PasswordModalFormProps> = (props) => {
* render
*/
return
(
<>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
l
(
'button.changePassword'
)
}
open=
{
modalVisible
}
onCancel=
{
()
=>
handleCancel
()
}
onOk=
{
()
=>
submitForm
()
}
>
<
PasswordForm
values=
{
values
as
any
}
form=
{
form
}
/>
</
Modal
>
</>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
l
(
'button.changePassword'
)
}
open=
{
modalVisible
}
onCancel=
{
()
=>
handleCancel
()
}
onOk=
{
()
=>
submitForm
()
}
>
<
PasswordForm
values=
{
values
as
any
}
form=
{
form
}
/>
</
Modal
>
);
};
...
...
dinky-web/src/pages/AuthCenter/User/components/RoleModalTransfer/index.tsx
View file @
055bd177
...
...
@@ -44,19 +44,17 @@ const RoleModalTransfer = (props: RoleTransferFromProps) => {
};
return
(
<>
<
Modal
title=
{
l
(
'user.assignRole'
)
}
open=
{
modalVisible
}
destroyOnClose
maskClosable=
{
false
}
width=
{
'75%'
}
onCancel=
{
()
=>
handleCancel
()
}
onOk=
{
()
=>
handleSubmit
(
targetKeys
)
}
>
<
RoleTransfer
role=
{
user
}
onChange=
{
(
value
)
=>
handleValueChange
(
value
)
}
/>
</
Modal
>
</>
<
Modal
title=
{
l
(
'user.assignRole'
)
}
open=
{
modalVisible
}
destroyOnClose
maskClosable=
{
false
}
width=
{
'75%'
}
onCancel=
{
()
=>
handleCancel
()
}
onOk=
{
()
=>
handleSubmit
(
targetKeys
)
}
>
<
RoleTransfer
role=
{
user
}
onChange=
{
(
value
)
=>
handleValueChange
(
value
)
}
/>
</
Modal
>
);
};
export
default
RoleModalTransfer
;
dinky-web/src/pages/AuthCenter/User/components/UserModalForm/index.tsx
View file @
055bd177
...
...
@@ -76,17 +76,15 @@ const UserModalForm: React.FC<UserModalFormProps> = (props) => {
};
return
(
<>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
values
.
id
?
l
(
'user.update'
)
:
l
(
'user.create'
)
}
open=
{
modalVisible
}
onCancel=
{
()
=>
handleCancel
()
}
onOk=
{
()
=>
submitForm
()
}
>
<
UserForm
values=
{
values
}
form=
{
form
}
/>
</
Modal
>
</>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
values
.
id
?
l
(
'user.update'
)
:
l
(
'user.create'
)
}
open=
{
modalVisible
}
onCancel=
{
()
=>
handleCancel
()
}
onOk=
{
()
=>
submitForm
()
}
>
<
UserForm
values=
{
values
}
form=
{
form
}
/>
</
Modal
>
);
};
...
...
dinky-web/src/pages/DataStudio/FooterContainer/JobRunningModal/index.tsx
View file @
055bd177
...
...
@@ -32,34 +32,32 @@ const JobRunningModal: React.FC<JobRunningModalProps> = (props) => {
const
{
visible
,
onCancel
,
onOk
,
value
}
=
props
;
return
(
<>
<
Modal
title=
{
`Job ${value?.jobName} is running`
}
open=
{
visible
}
onOk=
{
onOk
}
width=
{
'50%'
}
centered
onCancel=
{
onCancel
}
footer=
{
null
}
>
<
Space
direction=
'vertical'
style=
{
{
width
:
'100%'
}
}
>
<
Row
gutter=
{
[
12
,
12
]
}
>
<
Col
span=
{
23
}
>
<
Progress
showInfo
strokeLinecap=
{
'round'
}
percent=
{
100
}
status=
'active'
strokeColor=
{
{
from
:
'#108ee9'
,
to
:
'#87d068'
}
}
/>
</
Col
>
<
Col
span=
{
1
}
>
<
StopTwoTone
/>
</
Col
>
</
Row
>
</
Space
>
</
Modal
>
</>
<
Modal
title=
{
`Job ${value?.jobName} is running`
}
open=
{
visible
}
onOk=
{
onOk
}
width=
{
'50%'
}
centered
onCancel=
{
onCancel
}
footer=
{
null
}
>
<
Space
direction=
'vertical'
style=
{
{
width
:
'100%'
}
}
>
<
Row
gutter=
{
[
12
,
12
]
}
>
<
Col
span=
{
23
}
>
<
Progress
showInfo
strokeLinecap=
{
'round'
}
percent=
{
100
}
status=
'active'
strokeColor=
{
{
from
:
'#108ee9'
,
to
:
'#87d068'
}
}
/>
</
Col
>
<
Col
span=
{
1
}
>
<
StopTwoTone
/>
</
Col
>
</
Row
>
</
Space
>
</
Modal
>
);
};
...
...
dinky-web/src/pages/DataStudio/RightContainer/HistoryVersion/index.tsx
View file @
055bd177
...
...
@@ -59,47 +59,45 @@ const HistoryVersion = (props: any) => {
let
currentValue
=
current
?.
statement
;
return
(
<>
<
Modal
title=
{
l
(
'pages.datastudio.label.version.diff'
)
}
open=
{
versionDiffVisible
}
destroyOnClose=
{
true
}
width=
{
'85%'
}
bodyStyle=
{
{
height
:
'70vh'
}
}
onCancel=
{
()
=>
setVersionDiffVisible
(
false
)
}
footer=
{
[
<
Button
key=
'back'
onClick=
{
()
=>
setVersionDiffVisible
(
false
)
}
>
{
l
(
'button.close'
)
}
</
Button
>
]
}
>
<
div
style=
{
{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
}
}
>
<
Tag
color=
'green'
style=
{
{
height
:
'20px'
}
}
>
<
RocketOutlined
/>
{
leftTitle
}
</
Tag
>
<
Tag
color=
'blue'
style=
{
{
height
:
'20px'
}
}
>
<
SyncOutlined
spin
/>
{
rightTitle
}
</
Tag
>
</
div
>
<
br
/>
<
React
.
StrictMode
>
<
DiffEditor
height=
{
'95%'
}
options=
{
{
readOnly
:
true
,
selectOnLineNumbers
:
true
,
lineDecorationsWidth
:
20
,
mouseWheelZoom
:
true
,
automaticLayout
:
true
}
}
language=
{
'sql'
}
theme=
{
'vs-dark'
}
original=
{
originalValue
}
modified=
{
currentValue
}
/>
</
React
.
StrictMode
>
</
Modal
>
</>
<
Modal
title=
{
l
(
'pages.datastudio.label.version.diff'
)
}
open=
{
versionDiffVisible
}
destroyOnClose=
{
true
}
width=
{
'85%'
}
bodyStyle=
{
{
height
:
'70vh'
}
}
onCancel=
{
()
=>
setVersionDiffVisible
(
false
)
}
footer=
{
[
<
Button
key=
'back'
onClick=
{
()
=>
setVersionDiffVisible
(
false
)
}
>
{
l
(
'button.close'
)
}
</
Button
>
]
}
>
<
div
style=
{
{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
}
}
>
<
Tag
color=
'green'
style=
{
{
height
:
'20px'
}
}
>
<
RocketOutlined
/>
{
leftTitle
}
</
Tag
>
<
Tag
color=
'blue'
style=
{
{
height
:
'20px'
}
}
>
<
SyncOutlined
spin
/>
{
rightTitle
}
</
Tag
>
</
div
>
<
br
/>
<
React
.
StrictMode
>
<
DiffEditor
height=
{
'95%'
}
options=
{
{
readOnly
:
true
,
selectOnLineNumbers
:
true
,
lineDecorationsWidth
:
20
,
mouseWheelZoom
:
true
,
automaticLayout
:
true
}
}
language=
{
'sql'
}
theme=
{
'vs-dark'
}
original=
{
originalValue
}
modified=
{
currentValue
}
/>
</
React
.
StrictMode
>
</
Modal
>
);
};
...
...
dinky-web/src/pages/DataStudio/RightContainer/JobConfig/index.tsx
View file @
055bd177
...
...
@@ -193,7 +193,6 @@ const JobConfig = (props: any) => {
tooltip=
{
l
(
'pages.datastudio.label.jobConfig.flinksql.env.tip1'
)
}
options=
{
buildEnvOptions
(
env
)
}
showSearch
initialValue=
{
0
}
/>
<
ProFormGroup
>
...
...
@@ -243,7 +242,6 @@ const JobConfig = (props: any) => {
name=
'savePointStrategy'
tooltip=
{
l
(
'pages.datastudio.label.jobConfig.savePointStrategy.tip'
)
}
options=
{
SAVE_POINT_TYPE
}
initialValue=
{
0
}
/>
{
current
?.
savePointStrategy
===
3
&&
(
...
...
dinky-web/src/pages/DataStudio/model.ts
View file @
055bd177
...
...
@@ -368,14 +368,14 @@ const Model: ModelType = {
*
queryProject
({
payload
},
{
call
,
put
})
{
const
response
:
[]
=
yield
call
(
getTaskData
,
payload
);
yield
put
({
type
:
STUDIO_MODEL
.
saveProject
,
type
:
'saveProject'
,
payload
:
response
});
},
*
queryFlinkConfigOptions
({
payload
},
{
call
,
put
})
{
const
response
:
[]
=
yield
call
(
getFlinkConfigs
,
payload
);
yield
put
({
type
:
STUDIO_MODEL
.
saveFlinkConfigOptions
,
type
:
'saveFlinkConfigOptions'
,
payload
:
response
});
}
...
...
dinky-web/src/pages/Other/Login/ChooseModal/index.tsx
View file @
055bd177
...
...
@@ -52,22 +52,20 @@ const ChooseModal: React.FC<ChooseModalProps> = (props) => {
};
return
(
<>
<
Modal
title=
{
l
(
'login.chooseTenant'
)
}
open=
{
tenantVisible
}
{
...
NORMAL_MODAL_OPTIONS
}
onCancel=
{
handleTenantVisible
}
onOk=
{
()
=>
handleChooseTenant
(
checkedTenantId
)
}
okText=
{
l
(
'button.confirm'
)
}
okButtonProps=
{
{
disabled
:
check
,
loading
:
submitting
}
}
>
<
TenantCard
tenant=
{
tenant
}
handleChangeTenant=
{
tenantChange
}
/>
</
Modal
>
</>
<
Modal
title=
{
l
(
'login.chooseTenant'
)
}
open=
{
tenantVisible
}
{
...
NORMAL_MODAL_OPTIONS
}
onCancel=
{
handleTenantVisible
}
onOk=
{
()
=>
handleChooseTenant
(
checkedTenantId
)
}
okText=
{
l
(
'button.confirm'
)
}
okButtonProps=
{
{
disabled
:
check
,
loading
:
submitting
}
}
>
<
TenantCard
tenant=
{
tenant
}
handleChangeTenant=
{
tenantChange
}
/>
</
Modal
>
);
};
...
...
dinky-web/src/pages/Other/PersonCenter/OperationLogRecord/ResultShow/index.tsx
View file @
055bd177
...
...
@@ -38,18 +38,16 @@ const ResultShow: React.FC<ResultShowProps> = (props) => {
}
=
props
;
return
(
<>
<
Modal
title=
{
l
(
'global.result'
)
}
open=
{
open
}
{
...
NORMAL_MODAL_OPTIONS
}
onCancel=
{
onCancel
}
okButtonProps=
{
{
hidden
:
true
}
}
cancelText=
{
l
(
'button.close'
)
}
>
<
CodeShow
language=
{
'json'
}
height=
{
'60vh'
}
code=
{
data
}
/>
</
Modal
>
</>
<
Modal
title=
{
l
(
'global.result'
)
}
open=
{
open
}
{
...
NORMAL_MODAL_OPTIONS
}
onCancel=
{
onCancel
}
okButtonProps=
{
{
hidden
:
true
}
}
cancelText=
{
l
(
'button.close'
)
}
>
<
CodeShow
language=
{
'json'
}
height=
{
'60vh'
}
code=
{
data
}
/>
</
Modal
>
);
};
...
...
dinky-web/src/pages/RegCenter/Document/components/DocumentModal/index.tsx
View file @
055bd177
...
...
@@ -68,17 +68,15 @@ const DocumentModalForm: React.FC<DocumentModalProps> = (props) => {
};
return
(
<>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
values
.
id
?
l
(
'rc.doc.modify'
)
:
l
(
'rc.doc.create'
)
}
open=
{
modalVisible
}
onOk=
{
()
=>
submitForm
()
}
onCancel=
{
()
=>
handleModalVisible
()
}
>
<
DocumentForm
values=
{
values
}
form=
{
form
}
/>
</
Modal
>
</>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
values
.
id
?
l
(
'rc.doc.modify'
)
:
l
(
'rc.doc.create'
)
}
open=
{
modalVisible
}
onOk=
{
()
=>
submitForm
()
}
onCancel=
{
()
=>
handleModalVisible
()
}
>
<
DocumentForm
values=
{
values
}
form=
{
form
}
/>
</
Modal
>
);
};
...
...
dinky-web/src/pages/RegCenter/GitProject/components/BuildSteps/index.tsx
View file @
055bd177
...
...
@@ -175,24 +175,22 @@ export const BuildSteps: React.FC<BuildStepsProps> = (props) => {
* render
*/
return
(
<>
<
Modal
title=
{
title
}
width=
{
'85%'
}
open=
{
true
}
maskClosable=
{
false
}
onCancel=
{
()
=>
handleCancel
()
}
okButtonProps=
{
{
style
:
{
display
:
'none'
}
}
}
>
<
AutoSteps
steps=
{
steps
}
percent=
{
percent
}
currentStep=
{
currentStep
}
values=
{
values
}
log=
{
log
}
showList=
{
showList
}
/>
</
Modal
>
</>
<
Modal
title=
{
title
}
width=
{
'85%'
}
open=
{
true
}
maskClosable=
{
false
}
onCancel=
{
()
=>
handleCancel
()
}
okButtonProps=
{
{
style
:
{
display
:
'none'
}
}
}
>
<
AutoSteps
steps=
{
steps
}
percent=
{
percent
}
currentStep=
{
currentStep
}
values=
{
values
}
log=
{
log
}
showList=
{
showList
}
/>
</
Modal
>
);
};
dinky-web/src/pages/RegCenter/GitProject/components/CodeTree/index.tsx
View file @
055bd177
...
...
@@ -32,18 +32,16 @@ export const CodeTree: React.FC<CodeTreeProps> = (props) => {
const
{
values
,
modalVisible
,
onCancel
}
=
props
;
return
(
<>
<
Modal
title=
{
l
(
'rc.gp.codeTree'
)
}
width=
{
'95%'
}
open=
{
modalVisible
}
maskClosable=
{
false
}
onCancel=
{
()
=>
onCancel
()
}
cancelText=
{
l
(
'button.close'
)
}
okButtonProps=
{
{
style
:
{
display
:
'none'
}
}
}
>
<
CodeTreeShow
values=
{
values
}
/>
</
Modal
>
</>
<
Modal
title=
{
l
(
'rc.gp.codeTree'
)
}
width=
{
'95%'
}
open=
{
modalVisible
}
maskClosable=
{
false
}
onCancel=
{
()
=>
onCancel
()
}
cancelText=
{
l
(
'button.close'
)
}
okButtonProps=
{
{
style
:
{
display
:
'none'
}
}
}
>
<
CodeTreeShow
values=
{
values
}
/>
</
Modal
>
);
};
dinky-web/src/pages/RegCenter/GlobalVar/components/GlobalVarModal/index.tsx
View file @
055bd177
...
...
@@ -75,17 +75,15 @@ const GlobalVarModal: React.FC<GlobalVarModalProps> = (props) => {
};
return
(
<>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
values
.
id
?
l
(
'rc.gv.modify'
)
:
l
(
'rc.gv.create'
)
}
open=
{
modalVisible
}
onOk=
{
()
=>
submitForm
()
}
onCancel=
{
()
=>
handleModalVisible
()
}
>
<
GlobalVarForm
form=
{
form
}
values=
{
values
}
/>
</
Modal
>
</>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
values
.
id
?
l
(
'rc.gv.modify'
)
:
l
(
'rc.gv.create'
)
}
open=
{
modalVisible
}
onOk=
{
()
=>
submitForm
()
}
onCancel=
{
()
=>
handleModalVisible
()
}
>
<
GlobalVarForm
form=
{
form
}
values=
{
values
}
/>
</
Modal
>
);
};
...
...
dinky-web/src/pages/SettingCenter/Process/components/ProcessList/SubStepsTable/ShowLog/index.tsx
View file @
055bd177
...
...
@@ -40,17 +40,15 @@ const ShowLog: React.FC<ShowLogProps> = (props) => {
const
{
type
,
log
,
visibleViewLog
,
cancelViewLog
}
=
props
;
return
(
<>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
type
}
open=
{
visibleViewLog
}
onCancel=
{
cancelViewLog
}
okButtonProps=
{
{
style
:
{
display
:
'none'
}
}
}
>
<
CodeShow
{
...
CodeEditProps
}
code=
{
log
}
showFloatButton
/>
</
Modal
>
</>
<
Modal
{
...
NORMAL_MODAL_OPTIONS
}
title=
{
type
}
open=
{
visibleViewLog
}
onCancel=
{
cancelViewLog
}
okButtonProps=
{
{
style
:
{
display
:
'none'
}
}
}
>
<
CodeShow
{
...
CodeEditProps
}
code=
{
log
}
showFloatButton
/>
</
Modal
>
);
};
...
...
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