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
90a82dd0
Unverified
Commit
90a82dd0
authored
Sep 18, 2022
by
aiwenmo
Committed by
GitHub
Sep 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Feature-1027][admin,web] Add data development task information log details button (#1029)
Co-authored-by:
wenmo
<
32723967+wenmo@users.noreply.github.com
>
parent
53b55dbe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
97 additions
and
23 deletions
+97
-23
pom.xml
dlink-admin/pom.xml
+1
-1
package.xml
dlink-assembly/src/main/assembly/package.xml
+1
-1
CodeShow.tsx
dlink-web/src/components/Common/CodeShow.tsx
+3
-4
index.tsx
...c/components/Studio/StudioConsole/StudioHistory/index.tsx
+0
-0
index.tsx
...b/src/components/Studio/StudioConsole/StudioMsg/index.tsx
+74
-17
Welcome.tsx
dlink-web/src/pages/Welcome.tsx
+18
-0
No files found.
dlink-admin/pom.xml
View file @
90a82dd0
...
...
@@ -204,7 +204,7 @@
</dependencies>
<build>
<finalName>
${project.artifactId}
</finalName>
<finalName>
${project.artifactId}
-${project.version}
</finalName>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
...
...
dlink-assembly/src/main/assembly/package.xml
View file @
90a82dd0
...
...
@@ -25,7 +25,7 @@
</includes>
</fileSet>
<fileSet>
<directory>
${project.parent.basedir}/dlink-admin/target/dlink-admin/lib
</directory>
<directory>
${project.parent.basedir}/dlink-admin/target/dlink-admin
-${project.version}
/lib
</directory>
<outputDirectory>
lib
</outputDirectory>
<includes>
<include>
*.jar
</include>
...
...
dlink-web/src/components/Common/CodeShow.tsx
View file @
90a82dd0
...
...
@@ -19,12 +19,11 @@
import
MonacoEditor
from
"react-monaco-editor"
;
import
*
as
_monaco
from
"monaco-editor"
;
export
type
CodeShowFormProps
=
{
height
?:
string
;
width
?:
string
;
language
:
string
;
language
?
:
string
;
theme
?:
string
;
options
?:
any
;
code
:
string
;
...
...
@@ -40,8 +39,8 @@ const CodeShow = (props: CodeShowFormProps) => {
options
=
{
selectOnLineNumbers
:
true
,
renderSideBySide
:
false
,
autoIndent
:
'None'
,
readOnly
:
true
,
autoIndent
:
'None'
,
readOnly
:
true
,
},
code
,
}
=
props
;
...
...
dlink-web/src/components/Studio/StudioConsole/StudioHistory/index.tsx
View file @
90a82dd0
This diff is collapsed.
Click to expand it.
dlink-web/src/components/Studio/StudioConsole/StudioMsg/index.tsx
View file @
90a82dd0
...
...
@@ -18,23 +18,39 @@
*/
import
{
Typography
,
Divider
,
Badge
,
Empty
,
Tag
}
from
"antd"
;
import
{
Badge
,
Button
,
Divider
,
Empty
,
Modal
,
Tag
,
Typography
}
from
"antd"
;
import
{
StateType
}
from
"@/pages/DataStudio/model"
;
import
{
connect
}
from
"umi"
;
import
{
FireOutlined
,
ScheduleOutlined
}
from
'@ant-design/icons'
;
import
StudioSqlConfig
from
"@/components/Studio/StudioRightTool/StudioSqlConfig"
;
import
{
DIALECT
,
isSql
}
from
"@/components/Studio/conf"
;
import
{
FireOutlined
,
ZoomInOutlined
}
from
'@ant-design/icons'
;
import
{
isSql
}
from
"@/components/Studio/conf"
;
import
{
useState
}
from
"react"
;
import
CodeShow
from
"@/components/Common/CodeShow"
;
const
{
Title
,
Paragraph
,
Text
,
Link
}
=
Typography
;
const
{
Title
,
Paragraph
,
Text
,
Link
}
=
Typography
;
const
StudioMsg
=
(
props
:
any
)
=>
{
const
StudioMsg
=
(
props
:
any
)
=>
{
const
{
current
}
=
props
;
const
[
sqlModalVisit
,
setSqlModalVisit
]
=
useState
(
false
);
const
[
errorModalVisit
,
setErrorModalVisit
]
=
useState
(
false
);
const
handleOpenSqlModal
=
()
=>
{
setSqlModalVisit
(
true
);
};
const
handleOpenErrorModal
=
()
=>
{
setErrorModalVisit
(
true
);
};
const
handleCancel
=
()
=>
{
setSqlModalVisit
(
false
);
setErrorModalVisit
(
false
);
};
const
renderCommonSqlContent
=
()
=>
{
return
(<>
<
Paragraph
>
<
blockquote
>
<
Divider
type=
"vertical"
/>
{
current
.
console
.
result
.
startTime
}
<
blockquote
><
Divider
type=
"vertical"
/>
{
current
.
console
.
result
.
startTime
}
<
Divider
type=
"vertical"
/>
{
current
.
console
.
result
.
endTime
}
<
Divider
type=
"vertical"
/>
{
!
(
current
.
console
.
result
.
success
)
?
<><
Badge
status=
"error"
/><
Text
type=
"danger"
>
Error
</
Text
></>
:
...
...
@@ -55,17 +71,34 @@ const StudioMsg = (props:any) => {
</
Link
>
<
Divider
type=
"vertical"
/>
{
current
.
console
.
result
.
startTime
}
<
Divider
type=
"vertical"
/>
{
current
.
console
.
result
.
endTime
}
<
Divider
type=
"vertical"
/>
{
!
(
current
.
console
.
result
.
status
===
'SUCCESS'
)
?
<><
Badge
status=
"error"
/><
Text
type=
"danger"
>
Error
</
Text
></>
:
{
!
(
current
.
console
.
result
.
status
===
'SUCCESS'
)
?
<><
Badge
status=
"error"
/><
Text
type=
"danger"
>
Error
</
Text
></>
:
<><
Badge
status=
"success"
/><
Text
type=
"success"
>
Success
</
Text
></>
}
<
Divider
type=
"vertical"
/>
{
current
.
console
.
result
.
jobConfig
?.
jobName
&&
<
Text
code
>
{
current
.
console
.
result
.
jobConfig
?.
jobName
}
</
Text
>
}
{
current
.
console
.
result
.
jobId
&&
{
current
.
console
.
result
.
jobConfig
?.
jobName
&&
<
Text
code
>
{
current
.
console
.
result
.
jobConfig
?.
jobName
}
</
Text
>
}
{
current
.
console
.
result
.
jobId
&&
(<>
<
Divider
type=
"vertical"
/>
<
Tag
color=
"blue"
key=
{
current
.
console
.
result
.
jobId
}
>
<
FireOutlined
/>
{
current
.
console
.
result
.
jobId
}
<
FireOutlined
/>
{
current
.
console
.
result
.
jobId
}
</
Tag
>
</>)
}
<
Button
type=
"text"
icon=
{
<
ZoomInOutlined
/>
}
onClick=
{
handleOpenSqlModal
}
>
SQL
</
Button
>
{
current
.
console
.
result
.
error
?
<
Button
type=
"text"
icon=
{
<
ZoomInOutlined
/>
}
onClick=
{
handleOpenErrorModal
}
>
Error
</
Button
>
:
undefined
}
</
blockquote
>
{
current
.
console
.
result
.
statement
&&
(<
pre
style=
{
{
height
:
'100px'
}
}
>
{
current
.
console
.
result
.
statement
}
</
pre
>)
}
{
current
.
console
.
result
.
error
&&
(<
pre
style=
{
{
height
:
'100px'
}
}
>
{
current
.
console
.
result
.
error
}
</
pre
>)
}
...
...
@@ -75,14 +108,38 @@ const StudioMsg = (props:any) => {
return
(
<
Typography
>
{
current
?.
task
&&
current
.
console
.
result
.
startTime
?(
isSql
(
current
.
task
.
dialect
)
?
renderCommonSqlContent
():
renderFlinkSqlContent
()
):<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
}
</
Typography
>
<>
<
Typography
>
{
current
?.
task
&&
current
.
console
.
result
.
startTime
?
(
isSql
(
current
.
task
.
dialect
)
?
renderCommonSqlContent
()
:
renderFlinkSqlContent
())
:
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
}
</
Typography
>
<
Modal
width=
{
'100%'
}
visible=
{
sqlModalVisit
}
destroyOnClose
centered
footer=
{
false
}
onCancel=
{
handleCancel
}
>
{
current
.
console
.
result
.
statement
&&
(<
CodeShow
height=
{
"80vh"
}
language=
{
"sql"
}
code=
{
current
.
console
.
result
.
statement
}
theme=
{
"vs-dark"
}
/>)
}
</
Modal
>
<
Modal
width=
{
'100%'
}
visible=
{
errorModalVisit
}
destroyOnClose
centered
footer=
{
false
}
onCancel=
{
handleCancel
}
>
{
current
.
console
.
result
.
error
&&
(<
CodeShow
height=
{
"80vh"
}
language=
{
"java"
}
code=
{
current
.
console
.
result
.
error
}
theme=
{
"vs-dark"
}
/>)
}
</
Modal
>
</>
);
};
export
default
connect
(({
Studio
}:
{
Studio
:
StateType
})
=>
({
export
default
connect
(({
Studio
}:
{
Studio
:
StateType
})
=>
({
current
:
Studio
.
current
,
}))(
StudioMsg
);
dlink-web/src/pages/Welcome.tsx
View file @
90a82dd0
...
...
@@ -1630,6 +1630,24 @@ export default (): React.ReactNode => {
<
li
>
<
Link
>
优化部署文档
</
Link
>
</
li
>
<
li
>
<
Link
>
修复 yarn-application 任务分隔符错误
</
Link
>
</
li
>
<
li
>
<
Link
>
升级 Flink 1.15 版本为 1.15.2
</
Link
>
</
li
>
<
li
>
<
Link
>
优化 SqlServer 字段类型查询
</
Link
>
</
li
>
<
li
>
<
Link
>
修复重命名作业后保存作业失败
</
Link
>
</
li
>
<
li
>
<
Link
>
修复提交历史的第二次弹框时无内容
</
Link
>
</
li
>
<
li
>
<
Link
>
新增数据开发任务信息日志详情按钮
</
Link
>
</
li
>
</
ul
>
</
Paragraph
>
</
Timeline
.
Item
>
...
...
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