@vtx/modals2 2.15.65 → 2.15.66
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/README.md +33 -33
- package/lib/style/index.less +8 -8
- package/lib/style/themes/dark.less +128 -128
- package/lib/style/themes/default.less +44 -44
- package/lib/style/themes/index.less +1 -1
- package/lib/vm-alarm-info/Components/index.less +43 -43
- package/lib/vm-alarm-info/style/index.less +16 -16
- package/lib/vm-alarm-situation/style/index.less +67 -67
- package/lib/vm-alarm-situation-pt/style/index.less +65 -65
- package/lib/vm-analysis-comparison/style/index.less +12 -12
- package/lib/vm-appraisal-info/style/index.less +136 -136
- package/lib/vm-base-list/style/index.less +39 -39
- package/lib/vm-button/style/index.less +20 -20
- package/lib/vm-charts/index.less +30 -30
- package/lib/vm-checkbox/style/index.less +25 -25
- package/lib/vm-container/style/index.less +30 -30
- package/lib/vm-correlation-comparison/style/index.less +13 -13
- package/lib/vm-custom/style/index.less +20 -20
- package/lib/vm-empty/style/index.less +23 -23
- package/lib/vm-hooks/useSettings.js +1 -1
- package/lib/vm-hooks/useSettings.js.map +1 -1
- package/lib/vm-iframe-modal/style/index.less +9 -9
- package/lib/vm-image-text/style/index.less +32 -32
- package/lib/vm-map/style/index.less +3 -3
- package/lib/vm-modal-table/style/index.less +23 -23
- package/lib/vm-radio/style/index.less +26 -26
- package/lib/vm-real-time-monitor/style/index.less +12 -12
- package/lib/vm-repair-maintain/style/index.less +115 -115
- package/lib/vm-round-content/style/index.less +33 -33
- package/lib/vm-select-device/style/index.less +16 -16
- package/lib/vm-sub-tabs/style/index.css +4 -0
- package/lib/vm-sub-tabs/style/index.less +4 -1
- package/lib/vm-sub-title/style/index.less +69 -69
- package/lib/vm-video/index.less +36 -36
- package/lib/vtx-area-modal/components/BaseInfo/index.less +256 -256
- package/lib/vtx-base-info/style/index.less +69 -69
- package/lib/vtx-base-modal/style/index.less +1094 -1094
- package/lib/vtx-car-modal/components/AlarmInfo/index.less +40 -40
- package/lib/vtx-car-modal/components/BaseInfo/index.less +290 -290
- package/lib/vtx-car-modal/components/Collection/index.less +18 -18
- package/lib/vtx-car-modal/components/DetailInfo/index.less +21 -21
- package/lib/vtx-car-modal/components/Maintenance/index.less +35 -35
- package/lib/vtx-car-modal/components/OilConsumption/index.less +39 -39
- package/lib/vtx-car-modal/components/StaticInfo/index.less +82 -82
- package/lib/vtx-car-modal/components/WaterConsumption/index.less +25 -25
- package/lib/vtx-car-modal/components/WorkInfo/index.less +66 -66
- package/lib/vtx-car-modal/style/index.less +8 -8
- package/lib/vtx-cc-cp-modal/components/OrderInfo/index.less +108 -108
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.less +46 -46
- package/lib/vtx-cc-cp-modal/style/index.less +1 -1
- package/lib/vtx-cc-unit-modal/style/index.less +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/index.less +109 -109
- package/lib/vtx-cp-modal/components/BaseInfo/index.less +156 -156
- package/lib/vtx-cp-modal/components/ExeceptionInfo/index.less +109 -109
- package/lib/vtx-cp-modal/components/SyInfo/index.less +47 -47
- package/lib/vtx-cp-modal/style/index.less +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.less +38 -38
- package/lib/vtx-default-modal/style/index.less +1 -1
- package/lib/vtx-device-modal/api.js +1 -1
- package/lib/vtx-device-modal/api.js.map +1 -1
- package/lib/vtx-device-modal/components/BaseInfo/RealTimeList.js +2 -2
- package/lib/vtx-device-modal/components/BaseInfo/RealTimeList.js.map +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/Chart.js +37 -16
- package/lib/vtx-device-modal/components/DataAnalysis/Chart.js.map +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/index.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.less +173 -173
- package/lib/vtx-df-modal/components/Metering/index.less +83 -83
- package/lib/vtx-df-modal/components/WorkCondition/index.less +136 -136
- package/lib/vtx-df-modal/style/index.less +1 -1
- package/lib/vtx-facility-modal/components/OverView/index.less +120 -120
- package/lib/vtx-facility-modal/style/index.less +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +66 -66
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +256 -256
- package/lib/vtx-housing-estate-modal/components/SPJK/index.less +6 -6
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +15 -15
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +38 -38
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +102 -102
- package/lib/vtx-housing-estate-modal/style/index.less +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +66 -66
- package/lib/vtx-kh-modal/style/index.less +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/index.less +103 -103
- package/lib/vtx-pump-modal/components/Basic/index.less +74 -74
- package/lib/vtx-pump-modal/components/Sbxl/index.less +90 -90
- package/lib/vtx-pump-modal/components/Sjfx/index.less +60 -60
- package/lib/vtx-pump-modal/components/Sxyx/index.less +161 -161
- package/lib/vtx-pump-modal/style/index.less +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.less +35 -35
- package/lib/vtx-restaurant-modal/components/Collection/Charts.js +9 -6
- package/lib/vtx-restaurant-modal/components/Collection/Charts.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Collection/index.less +27 -27
- package/lib/vtx-restaurant-modal/components/QdBasic/index.less +10 -10
- package/lib/vtx-restaurant-modal/style/index.less +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/index.less +146 -146
- package/lib/vtx-road-modal/components/Statistical/index.less +112 -112
- package/lib/vtx-road-modal/style/index.less +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.less +23 -23
- package/lib/vtx-staff-modal/components/Attendance/index.less +44 -44
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +225 -225
- package/lib/vtx-staff-modal/components/DetailInfo/index.less +38 -38
- package/lib/vtx-staff-modal/components/Equipment/index.less +52 -52
- package/lib/vtx-staff-modal/components/StaticInfo/index.less +270 -270
- package/lib/vtx-throw-point-modal/components/Alarm/index.less +69 -69
- package/lib/vtx-throw-point-modal/components/OverView/index.less +331 -331
- package/lib/vtx-throw-point-modal/components/SBZJ/index.less +92 -92
- package/lib/vtx-throw-point-modal/components/TFRD/index.less +15 -15
- package/lib/vtx-throw-point-modal/components/WGGS/index.less +38 -38
- package/lib/vtx-throw-point-modal/components/WGXW/index.less +102 -102
- package/lib/vtx-throw-point-modal/style/index.less +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/index.less +106 -106
- package/lib/vtx-wr-modal/components/BaseInfo/index.less +142 -142
- package/lib/vtx-wr-modal/components/BaseInfoNew/index.less +570 -570
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.less +469 -469
- package/lib/vtx-wr-modal/components/Evaluate/index.less +124 -124
- package/lib/vtx-wr-modal/components/Monitor/index.less +82 -82
- package/lib/vtx-wr-modal/components/Score/index.less +134 -134
- package/lib/vtx-wr-modal/style/index.less +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +97 -97
- package/lib/vtx-zg-modal/style/css.js +1 -0
- package/lib/vtx-zg-modal/style/css.js.map +1 -1
- package/lib/vtx-zg-modal/style/index.js +1 -0
- package/lib/vtx-zg-modal/style/index.js.map +1 -1
- package/lib/vtx-zg-modal/style/index.less +1 -1
- package/package.json +1 -1
|
@@ -1,161 +1,161 @@
|
|
|
1
|
-
@import '../../style/index';
|
|
2
|
-
|
|
3
|
-
.@{prefix-cls}-sxyx {
|
|
4
|
-
padding: 6px 10px;
|
|
5
|
-
|
|
6
|
-
&-card {
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
background: var(--bg-color2);
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.02);
|
|
12
|
-
border: 1px solid var(--bg-border-color2);
|
|
13
|
-
|
|
14
|
-
&-title {
|
|
15
|
-
display: flex;
|
|
16
|
-
height: 50px;
|
|
17
|
-
align-items: center;
|
|
18
|
-
justify-content: space-between;
|
|
19
|
-
border-bottom: 1px solid #e8e8e8;
|
|
20
|
-
padding: 0 25px;
|
|
21
|
-
|
|
22
|
-
&-text {
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
font-family: PingFangSC-Medium-, PingFangSC-Medium;
|
|
25
|
-
font-weight: normal;
|
|
26
|
-
color: rgba(0, 0, 0, 0.85);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&-content {
|
|
31
|
-
height: calc(100% - 50px);
|
|
32
|
-
padding: 18px 25px;
|
|
33
|
-
display: flex;
|
|
34
|
-
|
|
35
|
-
&-label {
|
|
36
|
-
font-size: 14px;
|
|
37
|
-
font-family: PingFang SC-Regular, PingFang SC;
|
|
38
|
-
font-weight: 400;
|
|
39
|
-
color: rgba(0, 0, 0, 0.65);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&-value {
|
|
43
|
-
font-size: 14px;
|
|
44
|
-
font-family: PingFang SC-Regular, PingFang SC;
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
color: rgba(0, 0, 0, 0.85);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-sx-info {
|
|
52
|
-
position: relative;
|
|
53
|
-
width: 70%;
|
|
54
|
-
height: 100px;
|
|
55
|
-
margin: auto 0;
|
|
56
|
-
|
|
57
|
-
&-sxHeight {
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: -13px;
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
}
|
|
63
|
-
&-sxMaxHeight {
|
|
64
|
-
position: absolute;
|
|
65
|
-
top: 20px;
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
}
|
|
69
|
-
&-sxMinHeight {
|
|
70
|
-
position: absolute;
|
|
71
|
-
bottom: -13px;
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
}
|
|
75
|
-
&-sxNowHeight {
|
|
76
|
-
position: absolute;
|
|
77
|
-
right: -10px;
|
|
78
|
-
display: flex;
|
|
79
|
-
align-items: center;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&-line {
|
|
83
|
-
display: inline-block;
|
|
84
|
-
width: 120px;
|
|
85
|
-
height: 0px;
|
|
86
|
-
border: 1px solid rgba(112, 112, 112, 0.24);
|
|
87
|
-
margin-left: 10px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.lui-column-bg {
|
|
91
|
-
position: absolute;
|
|
92
|
-
width: 70px;
|
|
93
|
-
height: 100%;
|
|
94
|
-
background-color: rgba(197, 227, 255, 1);
|
|
95
|
-
top: 50%;
|
|
96
|
-
left: 50%;
|
|
97
|
-
transform: translate(-50%, -50%);
|
|
98
|
-
|
|
99
|
-
&::before {
|
|
100
|
-
position: absolute;
|
|
101
|
-
content: '';
|
|
102
|
-
display: block;
|
|
103
|
-
height: 20px;
|
|
104
|
-
width: 100%;
|
|
105
|
-
border-radius: 50%;
|
|
106
|
-
top: -10.5px;
|
|
107
|
-
z-index: 1;
|
|
108
|
-
background: linear-gradient(0deg, #1890ff 0%, #c5e3ff 100%);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&::after {
|
|
112
|
-
position: absolute;
|
|
113
|
-
content: '';
|
|
114
|
-
display: block;
|
|
115
|
-
height: 15px;
|
|
116
|
-
width: 100%;
|
|
117
|
-
border-radius: 50%;
|
|
118
|
-
bottom: -9.5px;
|
|
119
|
-
background: rgba(24, 144, 255, 0.5);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.lui-inner {
|
|
123
|
-
position: absolute;
|
|
124
|
-
bottom: 0;
|
|
125
|
-
width: 100%;
|
|
126
|
-
height: 50%;
|
|
127
|
-
background: linear-gradient(
|
|
128
|
-
0deg,
|
|
129
|
-
rgba(24, 144, 255, 0.3) 0%,
|
|
130
|
-
rgba(24, 144, 255, 0.5) 100%
|
|
131
|
-
);
|
|
132
|
-
text-align: center;
|
|
133
|
-
|
|
134
|
-
&::before {
|
|
135
|
-
position: absolute;
|
|
136
|
-
content: '';
|
|
137
|
-
display: block;
|
|
138
|
-
height: 20px;
|
|
139
|
-
width: 100%;
|
|
140
|
-
background: linear-gradient(0deg, #1890ff 0%, #78beff 100%);
|
|
141
|
-
border-radius: 50%;
|
|
142
|
-
top: -10.5px;
|
|
143
|
-
z-index: 1;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&::after {
|
|
147
|
-
position: absolute;
|
|
148
|
-
content: '';
|
|
149
|
-
display: block;
|
|
150
|
-
height: 15px;
|
|
151
|
-
width: 100%;
|
|
152
|
-
border-radius: 50%;
|
|
153
|
-
background: var(--bg-color2);
|
|
154
|
-
border: 1px solid var(--bg-border-color2);
|
|
155
|
-
|
|
156
|
-
bottom: -10px;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
1
|
+
@import '../../style/index';
|
|
2
|
+
|
|
3
|
+
.@{prefix-cls}-sxyx {
|
|
4
|
+
padding: 6px 10px;
|
|
5
|
+
|
|
6
|
+
&-card {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
background: var(--bg-color2);
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.02);
|
|
12
|
+
border: 1px solid var(--bg-border-color2);
|
|
13
|
+
|
|
14
|
+
&-title {
|
|
15
|
+
display: flex;
|
|
16
|
+
height: 50px;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
border-bottom: 1px solid #e8e8e8;
|
|
20
|
+
padding: 0 25px;
|
|
21
|
+
|
|
22
|
+
&-text {
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
font-family: PingFangSC-Medium-, PingFangSC-Medium;
|
|
25
|
+
font-weight: normal;
|
|
26
|
+
color: rgba(0, 0, 0, 0.85);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-content {
|
|
31
|
+
height: calc(100% - 50px);
|
|
32
|
+
padding: 18px 25px;
|
|
33
|
+
display: flex;
|
|
34
|
+
|
|
35
|
+
&-label {
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
font-family: PingFang SC-Regular, PingFang SC;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
color: rgba(0, 0, 0, 0.65);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-value {
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
font-family: PingFang SC-Regular, PingFang SC;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
color: rgba(0, 0, 0, 0.85);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-sx-info {
|
|
52
|
+
position: relative;
|
|
53
|
+
width: 70%;
|
|
54
|
+
height: 100px;
|
|
55
|
+
margin: auto 0;
|
|
56
|
+
|
|
57
|
+
&-sxHeight {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: -13px;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
}
|
|
63
|
+
&-sxMaxHeight {
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 20px;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
}
|
|
69
|
+
&-sxMinHeight {
|
|
70
|
+
position: absolute;
|
|
71
|
+
bottom: -13px;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
&-sxNowHeight {
|
|
76
|
+
position: absolute;
|
|
77
|
+
right: -10px;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-line {
|
|
83
|
+
display: inline-block;
|
|
84
|
+
width: 120px;
|
|
85
|
+
height: 0px;
|
|
86
|
+
border: 1px solid rgba(112, 112, 112, 0.24);
|
|
87
|
+
margin-left: 10px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.lui-column-bg {
|
|
91
|
+
position: absolute;
|
|
92
|
+
width: 70px;
|
|
93
|
+
height: 100%;
|
|
94
|
+
background-color: rgba(197, 227, 255, 1);
|
|
95
|
+
top: 50%;
|
|
96
|
+
left: 50%;
|
|
97
|
+
transform: translate(-50%, -50%);
|
|
98
|
+
|
|
99
|
+
&::before {
|
|
100
|
+
position: absolute;
|
|
101
|
+
content: '';
|
|
102
|
+
display: block;
|
|
103
|
+
height: 20px;
|
|
104
|
+
width: 100%;
|
|
105
|
+
border-radius: 50%;
|
|
106
|
+
top: -10.5px;
|
|
107
|
+
z-index: 1;
|
|
108
|
+
background: linear-gradient(0deg, #1890ff 0%, #c5e3ff 100%);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&::after {
|
|
112
|
+
position: absolute;
|
|
113
|
+
content: '';
|
|
114
|
+
display: block;
|
|
115
|
+
height: 15px;
|
|
116
|
+
width: 100%;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
bottom: -9.5px;
|
|
119
|
+
background: rgba(24, 144, 255, 0.5);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.lui-inner {
|
|
123
|
+
position: absolute;
|
|
124
|
+
bottom: 0;
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 50%;
|
|
127
|
+
background: linear-gradient(
|
|
128
|
+
0deg,
|
|
129
|
+
rgba(24, 144, 255, 0.3) 0%,
|
|
130
|
+
rgba(24, 144, 255, 0.5) 100%
|
|
131
|
+
);
|
|
132
|
+
text-align: center;
|
|
133
|
+
|
|
134
|
+
&::before {
|
|
135
|
+
position: absolute;
|
|
136
|
+
content: '';
|
|
137
|
+
display: block;
|
|
138
|
+
height: 20px;
|
|
139
|
+
width: 100%;
|
|
140
|
+
background: linear-gradient(0deg, #1890ff 0%, #78beff 100%);
|
|
141
|
+
border-radius: 50%;
|
|
142
|
+
top: -10.5px;
|
|
143
|
+
z-index: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&::after {
|
|
147
|
+
position: absolute;
|
|
148
|
+
content: '';
|
|
149
|
+
display: block;
|
|
150
|
+
height: 15px;
|
|
151
|
+
width: 100%;
|
|
152
|
+
border-radius: 50%;
|
|
153
|
+
background: var(--bg-color2);
|
|
154
|
+
border: 1px solid var(--bg-border-color2);
|
|
155
|
+
|
|
156
|
+
bottom: -10px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@prefix-cls: pump;
|
|
1
|
+
@prefix-cls: pump;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
@import '../../style/index';
|
|
2
|
-
|
|
3
|
-
.@{prefix-cls}-alarm {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 10px;
|
|
7
|
-
height: 600px;
|
|
8
|
-
padding: 6px 10px;
|
|
9
|
-
&-search {
|
|
10
|
-
padding: 10px 20px;
|
|
11
|
-
background: var(--bg-color2);
|
|
12
|
-
border: 1px solid var(--bg-border-color2);
|
|
13
|
-
}
|
|
14
|
-
&-charts {
|
|
15
|
-
height: 200px;
|
|
16
|
-
display: flex;
|
|
17
|
-
gap: 10px;
|
|
18
|
-
|
|
19
|
-
&--chart {
|
|
20
|
-
height: 100%;
|
|
21
|
-
padding: 20px;
|
|
22
|
-
flex: 1;
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
background: var(--bg-color2);
|
|
26
|
-
border: 1px solid var(--bg-border-color2);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
&-list {
|
|
30
|
-
padding: 20px;
|
|
31
|
-
flex: 1;
|
|
32
|
-
background: var(--bg-color2);
|
|
33
|
-
border: 1px solid var(--bg-border-color2);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
@import '../../style/index';
|
|
2
|
+
|
|
3
|
+
.@{prefix-cls}-alarm {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
height: 600px;
|
|
8
|
+
padding: 6px 10px;
|
|
9
|
+
&-search {
|
|
10
|
+
padding: 10px 20px;
|
|
11
|
+
background: var(--bg-color2);
|
|
12
|
+
border: 1px solid var(--bg-border-color2);
|
|
13
|
+
}
|
|
14
|
+
&-charts {
|
|
15
|
+
height: 200px;
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: 10px;
|
|
18
|
+
|
|
19
|
+
&--chart {
|
|
20
|
+
height: 100%;
|
|
21
|
+
padding: 20px;
|
|
22
|
+
flex: 1;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
background: var(--bg-color2);
|
|
26
|
+
border: 1px solid var(--bg-border-color2);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&-list {
|
|
30
|
+
padding: 20px;
|
|
31
|
+
flex: 1;
|
|
32
|
+
background: var(--bg-color2);
|
|
33
|
+
border: 1px solid var(--bg-border-color2);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -27,7 +27,8 @@ var Charts = function Charts(_ref) {
|
|
|
27
27
|
garbageType = _useContext.garbageType;
|
|
28
28
|
var _useSettings = (0, _useSettings2["default"])(),
|
|
29
29
|
chartColor = _useSettings.chartColor,
|
|
30
|
-
chartFontColor = _useSettings.chartFontColor
|
|
30
|
+
chartFontColor = _useSettings.chartFontColor,
|
|
31
|
+
theme = _useSettings.theme;
|
|
31
32
|
var day = (0, _moment["default"])(times[1]).diff(times[0], 'day');
|
|
32
33
|
var dayList = [];
|
|
33
34
|
for (var index = 0; index <= day; index++) {
|
|
@@ -54,7 +55,10 @@ var Charts = function Charts(_ref) {
|
|
|
54
55
|
}
|
|
55
56
|
},
|
|
56
57
|
legend: {
|
|
57
|
-
top: '5%'
|
|
58
|
+
top: '5%',
|
|
59
|
+
textStyle: {
|
|
60
|
+
color: theme === 'blue' ? '#fff' : chartFontColor
|
|
61
|
+
}
|
|
58
62
|
},
|
|
59
63
|
grid: {
|
|
60
64
|
// top: 58,
|
|
@@ -73,7 +77,7 @@ var Charts = function Charts(_ref) {
|
|
|
73
77
|
show: true
|
|
74
78
|
},
|
|
75
79
|
axisLabel: {
|
|
76
|
-
color: chartFontColor,
|
|
80
|
+
color: theme === 'blue' ? '#fff' : chartFontColor,
|
|
77
81
|
formatter: function formatter(val) {
|
|
78
82
|
return (0, _moment["default"])(val).format('MM-DD');
|
|
79
83
|
}
|
|
@@ -86,13 +90,13 @@ var Charts = function Charts(_ref) {
|
|
|
86
90
|
max: new Date((0, _moment["default"])().endOf('date').valueOf()),
|
|
87
91
|
type: 'time',
|
|
88
92
|
nameTextStyle: {
|
|
89
|
-
color: chartFontColor
|
|
93
|
+
color: theme === 'blue' ? '#fff' : chartFontColor
|
|
90
94
|
},
|
|
91
95
|
axisTick: {
|
|
92
96
|
show: false
|
|
93
97
|
},
|
|
94
98
|
axisLabel: {
|
|
95
|
-
color: chartFontColor,
|
|
99
|
+
color: theme === 'blue' ? '#fff' : chartFontColor,
|
|
96
100
|
formatter: function formatter(val) {
|
|
97
101
|
return (0, _moment["default"])(val).format('HH:mm');
|
|
98
102
|
}
|
|
@@ -139,7 +143,6 @@ var Charts = function Charts(_ref) {
|
|
|
139
143
|
};
|
|
140
144
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
145
|
style: {
|
|
142
|
-
background: '#fff',
|
|
143
146
|
height: 400
|
|
144
147
|
}
|
|
145
148
|
}, /*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Charts.js","names":["_react","_interopRequireWildcard","require","_index","_api","_echartsForReact","_interopRequireDefault","_useSettings2","_moment","e","__esModule","_getRequireWildcardCache","WeakMap","r","t","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","Symbol","iterator","isArray","length","Charts","_ref","times","_useContext","useContext","RestaurantContext","id","garbageType","_useSettings","useSettings","chartColor","chartFontColor","day","moment","diff","dayList","index","push","add","format","rows","BasicService","detailList","startTime","endTime","periodList","getPeriodList","restaurantId","startDay","endDay","today","lineOption","color","tooltip","trigger","formatter","val","value","legend","top","grid","left","bottom","right","containLabel","xAxis","boundaryGap","axisTick","show","axisLine","axisLabel","data","yAxis","min","Date","startOf","valueOf","max","endOf","type","nameTextStyle","splitLine","lineStyle","series","map","item","weighTime","concat","netWeight","symbolSize","markArea","React","createElement","style","background","height","ReactEcharts","option","notMerge","lazyUpdate","width","_default","exports"],"sources":["vtx-restaurant-modal/components/Collection/Charts.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport { RestaurantContext } from '../../index';\nimport { BasicService } from '../../api';\nimport ReactEcharts from 'echarts-for-react';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport moment from 'moment';\nconst Charts = ({ times }) => {\n const { id, garbageType } = useContext(RestaurantContext);\n const { chartColor, chartFontColor } = useSettings();\n const day = moment(times[1]).diff(times[0], 'day');\n const dayList = [];\n for (let index = 0; index <= day; index++) {\n dayList.push(moment(times[0])\n .add(index, 'day')\n .format('MM-DD'));\n }\n const rows = BasicService.detailList({\n id,\n startTime: times[0].format('YYYY-MM-DD 00:00:00'),\n endTime: times[1].format('YYYY-MM-DD 23:59:59'),\n garbageType,\n });\n const periodList = BasicService.getPeriodList({\n restaurantId: id,\n startDay: times[0].format('YYYY-MM-DD'),\n endDay: times[1].format('YYYY-MM-DD'),\n });\n const today = moment().format('YYYY-MM-DD');\n const lineOption = {\n color: chartColor,\n tooltip: {\n trigger: 'item',\n formatter: function (val) {\n return val.value[3] + ': ' + val.value[2] + 'kg';\n },\n },\n legend: {\n top: '5%',\n },\n grid: {\n // top: 58,\n left: 24,\n bottom: 12,\n right: 40,\n containLabel: true,\n },\n xAxis: {\n name: '日期',\n boundaryGap: false,\n axisTick: {\n show: false,\n },\n axisLine: {\n show: true,\n },\n axisLabel: {\n color: chartFontColor,\n formatter: (val) => {\n return moment(val).format('MM-DD');\n },\n },\n data: dayList,\n },\n yAxis: [\n {\n name: '时间',\n min: new Date(moment()\n .startOf('date')\n .valueOf()),\n max: new Date(moment()\n .endOf('date')\n .valueOf()),\n type: 'time',\n nameTextStyle: {\n color: chartFontColor,\n },\n axisTick: {\n show: false,\n },\n axisLabel: {\n color: chartFontColor,\n formatter: (val) => {\n return moment(val).format('HH:mm');\n },\n },\n axisLine: {\n show: true,\n },\n splitLine: {\n lineStyle: {\n type: 'dashed',\n color: 'rgba(151,151,151,0.28)',\n },\n },\n },\n ],\n series: [\n {\n type: 'scatter',\n data: rows === null || rows === void 0 ? void 0 : rows.map((item) => [\n moment(item.weighTime).format('MM-DD'),\n moment(item.weighTime).format(`${today} HH:mm:ss`),\n item.netWeight,\n item.weighTime,\n ]),\n symbolSize: 20,\n },\n ...periodList.map((item) => ({\n name: item.name,\n data: [],\n markArea: {\n data: [\n [\n {\n yAxis: moment(item.startTime, 'HH:mm:ss').format(`${today} HH:mm:ss`),\n },\n { yAxis: moment(item.endTime, 'HH:mm:ss').format(`${today} HH:mm:ss`) },\n ],\n ],\n tooltip: {\n show: true,\n formatter: function () {\n return item.name;\n },\n },\n },\n type: 'bar',\n tooltip: {\n show: false,\n },\n })),\n ],\n };\n return (React.createElement(\"div\", { style: { background: '#fff', height: 400 } },\n React.createElement(ReactEcharts, { option: lineOption, notMerge: true, lazyUpdate: true, style: { height: '100%', width: '100%' } })));\n};\nexport default Charts;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAA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E,EAAE;QACRmB,QAAQ,EAAE;UACNnB,IAAI,EAAE,CACF,CACI;YACIC,KAAK,EAAE,IAAAvC,kBAAM,EAACoD,IAAI,CAAC1C,SAAS,EAAE,UAAU,CAAC,CAACJ,MAAM,IAAAgD,MAAA,CAAIrC,KAAK,cAAW;UACxE,CAAC,EACD;YAAEsB,KAAK,EAAE,IAAAvC,kBAAM,EAACoD,IAAI,CAACzC,OAAO,EAAE,UAAU,CAAC,CAACL,MAAM,IAAAgD,MAAA,CAAIrC,KAAK,cAAW;UAAE,CAAC,CAC1E,CACJ;UACDG,OAAO,EAAE;YACLe,IAAI,EAAE,IAAI;YACVb,SAAS,EAAE,SAAXA,SAASA,CAAA,EAAc;cACnB,OAAO8B,IAAI,CAACzE,IAAI;YACpB;UACJ;QACJ,CAAC;QACDmE,IAAI,EAAE,KAAK;QACX1B,OAAO,EAAE;UACLe,IAAI,EAAE;QACV;MACJ,CAAC;IAAA,CAAC,CAAC;EAEX,CAAC;EACD,oBAAQuB,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEC,KAAK,EAAE;MAAEC,UAAU,EAAE,MAAM;MAAEC,MAAM,EAAE;IAAI;EAAE,CAAC,eAC7EJ,iBAAK,CAACC,aAAa,CAACI,2BAAY,EAAE;IAAEC,MAAM,EAAE9C,UAAU;IAAE+C,QAAQ,EAAE,IAAI;IAAEC,UAAU,EAAE,IAAI;IAAEN,KAAK,EAAE;MAAEE,MAAM,EAAE,MAAM;MAAEK,KAAK,EAAE;IAAO;EAAE,CAAC,CAAC,CAAC;AAC9I,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cACalF,MAAM","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Charts.js","names":["_react","_interopRequireWildcard","require","_index","_api","_echartsForReact","_interopRequireDefault","_useSettings2","_moment","e","__esModule","_getRequireWildcardCache","WeakMap","r","t","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","Symbol","iterator","isArray","length","Charts","_ref","times","_useContext","useContext","RestaurantContext","id","garbageType","_useSettings","useSettings","chartColor","chartFontColor","theme","day","moment","diff","dayList","index","push","add","format","rows","BasicService","detailList","startTime","endTime","periodList","getPeriodList","restaurantId","startDay","endDay","today","lineOption","color","tooltip","trigger","formatter","val","value","legend","top","textStyle","grid","left","bottom","right","containLabel","xAxis","boundaryGap","axisTick","show","axisLine","axisLabel","data","yAxis","min","Date","startOf","valueOf","max","endOf","type","nameTextStyle","splitLine","lineStyle","series","map","item","weighTime","concat","netWeight","symbolSize","markArea","React","createElement","style","height","ReactEcharts","option","notMerge","lazyUpdate","width","_default","exports"],"sources":["vtx-restaurant-modal/components/Collection/Charts.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport { RestaurantContext } from '../../index';\nimport { BasicService } from '../../api';\nimport ReactEcharts from 'echarts-for-react';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport moment from 'moment';\nconst Charts = ({ times }) => {\n const { id, garbageType } = useContext(RestaurantContext);\n const { chartColor, chartFontColor, theme } = useSettings();\n const day = moment(times[1]).diff(times[0], 'day');\n const dayList = [];\n for (let index = 0; index <= day; index++) {\n dayList.push(moment(times[0])\n .add(index, 'day')\n .format('MM-DD'));\n }\n const rows = BasicService.detailList({\n id,\n startTime: times[0].format('YYYY-MM-DD 00:00:00'),\n endTime: times[1].format('YYYY-MM-DD 23:59:59'),\n garbageType,\n });\n const periodList = BasicService.getPeriodList({\n restaurantId: id,\n startDay: times[0].format('YYYY-MM-DD'),\n endDay: times[1].format('YYYY-MM-DD'),\n });\n const today = moment().format('YYYY-MM-DD');\n const lineOption = {\n color: chartColor,\n tooltip: {\n trigger: 'item',\n formatter: function (val) {\n return val.value[3] + ': ' + val.value[2] + 'kg';\n },\n },\n legend: {\n top: '5%',\n textStyle: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n },\n },\n grid: {\n // top: 58,\n left: 24,\n bottom: 12,\n right: 40,\n containLabel: true,\n },\n xAxis: {\n name: '日期',\n boundaryGap: false,\n axisTick: {\n show: false,\n },\n axisLine: {\n show: true,\n },\n axisLabel: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n formatter: (val) => {\n return moment(val).format('MM-DD');\n },\n },\n data: dayList,\n },\n yAxis: [\n {\n name: '时间',\n min: new Date(moment()\n .startOf('date')\n .valueOf()),\n max: new Date(moment()\n .endOf('date')\n .valueOf()),\n type: 'time',\n nameTextStyle: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n },\n axisTick: {\n show: false,\n },\n axisLabel: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n formatter: (val) => {\n return moment(val).format('HH:mm');\n },\n },\n axisLine: {\n show: true,\n },\n splitLine: {\n lineStyle: {\n type: 'dashed',\n color: 'rgba(151,151,151,0.28)',\n },\n },\n },\n ],\n series: [\n {\n type: 'scatter',\n data: rows === null || rows === void 0 ? void 0 : rows.map((item) => [\n moment(item.weighTime).format('MM-DD'),\n moment(item.weighTime).format(`${today} HH:mm:ss`),\n item.netWeight,\n item.weighTime,\n ]),\n symbolSize: 20,\n },\n ...periodList.map((item) => ({\n name: item.name,\n data: [],\n markArea: {\n data: [\n [\n {\n yAxis: moment(item.startTime, 'HH:mm:ss').format(`${today} HH:mm:ss`),\n },\n { yAxis: moment(item.endTime, 'HH:mm:ss').format(`${today} HH:mm:ss`) },\n ],\n ],\n tooltip: {\n show: true,\n formatter: function () {\n return item.name;\n },\n },\n },\n type: 'bar',\n tooltip: {\n show: false,\n },\n })),\n ],\n };\n return (React.createElement(\"div\", { style: { height: 400 } },\n React.createElement(ReactEcharts, { option: lineOption, notMerge: true, lazyUpdate: true, style: { height: '100%', width: '100%' } })));\n};\nexport default Charts;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA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,QAAA,GAAAC,OAAA,cACanF,MAAM","ignoreList":[]}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
@import '../../style/index';
|
|
2
|
-
|
|
3
|
-
.@{prefix-cls}-collection {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 10px;
|
|
7
|
-
height: 600px;
|
|
8
|
-
padding: 6px 10px;
|
|
9
|
-
&-search {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
padding: 10px 20px;
|
|
14
|
-
background: var(--bg-color2);
|
|
15
|
-
border: 1px solid var(--bg-border-color2);
|
|
16
|
-
}
|
|
17
|
-
&-summary {
|
|
18
|
-
height: 150px;
|
|
19
|
-
background: var(--bg-color2);
|
|
20
|
-
border: 1px solid var(--bg-border-color2);
|
|
21
|
-
}
|
|
22
|
-
&-list {
|
|
23
|
-
flex: 1;
|
|
24
|
-
background: var(--bg-color2);
|
|
25
|
-
border: 1px solid var(--bg-border-color2);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
@import '../../style/index';
|
|
2
|
+
|
|
3
|
+
.@{prefix-cls}-collection {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
height: 600px;
|
|
8
|
+
padding: 6px 10px;
|
|
9
|
+
&-search {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
padding: 10px 20px;
|
|
14
|
+
background: var(--bg-color2);
|
|
15
|
+
border: 1px solid var(--bg-border-color2);
|
|
16
|
+
}
|
|
17
|
+
&-summary {
|
|
18
|
+
height: 150px;
|
|
19
|
+
background: var(--bg-color2);
|
|
20
|
+
border: 1px solid var(--bg-border-color2);
|
|
21
|
+
}
|
|
22
|
+
&-list {
|
|
23
|
+
flex: 1;
|
|
24
|
+
background: var(--bg-color2);
|
|
25
|
+
border: 1px solid var(--bg-border-color2);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.cc-restaurant-rules {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 12px;
|
|
5
|
-
&-item {
|
|
6
|
-
padding: 16px 12px;
|
|
7
|
-
border-radius: 8px;
|
|
8
|
-
border: 1px solid #e8e8e8;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
.cc-restaurant-rules {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
&-item {
|
|
6
|
+
padding: 16px 12px;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
border: 1px solid #e8e8e8;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@prefix-cls: restaurant;
|
|
1
|
+
@prefix-cls: restaurant;
|