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
b28f11bd
Commit
b28f11bd
authored
Feb 14, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复删除任务前端bug
parent
72491f0f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
index.tsx
...b/src/components/Studio/StudioConsole/StudioMsg/index.tsx
+1
-1
index.tsx
dlink-web/src/components/Studio/StudioMenu/index.tsx
+2
-2
index.tsx
dlink-web/src/components/Studio/StudioRightTool/index.tsx
+1
-1
model.ts
dlink-web/src/pages/FlinkSqlStudio/model.ts
+8
-6
No files found.
dlink-web/src/components/Studio/StudioConsole/StudioMsg/index.tsx
View file @
b28f11bd
...
...
@@ -56,7 +56,7 @@ const StudioMsg = (props:any) => {
return
(
<
Typography
>
{
current
&&
current
.
console
.
result
.
startTime
?(
isSql
(
current
.
task
.
dialect
)
?
renderCommonSqlContent
():
{
current
?.
task
&&
current
.
console
.
result
.
startTime
?(
isSql
(
current
.
task
.
dialect
)
?
renderCommonSqlContent
():
renderFlinkSqlContent
()
):<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
}
</
Typography
>
...
...
dlink-web/src/components/Studio/StudioMenu/index.tsx
View file @
b28f11bd
...
...
@@ -456,7 +456,7 @@ const StudioMenu = (props: any) => {
</
Breadcrumb
>
)
}
</
Col
>
{
current
?
{
current
?
.
task
?
<
Col
span=
{
8
}
>
<
Tooltip
title=
"全屏开发"
>
<
Button
...
...
@@ -593,7 +593,7 @@ const StudioMenu = (props: any) => {
>
<
StudioGraph
data=
{
graphData
}
/>
</
Modal
>
{
current
?
{
current
?
.
task
?
<
ModalForm
title=
{
`${current.task.alias} 的 ${current.task.dialect} 导出`
}
visible=
{
exportModalVisible
}
...
...
dlink-web/src/components/Studio/StudioRightTool/index.tsx
View file @
b28f11bd
...
...
@@ -81,7 +81,7 @@ const StudioRightTool = (props: any) => {
return
(
<>
{
current
?
{
current
?
.
task
?
<
Tabs
defaultActiveKey=
"1"
size=
"small"
tabPosition=
"right"
style=
{
{
height
:
toolHeight
}
}
>
{
renderContent
()
}
</
Tabs
>:<
StudioGuide
toolHeight=
{
toolHeight
}
/>
}
...
...
dlink-web/src/pages/FlinkSqlStudio/model.ts
View file @
b28f11bd
...
...
@@ -260,7 +260,7 @@ const Model: ModelType = {
},
saveSql
(
state
,
{
payload
})
{
const
newTabs
=
state
.
tabs
;
cons
t
newCurrent
=
state
.
current
;
le
t
newCurrent
=
state
.
current
;
newCurrent
.
value
=
payload
;
for
(
let
i
=
0
;
i
<
newTabs
.
panes
.
length
;
i
++
)
{
if
(
newTabs
.
panes
[
i
].
key
==
newTabs
.
activeKey
)
{
...
...
@@ -287,7 +287,7 @@ const Model: ModelType = {
};
},*/
saveSqlMetaData
(
state
,
{
payload
})
{
cons
t
newCurrent
=
state
.
current
;
le
t
newCurrent
=
state
.
current
;
const
newTabs
=
state
.
tabs
;
if
(
newCurrent
.
key
==
payload
.
activeKey
){
newCurrent
.
sqlMetaData
=
{...
payload
.
sqlMetaData
};
...
...
@@ -339,12 +339,14 @@ const Model: ModelType = {
break
;
}
}
cons
t
newCurrent
=
undefined
;
le
t
newCurrent
=
undefined
;
if
(
newTabs
.
panes
.
length
>
0
){
newCurrent
=
newTabs
.
panes
[
newTabs
.
panes
.
length
-
1
];
}
if
(
new
Tabs
.
activeKey
==
payload
)
{
if
(
new
Current
&&
(
newTabs
.
activeKey
==
payload
)
)
{
newTabs
.
activeKey
=
newCurrent
.
key
;
}
else
{
newTabs
.
activeKey
=
undefined
;
}
return
{
...
state
,
...
...
@@ -391,7 +393,7 @@ const Model: ModelType = {
},
saveTaskData
(
state
,
{
payload
})
{
const
newTabs
=
state
.
tabs
;
cons
t
newCurrent
=
state
.
current
;
le
t
newCurrent
=
state
.
current
;
for
(
let
i
=
0
;
i
<
newTabs
.
panes
.
length
;
i
++
)
{
if
(
newTabs
.
panes
[
i
].
key
==
payload
.
key
)
{
newTabs
.
panes
[
i
].
task
=
payload
;
...
...
@@ -438,7 +440,7 @@ const Model: ModelType = {
},
saveResult
(
state
,
{
payload
})
{
const
newTabs
=
state
?.
tabs
;
cons
t
newCurrent
=
state
?.
current
;
le
t
newCurrent
=
state
?.
current
;
for
(
let
i
=
0
;
i
<
newTabs
.
panes
.
length
;
i
++
)
{
if
(
newTabs
.
panes
[
i
].
key
==
payload
.
key
)
{
newTabs
.
panes
[
i
].
console
.
result
.
result
=
payload
.
datas
;
...
...
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