@vtx/modals2 5.0.3 → 5.0.5
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/index.js +4 -3
- package/lib/_components/vm-bar-charts/index.js +10 -6
- package/lib/_components/vm-calendar/style/index.less +4 -7
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-extra-tab/style/index.less +6 -3
- package/lib/_components/vm-factor/index.js +10 -5
- package/lib/_components/vm-factor/style/index.less +5 -1
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/style/index.less +2 -1
- package/lib/_components/vm-info-collection/index.js +2 -2
- package/lib/_components/vm-line-charts/index.js +1 -1
- package/lib/_components/vm-map/index.js +5 -5
- package/lib/_components/vm-pie-charts/index.js +9 -5
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +46 -0
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +44 -0
- package/lib/_components/vm-repair-maintain/RmRecord.js +157 -0
- package/lib/_components/vm-repair-maintain/RmType.js +32 -0
- package/lib/_components/vm-repair-maintain/api.js +92 -0
- package/lib/_components/vm-repair-maintain/imgs/amount.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/amount_light.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count_light.png +0 -0
- package/lib/_components/vm-repair-maintain/index.js +56 -0
- package/lib/_components/vm-repair-maintain/style/index.js +1 -0
- package/lib/_components/vm-repair-maintain/style/index.less +25 -0
- package/lib/_components/vm-table/index.js +7 -4
- package/lib/_components/vm-table/style/index.less +3 -2
- package/lib/_components/vm-tag/style/index.less +10 -0
- package/lib/_components/vm-title/index.js +3 -2
- package/lib/_components/vm-video/HistoryGrid.js +52 -0
- package/lib/_components/vm-video/RealtimeGrid.js +8 -4
- package/lib/_components/vm-video/index.js +298 -112
- package/lib/_components/vm-video/index.less +10 -1
- package/lib/_components/vm-wrapper/index.js +32 -10
- package/lib/_components/vm-wrapper/style/index.less +28 -0
- package/lib/_service/index.js +5 -0
- package/lib/_util/index.js +0 -5
- package/lib/index.js +7 -2
- package/lib/style/index.less +2 -6
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -1
- package/lib/vtx-base-modal/Header/index.js +3 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-base-modal/index.js +11 -5
- package/lib/vtx-car-modal/api.js +4 -3
- package/lib/vtx-car-modal/components/Info/index.js +2 -1
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +5 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +9 -3
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +134 -103
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +210 -161
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +39 -16
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
- package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
- package/lib/vtx-car-modal/content/index.js +2 -1
- package/lib/vtx-car-modal/imgs/butter.png +0 -0
- package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/track.png +0 -0
- package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/water.png +0 -0
- package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +24 -4
- package/lib/vtx-cc-cp-modal/api.js +381 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +120 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +103 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +75 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +58 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +142 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +63 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +16 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +168 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +118 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +111 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +3 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +46 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +81 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +78 -0
- package/lib/vtx-cc-cp-modal/components/index.js +7 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/index.js +119 -0
- package/lib/vtx-cc-cp-modal/style/index.js +1 -0
- package/lib/vtx-cc-cp-modal/style/index.less +13 -0
- package/lib/vtx-cc-unit-modal/api.js +361 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +69 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +66 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +60 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +91 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +118 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -0
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +129 -0
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +95 -0
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +126 -0
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +149 -0
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +127 -0
- package/lib/vtx-cc-unit-modal/components/index.js +7 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/index.js +137 -0
- package/lib/vtx-cc-unit-modal/style/index.js +1 -0
- package/lib/vtx-cc-unit-modal/style/index.less +14 -0
- package/lib/vtx-cp-modal/api.js +3 -3
- package/lib/vtx-cp-modal/index.js +4 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.js +3 -2
- package/lib/vtx-default-modal/index.js +10 -8
- package/lib/vtx-device-modal/api.js +531 -0
- package/lib/vtx-device-modal/components/BaseInfo/index.js +140 -0
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +279 -0
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +610 -0
- package/lib/vtx-device-modal/components/DataAnalysis/TabsList.js +23 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +24 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -0
- package/lib/vtx-device-modal/components/index.js +3 -0
- package/lib/vtx-device-modal/config.js +21 -0
- package/lib/vtx-device-modal/imgs/current.png +0 -0
- package/lib/vtx-device-modal/imgs/current_dark.png +0 -0
- package/lib/vtx-device-modal/imgs/history.png +0 -0
- package/lib/vtx-device-modal/imgs/history_dark.png +0 -0
- package/lib/vtx-device-modal/index.js +96 -0
- package/lib/vtx-device-modal/style/index.js +1 -0
- package/lib/vtx-device-modal/style/index.less +1 -0
- package/lib/vtx-df-modal/index.js +11 -11
- package/lib/vtx-housing-estate-modal/api.js +559 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
- package/lib/vtx-housing-estate-modal/components/index.js +5 -0
- package/lib/vtx-housing-estate-modal/config.js +77 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
- package/lib/vtx-housing-estate-modal/index.js +108 -0
- package/lib/vtx-housing-estate-modal/style/index.js +4 -0
- package/lib/vtx-housing-estate-modal/style/index.less +1 -0
- package/lib/vtx-kh-modal/api2.js +178 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +197 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +101 -0
- package/lib/vtx-kh-modal/components/Record/index.js +204 -0
- package/lib/vtx-kh-modal/components/Record/index.less +7 -0
- package/lib/vtx-kh-modal/components/index.js +3 -0
- package/lib/vtx-kh-modal/imgs/count.png +0 -0
- package/lib/vtx-kh-modal/imgs/count_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/score.png +0 -0
- package/lib/vtx-kh-modal/imgs/score_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract_light.png +0 -0
- package/lib/vtx-kh-modal/index.js +46 -0
- package/lib/vtx-kh-modal/style/index.js +4 -0
- package/lib/vtx-kh-modal/style/index.less +1 -0
- package/lib/vtx-restaurant-modal/api.js +297 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +47 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +31 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +36 -0
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +41 -0
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +69 -0
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +64 -0
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +68 -0
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +87 -0
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +61 -0
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +60 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.js +74 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +171 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-restaurant-modal/components/Collection/index.js +86 -0
- package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +111 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +299 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +198 -0
- package/lib/vtx-restaurant-modal/components/index.js +7 -0
- package/lib/vtx-restaurant-modal/config.js +283 -0
- package/lib/vtx-restaurant-modal/imgs/csl.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/csl_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-restaurant-modal/index.js +168 -0
- package/lib/vtx-restaurant-modal/style/index.js +1 -0
- package/lib/vtx-restaurant-modal/style/index.less +13 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -218
- package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +4 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +0 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +4 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +20 -6
- package/lib/vtx-staff-modal/index.js +4 -1
- package/lib/vtx-tfd-modal/api.js +22 -27
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +100 -59
- package/lib/vtx-tfd-modal/components/BaseInfo/index.less +5 -0
- package/lib/vtx-zg-modal/api.js +107 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +286 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +124 -0
- package/lib/vtx-zg-modal/components/index.js +1 -0
- package/lib/vtx-zg-modal/imgs/dot.png +0 -0
- package/lib/vtx-zg-modal/imgs/dot_done.png +0 -0
- package/lib/vtx-zg-modal/index.js +42 -0
- package/lib/vtx-zg-modal/style/index.js +3 -0
- package/lib/vtx-zg-modal/style/index.less +1 -0
- package/lib/vtx-zzz-modal/index.js +10 -10
- package/package.json +1 -1
- package/lib/resources/jessibuca/decoder.js +0 -3839
- package/lib/resources/jessibuca/decoder.wasm +0 -0
- package/lib/resources/jessibuca/jessibuca.js +0 -5350
- package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
|
@@ -13,26 +13,17 @@ import { secondToFormatTimeArray } from "../../../../_util";
|
|
|
13
13
|
import { JxhService } from "../../../api";
|
|
14
14
|
import Info from "../../../components/Info";
|
|
15
15
|
import { CarContext } from "../../../index";
|
|
16
|
+
import Unmanned from "../../Unmanned";
|
|
16
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
18
|
var BaseInfo = function BaseInfo() {
|
|
18
19
|
var _useContext = useContext(CarContext),
|
|
19
20
|
id = _useContext.id,
|
|
20
|
-
startDate = _useContext.startDate
|
|
21
|
-
|
|
22
|
-
isDark = _useSettings.isDark;
|
|
21
|
+
startDate = _useContext.startDate,
|
|
22
|
+
info = _useContext.info;
|
|
23
23
|
var _useState = useState(dayjs(startDate)),
|
|
24
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25
25
|
date = _useState2[0],
|
|
26
26
|
setDate = _useState2[1];
|
|
27
|
-
var _JxhService$useWorkSu = JxhService.useWorkSummaryJxh(id, dayjs(date).format('YYYY-MM-DD'), dayjs(date).format('YYYY-MM-DD')),
|
|
28
|
-
workSummaryJxhRes = _JxhService$useWorkSu.workSummaryJxhRes,
|
|
29
|
-
loading = _JxhService$useWorkSu.loading;
|
|
30
|
-
var _JxhService$useWorkAn = JxhService.useWorkAnaJxh(id, dayjs(date).subtract(6, 'day').format('YYYY-MM-DD'), dayjs(date).format('YYYY-MM-DD')),
|
|
31
|
-
workAnaJxhRes = _JxhService$useWorkAn.workAnaJxhRes,
|
|
32
|
-
loadingJxh = _JxhService$useWorkAn.loading;
|
|
33
|
-
var xAxis = (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.names) || [];
|
|
34
|
-
var extraData = workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.extraData;
|
|
35
|
-
var averageSpeed = ((workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workMileage) || 0) / (workSummaryJxhRes !== null && workSummaryJxhRes !== void 0 && workSummaryJxhRes.workDuration ? workSummaryJxhRes.workDuration % (24 * 60 * 60) / 60 / 60 : 1);
|
|
36
27
|
return /*#__PURE__*/_jsxs(Row, {
|
|
37
28
|
gutter: [16, 16],
|
|
38
29
|
style: {
|
|
@@ -40,6 +31,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
40
31
|
},
|
|
41
32
|
children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
|
|
42
33
|
flex: '1',
|
|
34
|
+
style: {
|
|
35
|
+
minWidth: 0
|
|
36
|
+
},
|
|
43
37
|
children: /*#__PURE__*/_jsxs("div", {
|
|
44
38
|
className: 'vtx-car-info-right-wrap',
|
|
45
39
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -54,103 +48,23 @@ var BaseInfo = function BaseInfo() {
|
|
|
54
48
|
disabledDate: function disabledDate(current) {
|
|
55
49
|
return current && current > dayjs().endOf('day');
|
|
56
50
|
},
|
|
57
|
-
children: /*#__PURE__*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
marginLeft: 30
|
|
63
|
-
},
|
|
64
|
-
children: [/*#__PURE__*/_jsx(Col, {
|
|
65
|
-
flex: '1',
|
|
66
|
-
children: /*#__PURE__*/_jsxs(Row, {
|
|
67
|
-
gutter: [34, 34],
|
|
68
|
-
children: [/*#__PURE__*/_jsx(Col, {
|
|
69
|
-
flex: '108px',
|
|
70
|
-
children: /*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
71
|
-
rate: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workRate) || 0,
|
|
72
|
-
name: '有效作业率'
|
|
73
|
-
})
|
|
74
|
-
}), /*#__PURE__*/_jsxs(Col, {
|
|
75
|
-
flex: '1',
|
|
76
|
-
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
77
|
-
name: '行驶里程',
|
|
78
|
-
unit: 'km',
|
|
79
|
-
type: 'sm',
|
|
80
|
-
value: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.driveMileage) || 0,
|
|
81
|
-
fontType: 'blue',
|
|
82
|
-
img: isDark ? require("../../../imgs/calendar/dark_mileage.png") : require("../../../imgs/calendar/blue_mileage.png")
|
|
83
|
-
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
84
|
-
name: '核算作业里程',
|
|
85
|
-
unit: 'km',
|
|
86
|
-
type: 'sm',
|
|
87
|
-
fontType: 'green',
|
|
88
|
-
value: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workMileage) || 0,
|
|
89
|
-
img: isDark ? require("../../../imgs/calendar/dark_green_mileage.png") : require("../../../imgs/calendar/mileage.png")
|
|
90
|
-
})]
|
|
91
|
-
})]
|
|
92
|
-
})
|
|
93
|
-
}), /*#__PURE__*/_jsx(Col, {
|
|
94
|
-
flex: '1',
|
|
95
|
-
children: /*#__PURE__*/_jsxs(Row, {
|
|
96
|
-
gutter: [34, 34],
|
|
97
|
-
children: [/*#__PURE__*/_jsx(Col, {
|
|
98
|
-
flex: '108px',
|
|
99
|
-
children: /*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
100
|
-
type: 'dashboard',
|
|
101
|
-
rate: averageSpeed / 200 * 100,
|
|
102
|
-
name: '作业均速',
|
|
103
|
-
unit: 'km/h',
|
|
104
|
-
info: averageSpeed.toFixed(2)
|
|
105
|
-
})
|
|
106
|
-
}), /*#__PURE__*/_jsxs(Col, {
|
|
107
|
-
flex: '1',
|
|
108
|
-
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
109
|
-
name: '作业时长',
|
|
110
|
-
type: 'sm',
|
|
111
|
-
value: secondToFormatTimeArray((workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workDuration) || 0),
|
|
112
|
-
fontType: 'cyan',
|
|
113
|
-
img: isDark ? require("../../../imgs/calendar/cyan_duration.png") : require("../../../imgs/calendar/blue_duration.png")
|
|
114
|
-
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
115
|
-
name: '作业超速时长',
|
|
116
|
-
type: 'sm',
|
|
117
|
-
isError: true,
|
|
118
|
-
value: secondToFormatTimeArray((workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.overSpeedDuration) || 0),
|
|
119
|
-
fontType: 'red',
|
|
120
|
-
img: isDark ? require("../../../imgs/calendar/dark_alarm.png") : require("../../../imgs/calendar/alarm.png")
|
|
121
|
-
})]
|
|
122
|
-
})]
|
|
123
|
-
})
|
|
124
|
-
})]
|
|
51
|
+
children: (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.WorkInfo, {
|
|
52
|
+
info: info
|
|
53
|
+
}) : /*#__PURE__*/_jsx(BaseWork, {
|
|
54
|
+
id: id,
|
|
55
|
+
date: date
|
|
125
56
|
})
|
|
126
57
|
})
|
|
127
58
|
}), /*#__PURE__*/_jsx("div", {
|
|
128
59
|
className: 'vtx-car-info-right-wrap-bottom',
|
|
129
60
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
130
61
|
title: '近7天运行分析',
|
|
131
|
-
children: /*#__PURE__*/_jsx(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}],
|
|
138
|
-
xAxis: xAxis,
|
|
139
|
-
yAxisList: [{
|
|
140
|
-
key: "\u2000",
|
|
141
|
-
unit: 'km',
|
|
142
|
-
name: '(km)'
|
|
143
|
-
}].concat([extraData !== null && extraData > 0 ? {
|
|
144
|
-
key: '',
|
|
145
|
-
unit: '%',
|
|
146
|
-
name: '(%)'
|
|
147
|
-
} : {}]),
|
|
148
|
-
lineList: extraData !== null && extraData > 0 ? [{
|
|
149
|
-
name: '有效作业率',
|
|
150
|
-
data: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.values.length) > 0 ? workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.values[1] : [],
|
|
151
|
-
yAxisIndex: 1
|
|
152
|
-
}] : [],
|
|
153
|
-
loading: loadingJxh
|
|
62
|
+
children: (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.Analysis, {
|
|
63
|
+
id: id,
|
|
64
|
+
date: date
|
|
65
|
+
}) : /*#__PURE__*/_jsx(BaseAnalysis, {
|
|
66
|
+
id: id,
|
|
67
|
+
date: date
|
|
154
68
|
})
|
|
155
69
|
})
|
|
156
70
|
})]
|
|
@@ -158,4 +72,121 @@ var BaseInfo = function BaseInfo() {
|
|
|
158
72
|
})]
|
|
159
73
|
});
|
|
160
74
|
};
|
|
75
|
+
|
|
76
|
+
// 机械化运行信息-默认
|
|
77
|
+
function BaseWork(_ref) {
|
|
78
|
+
var id = _ref.id,
|
|
79
|
+
date = _ref.date;
|
|
80
|
+
var _useSettings = useSettings(),
|
|
81
|
+
isDark = _useSettings.isDark;
|
|
82
|
+
var _JxhService$useWorkSu = JxhService.useWorkSummaryJxh(id, dayjs(date).format('YYYY-MM-DD'), dayjs(date).format('YYYY-MM-DD')),
|
|
83
|
+
workSummaryJxhRes = _JxhService$useWorkSu.workSummaryJxhRes,
|
|
84
|
+
loading = _JxhService$useWorkSu.loading;
|
|
85
|
+
var averageSpeed = ((workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workMileage) || 0) / (workSummaryJxhRes !== null && workSummaryJxhRes !== void 0 && workSummaryJxhRes.workDuration ? workSummaryJxhRes.workDuration % (24 * 60 * 60) / 60 / 60 : 1);
|
|
86
|
+
return /*#__PURE__*/_jsxs(Row, {
|
|
87
|
+
gutter: [47, 47],
|
|
88
|
+
align: 'middle',
|
|
89
|
+
style: {
|
|
90
|
+
height: '100%',
|
|
91
|
+
marginLeft: 30
|
|
92
|
+
},
|
|
93
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
94
|
+
flex: '1',
|
|
95
|
+
children: /*#__PURE__*/_jsxs(Row, {
|
|
96
|
+
gutter: [34, 34],
|
|
97
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
98
|
+
flex: '108px',
|
|
99
|
+
children: /*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
100
|
+
rate: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workRate) || 0,
|
|
101
|
+
name: '有效作业率'
|
|
102
|
+
})
|
|
103
|
+
}), /*#__PURE__*/_jsxs(Col, {
|
|
104
|
+
flex: '1',
|
|
105
|
+
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
106
|
+
name: '行驶里程',
|
|
107
|
+
unit: 'km',
|
|
108
|
+
type: 'sm',
|
|
109
|
+
value: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.driveMileage) || 0,
|
|
110
|
+
fontType: 'blue',
|
|
111
|
+
img: isDark ? require("../../../imgs/calendar/dark_mileage.png") : require("../../../imgs/calendar/blue_mileage.png")
|
|
112
|
+
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
113
|
+
name: '核算作业里程',
|
|
114
|
+
unit: 'km',
|
|
115
|
+
type: 'sm',
|
|
116
|
+
fontType: 'green',
|
|
117
|
+
value: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workMileage) || 0,
|
|
118
|
+
img: isDark ? require("../../../imgs/calendar/dark_green_mileage.png") : require("../../../imgs/calendar/mileage.png")
|
|
119
|
+
})]
|
|
120
|
+
})]
|
|
121
|
+
})
|
|
122
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
123
|
+
flex: '1',
|
|
124
|
+
children: /*#__PURE__*/_jsxs(Row, {
|
|
125
|
+
gutter: [34, 34],
|
|
126
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
127
|
+
flex: '108px',
|
|
128
|
+
children: /*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
129
|
+
type: 'dashboard',
|
|
130
|
+
rate: averageSpeed / 200 * 100,
|
|
131
|
+
name: '作业均速',
|
|
132
|
+
unit: 'km/h',
|
|
133
|
+
info: averageSpeed.toFixed(2)
|
|
134
|
+
})
|
|
135
|
+
}), /*#__PURE__*/_jsxs(Col, {
|
|
136
|
+
flex: '1',
|
|
137
|
+
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
138
|
+
name: '作业时长',
|
|
139
|
+
type: 'sm',
|
|
140
|
+
value: secondToFormatTimeArray((workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workDuration) || 0),
|
|
141
|
+
fontType: 'cyan',
|
|
142
|
+
img: isDark ? require("../../../imgs/calendar/cyan_duration.png") : require("../../../imgs/calendar/blue_duration.png")
|
|
143
|
+
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
144
|
+
name: '作业超速时长',
|
|
145
|
+
type: 'sm',
|
|
146
|
+
isError: true,
|
|
147
|
+
value: secondToFormatTimeArray((workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.overSpeedDuration) || 0),
|
|
148
|
+
fontType: 'red',
|
|
149
|
+
img: isDark ? require("../../../imgs/calendar/dark_alarm.png") : require("../../../imgs/calendar/alarm.png")
|
|
150
|
+
})]
|
|
151
|
+
})]
|
|
152
|
+
})
|
|
153
|
+
})]
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// 机械化近7天运行分析-默认
|
|
158
|
+
function BaseAnalysis(_ref2) {
|
|
159
|
+
var id = _ref2.id,
|
|
160
|
+
date = _ref2.date;
|
|
161
|
+
var _JxhService$useWorkAn = JxhService.useWorkAnaJxh(id, dayjs(date).subtract(6, 'day').format('YYYY-MM-DD'), dayjs(date).format('YYYY-MM-DD')),
|
|
162
|
+
workAnaJxhRes = _JxhService$useWorkAn.workAnaJxhRes,
|
|
163
|
+
loadingJxh = _JxhService$useWorkAn.loading;
|
|
164
|
+
var xAxis = (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.names) || [];
|
|
165
|
+
var extraData = workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.extraData;
|
|
166
|
+
return /*#__PURE__*/_jsx(VmBarCharts, {
|
|
167
|
+
dataList: [{
|
|
168
|
+
name: '核算作业里程',
|
|
169
|
+
data: ((workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.values.length) > 0 ? workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.values[0] : []).map(function (item) {
|
|
170
|
+
return "\u2000".concat(item);
|
|
171
|
+
})
|
|
172
|
+
}],
|
|
173
|
+
xAxis: xAxis,
|
|
174
|
+
unit: '%',
|
|
175
|
+
yAxisList: [{
|
|
176
|
+
key: "\u2000",
|
|
177
|
+
unit: 'km',
|
|
178
|
+
name: '(km)'
|
|
179
|
+
}].concat([extraData !== null && extraData > 0 ? {
|
|
180
|
+
key: '',
|
|
181
|
+
unit: '%',
|
|
182
|
+
name: '(%)'
|
|
183
|
+
} : {}]),
|
|
184
|
+
lineList: extraData !== null && extraData > 0 ? [{
|
|
185
|
+
name: '有效完成率',
|
|
186
|
+
data: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.values.length) > 0 ? workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.values[1] : [],
|
|
187
|
+
yAxisIndex: 1
|
|
188
|
+
}] : [],
|
|
189
|
+
loading: loadingJxh
|
|
190
|
+
});
|
|
191
|
+
}
|
|
161
192
|
export default BaseInfo;
|