@vtx/modals2 5.0.37 → 5.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-popover/index.less +7 -7
- package/lib/_components/vm-table/index.js +4 -4
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +54 -54
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +5 -5
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-cc-cp-modal/api.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/config.js +52 -52
- package/lib/vtx-restaurant-modal/index.js +12 -0
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-staff-modal/api.js +4 -3
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +5 -3
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +40 -3
- package/lib/vtx-staff-modal/components/AlarmInfo/index.less +12 -0
- package/lib/vtx-staff-modal/components/Attendance/Record.js +27 -4
- package/package.json +78 -78
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
.vm-car-statistics {
|
|
2
|
-
width: 208px;
|
|
3
|
-
height: 84px;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
padding: 20px;
|
|
8
|
-
background-size: 100% 100%;
|
|
9
|
-
&-label {
|
|
10
|
-
color: var(--img-text-color);
|
|
11
|
-
}
|
|
12
|
-
&-value, &-unit {
|
|
13
|
-
color: #1f1f1f;
|
|
14
|
-
}
|
|
15
|
-
&.vm-car-statistics-dark {
|
|
16
|
-
.vm-car-statistics-value,.vm-car-statistics-unit {
|
|
17
|
-
background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
|
|
18
|
-
background-clip: text;
|
|
19
|
-
-webkit-text-fill-color: transparent;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
&-value {
|
|
23
|
-
font-size: 20px;
|
|
24
|
-
font-weight: bold;
|
|
25
|
-
margin-right: 4px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
.vm-car-statistics {
|
|
2
|
+
width: 208px;
|
|
3
|
+
height: 84px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
padding: 20px;
|
|
8
|
+
background-size: 100% 100%;
|
|
9
|
+
&-label {
|
|
10
|
+
color: var(--img-text-color);
|
|
11
|
+
}
|
|
12
|
+
&-value, &-unit {
|
|
13
|
+
color: #1f1f1f;
|
|
14
|
+
}
|
|
15
|
+
&.vm-car-statistics-dark {
|
|
16
|
+
.vm-car-statistics-value,.vm-car-statistics-unit {
|
|
17
|
+
background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
|
|
18
|
+
background-clip: text;
|
|
19
|
+
-webkit-text-fill-color: transparent;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&-value {
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
font-weight: bold;
|
|
25
|
+
margin-right: 4px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.vm-factor-list-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
padding: 12px 16px;
|
|
4
|
-
height: 68px;
|
|
5
|
-
background: #F3F8FF;
|
|
6
|
-
border-radius: 8px;
|
|
7
|
-
gap: 26px;
|
|
8
|
-
&.dark {
|
|
9
|
-
background: rgba(0,136,240,0.15);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
.vm-factor-list-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 12px 16px;
|
|
4
|
+
height: 68px;
|
|
5
|
+
background: #F3F8FF;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
gap: 26px;
|
|
8
|
+
&.dark {
|
|
9
|
+
background: rgba(0,136,240,0.15);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.vm-popover {
|
|
2
|
-
&.dark {
|
|
3
|
-
.ant-popover-inner-content, .ant-popover-arrow-content, .ant-popover-arrow-content::before {
|
|
4
|
-
background: rgb(51 95 135);
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
.vm-popover {
|
|
2
|
+
&.dark {
|
|
3
|
+
.ant-popover-inner-content, .ant-popover-arrow-content, .ant-popover-arrow-content::before {
|
|
4
|
+
background: rgb(51 95 135);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
.vm-modal-header-container {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 116px;
|
|
4
|
-
border-radius: 8px 8px 0 0;
|
|
5
|
-
background: var(--modal-head-bg);
|
|
6
|
-
padding: 0 16px;
|
|
7
|
-
margin-top: 1px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.vm-modal-header-wrap {
|
|
11
|
-
width: 100%;
|
|
12
|
-
height: 56px;
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
position: relative;
|
|
17
|
-
&::after {
|
|
18
|
-
position: absolute;
|
|
19
|
-
top: 54px;
|
|
20
|
-
left: 0;
|
|
21
|
-
content: '';
|
|
22
|
-
width: 180px;
|
|
23
|
-
height: 1px;
|
|
24
|
-
background: var(--modal-head-line-bg);
|
|
25
|
-
box-shadow: var(--modal-head-line-shadow);
|
|
26
|
-
border-radius: 8px;
|
|
27
|
-
animation: move 6s linear infinite;
|
|
28
|
-
|
|
29
|
-
@keyframes move {
|
|
30
|
-
0% {
|
|
31
|
-
left: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
100% {
|
|
35
|
-
left: calc(100% - 180px);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-left {
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
gap: 8px;
|
|
44
|
-
|
|
45
|
-
&-title {
|
|
46
|
-
font-weight: bold;
|
|
47
|
-
font-size: 20px;
|
|
48
|
-
color: var(--modal-title-color);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-tag {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
gap: 4px;
|
|
56
|
-
height: 24px;
|
|
57
|
-
border-radius: 16px;
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
padding: 0 8px;
|
|
60
|
-
border: 1px solid;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-right {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
gap: 16px;
|
|
68
|
-
|
|
69
|
-
&-close {
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
color: var(--modal-close-color);
|
|
74
|
-
width: 28px;
|
|
75
|
-
height: 28px;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
font-size: 16px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&-line {
|
|
81
|
-
width: 1px;
|
|
82
|
-
height: 14px;
|
|
83
|
-
background-color: var(--modal-head-split-line-color);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&-collect {
|
|
87
|
-
width: 28px;
|
|
88
|
-
height: 28px;
|
|
89
|
-
border-radius: 8px;
|
|
90
|
-
text-align: center;
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
|
|
93
|
-
&.active {
|
|
94
|
-
background: var(--collect-bg);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
1
|
+
.vm-modal-header-container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 116px;
|
|
4
|
+
border-radius: 8px 8px 0 0;
|
|
5
|
+
background: var(--modal-head-bg);
|
|
6
|
+
padding: 0 16px;
|
|
7
|
+
margin-top: 1px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.vm-modal-header-wrap {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 56px;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
position: relative;
|
|
17
|
+
&::after {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 54px;
|
|
20
|
+
left: 0;
|
|
21
|
+
content: '';
|
|
22
|
+
width: 180px;
|
|
23
|
+
height: 1px;
|
|
24
|
+
background: var(--modal-head-line-bg);
|
|
25
|
+
box-shadow: var(--modal-head-line-shadow);
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
animation: move 6s linear infinite;
|
|
28
|
+
|
|
29
|
+
@keyframes move {
|
|
30
|
+
0% {
|
|
31
|
+
left: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
100% {
|
|
35
|
+
left: calc(100% - 180px);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-left {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 8px;
|
|
44
|
+
|
|
45
|
+
&-title {
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
font-size: 20px;
|
|
48
|
+
color: var(--modal-title-color);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-tag {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
gap: 4px;
|
|
56
|
+
height: 24px;
|
|
57
|
+
border-radius: 16px;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
padding: 0 8px;
|
|
60
|
+
border: 1px solid;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-right {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: 16px;
|
|
68
|
+
|
|
69
|
+
&-close {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
color: var(--modal-close-color);
|
|
74
|
+
width: 28px;
|
|
75
|
+
height: 28px;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
font-size: 16px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-line {
|
|
81
|
+
width: 1px;
|
|
82
|
+
height: 14px;
|
|
83
|
+
background-color: var(--modal-head-split-line-color);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-collect {
|
|
87
|
+
width: 28px;
|
|
88
|
+
height: 28px;
|
|
89
|
+
border-radius: 8px;
|
|
90
|
+
text-align: center;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
|
|
93
|
+
&.active {
|
|
94
|
+
background: var(--collect-bg);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
.vm-modal-tabs {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 60px;
|
|
4
|
-
background: var(--vm-tabs-bg);
|
|
5
|
-
border-radius: 8px 8px 0 0;
|
|
6
|
-
border: none;
|
|
7
|
-
// border: 2px solid var(--vm-tab-border-color);
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
gap: 16px;
|
|
11
|
-
align-items: center;
|
|
12
|
-
|
|
13
|
-
&-item {
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 36px;
|
|
16
|
-
padding: 0 14px;
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
gap: 8px;
|
|
19
|
-
color: var(--vm-tabs-font-color);
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
|
|
24
|
-
&-active {
|
|
25
|
-
background: var(--vm-tab-item-active-bg-color);
|
|
26
|
-
border-radius: 26px;
|
|
27
|
-
color: var(--vm-tab-item-active-color);
|
|
28
|
-
box-shadow: var(--vm-tab-item-active-box-shadow);
|
|
29
|
-
&.vm-modal-tabs-item-dark {
|
|
30
|
-
position: relative;
|
|
31
|
-
&::before {
|
|
32
|
-
content: '';
|
|
33
|
-
position: absolute;
|
|
34
|
-
top: 0;
|
|
35
|
-
left: 0;
|
|
36
|
-
right: 0;
|
|
37
|
-
bottom: 0;
|
|
38
|
-
background: linear-gradient(
|
|
39
|
-
180deg,
|
|
40
|
-
rgba(255, 255, 255, 1),
|
|
41
|
-
rgba(54, 161, 255, 1)
|
|
42
|
-
);
|
|
43
|
-
border-radius: 26px;
|
|
44
|
-
padding: 1px;
|
|
45
|
-
-webkit-mask: linear-gradient(#fff 0 0) content-box,
|
|
46
|
-
linear-gradient(#fff 0 0);
|
|
47
|
-
-webkit-mask-composite: xor;
|
|
48
|
-
mask-composite: exclude;
|
|
49
|
-
z-index: -1;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
.vm-modal-tabs {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 60px;
|
|
4
|
+
background: var(--vm-tabs-bg);
|
|
5
|
+
border-radius: 8px 8px 0 0;
|
|
6
|
+
border: none;
|
|
7
|
+
// border: 2px solid var(--vm-tab-border-color);
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
&-item {
|
|
14
|
+
display: flex;
|
|
15
|
+
height: 36px;
|
|
16
|
+
padding: 0 14px;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
color: var(--vm-tabs-font-color);
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
|
|
24
|
+
&-active {
|
|
25
|
+
background: var(--vm-tab-item-active-bg-color);
|
|
26
|
+
border-radius: 26px;
|
|
27
|
+
color: var(--vm-tab-item-active-color);
|
|
28
|
+
box-shadow: var(--vm-tab-item-active-box-shadow);
|
|
29
|
+
&.vm-modal-tabs-item-dark {
|
|
30
|
+
position: relative;
|
|
31
|
+
&::before {
|
|
32
|
+
content: '';
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
right: 0;
|
|
37
|
+
bottom: 0;
|
|
38
|
+
background: linear-gradient(
|
|
39
|
+
180deg,
|
|
40
|
+
rgba(255, 255, 255, 1),
|
|
41
|
+
rgba(54, 161, 255, 1)
|
|
42
|
+
);
|
|
43
|
+
border-radius: 26px;
|
|
44
|
+
padding: 1px;
|
|
45
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box,
|
|
46
|
+
linear-gradient(#fff 0 0);
|
|
47
|
+
-webkit-mask-composite: xor;
|
|
48
|
+
mask-composite: exclude;
|
|
49
|
+
z-index: -1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vm-car-map-wrap {
|
|
2
|
-
flex: 1;
|
|
3
|
-
min-height: 0;
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: 10px;
|
|
6
|
-
}
|
|
1
|
+
.vm-car-map-wrap {
|
|
2
|
+
flex: 1;
|
|
3
|
+
min-height: 0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-top: 10px;
|
|
6
|
+
}
|
|
@@ -19,12 +19,12 @@ import { CcService } from "../../../api";
|
|
|
19
19
|
import Info from "../../../components/Info";
|
|
20
20
|
import { CarContext } from "../../../index";
|
|
21
21
|
import "./index.less";
|
|
22
|
+
import np from 'number-precision';
|
|
22
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
24
|
var BaseInfo = function BaseInfo() {
|
|
24
25
|
var _useContext = useContext(CarContext),
|
|
25
26
|
id = _useContext.id,
|
|
26
|
-
startDate = _useContext.startDate
|
|
27
|
-
info = _useContext.info;
|
|
27
|
+
startDate = _useContext.startDate;
|
|
28
28
|
var _useSettings = useSettings(),
|
|
29
29
|
isDark = _useSettings.isDark;
|
|
30
30
|
var _useState = useState(dayjs(startDate)),
|
|
@@ -55,7 +55,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
55
55
|
}, {
|
|
56
56
|
name: '计划内未收',
|
|
57
57
|
unit: '个',
|
|
58
|
-
value: (todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.syPointNum)
|
|
58
|
+
value: np.minus((todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.syPointNum) || 0, (todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.ysSyPointNum) || 0),
|
|
59
59
|
img: isDark ? require("../../../imgs/dark_ws_point.png") : require("../../../imgs/ws_point.png"),
|
|
60
60
|
fontType: 'yellow'
|
|
61
61
|
}, {
|
|
@@ -69,7 +69,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
69
69
|
unit: '桶',
|
|
70
70
|
value: todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.ysTrashBinNum,
|
|
71
71
|
compare: true,
|
|
72
|
-
compareValue: todayInfo.ysTrashBinNum
|
|
72
|
+
compareValue: np.minus(todayInfo.ysTrashBinNum || 0, yesterdayTaskInfo.ysTrashBinNum || 0),
|
|
73
73
|
img: isDark ? require("../../../imgs/dark_trash.png") : require("../../../imgs/trash.png"),
|
|
74
74
|
fontType: 'blue'
|
|
75
75
|
}, {
|
|
@@ -77,7 +77,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
77
77
|
unit: 'kg',
|
|
78
78
|
value: todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.weight,
|
|
79
79
|
compare: true,
|
|
80
|
-
compareValue: todayInfo.weight
|
|
80
|
+
compareValue: np.minus(todayInfo.weight || 0, yesterdayTaskInfo.weight || 0),
|
|
81
81
|
img: isDark ? require("../../../imgs/dark_weight.png") : require("../../../imgs/weight.png"),
|
|
82
82
|
fontType: 'blue'
|
|
83
83
|
}];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vtx-car-oil-wrap {
|
|
2
|
-
height: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
1
|
+
.vtx-car-oil-wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vtx-car-water-wrap {
|
|
2
|
-
height: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
1
|
+
.vtx-car-water-wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vm-cc-unit-map-wrap {
|
|
2
|
-
flex: 1;
|
|
3
|
-
min-height: 230px;
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: 10px;
|
|
6
|
-
}
|
|
1
|
+
.vm-cc-unit-map-wrap {
|
|
2
|
+
flex: 1;
|
|
3
|
+
min-height: 230px;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-top: 10px;
|
|
6
|
+
}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
.vtx-device-analysis-dot {
|
|
2
|
-
width: 6px;
|
|
3
|
-
height: 6px;
|
|
4
|
-
background: var(--green-color);
|
|
5
|
-
border-radius: 50%;
|
|
6
|
-
&.error {
|
|
7
|
-
background: var(--red-color);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.vtx-device-analysis-tabs {
|
|
12
|
-
display: flex;
|
|
13
|
-
gap: 16px;
|
|
14
|
-
color: var(--modal-title-color);
|
|
15
|
-
font-size: 14px;
|
|
16
|
-
&-item {
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
&.active {
|
|
19
|
-
color: var(--blue-color);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.vtx-device-alarm-summary {
|
|
25
|
-
width: 368px;
|
|
26
|
-
height: 104px;
|
|
27
|
-
padding: 20px;
|
|
28
|
-
margin-bottom: 20px;
|
|
29
|
-
color: var(--modal-title-color);
|
|
30
|
-
display: flex;
|
|
31
|
-
justify-content: space-between;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
background-image: url("../../imgs/current.png");
|
|
35
|
-
background-size: 100% 100%;
|
|
36
|
-
border-radius: 8px;
|
|
37
|
-
border: 1px solid transparent;
|
|
38
|
-
&-lable {
|
|
39
|
-
font-size: 16px;
|
|
40
|
-
font-weight: 600;
|
|
41
|
-
}
|
|
42
|
-
&-value {
|
|
43
|
-
font-weight: 600;
|
|
44
|
-
font-size: 24px;
|
|
45
|
-
color: var(--red-color);
|
|
46
|
-
}
|
|
47
|
-
&.dark {
|
|
48
|
-
background-image: url("../../imgs/current_dark.png");
|
|
49
|
-
&:last-child {
|
|
50
|
-
background-image: url("../../imgs/history_dark.png");
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
&.active {
|
|
54
|
-
border:1px solid var(--red-color);
|
|
55
|
-
}
|
|
56
|
-
&:last-child {
|
|
57
|
-
margin-bottom: 0;
|
|
58
|
-
background-image: url("../../imgs/history.png");
|
|
59
|
-
.vtx-device-alarm-summary-value {
|
|
60
|
-
color: var(--yellow-color);
|
|
61
|
-
}
|
|
62
|
-
&.active {
|
|
63
|
-
border:1px solid var(--yellow-color);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
.vtx-device-analysis-dot {
|
|
2
|
+
width: 6px;
|
|
3
|
+
height: 6px;
|
|
4
|
+
background: var(--green-color);
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
&.error {
|
|
7
|
+
background: var(--red-color);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.vtx-device-analysis-tabs {
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: 16px;
|
|
14
|
+
color: var(--modal-title-color);
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
&-item {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
&.active {
|
|
19
|
+
color: var(--blue-color);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.vtx-device-alarm-summary {
|
|
25
|
+
width: 368px;
|
|
26
|
+
height: 104px;
|
|
27
|
+
padding: 20px;
|
|
28
|
+
margin-bottom: 20px;
|
|
29
|
+
color: var(--modal-title-color);
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
background-image: url("../../imgs/current.png");
|
|
35
|
+
background-size: 100% 100%;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
border: 1px solid transparent;
|
|
38
|
+
&-lable {
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
}
|
|
42
|
+
&-value {
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
font-size: 24px;
|
|
45
|
+
color: var(--red-color);
|
|
46
|
+
}
|
|
47
|
+
&.dark {
|
|
48
|
+
background-image: url("../../imgs/current_dark.png");
|
|
49
|
+
&:last-child {
|
|
50
|
+
background-image: url("../../imgs/history_dark.png");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
&.active {
|
|
54
|
+
border:1px solid var(--red-color);
|
|
55
|
+
}
|
|
56
|
+
&:last-child {
|
|
57
|
+
margin-bottom: 0;
|
|
58
|
+
background-image: url("../../imgs/history.png");
|
|
59
|
+
.vtx-device-alarm-summary-value {
|
|
60
|
+
color: var(--yellow-color);
|
|
61
|
+
}
|
|
62
|
+
&.active {
|
|
63
|
+
border:1px solid var(--yellow-color);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.vtx-restaurant-rule_item {
|
|
2
|
-
border-radius: 8px 8px 8px 8px;
|
|
3
|
-
border: 1px solid var(--gray-line-color);
|
|
4
|
-
padding: 16px 16px 8px;
|
|
5
|
-
margin-top: 12px;
|
|
6
|
-
position: relative;
|
|
7
|
-
.vtx-restaurant-border {
|
|
8
|
-
width: 100%;
|
|
9
|
-
position: absolute;
|
|
10
|
-
left: 0;
|
|
11
|
-
top: -2px;
|
|
12
|
-
height: 44px;
|
|
13
|
-
border-radius: 8px 8px 0px 0px;
|
|
14
|
-
border-top: 2px solid var(--blue-color);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
.vtx-restaurant-rule_item {
|
|
2
|
+
border-radius: 8px 8px 8px 8px;
|
|
3
|
+
border: 1px solid var(--gray-line-color);
|
|
4
|
+
padding: 16px 16px 8px;
|
|
5
|
+
margin-top: 12px;
|
|
6
|
+
position: relative;
|
|
7
|
+
.vtx-restaurant-border {
|
|
8
|
+
width: 100%;
|
|
9
|
+
position: absolute;
|
|
10
|
+
left: 0;
|
|
11
|
+
top: -2px;
|
|
12
|
+
height: 44px;
|
|
13
|
+
border-radius: 8px 8px 0px 0px;
|
|
14
|
+
border-top: 2px solid var(--blue-color);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -60,108 +60,108 @@ export var QD_DETAIL_FIELDS = [{
|
|
|
60
60
|
label: '二维码'
|
|
61
61
|
}];
|
|
62
62
|
export var RestaurantConfigureEnum = {
|
|
63
|
-
/**
|
|
64
|
-
* 编号
|
|
63
|
+
/**
|
|
64
|
+
* 编号
|
|
65
65
|
*/
|
|
66
66
|
CODE: 'code',
|
|
67
|
-
/**
|
|
68
|
-
* 产生单位名称
|
|
67
|
+
/**
|
|
68
|
+
* 产生单位名称
|
|
69
69
|
*/
|
|
70
70
|
NAME: 'name',
|
|
71
|
-
/**
|
|
72
|
-
* 店铺名称
|
|
71
|
+
/**
|
|
72
|
+
* 店铺名称
|
|
73
73
|
*/
|
|
74
74
|
SHORT_NAME: 'shortName',
|
|
75
|
-
/**
|
|
76
|
-
* 行政区划名称
|
|
75
|
+
/**
|
|
76
|
+
* 行政区划名称
|
|
77
77
|
*/
|
|
78
78
|
DIVISION_NAME: 'divisionId',
|
|
79
|
-
/**
|
|
80
|
-
* 联系人
|
|
79
|
+
/**
|
|
80
|
+
* 联系人
|
|
81
81
|
*/
|
|
82
82
|
CONTACT_PERSON: 'contactPerson',
|
|
83
|
-
/**
|
|
84
|
-
* 联系方式
|
|
83
|
+
/**
|
|
84
|
+
* 联系方式
|
|
85
85
|
*/
|
|
86
86
|
CONTACT_PHONE: 'contactPhone',
|
|
87
|
-
/**
|
|
88
|
-
* 身份证号
|
|
87
|
+
/**
|
|
88
|
+
* 身份证号
|
|
89
89
|
*/
|
|
90
90
|
CARD_ID: 'cardId',
|
|
91
|
-
/**
|
|
92
|
-
* 商户地址
|
|
91
|
+
/**
|
|
92
|
+
* 商户地址
|
|
93
93
|
*/
|
|
94
94
|
ADDRESS: 'address',
|
|
95
|
-
/**
|
|
96
|
-
* 经纬度
|
|
95
|
+
/**
|
|
96
|
+
* 经纬度
|
|
97
97
|
*/
|
|
98
98
|
LOCATION: 'location',
|
|
99
|
-
/**
|
|
100
|
-
* 产生单位状态
|
|
99
|
+
/**
|
|
100
|
+
* 产生单位状态
|
|
101
101
|
*/
|
|
102
102
|
SIGNED_STATUS: 'signedStatus',
|
|
103
|
-
/**
|
|
104
|
-
* 签约状态
|
|
103
|
+
/**
|
|
104
|
+
* 签约状态
|
|
105
105
|
*/
|
|
106
106
|
IS_SIGN: 'isSign',
|
|
107
|
-
/**
|
|
108
|
-
* 收集类型
|
|
107
|
+
/**
|
|
108
|
+
* 收集类型
|
|
109
109
|
*/
|
|
110
110
|
COLLECT_STATUS: 'collectStatus',
|
|
111
|
-
/**
|
|
112
|
-
* 收集点
|
|
111
|
+
/**
|
|
112
|
+
* 收集点
|
|
113
113
|
*/
|
|
114
114
|
SY_POINT_NAME: 'syPointId',
|
|
115
|
-
/**
|
|
116
|
-
* 商户类型名称
|
|
115
|
+
/**
|
|
116
|
+
* 商户类型名称
|
|
117
117
|
*/
|
|
118
118
|
CLASSES_NAME: 'classesId',
|
|
119
|
-
/**
|
|
120
|
-
* 规模名称
|
|
119
|
+
/**
|
|
120
|
+
* 规模名称
|
|
121
121
|
*/
|
|
122
122
|
SCALE_NAME: 'scaleId',
|
|
123
|
-
/**
|
|
124
|
-
* 垃圾桶个数
|
|
123
|
+
/**
|
|
124
|
+
* 垃圾桶个数
|
|
125
125
|
*/
|
|
126
126
|
TRASH_CAN_NUM: 'trashCanNum',
|
|
127
|
-
/**
|
|
128
|
-
* 统一社会信用代码
|
|
127
|
+
/**
|
|
128
|
+
* 统一社会信用代码
|
|
129
129
|
*/
|
|
130
130
|
CREDIT_CODE: 'creditCode',
|
|
131
|
-
/**
|
|
132
|
-
* 行业名称
|
|
131
|
+
/**
|
|
132
|
+
* 行业名称
|
|
133
133
|
*/
|
|
134
134
|
INDUSTRY_NAME: 'industryId',
|
|
135
|
-
/**
|
|
136
|
-
* 经营范围
|
|
135
|
+
/**
|
|
136
|
+
* 经营范围
|
|
137
137
|
*/
|
|
138
138
|
BUSINESS_SCOPE: 'businessScope',
|
|
139
|
-
/**
|
|
140
|
-
* 注册资金
|
|
139
|
+
/**
|
|
140
|
+
* 注册资金
|
|
141
141
|
*/
|
|
142
142
|
REGISTER_MONEY: 'registerMoney',
|
|
143
|
-
/**
|
|
144
|
-
* 企业成立时间
|
|
143
|
+
/**
|
|
144
|
+
* 企业成立时间
|
|
145
145
|
*/
|
|
146
146
|
ESTABLISHED_TIME: 'establishedTime',
|
|
147
|
-
/**
|
|
148
|
-
* 建议收集时间
|
|
147
|
+
/**
|
|
148
|
+
* 建议收集时间
|
|
149
149
|
*/
|
|
150
150
|
SUGGEST_COLLECT_TIME: 'suggestCollectTime',
|
|
151
|
-
/**
|
|
152
|
-
* 营业时间段
|
|
151
|
+
/**
|
|
152
|
+
* 营业时间段
|
|
153
153
|
*/
|
|
154
154
|
BUSINESS_TIME: 'businessTime',
|
|
155
|
-
/**
|
|
156
|
-
* 垃圾桶摆放位置图片
|
|
155
|
+
/**
|
|
156
|
+
* 垃圾桶摆放位置图片
|
|
157
157
|
*/
|
|
158
158
|
TRASH_BIN_LOCATION_PHOTO: 'trashBinLocationPhoto',
|
|
159
|
-
/**
|
|
160
|
-
* 商户图片
|
|
159
|
+
/**
|
|
160
|
+
* 商户图片
|
|
161
161
|
*/
|
|
162
162
|
PHOTO_IDS: 'photoIds',
|
|
163
|
-
/**
|
|
164
|
-
* 证件图片
|
|
163
|
+
/**
|
|
164
|
+
* 证件图片
|
|
165
165
|
*/
|
|
166
166
|
PAPER_FILE_IDS: 'paperFileIds'
|
|
167
167
|
};
|
|
@@ -21,6 +21,7 @@ import VtxCcUnitModal from "../vtx-cc-unit-modal";
|
|
|
21
21
|
import { BasicService } from "./api";
|
|
22
22
|
import { Alarm, Basic, Calendar, Collection, DetailInfo, SignAndContract } from "./components";
|
|
23
23
|
import "./style";
|
|
24
|
+
import { VmCustom } from "../_components";
|
|
24
25
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
26
|
var TABS_BASE = 'base';
|
|
26
27
|
var TABS_DETAIL = 'detail';
|
|
@@ -141,6 +142,17 @@ var VtxRestaurantModal = function VtxRestaurantModal(props) {
|
|
|
141
142
|
};
|
|
142
143
|
}, [id, basicInfo, garbageType, showCharts, date]);
|
|
143
144
|
var tabContents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(Basic, {})), TABS_DETAIL, /*#__PURE__*/_jsx(DetailInfo, {})), TABS_SIGN, /*#__PURE__*/_jsx(SignAndContract, {})), TABS_CALENDAR, /*#__PURE__*/_jsx(Calendar, {})), TABS_COLLECTION, /*#__PURE__*/_jsx(Collection, {})), TABS_ALARM, /*#__PURE__*/_jsx(Alarm, {}));
|
|
145
|
+
// 自定义页签可配置多个,包含custom即可
|
|
146
|
+
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
147
|
+
tabsData.forEach(function (ele) {
|
|
148
|
+
if (ele.url) {
|
|
149
|
+
tabContents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
150
|
+
id: id,
|
|
151
|
+
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
152
|
+
}, ele.key);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
144
156
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
145
157
|
children: [/*#__PURE__*/_jsx(Provider, {
|
|
146
158
|
value: value,
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
.road-statistic-summary-main-rate {
|
|
2
|
-
--bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
|
|
3
|
-
&-dark {
|
|
4
|
-
--bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
|
|
5
|
-
}
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 130px;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: space-around;
|
|
11
|
-
padding: 0 24px;
|
|
12
|
-
background: var(--bg-color);
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
&--block {
|
|
15
|
-
width: 8px;
|
|
16
|
-
height: 8px;
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
}
|
|
19
|
-
&--label {
|
|
20
|
-
display: flex;
|
|
21
|
-
gap: 4px;
|
|
22
|
-
align-items: center;
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
color: var(--img-text-color);
|
|
25
|
-
}
|
|
26
|
-
&--value {
|
|
27
|
-
margin-left: 12px;
|
|
28
|
-
font-weight: bold;
|
|
29
|
-
font-size: 24px;
|
|
30
|
-
color: #1F1F1F;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
.road-statistic-summary-main-rate {
|
|
2
|
+
--bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
|
|
3
|
+
&-dark {
|
|
4
|
+
--bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
|
|
5
|
+
}
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 130px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-around;
|
|
11
|
+
padding: 0 24px;
|
|
12
|
+
background: var(--bg-color);
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
&--block {
|
|
15
|
+
width: 8px;
|
|
16
|
+
height: 8px;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
}
|
|
19
|
+
&--label {
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: 4px;
|
|
22
|
+
align-items: center;
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
color: var(--img-text-color);
|
|
25
|
+
}
|
|
26
|
+
&--value {
|
|
27
|
+
margin-left: 12px;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
font-size: 24px;
|
|
30
|
+
color: #1F1F1F;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -396,7 +396,7 @@ var AttendanceService = {
|
|
|
396
396
|
}) : []
|
|
397
397
|
};
|
|
398
398
|
},
|
|
399
|
-
useAttendRecord: function useAttendRecord(staffId, startTime, endTime, pageNo, service) {
|
|
399
|
+
useAttendRecord: function useAttendRecord(staffId, startTime, endTime, pageNo, service, shiftClockWay) {
|
|
400
400
|
var _useRequest17 = useRequest(function () {
|
|
401
401
|
return request.get("/cloud/".concat(service ? 'rygl' : 'zyry-reborn', "/api/v101/attendanceRecord"), {
|
|
402
402
|
data: {
|
|
@@ -404,11 +404,12 @@ var AttendanceService = {
|
|
|
404
404
|
startTime: startTime,
|
|
405
405
|
endTime: endTime,
|
|
406
406
|
pageNo: pageNo,
|
|
407
|
-
pageSize: 10
|
|
407
|
+
pageSize: 10,
|
|
408
|
+
shiftClockWay: shiftClockWay
|
|
408
409
|
}
|
|
409
410
|
});
|
|
410
411
|
}, {
|
|
411
|
-
refreshDeps: [staffId, startTime, endTime, pageNo]
|
|
412
|
+
refreshDeps: [staffId, startTime, endTime, pageNo, shiftClockWay]
|
|
412
413
|
}),
|
|
413
414
|
attendRecordRes = _useRequest17.data;
|
|
414
415
|
return {
|
|
@@ -16,6 +16,9 @@ var Charts = function Charts(_ref) {
|
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
+
var total = chartData === null || chartData === void 0 ? void 0 : chartData.reduce(function (acc, cur) {
|
|
20
|
+
return acc + cur.value;
|
|
21
|
+
}, 0);
|
|
19
22
|
return /*#__PURE__*/_jsxs("div", {
|
|
20
23
|
className: "staff-alarm-charts",
|
|
21
24
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -24,6 +27,8 @@ var Charts = function Charts(_ref) {
|
|
|
24
27
|
height: 216,
|
|
25
28
|
unit: "\u6B21",
|
|
26
29
|
name: "\u62A5\u8B66\u6B21\u6570",
|
|
30
|
+
subTitle: "\u603B\u6570(\u6B21)",
|
|
31
|
+
total: total,
|
|
27
32
|
innerRadius: ['50%', '65%'],
|
|
28
33
|
outerRadius: ['65%', '70%'],
|
|
29
34
|
dataList: (chartData === null || chartData === void 0 ? void 0 : chartData.filter(function (ele) {
|
|
@@ -35,9 +40,6 @@ var Charts = function Charts(_ref) {
|
|
|
35
40
|
var value = chartData.find(function (item) {
|
|
36
41
|
return item.name === name;
|
|
37
42
|
});
|
|
38
|
-
var total = chartData.reduce(function (acc, cur) {
|
|
39
|
-
return acc + cur.value;
|
|
40
|
-
}, 0);
|
|
41
43
|
if (value) {
|
|
42
44
|
return "\t\t".concat(name, "\t\t").concat(value.value, "\u6B21\t\t").concat((value.value / total * 100).toFixed(2), "%");
|
|
43
45
|
} else {
|
|
@@ -15,10 +15,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useSetState } from 'ahooks';
|
|
18
|
+
import { Tag } from 'antd';
|
|
18
19
|
import { VmTable } from "../../../_components";
|
|
19
20
|
import { secondToFormatTime } from "../../../_util";
|
|
20
21
|
import { AlarmService } from "../../api";
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
23
|
var List = function List(props) {
|
|
23
24
|
var id = props.id,
|
|
24
25
|
startDate = props.startDate,
|
|
@@ -46,14 +47,50 @@ var List = function List(props) {
|
|
|
46
47
|
total: (alarmRecordRes === null || alarmRecordRes === void 0 ? void 0 : alarmRecordRes.total) || 0,
|
|
47
48
|
rows: (alarmRecordRes === null || alarmRecordRes === void 0 ? void 0 : alarmRecordRes.rows) || []
|
|
48
49
|
};
|
|
50
|
+
var getColor = function getColor(code) {
|
|
51
|
+
if ((code === null || code === void 0 ? void 0 : code.indexOf('脱岗')) > -1) {
|
|
52
|
+
return '#f00707';
|
|
53
|
+
} else if ((code === null || code === void 0 ? void 0 : code.indexOf('违规')) > -1) {
|
|
54
|
+
return '#961414';
|
|
55
|
+
} else if ((code === null || code === void 0 ? void 0 : code.indexOf('异常')) > -1) {
|
|
56
|
+
return '#c7292b';
|
|
57
|
+
}
|
|
58
|
+
return '#c44a4a';
|
|
59
|
+
};
|
|
60
|
+
var getColor2 = function getColor2(code) {
|
|
61
|
+
if ((code === null || code === void 0 ? void 0 : code.indexOf('一')) > -1) {
|
|
62
|
+
return '#f00707';
|
|
63
|
+
} else if ((code === null || code === void 0 ? void 0 : code.indexOf('二')) > -1) {
|
|
64
|
+
return '#f7c500';
|
|
65
|
+
} else if ((code === null || code === void 0 ? void 0 : code.indexOf('三')) > -1) {
|
|
66
|
+
return '#d3ec43';
|
|
67
|
+
}
|
|
68
|
+
return '#87972b';
|
|
69
|
+
};
|
|
49
70
|
var columns = [{
|
|
50
71
|
title: '报警类型',
|
|
51
72
|
dataIndex: 'alarmTypeName',
|
|
52
|
-
key: 'alarmTypeName'
|
|
73
|
+
key: 'alarmTypeName',
|
|
74
|
+
render: function render(text) {
|
|
75
|
+
return text ? /*#__PURE__*/_jsx(Tag, {
|
|
76
|
+
color: getColor(text),
|
|
77
|
+
children: text
|
|
78
|
+
}) : '--';
|
|
79
|
+
}
|
|
53
80
|
}, {
|
|
54
81
|
title: '报警等级',
|
|
55
82
|
dataIndex: 'alarmLevelName',
|
|
56
|
-
key: 'alarmLevelName'
|
|
83
|
+
key: 'alarmLevelName',
|
|
84
|
+
render: function render(text) {
|
|
85
|
+
return text ? /*#__PURE__*/_jsxs("div", {
|
|
86
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
87
|
+
className: 'staff-alarm-status',
|
|
88
|
+
style: {
|
|
89
|
+
backgroundColor: getColor2(text)
|
|
90
|
+
}
|
|
91
|
+
}), text]
|
|
92
|
+
}) : '--';
|
|
93
|
+
}
|
|
57
94
|
}, {
|
|
58
95
|
title: '报警开始时间',
|
|
59
96
|
dataIndex: 'startTime',
|
|
@@ -15,7 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
*/
|
|
16
16
|
import { useSetState } from 'ahooks';
|
|
17
17
|
import dayjs from 'dayjs';
|
|
18
|
-
import { VmTable, VmWrapper } from "../../../_components";
|
|
18
|
+
import { VmExtraTab, VmTable, VmWrapper } from "../../../_components";
|
|
19
19
|
import { AttendanceService } from "../../api";
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
21
|
export default function Record(props) {
|
|
@@ -24,6 +24,7 @@ export default function Record(props) {
|
|
|
24
24
|
var _useSetState = useSetState({
|
|
25
25
|
startDate: dayjs().startOf('M'),
|
|
26
26
|
endDate: dayjs(),
|
|
27
|
+
shiftClockWay: 'CLOCK_IN_OUT',
|
|
27
28
|
pagination: {
|
|
28
29
|
current: 1,
|
|
29
30
|
pageSize: 10,
|
|
@@ -35,8 +36,9 @@ export default function Record(props) {
|
|
|
35
36
|
setState = _useSetState2[1];
|
|
36
37
|
var pagination = state.pagination,
|
|
37
38
|
startDate = state.startDate,
|
|
38
|
-
endDate = state.endDate
|
|
39
|
-
|
|
39
|
+
endDate = state.endDate,
|
|
40
|
+
shiftClockWay = state.shiftClockWay;
|
|
41
|
+
var _AttendanceService$us = AttendanceService.useAttendRecord(id, "".concat(startDate.format('YYYY-MM-DD'), " 00:00:00"), "".concat(endDate.format('YYYY-MM-DD'), " 23:59:59"), pagination.current - 1, service, shiftClockWay),
|
|
40
42
|
attendRecordRes = _AttendanceService$us.attendRecordRes;
|
|
41
43
|
var records = {
|
|
42
44
|
total: (attendRecordRes === null || attendRecordRes === void 0 ? void 0 : attendRecordRes.total) || 0,
|
|
@@ -128,7 +130,8 @@ export default function Record(props) {
|
|
|
128
130
|
title: '用工类型',
|
|
129
131
|
dataIndex: 'workTypeName',
|
|
130
132
|
key: 'workTypeName',
|
|
131
|
-
width: 80
|
|
133
|
+
width: 80,
|
|
134
|
+
ellipsis: true
|
|
132
135
|
}];
|
|
133
136
|
var pageChange = function pageChange(page) {
|
|
134
137
|
setState({
|
|
@@ -163,6 +166,26 @@ export default function Record(props) {
|
|
|
163
166
|
filterChange: function filterChange(dates) {
|
|
164
167
|
return dates && handleDateChange(dates);
|
|
165
168
|
},
|
|
169
|
+
extra: service ? /*#__PURE__*/_jsx(VmExtraTab, {
|
|
170
|
+
data: [{
|
|
171
|
+
key: 'CLOCK_IN_OUT',
|
|
172
|
+
title: '上下班打卡'
|
|
173
|
+
}, {
|
|
174
|
+
key: 'SHIFT_CHECK_IN',
|
|
175
|
+
title: '班次内打卡'
|
|
176
|
+
}],
|
|
177
|
+
value: shiftClockWay,
|
|
178
|
+
onChange: function onChange(key) {
|
|
179
|
+
setState({
|
|
180
|
+
shiftClockWay: key,
|
|
181
|
+
pagination: {
|
|
182
|
+
current: 1,
|
|
183
|
+
pageSize: 10,
|
|
184
|
+
total: 0
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}) : null,
|
|
166
189
|
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
167
190
|
columns: columns,
|
|
168
191
|
rowKey: "id"
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vtx/modals2",
|
|
3
|
-
"version": "5.0.
|
|
4
|
-
"description": "弹窗组件",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"module": "lib/index.js",
|
|
7
|
-
"types": "lib/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "father build",
|
|
13
|
-
"build:watch": "father dev",
|
|
14
|
-
"dev": "dumi dev",
|
|
15
|
-
"docs:build": "dumi build",
|
|
16
|
-
"docs:preview": "dumi preview",
|
|
17
|
-
"doctor": "father doctor",
|
|
18
|
-
"lint": "npm run lint:es && npm run lint:css",
|
|
19
|
-
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
20
|
-
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
|
-
"prepare": "husky install && dumi setup",
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"start": "npm run dev"
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"base-64": "^1.0.0",
|
|
27
|
-
"htmr": "^1.0.2",
|
|
28
|
-
"number-precision": "^1.6.0",
|
|
29
|
-
"react-tagcloud": "^2.3.3"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@ant-design/icons": "4.7.0",
|
|
33
|
-
"@babel/preset-react": "^7.28.5",
|
|
34
|
-
"@babel/runtime": "^7.6.3",
|
|
35
|
-
"@commitlint/cli": "^17.1.2",
|
|
36
|
-
"@commitlint/config-conventional": "^17.1.0",
|
|
37
|
-
"@types/lodash": "^4.14.202",
|
|
38
|
-
"@types/qs": "^6.9.11",
|
|
39
|
-
"@types/react": "^18.0.0",
|
|
40
|
-
"@types/react-dom": "^18.0.0",
|
|
41
|
-
"@umijs/lint": "^4.0.0",
|
|
42
|
-
"@vtx/components": "^3.1.166",
|
|
43
|
-
"@vtx/ol-map": "^1.0.151",
|
|
44
|
-
"@vtx/player": "latest",
|
|
45
|
-
"@vtx/utils": "^1.0.20",
|
|
46
|
-
"ahooks": "^3.1.5",
|
|
47
|
-
"antd": "^4.24.16",
|
|
48
|
-
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
49
|
-
"axios": "^0.21.1",
|
|
50
|
-
"babel-eslint": "^10.1.0",
|
|
51
|
-
"babel-plugin-import": "^1.13.8",
|
|
52
|
-
"dayjs": "^1.11.10",
|
|
53
|
-
"dumi": "^2.2.13",
|
|
54
|
-
"echarts": "^5.3.2",
|
|
55
|
-
"echarts-for-react": "3.0.2",
|
|
56
|
-
"echarts-liquidfill": "^3.1.0",
|
|
57
|
-
"eslint": "^8.23.0",
|
|
58
|
-
"father": "^4.1.0",
|
|
59
|
-
"husky": "^8.0.1",
|
|
60
|
-
"lint-staged": "^13.0.3",
|
|
61
|
-
"lodash": "^4.17.21",
|
|
62
|
-
"prettier": "^2.7.1",
|
|
63
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
|
64
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
|
65
|
-
"qs": "^6.0.0",
|
|
66
|
-
"react": "^18.0.0",
|
|
67
|
-
"react-dom": "^18.0.0",
|
|
68
|
-
"stylelint": "^14.9.1"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"react": ">=16.9.0",
|
|
72
|
-
"react-dom": ">=16.9.0"
|
|
73
|
-
},
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
76
|
-
},
|
|
77
|
-
"authors": []
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vtx/modals2",
|
|
3
|
+
"version": "5.0.39",
|
|
4
|
+
"description": "弹窗组件",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "father build",
|
|
13
|
+
"build:watch": "father dev",
|
|
14
|
+
"dev": "dumi dev",
|
|
15
|
+
"docs:build": "dumi build",
|
|
16
|
+
"docs:preview": "dumi preview",
|
|
17
|
+
"doctor": "father doctor",
|
|
18
|
+
"lint": "npm run lint:es && npm run lint:css",
|
|
19
|
+
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
20
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
|
+
"prepare": "husky install && dumi setup",
|
|
22
|
+
"prepublishOnly": "npm run build",
|
|
23
|
+
"start": "npm run dev"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"base-64": "^1.0.0",
|
|
27
|
+
"htmr": "^1.0.2",
|
|
28
|
+
"number-precision": "^1.6.0",
|
|
29
|
+
"react-tagcloud": "^2.3.3"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@ant-design/icons": "4.7.0",
|
|
33
|
+
"@babel/preset-react": "^7.28.5",
|
|
34
|
+
"@babel/runtime": "^7.6.3",
|
|
35
|
+
"@commitlint/cli": "^17.1.2",
|
|
36
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
37
|
+
"@types/lodash": "^4.14.202",
|
|
38
|
+
"@types/qs": "^6.9.11",
|
|
39
|
+
"@types/react": "^18.0.0",
|
|
40
|
+
"@types/react-dom": "^18.0.0",
|
|
41
|
+
"@umijs/lint": "^4.0.0",
|
|
42
|
+
"@vtx/components": "^3.1.166",
|
|
43
|
+
"@vtx/ol-map": "^1.0.151",
|
|
44
|
+
"@vtx/player": "latest",
|
|
45
|
+
"@vtx/utils": "^1.0.20",
|
|
46
|
+
"ahooks": "^3.1.5",
|
|
47
|
+
"antd": "^4.24.16",
|
|
48
|
+
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
49
|
+
"axios": "^0.21.1",
|
|
50
|
+
"babel-eslint": "^10.1.0",
|
|
51
|
+
"babel-plugin-import": "^1.13.8",
|
|
52
|
+
"dayjs": "^1.11.10",
|
|
53
|
+
"dumi": "^2.2.13",
|
|
54
|
+
"echarts": "^5.3.2",
|
|
55
|
+
"echarts-for-react": "3.0.2",
|
|
56
|
+
"echarts-liquidfill": "^3.1.0",
|
|
57
|
+
"eslint": "^8.23.0",
|
|
58
|
+
"father": "^4.1.0",
|
|
59
|
+
"husky": "^8.0.1",
|
|
60
|
+
"lint-staged": "^13.0.3",
|
|
61
|
+
"lodash": "^4.17.21",
|
|
62
|
+
"prettier": "^2.7.1",
|
|
63
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
|
64
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
|
65
|
+
"qs": "^6.0.0",
|
|
66
|
+
"react": "^18.0.0",
|
|
67
|
+
"react-dom": "^18.0.0",
|
|
68
|
+
"stylelint": "^14.9.1"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"react": ">=16.9.0",
|
|
72
|
+
"react-dom": ">=16.9.0"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
},
|
|
77
|
+
"authors": []
|
|
78
|
+
}
|