Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnyc-data-pro
Overview
Overview
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
zhaochengxiang
hnyc-data-pro
Commits
39184a5b
Commit
39184a5b
authored
Apr 24, 2020
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据质量页面样式调整
parent
21e13066
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
7 deletions
+68
-7
error.png
src/assets/manage/error.png
+0
-0
success.png
src/assets/manage/success.png
+0
-0
unexecute.png
src/assets/manage/unexecute.png
+0
-0
style.less
src/pages/assets/style.less
+6
-0
index.tsx
src/pages/data/dataquality/index.tsx
+21
-7
style.less
src/pages/data/style.less
+41
-0
No files found.
src/assets/manage/error.png
0 → 100755
View file @
39184a5b
1.23 KB
src/assets/manage/success.png
0 → 100755
View file @
39184a5b
1.04 KB
src/assets/manage/unexecute.png
0 → 100755
View file @
39184a5b
1.52 KB
src/pages/assets/style.less
View file @
39184a5b
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
font-size: 14px;
font-size: 14px;
}
}
.asset-list {
height: calc(100vh - 270px) !important;
overflow: auto;
margin-bottom: 10px;
}
.asset-table:global(.ant-card) {
.asset-table:global(.ant-card) {
height: calc(100vh - 176px);
height: calc(100vh - 176px);
overflow: auto;
overflow: auto;
...
...
src/pages/data/dataquality/index.tsx
View file @
39184a5b
...
@@ -15,6 +15,11 @@ import {
...
@@ -15,6 +15,11 @@ import {
queryErrorOrGoodJobAction
,
queryErrorOrGoodJobAction
,
queryNeverJobAction
,
queryNeverJobAction
,
}
from
'./model'
;
}
from
'./model'
;
import
styles
from
'../style.less'
;
import
classNames
from
'classnames'
;
import
success
from
'@/assets/manage/success.png'
;
import
error
from
'@/assets/manage/error.png'
;
import
unexecute
from
'@/assets/manage/unexecute.png'
;
const
tableColResponsiveProps
=
{
const
tableColResponsiveProps
=
{
xs
:
24
,
xs
:
24
,
...
@@ -317,44 +322,53 @@ class DataQuality extends React.Component<Props, State> {
...
@@ -317,44 +322,53 @@ class DataQuality extends React.Component<Props, State> {
</
Form
.
Item
>
</
Form
.
Item
>
</
Form
>
</
Form
>
);
);
const
Title
=
(
img
:
any
,
text
:
string
)
=>
{
return
(
<
div
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
>
<
img
src=
{
img
}
width=
{
15
}
/>
<
span
style=
{
{
marginLeft
:
'5px'
,
color
:
'#333'
}
}
>
{
text
}
</
span
>
</
div
>
);
}
return
(
return
(
<
PageHeaderWrapper
extra=
{
extraContent
}
>
<
PageHeaderWrapper
extra=
{
extraContent
}
>
<
Row
gutter=
{
16
}
type=
"flex"
>
<
Row
gutter=
{
16
}
type=
"flex"
>
<
Col
{
...
tableColResponsiveProps
}
>
<
Col
{
...
tableColResponsiveProps
}
>
<
Card
<
Card
bordered=
{
false
}
bordered=
{
false
}
title=
"错误任务"
title=
{
Title
(
error
,
"错误任务"
)
}
extra=
{
<
Tag
color=
"gold"
>
计数
</
Tag
>
}
extra=
{
<
Tag
color=
"gold"
>
计数
</
Tag
>
}
bodyStyle=
{
{
padding
:
'20px 24px 8px 24px'
}
}
bodyStyle=
{
{
padding
:
'20px 24px 8px 24px'
}
}
loading=
{
loadingTotal
}
loading=
{
loadingTotal
}
>
>
<
Statistic
value=
{
totalData
?
totalData
.
badJobCount
:
0
}
/>
<
Statistic
className=
{
classNames
(
styles
.
errorCount
,
'text-center'
)
}
value=
{
totalData
?
totalData
.
badJobCount
:
0
}
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
<
Col
{
...
tableColResponsiveProps
}
>
<
Col
{
...
tableColResponsiveProps
}
>
<
Card
<
Card
bordered=
{
false
}
bordered=
{
false
}
title=
"成功任务"
title=
{
Title
(
success
,
"成功任务"
)
}
extra=
{
<
Tag
color=
"#108ee9"
>
计数
</
Tag
>
}
extra=
{
<
Tag
color=
"#108ee9"
>
计数
</
Tag
>
}
bodyStyle=
{
{
padding
:
'20px 24px 8px 24px'
}
}
bodyStyle=
{
{
padding
:
'20px 24px 8px 24px'
}
}
loading=
{
loadingTotal
}
loading=
{
loadingTotal
}
>
>
<
Statistic
value=
{
totalData
?
totalData
.
goodJobCount
:
0
}
/>
<
Statistic
className=
{
classNames
(
styles
.
successCount
,
'text-center'
)
}
value=
{
totalData
?
totalData
.
goodJobCount
:
0
}
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
<
Col
{
...
tableColResponsiveProps
}
>
<
Col
{
...
tableColResponsiveProps
}
>
<
Card
<
Card
bordered=
{
false
}
bordered=
{
false
}
title=
"未执行任务"
title=
{
Title
(
unexecute
,
"未执行任务"
)
}
extra=
{
<
Tag
>
计数
</
Tag
>
}
extra=
{
<
Tag
>
计数
</
Tag
>
}
bodyStyle=
{
{
padding
:
'20px 24px 8px 24px'
}
}
bodyStyle=
{
{
padding
:
'20px 24px 8px 24px'
}
}
loading=
{
loadingTotal
}
loading=
{
loadingTotal
}
>
>
<
Statistic
value=
{
totalData
?
totalData
.
neverRunJobCount
:
0
}
/>
<
Statistic
className=
{
classNames
(
styles
.
unexecuteCount
,
'text-center'
)
}
value=
{
totalData
?
totalData
.
neverRunJobCount
:
0
}
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
<
Row
gutter=
{
16
}
type=
"flex"
>
<
Row
gutter=
{
16
}
type=
"flex"
className=
{
styles
.
taskDetail
}
>
<
Col
{
...
tableColResponsiveProps
}
>
<
Col
{
...
tableColResponsiveProps
}
>
<
Card
<
Card
bordered=
{
false
}
bordered=
{
false
}
...
...
src/pages/data/style.less
View file @
39184a5b
...
@@ -16,6 +16,12 @@
...
@@ -16,6 +16,12 @@
font-size: 14px;
font-size: 14px;
}
}
.asset-list {
height: calc(100vh - 270px) !important;
overflow: auto;
margin-bottom: 10px;
}
.extraContentSearch {
.extraContentSearch {
width: 272px;
width: 272px;
margin-left: 16px;
margin-left: 16px;
...
@@ -24,3 +30,38 @@
...
@@ -24,3 +30,38 @@
.tableHeight {
.tableHeight {
height: calc(100vh - 180px);
height: calc(100vh - 180px);
}
}
.errorCount :global(.ant-statistic-content) {
font-weight: bold !important;
color: #C90000 !important;
font-size: 38px !important;
}
.successCount :global(.ant-statistic-content) {
font-weight: bold !important;
color: #02C90F !important;
font-size: 38px !important;
}
.unexecuteCount :global(.ant-statistic-content) {
font-weight: bold !important;
color: #999999 !important;
font-size: 38px !important;
}
.taskDetail {
:global(.ant-table-title) {
color: #333 !important;
}
:global(.ant-table-column-title) {
color: #333 !important;
font-weight: normal;
font-size: 13px;
}
:global(.ant-table-tbody) {
color: #666 !important;
font-size: 12px;
}
}
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