@vtx/modals2 2.15.24 → 2.15.25
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 +124 -124
- 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-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.less +179 -179
- package/lib/vm-sub-title/style/index.less +68 -68
- package/lib/vm-video/index.less +36 -36
- package/lib/vtx-base-info/style/index.less +66 -66
- package/lib/vtx-base-modal/style/index.less +1075 -1075
- package/lib/vtx-car-modal/api.js +89 -72
- package/lib/vtx-car-modal/api.js.map +1 -1
- 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/index.js +23 -15
- package/lib/vtx-car-modal/index.js.map +1 -1
- 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-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/AlarmTrend.js +15 -4
- package/lib/vtx-pump-modal/components/AlarmRecord/AlarmTrend.js.map +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.js +3 -1
- package/lib/vtx-pump-modal/components/Sjfx/index.js.map +1 -1
- 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/index.less +29 -29
- 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 +22 -22
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +158 -158
- package/lib/vtx-staff-modal/components/DetailInfo/index.less +38 -38
- package/lib/vtx-staff-modal/components/Equipment/index.less +28 -28
- package/lib/vtx-staff-modal/style/index.less +1 -1
- 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 +320 -320
- 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 +101 -101
- package/lib/vtx-zg-modal/style/index.less +1 -1
- package/package.json +1 -1
package/lib/vtx-car-modal/api.js
CHANGED
|
@@ -115,16 +115,33 @@ var BaseService = exports.BaseService = {
|
|
|
115
115
|
key: ele.code,
|
|
116
116
|
title: ele.name
|
|
117
117
|
};
|
|
118
|
-
})) || []
|
|
119
|
-
visited: !!tabConfig
|
|
118
|
+
})) || []
|
|
120
119
|
};
|
|
121
120
|
},
|
|
121
|
+
useDeviceInfo: function useDeviceInfo(id) {
|
|
122
|
+
var _a;
|
|
123
|
+
var _useRequest5 = (0, _ahooks.useRequest)(function () {
|
|
124
|
+
return _utils.request.get('/cloud/gps-reborn/device/page', {
|
|
125
|
+
data: {
|
|
126
|
+
carId: id,
|
|
127
|
+
deviceTypeId: 'd335fc77c9d44f7bbe9b3e20609f295c',
|
|
128
|
+
mainDevice: true,
|
|
129
|
+
page: 0,
|
|
130
|
+
size: 10
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}, {
|
|
134
|
+
refreshDeps: [id]
|
|
135
|
+
}),
|
|
136
|
+
data = _useRequest5.data;
|
|
137
|
+
return ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.total) > 0;
|
|
138
|
+
},
|
|
122
139
|
useConfig: function useConfig() {
|
|
123
140
|
var _a, _b;
|
|
124
|
-
var
|
|
141
|
+
var _useRequest6 = (0, _ahooks.useRequest)(function () {
|
|
125
142
|
return _utils.request.get('/cloud/ljsy-reborn/api/param/config/webList');
|
|
126
143
|
}),
|
|
127
|
-
config =
|
|
144
|
+
config = _useRequest6.data;
|
|
128
145
|
var paramConfigsList = {};
|
|
129
146
|
if (config === null || config === void 0 ? void 0 : config.data) {
|
|
130
147
|
(_b = (_a = config.data) === null || _a === void 0 ? void 0 : _a.paramConfigs) === null || _b === void 0 ? void 0 : _b.forEach(function (element) {
|
|
@@ -134,7 +151,7 @@ var BaseService = exports.BaseService = {
|
|
|
134
151
|
return paramConfigsList;
|
|
135
152
|
},
|
|
136
153
|
useCCCarInfo: function useCCCarInfo(carId) {
|
|
137
|
-
var
|
|
154
|
+
var _useRequest7 = (0, _ahooks.useRequest)(function () {
|
|
138
155
|
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
139
156
|
var res;
|
|
140
157
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -158,12 +175,12 @@ var BaseService = exports.BaseService = {
|
|
|
158
175
|
}, {
|
|
159
176
|
refreshDeps: [carId]
|
|
160
177
|
}),
|
|
161
|
-
|
|
162
|
-
carInfo =
|
|
178
|
+
_useRequest7$data = _useRequest7.data,
|
|
179
|
+
carInfo = _useRequest7$data === void 0 ? {} : _useRequest7$data;
|
|
163
180
|
return carInfo;
|
|
164
181
|
},
|
|
165
182
|
useDetailInfo: function useDetailInfo(carId) {
|
|
166
|
-
var
|
|
183
|
+
var _useRequest8 = (0, _ahooks.useRequest)(function () {
|
|
167
184
|
return _utils.request.get('/cloud/gps-reborn/car/np/getCarDetailById', {
|
|
168
185
|
data: {
|
|
169
186
|
id: carId,
|
|
@@ -171,30 +188,30 @@ var BaseService = exports.BaseService = {
|
|
|
171
188
|
}
|
|
172
189
|
});
|
|
173
190
|
}),
|
|
174
|
-
data =
|
|
191
|
+
data = _useRequest8.data;
|
|
175
192
|
return {
|
|
176
193
|
detail: data === null || data === void 0 ? void 0 : data.data
|
|
177
194
|
};
|
|
178
195
|
},
|
|
179
196
|
useServiceInfo: function useServiceInfo(carId) {
|
|
180
|
-
var
|
|
197
|
+
var _useRequest9 = (0, _ahooks.useRequest)(function () {
|
|
181
198
|
return _utils.request.get('/cloud/jcss-reborn/contract/carHistoryContract', {
|
|
182
199
|
data: {
|
|
183
200
|
id: carId
|
|
184
201
|
}
|
|
185
202
|
});
|
|
186
203
|
}),
|
|
187
|
-
data =
|
|
204
|
+
data = _useRequest9.data;
|
|
188
205
|
return {
|
|
189
206
|
serviceInfo: data === null || data === void 0 ? void 0 : data.data
|
|
190
207
|
};
|
|
191
208
|
},
|
|
192
209
|
useFieldConfig: function useFieldConfig() {
|
|
193
210
|
var _a;
|
|
194
|
-
var
|
|
211
|
+
var _useRequest10 = (0, _ahooks.useRequest)(function () {
|
|
195
212
|
return _utils.request.get('/cloud/gps-reborn/car/dataConfig/list');
|
|
196
213
|
}),
|
|
197
|
-
data =
|
|
214
|
+
data = _useRequest10.data;
|
|
198
215
|
return {
|
|
199
216
|
showFields: ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.filter(function (ele) {
|
|
200
217
|
return ele.isVisible;
|
|
@@ -203,7 +220,7 @@ var BaseService = exports.BaseService = {
|
|
|
203
220
|
},
|
|
204
221
|
useDailySummaryJxh: function useDailySummaryJxh(carId, date, service) {
|
|
205
222
|
// 左侧今日排版、今日作业
|
|
206
|
-
var
|
|
223
|
+
var _useRequest11 = (0, _ahooks.useRequest)(function () {
|
|
207
224
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/kanbanWorkInfoAndShiftStatistics"), {
|
|
208
225
|
data: {
|
|
209
226
|
carId: carId,
|
|
@@ -214,14 +231,14 @@ var BaseService = exports.BaseService = {
|
|
|
214
231
|
ready: !!carId,
|
|
215
232
|
refreshDeps: [carId, date]
|
|
216
233
|
}),
|
|
217
|
-
dailySummaryJxh =
|
|
234
|
+
dailySummaryJxh = _useRequest11.data;
|
|
218
235
|
return {
|
|
219
236
|
dailySummaryJxh: (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.data) || {}
|
|
220
237
|
};
|
|
221
238
|
},
|
|
222
239
|
useDailyCarRun: function useDailyCarRun(id, beginTime, endTime) {
|
|
223
240
|
//今日运行
|
|
224
|
-
var
|
|
241
|
+
var _useRequest12 = (0, _ahooks.useRequest)(function () {
|
|
225
242
|
return _utils.request.get('/cloud/gps-reborn/report/dailyCarRun/list', {
|
|
226
243
|
data: {
|
|
227
244
|
carIds: id,
|
|
@@ -232,14 +249,14 @@ var BaseService = exports.BaseService = {
|
|
|
232
249
|
}, {
|
|
233
250
|
refreshDeps: [id, beginTime, endTime]
|
|
234
251
|
}),
|
|
235
|
-
dailyCarRunRes =
|
|
252
|
+
dailyCarRunRes = _useRequest12.data;
|
|
236
253
|
return {
|
|
237
254
|
dailyCarRunRes: (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.data) || []
|
|
238
255
|
};
|
|
239
256
|
},
|
|
240
257
|
useTodayRun: function useTodayRun(carId, beginTime, endTime, source) {
|
|
241
258
|
//今日运行
|
|
242
|
-
var
|
|
259
|
+
var _useRequest13 = (0, _ahooks.useRequest)(function () {
|
|
243
260
|
return _utils.request.get('/cloud/gps-reborn/car/detail/alarmSumWithDetail', {
|
|
244
261
|
data: {
|
|
245
262
|
carId: carId,
|
|
@@ -251,14 +268,14 @@ var BaseService = exports.BaseService = {
|
|
|
251
268
|
ready: source === 'GPS',
|
|
252
269
|
refreshDeps: [carId, beginTime, endTime, source]
|
|
253
270
|
}),
|
|
254
|
-
todayRunRes =
|
|
271
|
+
todayRunRes = _useRequest13.data;
|
|
255
272
|
return {
|
|
256
273
|
todayRunRes: (todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.data) || {}
|
|
257
274
|
};
|
|
258
275
|
},
|
|
259
276
|
useTodayWorkJxh: function useTodayWorkJxh(carId, date, service) {
|
|
260
277
|
//今日作业-机械化
|
|
261
|
-
var
|
|
278
|
+
var _useRequest14 = (0, _ahooks.useRequest)(function () {
|
|
262
279
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/getRoadWorkInfoByCarId"), {
|
|
263
280
|
data: {
|
|
264
281
|
carId: carId,
|
|
@@ -268,14 +285,14 @@ var BaseService = exports.BaseService = {
|
|
|
268
285
|
}, {
|
|
269
286
|
refreshDeps: [carId, date]
|
|
270
287
|
}),
|
|
271
|
-
todayRunJxhRes =
|
|
288
|
+
todayRunJxhRes = _useRequest14.data;
|
|
272
289
|
return {
|
|
273
290
|
todayRunJxhRes: (todayRunJxhRes === null || todayRunJxhRes === void 0 ? void 0 : todayRunJxhRes.data) || []
|
|
274
291
|
};
|
|
275
292
|
},
|
|
276
293
|
useTodayWorkLjsy: function useTodayWorkLjsy(carId, dateValue) {
|
|
277
294
|
//今日作业-垃圾收运
|
|
278
|
-
var
|
|
295
|
+
var _useRequest15 = (0, _ahooks.useRequest)(function () {
|
|
279
296
|
return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoByCarIdWithDetail', {
|
|
280
297
|
data: {
|
|
281
298
|
carId: carId,
|
|
@@ -285,7 +302,7 @@ var BaseService = exports.BaseService = {
|
|
|
285
302
|
}, {
|
|
286
303
|
refreshDeps: [carId, dateValue]
|
|
287
304
|
}),
|
|
288
|
-
todayRunLjsyRes =
|
|
305
|
+
todayRunLjsyRes = _useRequest15.data;
|
|
289
306
|
return {
|
|
290
307
|
todayRunLjsyRes: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.data) || []
|
|
291
308
|
};
|
|
@@ -294,7 +311,7 @@ var BaseService = exports.BaseService = {
|
|
|
294
311
|
var searchDay = _ref.searchDay,
|
|
295
312
|
carId = _ref.carId,
|
|
296
313
|
garbageType = _ref.garbageType;
|
|
297
|
-
var
|
|
314
|
+
var _useRequest16 = (0, _ahooks.useRequest)(function () {
|
|
298
315
|
return _utils.request.get('/cloud/cc-reborn/api/v101/gisOnePage/getCarCollectDay', {
|
|
299
316
|
data: {
|
|
300
317
|
carId: carId,
|
|
@@ -305,13 +322,13 @@ var BaseService = exports.BaseService = {
|
|
|
305
322
|
}, {
|
|
306
323
|
refreshDeps: [carId, searchDay]
|
|
307
324
|
}),
|
|
308
|
-
|
|
309
|
-
data =
|
|
325
|
+
_useRequest16$data = _useRequest16.data,
|
|
326
|
+
data = _useRequest16$data === void 0 ? {} : _useRequest16$data;
|
|
310
327
|
return (data === null || data === void 0 ? void 0 : data.data) || {};
|
|
311
328
|
},
|
|
312
329
|
useTodayWorkCC: function useTodayWorkCC(carId, queryStartTime, queryEndTime, garbageType) {
|
|
313
330
|
//今日作业-餐厨
|
|
314
|
-
var
|
|
331
|
+
var _useRequest17 = (0, _ahooks.useRequest)(function () {
|
|
315
332
|
return garbageType === 'fqyz' ? _utils.request.get('/cloud/cc-reborn/api/v101/oilWeight/list', {
|
|
316
333
|
data: {
|
|
317
334
|
carId: carId,
|
|
@@ -328,14 +345,14 @@ var BaseService = exports.BaseService = {
|
|
|
328
345
|
}, {
|
|
329
346
|
refreshDeps: [carId, queryStartTime, queryEndTime]
|
|
330
347
|
}),
|
|
331
|
-
todayRunCCRes =
|
|
348
|
+
todayRunCCRes = _useRequest17.data;
|
|
332
349
|
return {
|
|
333
350
|
todayRunCCRes: (todayRunCCRes === null || todayRunCCRes === void 0 ? void 0 : todayRunCCRes.data) || []
|
|
334
351
|
};
|
|
335
352
|
},
|
|
336
353
|
useWorkSummaryJxh: function useWorkSummaryJxh(carId, startDate, endDate, service) {
|
|
337
354
|
//机械化作业统计
|
|
338
|
-
var
|
|
355
|
+
var _useRequest18 = (0, _ahooks.useRequest)(function () {
|
|
339
356
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoStatisticsByCarId"), {
|
|
340
357
|
data: {
|
|
341
358
|
carId: carId,
|
|
@@ -347,14 +364,14 @@ var BaseService = exports.BaseService = {
|
|
|
347
364
|
}, {
|
|
348
365
|
refreshDeps: [carId, startDate, endDate]
|
|
349
366
|
}),
|
|
350
|
-
workSummaryJxhRes =
|
|
367
|
+
workSummaryJxhRes = _useRequest18.data;
|
|
351
368
|
return {
|
|
352
369
|
workSummaryJxhRes: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.data) || {}
|
|
353
370
|
};
|
|
354
371
|
},
|
|
355
372
|
useWorkAnaJxh: function useWorkAnaJxh(carId, startDate, endDate, service) {
|
|
356
373
|
//机械化作业分析
|
|
357
|
-
var
|
|
374
|
+
var _useRequest19 = (0, _ahooks.useRequest)(function () {
|
|
358
375
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoAnalysisByCarId"), {
|
|
359
376
|
data: {
|
|
360
377
|
carId: carId,
|
|
@@ -365,14 +382,14 @@ var BaseService = exports.BaseService = {
|
|
|
365
382
|
}, {
|
|
366
383
|
refreshDeps: [carId, startDate, endDate]
|
|
367
384
|
}),
|
|
368
|
-
workAnaJxhRes =
|
|
385
|
+
workAnaJxhRes = _useRequest19.data;
|
|
369
386
|
return {
|
|
370
387
|
workAnaJxhRes: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.data) || []
|
|
371
388
|
};
|
|
372
389
|
},
|
|
373
390
|
useWorkAnaLjsy: function useWorkAnaLjsy(carId, startDate, endDate, isReleate) {
|
|
374
391
|
//垃圾收运-作业分析
|
|
375
|
-
var
|
|
392
|
+
var _useRequest20 = (0, _ahooks.useRequest)(function () {
|
|
376
393
|
return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoAnalysisByCarId', {
|
|
377
394
|
data: {
|
|
378
395
|
carId: carId,
|
|
@@ -384,14 +401,14 @@ var BaseService = exports.BaseService = {
|
|
|
384
401
|
ready: isReleate,
|
|
385
402
|
refreshDeps: [carId, startDate, endDate]
|
|
386
403
|
}),
|
|
387
|
-
workAnaLjsyRes =
|
|
404
|
+
workAnaLjsyRes = _useRequest20.data;
|
|
388
405
|
return {
|
|
389
406
|
workAnaLjsyRes: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.data) || {}
|
|
390
407
|
};
|
|
391
408
|
},
|
|
392
409
|
useWorkAnaCC: function useWorkAnaCC(carId, startDate, endDate, isReleate) {
|
|
393
410
|
//垃圾收运-作业分析
|
|
394
|
-
var
|
|
411
|
+
var _useRequest21 = (0, _ahooks.useRequest)(function () {
|
|
395
412
|
return _utils.request.get('/cloud/cc-reborn/api/v101/gisOnePage/carCollectSummaryLine', {
|
|
396
413
|
data: {
|
|
397
414
|
carId: carId,
|
|
@@ -403,7 +420,7 @@ var BaseService = exports.BaseService = {
|
|
|
403
420
|
ready: isReleate,
|
|
404
421
|
refreshDeps: [carId, startDate, endDate]
|
|
405
422
|
}),
|
|
406
|
-
workAnaLjsyRes =
|
|
423
|
+
workAnaLjsyRes = _useRequest21.data;
|
|
407
424
|
return {
|
|
408
425
|
workAnaLjsyRes: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.data) || {}
|
|
409
426
|
};
|
|
@@ -411,7 +428,7 @@ var BaseService = exports.BaseService = {
|
|
|
411
428
|
};
|
|
412
429
|
var AlarmService = exports.AlarmService = {
|
|
413
430
|
useAlarmType: function useAlarmType(carIds, startTime, endTime, source) {
|
|
414
|
-
var
|
|
431
|
+
var _useRequest22 = (0, _ahooks.useRequest)(function () {
|
|
415
432
|
return _utils.request.get('/cloud/gps-reborn/alarm/record/statisticsPage', {
|
|
416
433
|
data: {
|
|
417
434
|
carIds: carIds,
|
|
@@ -423,7 +440,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
423
440
|
ready: source === 'GPS',
|
|
424
441
|
refreshDeps: [carIds, startTime, endTime, source]
|
|
425
442
|
}),
|
|
426
|
-
alarmTypesRes =
|
|
443
|
+
alarmTypesRes = _useRequest22.data;
|
|
427
444
|
return {
|
|
428
445
|
alarmTypes: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {
|
|
429
446
|
totalCount: 0,
|
|
@@ -432,7 +449,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
432
449
|
};
|
|
433
450
|
},
|
|
434
451
|
useAlarmTypeWork: function useAlarmTypeWork(carIds, startTime, endTime, source) {
|
|
435
|
-
var
|
|
452
|
+
var _useRequest23 = (0, _ahooks.useRequest)(function () {
|
|
436
453
|
return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmSum', {
|
|
437
454
|
data: {
|
|
438
455
|
carIds: carIds,
|
|
@@ -444,7 +461,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
444
461
|
ready: source === 'WORK',
|
|
445
462
|
refreshDeps: [carIds, startTime, endTime, source]
|
|
446
463
|
}),
|
|
447
|
-
data =
|
|
464
|
+
data = _useRequest23.data;
|
|
448
465
|
return {
|
|
449
466
|
alarmTypesWork: (data === null || data === void 0 ? void 0 : data.data) || {
|
|
450
467
|
total: 0,
|
|
@@ -454,7 +471,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
454
471
|
};
|
|
455
472
|
},
|
|
456
473
|
useAlarmList: function useAlarmList(carCode, alarmStrategyName, startTime, endTime, page) {
|
|
457
|
-
var
|
|
474
|
+
var _useRequest24 = (0, _ahooks.useRequest)(function () {
|
|
458
475
|
return _utils.request.get('/cloud/gps-reborn/alarm/record/pageList', {
|
|
459
476
|
data: {
|
|
460
477
|
carCode: carCode,
|
|
@@ -469,13 +486,13 @@ var AlarmService = exports.AlarmService = {
|
|
|
469
486
|
ready: !!carCode,
|
|
470
487
|
refreshDeps: [carCode, alarmStrategyName, startTime, endTime, page]
|
|
471
488
|
}),
|
|
472
|
-
recordRes =
|
|
489
|
+
recordRes = _useRequest24.data;
|
|
473
490
|
return {
|
|
474
491
|
alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {}
|
|
475
492
|
};
|
|
476
493
|
},
|
|
477
494
|
useAlarmListWork: function useAlarmListWork(carIds, alarmTypeCode, startDate, endDate, page) {
|
|
478
|
-
var
|
|
495
|
+
var _useRequest25 = (0, _ahooks.useRequest)(function () {
|
|
479
496
|
return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmPage', {
|
|
480
497
|
data: {
|
|
481
498
|
carIds: carIds,
|
|
@@ -490,7 +507,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
490
507
|
}, {
|
|
491
508
|
refreshDeps: [carIds, alarmTypeCode, startDate, endDate, page]
|
|
492
509
|
}),
|
|
493
|
-
recordRes =
|
|
510
|
+
recordRes = _useRequest25.data;
|
|
494
511
|
return {
|
|
495
512
|
alarmRecordWork: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {}
|
|
496
513
|
};
|
|
@@ -498,7 +515,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
498
515
|
useAlarmTodayRun: function useAlarmTodayRun(carId, beginTime, endTime, source) {
|
|
499
516
|
var _a;
|
|
500
517
|
//今日运行
|
|
501
|
-
var
|
|
518
|
+
var _useRequest26 = (0, _ahooks.useRequest)(function () {
|
|
502
519
|
return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmSumByTypeAndDay', {
|
|
503
520
|
data: {
|
|
504
521
|
carId: carId,
|
|
@@ -510,7 +527,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
510
527
|
ready: source === 'WORK',
|
|
511
528
|
refreshDeps: [carId, beginTime, endTime, source]
|
|
512
529
|
}),
|
|
513
|
-
data =
|
|
530
|
+
data = _useRequest26.data;
|
|
514
531
|
var pieData = [];
|
|
515
532
|
var lineData = {
|
|
516
533
|
legends: [],
|
|
@@ -548,19 +565,19 @@ var AlarmService = exports.AlarmService = {
|
|
|
548
565
|
var WorkServicve = exports.WorkServicve = {
|
|
549
566
|
useWorkTypeJxh: function useWorkTypeJxh(service) {
|
|
550
567
|
//机械化作业类型
|
|
551
|
-
var
|
|
568
|
+
var _useRequest27 = (0, _ahooks.useRequest)(function () {
|
|
552
569
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/v101/common/listWorkType"), {
|
|
553
570
|
data: {}
|
|
554
571
|
});
|
|
555
572
|
}),
|
|
556
|
-
workTypeRes =
|
|
573
|
+
workTypeRes = _useRequest27.data;
|
|
557
574
|
return {
|
|
558
575
|
workTypeRes: (workTypeRes === null || workTypeRes === void 0 ? void 0 : workTypeRes.data) || []
|
|
559
576
|
};
|
|
560
577
|
},
|
|
561
578
|
useRecordJxh: function useRecordJxh(carId, workTypeCodes, startDate, endDate, pageNo, order, service) {
|
|
562
579
|
//机械化
|
|
563
|
-
var
|
|
580
|
+
var _useRequest28 = (0, _ahooks.useRequest)(function () {
|
|
564
581
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/v1.5/noshift/page"), {
|
|
565
582
|
data: {
|
|
566
583
|
carId: carId,
|
|
@@ -578,14 +595,14 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
578
595
|
}, {
|
|
579
596
|
refreshDeps: [carId, workTypeCodes, startDate, endDate, pageNo, order]
|
|
580
597
|
}),
|
|
581
|
-
recordJxhRes =
|
|
598
|
+
recordJxhRes = _useRequest28.data;
|
|
582
599
|
return {
|
|
583
600
|
recordJxhRes: (recordJxhRes === null || recordJxhRes === void 0 ? void 0 : recordJxhRes.data) || []
|
|
584
601
|
};
|
|
585
602
|
},
|
|
586
603
|
useWorkSummaryLjsy: function useWorkSummaryLjsy(carId, startDate, endDate) {
|
|
587
604
|
//垃圾收运头部统计
|
|
588
|
-
var
|
|
605
|
+
var _useRequest29 = (0, _ahooks.useRequest)(function () {
|
|
589
606
|
return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoSummaryByCarId', {
|
|
590
607
|
data: {
|
|
591
608
|
carId: carId,
|
|
@@ -596,14 +613,14 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
596
613
|
}, {
|
|
597
614
|
refreshDeps: [carId, startDate, endDate]
|
|
598
615
|
}),
|
|
599
|
-
summaryLjsy =
|
|
616
|
+
summaryLjsy = _useRequest29.data;
|
|
600
617
|
return {
|
|
601
618
|
summaryLjsy: (summaryLjsy === null || summaryLjsy === void 0 ? void 0 : summaryLjsy.data) || []
|
|
602
619
|
};
|
|
603
620
|
},
|
|
604
621
|
useRecordLjsy: function useRecordLjsy(carIds, startTime, endTime, page, sort) {
|
|
605
622
|
//机械化
|
|
606
|
-
var
|
|
623
|
+
var _useRequest30 = (0, _ahooks.useRequest)(function () {
|
|
607
624
|
return _utils.request.get('/cloud/ljsy-reborn/api/collect/record/detail/page', {
|
|
608
625
|
data: {
|
|
609
626
|
carIds: carIds,
|
|
@@ -617,7 +634,7 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
617
634
|
}, {
|
|
618
635
|
refreshDeps: [carIds, startTime, endTime, page, sort]
|
|
619
636
|
}),
|
|
620
|
-
recordLjsyRes =
|
|
637
|
+
recordLjsyRes = _useRequest30.data;
|
|
621
638
|
return {
|
|
622
639
|
recordLjsyRes: (recordLjsyRes === null || recordLjsyRes === void 0 ? void 0 : recordLjsyRes.data) || []
|
|
623
640
|
};
|
|
@@ -627,7 +644,7 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
627
644
|
var OilService = exports.OilService = {
|
|
628
645
|
useHasOil: function useHasOil(carId) {
|
|
629
646
|
var _a;
|
|
630
|
-
var
|
|
647
|
+
var _useRequest31 = (0, _ahooks.useRequest)(function () {
|
|
631
648
|
return _utils.request.get('/cloud/gps-reborn/car/config/getById', {
|
|
632
649
|
data: {
|
|
633
650
|
id: carId
|
|
@@ -636,13 +653,13 @@ var OilService = exports.OilService = {
|
|
|
636
653
|
}, {
|
|
637
654
|
refreshDeps: [carId]
|
|
638
655
|
}),
|
|
639
|
-
data =
|
|
656
|
+
data = _useRequest31.data;
|
|
640
657
|
return {
|
|
641
658
|
beenOilStatus: (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.beenOilStatus
|
|
642
659
|
};
|
|
643
660
|
},
|
|
644
661
|
useOilLine: function useOilLine(carId, startTime, endTime) {
|
|
645
|
-
var
|
|
662
|
+
var _useRequest32 = (0, _ahooks.useRequest)(function () {
|
|
646
663
|
return _utils.request.get('/cloud/oil-reborn/api/oilUse/oilLine.smvc', {
|
|
647
664
|
data: {
|
|
648
665
|
carId: carId,
|
|
@@ -653,13 +670,13 @@ var OilService = exports.OilService = {
|
|
|
653
670
|
}, {
|
|
654
671
|
refreshDeps: [carId, startTime, endTime]
|
|
655
672
|
}),
|
|
656
|
-
oilLineRes =
|
|
673
|
+
oilLineRes = _useRequest32.data;
|
|
657
674
|
return {
|
|
658
675
|
oilLineRes: (oilLineRes === null || oilLineRes === void 0 ? void 0 : oilLineRes.data) || []
|
|
659
676
|
};
|
|
660
677
|
},
|
|
661
678
|
useSummary: function useSummary(carId, startTime, endTime) {
|
|
662
|
-
var
|
|
679
|
+
var _useRequest33 = (0, _ahooks.useRequest)(function () {
|
|
663
680
|
return _utils.request.get('/cloud/oil-reborn/api/oilUse/summary.smvc', {
|
|
664
681
|
data: {
|
|
665
682
|
carId: carId,
|
|
@@ -670,13 +687,13 @@ var OilService = exports.OilService = {
|
|
|
670
687
|
}, {
|
|
671
688
|
refreshDeps: [carId, startTime, endTime]
|
|
672
689
|
}),
|
|
673
|
-
summaryRes =
|
|
690
|
+
summaryRes = _useRequest33.data;
|
|
674
691
|
return {
|
|
675
692
|
summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
|
|
676
693
|
};
|
|
677
694
|
},
|
|
678
695
|
useRecord: function useRecord(carId, startTime, endTime, page, sort) {
|
|
679
|
-
var
|
|
696
|
+
var _useRequest34 = (0, _ahooks.useRequest)(function () {
|
|
680
697
|
return _utils.request.get('/cloud/oil-reborn/api/oilUse/simplePage.smvc', {
|
|
681
698
|
data: {
|
|
682
699
|
carId: carId,
|
|
@@ -691,7 +708,7 @@ var OilService = exports.OilService = {
|
|
|
691
708
|
}, {
|
|
692
709
|
refreshDeps: [carId, startTime, endTime, page, sort]
|
|
693
710
|
}),
|
|
694
|
-
recordRes =
|
|
711
|
+
recordRes = _useRequest34.data;
|
|
695
712
|
return {
|
|
696
713
|
recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
|
|
697
714
|
};
|
|
@@ -700,7 +717,7 @@ var OilService = exports.OilService = {
|
|
|
700
717
|
//水耗
|
|
701
718
|
var WaterService = exports.WaterService = {
|
|
702
719
|
useSummary: function useSummary(carId, startTime, endTime) {
|
|
703
|
-
var
|
|
720
|
+
var _useRequest35 = (0, _ahooks.useRequest)(function () {
|
|
704
721
|
return _utils.request.get('/cloud/water-reborn/api/v101/water/waterMeasure/summary', {
|
|
705
722
|
data: {
|
|
706
723
|
hasWaterStatus: true,
|
|
@@ -712,13 +729,13 @@ var WaterService = exports.WaterService = {
|
|
|
712
729
|
}, {
|
|
713
730
|
refreshDeps: [carId, startTime, endTime]
|
|
714
731
|
}),
|
|
715
|
-
summaryRes =
|
|
732
|
+
summaryRes = _useRequest35.data;
|
|
716
733
|
return {
|
|
717
734
|
summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
|
|
718
735
|
};
|
|
719
736
|
},
|
|
720
737
|
useRecord: function useRecord(carId, startDate, endDate, order) {
|
|
721
|
-
var
|
|
738
|
+
var _useRequest36 = (0, _ahooks.useRequest)(function () {
|
|
722
739
|
return _utils.request.get('/cloud/water-reborn/api/v101/water/waterMeasure/queryList', {
|
|
723
740
|
data: {
|
|
724
741
|
hasWaterStatus: true,
|
|
@@ -732,7 +749,7 @@ var WaterService = exports.WaterService = {
|
|
|
732
749
|
}, {
|
|
733
750
|
refreshDeps: [carId, startDate, endDate, order]
|
|
734
751
|
}),
|
|
735
|
-
recordRes =
|
|
752
|
+
recordRes = _useRequest36.data;
|
|
736
753
|
return {
|
|
737
754
|
recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
|
|
738
755
|
};
|
|
@@ -741,7 +758,7 @@ var WaterService = exports.WaterService = {
|
|
|
741
758
|
// 维保
|
|
742
759
|
var MaintenanceService = exports.MaintenanceService = {
|
|
743
760
|
useMaintenance: function useMaintenance(carId) {
|
|
744
|
-
var
|
|
761
|
+
var _useRequest37 = (0, _ahooks.useRequest)(function () {
|
|
745
762
|
return _utils.request.get('/cloud/clwb/api/v101/carComprehensiveBoard/carWbAnalyse', {
|
|
746
763
|
data: {
|
|
747
764
|
carId: carId
|
|
@@ -750,7 +767,7 @@ var MaintenanceService = exports.MaintenanceService = {
|
|
|
750
767
|
}, {
|
|
751
768
|
refreshDeps: [carId]
|
|
752
769
|
}),
|
|
753
|
-
maintenanceRes =
|
|
770
|
+
maintenanceRes = _useRequest37.data;
|
|
754
771
|
return {
|
|
755
772
|
maintenanceRes: (maintenanceRes === null || maintenanceRes === void 0 ? void 0 : maintenanceRes.data) || []
|
|
756
773
|
};
|
|
@@ -762,7 +779,7 @@ var CollectionService = exports.CollectionService = {
|
|
|
762
779
|
var carId = _ref2.carId,
|
|
763
780
|
startDay = _ref2.startDay,
|
|
764
781
|
endDay = _ref2.endDay;
|
|
765
|
-
var
|
|
782
|
+
var _useRequest38 = (0, _ahooks.useRequest)(function () {
|
|
766
783
|
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
767
784
|
var res;
|
|
768
785
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -789,7 +806,7 @@ var CollectionService = exports.CollectionService = {
|
|
|
789
806
|
refreshDeps: [carId, startDay, endDay],
|
|
790
807
|
ready: !!carId
|
|
791
808
|
}),
|
|
792
|
-
data =
|
|
809
|
+
data = _useRequest38.data;
|
|
793
810
|
return data || [];
|
|
794
811
|
},
|
|
795
812
|
// 收运记录
|
|
@@ -797,7 +814,7 @@ var CollectionService = exports.CollectionService = {
|
|
|
797
814
|
var id = _ref3.id,
|
|
798
815
|
startTime = _ref3.startTime,
|
|
799
816
|
endTime = _ref3.endTime;
|
|
800
|
-
var
|
|
817
|
+
var _useRequest39 = (0, _ahooks.useRequest)(function () {
|
|
801
818
|
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
802
819
|
var res;
|
|
803
820
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -824,7 +841,7 @@ var CollectionService = exports.CollectionService = {
|
|
|
824
841
|
refreshDeps: [id, startTime, endTime],
|
|
825
842
|
ready: !!id
|
|
826
843
|
}),
|
|
827
|
-
data =
|
|
844
|
+
data = _useRequest39.data;
|
|
828
845
|
return data;
|
|
829
846
|
}
|
|
830
847
|
};
|