@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
|
@@ -24,20 +24,198 @@ import darkMileageIcon from "../../../imgs/calendar/dark_mileage.png";
|
|
|
24
24
|
import lightWorkMileageIcon from "../../../imgs/calendar/green_mileage.png";
|
|
25
25
|
import lightMileageIcon from "../../../imgs/calendar/mileage.png";
|
|
26
26
|
import { CarContext } from "../../../index";
|
|
27
|
+
import Unmanned from "../../Unmanned";
|
|
27
28
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
28
29
|
var StaticInfo = function StaticInfo() {
|
|
29
|
-
var _useSettings = useSettings(),
|
|
30
|
-
isDark = _useSettings.isDark;
|
|
31
30
|
var _useState = useState('calendar'),
|
|
32
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33
32
|
type = _useState2[0],
|
|
34
33
|
setType = _useState2[1];
|
|
35
34
|
var _useContext = useContext(CarContext),
|
|
36
|
-
id = _useContext.id
|
|
35
|
+
id = _useContext.id,
|
|
36
|
+
info = _useContext.info;
|
|
37
37
|
var _useState3 = useState(dayjs()),
|
|
38
38
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
39
39
|
month = _useState4[0],
|
|
40
40
|
setMonth = _useState4[1];
|
|
41
|
+
var common = {
|
|
42
|
+
type: type,
|
|
43
|
+
id: id,
|
|
44
|
+
month: month
|
|
45
|
+
};
|
|
46
|
+
return /*#__PURE__*/_jsx(VmWrapper, {
|
|
47
|
+
title: '作业分析',
|
|
48
|
+
needChange: true,
|
|
49
|
+
showCalendar: true,
|
|
50
|
+
onChange: setType,
|
|
51
|
+
filterType: "monthPicker",
|
|
52
|
+
dateValue: month,
|
|
53
|
+
filterChange: setMonth,
|
|
54
|
+
disabledDate: function disabledDate(current) {
|
|
55
|
+
return current && current > dayjs().endOf('M');
|
|
56
|
+
},
|
|
57
|
+
children: (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.Calendar, _objectSpread(_objectSpread({}, common), {}, {
|
|
58
|
+
legend: /*#__PURE__*/_jsx(RateLegend, {}),
|
|
59
|
+
getRateColor: getRateColor,
|
|
60
|
+
baseColumns: BaseColumns
|
|
61
|
+
})) : /*#__PURE__*/_jsx(Calendar, _objectSpread({}, common))
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// 作业率图例
|
|
66
|
+
function RateLegend() {
|
|
67
|
+
return /*#__PURE__*/_jsxs(Space, {
|
|
68
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
69
|
+
children: "\u6709\u6548\u4F5C\u4E1A\u7387\uFF1A"
|
|
70
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
71
|
+
className: 'vtx-car-calendar-complete-legend',
|
|
72
|
+
style: {
|
|
73
|
+
background: 'var(--gray-color)'
|
|
74
|
+
}
|
|
75
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
76
|
+
children: "0%"
|
|
77
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
78
|
+
className: 'vtx-car-calendar-complete-legend',
|
|
79
|
+
style: {
|
|
80
|
+
background: 'var(--red-color)'
|
|
81
|
+
}
|
|
82
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
83
|
+
children: "(0%-50%]"
|
|
84
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
85
|
+
className: 'vtx-car-calendar-complete-legend',
|
|
86
|
+
style: {
|
|
87
|
+
background: 'var(--yellow-color)'
|
|
88
|
+
}
|
|
89
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
90
|
+
children: "(50%-80%]"
|
|
91
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
92
|
+
className: 'vtx-car-calendar-complete-legend',
|
|
93
|
+
style: {
|
|
94
|
+
background: 'var(--blue-color)'
|
|
95
|
+
}
|
|
96
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
97
|
+
children: "(80%-100%]"
|
|
98
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
99
|
+
className: 'vtx-car-calendar-complete-legend',
|
|
100
|
+
style: {
|
|
101
|
+
background: 'var(--green-color)'
|
|
102
|
+
}
|
|
103
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
104
|
+
children: "100%"
|
|
105
|
+
})]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// 列表字段-默认
|
|
110
|
+
var BaseColumns = [{
|
|
111
|
+
title: '作业日期',
|
|
112
|
+
dataIndex: 'workDate',
|
|
113
|
+
key: 'workDate',
|
|
114
|
+
width: 100
|
|
115
|
+
}, {
|
|
116
|
+
title: '作业开始时间',
|
|
117
|
+
dataIndex: 'workStartTime',
|
|
118
|
+
key: 'workStartTime',
|
|
119
|
+
render: function render(text) {
|
|
120
|
+
return /*#__PURE__*/_jsx("span", {
|
|
121
|
+
children: text || '-'
|
|
122
|
+
});
|
|
123
|
+
},
|
|
124
|
+
sorter: function sorter(a, b) {
|
|
125
|
+
return a.workStartTime > b.workStartTime ? 1 : -1;
|
|
126
|
+
},
|
|
127
|
+
width: 160
|
|
128
|
+
}, {
|
|
129
|
+
title: '作业结束时间',
|
|
130
|
+
dataIndex: 'workEndTime',
|
|
131
|
+
key: 'workEndTime',
|
|
132
|
+
render: function render(text) {
|
|
133
|
+
return /*#__PURE__*/_jsx("span", {
|
|
134
|
+
children: text || '-'
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
sorter: function sorter(a, b) {
|
|
138
|
+
return a.workEndTime > b.workEndTime ? 1 : -1;
|
|
139
|
+
},
|
|
140
|
+
width: 160
|
|
141
|
+
}, {
|
|
142
|
+
title: '作业时长',
|
|
143
|
+
dataIndex: 'workDuration',
|
|
144
|
+
key: 'workDuration',
|
|
145
|
+
render: function render(text) {
|
|
146
|
+
return /*#__PURE__*/_jsx("span", {
|
|
147
|
+
children: secondToFormatTime((text || 0) / 1000) || '-'
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
width: 100
|
|
151
|
+
}, {
|
|
152
|
+
title: '行驶时长',
|
|
153
|
+
dataIndex: 'driveDuration',
|
|
154
|
+
key: 'driveDuration',
|
|
155
|
+
render: function render(text) {
|
|
156
|
+
return /*#__PURE__*/_jsx("span", {
|
|
157
|
+
children: secondToFormatTime((text || 0) / 1000) || '-'
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
width: 100
|
|
161
|
+
}, {
|
|
162
|
+
title: '规划里程(km)',
|
|
163
|
+
dataIndex: 'planMileage',
|
|
164
|
+
key: 'planMileage',
|
|
165
|
+
render: function render(text) {
|
|
166
|
+
return /*#__PURE__*/_jsx("span", {
|
|
167
|
+
children: text || '-'
|
|
168
|
+
});
|
|
169
|
+
},
|
|
170
|
+
align: 'right',
|
|
171
|
+
width: 120
|
|
172
|
+
}, {
|
|
173
|
+
title: '核算作业里程(km)',
|
|
174
|
+
dataIndex: 'workMileage',
|
|
175
|
+
key: 'workMileage',
|
|
176
|
+
render: function render(text) {
|
|
177
|
+
return /*#__PURE__*/_jsx("span", {
|
|
178
|
+
children: text || '-'
|
|
179
|
+
});
|
|
180
|
+
},
|
|
181
|
+
align: 'right',
|
|
182
|
+
width: 120
|
|
183
|
+
}, {
|
|
184
|
+
title: '行驶里程(km)',
|
|
185
|
+
dataIndex: 'driveMileage',
|
|
186
|
+
key: 'driveMileage',
|
|
187
|
+
render: function render(text) {
|
|
188
|
+
return /*#__PURE__*/_jsx("span", {
|
|
189
|
+
children: text || '-'
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
align: 'right',
|
|
193
|
+
width: 100
|
|
194
|
+
}];
|
|
195
|
+
|
|
196
|
+
// 获取效率颜色
|
|
197
|
+
function getRateColor() {
|
|
198
|
+
var percent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
199
|
+
var color = 'gray';
|
|
200
|
+
if (percent > 0 && percent <= 50) {
|
|
201
|
+
color = 'red';
|
|
202
|
+
} else if (percent > 50 && percent <= 80) {
|
|
203
|
+
color = 'yellow';
|
|
204
|
+
} else if (percent > 80 && percent < 100) {
|
|
205
|
+
color = 'blue';
|
|
206
|
+
} else if (percent >= 100) {
|
|
207
|
+
color = 'green';
|
|
208
|
+
}
|
|
209
|
+
return color;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// 机械化作业日历-默认
|
|
213
|
+
function Calendar(_ref) {
|
|
214
|
+
var type = _ref.type,
|
|
215
|
+
id = _ref.id,
|
|
216
|
+
month = _ref.month;
|
|
217
|
+
var _useSettings = useSettings(),
|
|
218
|
+
isDark = _useSettings.isDark;
|
|
41
219
|
var _JxhService$useCarWor = JxhService.useCarWorkDailyReport(id, month.startOf('M').format('YYYY-MM-DD'), month.endOf('M').format('YYYY-MM-DD')),
|
|
42
220
|
_JxhService$useCarWor2 = _JxhService$useCarWor.dailyData,
|
|
43
221
|
dailyData = _JxhService$useCarWor2 === void 0 ? [] : _JxhService$useCarWor2,
|
|
@@ -49,98 +227,6 @@ var StaticInfo = function StaticInfo() {
|
|
|
49
227
|
mileageIcon = darkMileageIcon;
|
|
50
228
|
workMileageIcon = darkWorkMileageIcon;
|
|
51
229
|
}
|
|
52
|
-
var columns = [{
|
|
53
|
-
title: '作业日期',
|
|
54
|
-
dataIndex: 'workDate',
|
|
55
|
-
key: 'workDate',
|
|
56
|
-
width: 100
|
|
57
|
-
}, {
|
|
58
|
-
title: '作业开始时间',
|
|
59
|
-
dataIndex: 'workStartTime',
|
|
60
|
-
key: 'workStartTime',
|
|
61
|
-
render: function render(text) {
|
|
62
|
-
return /*#__PURE__*/_jsx("span", {
|
|
63
|
-
children: text || '-'
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
sorter: function sorter(a, b) {
|
|
67
|
-
return a.workStartTime > b.workStartTime ? 1 : -1;
|
|
68
|
-
},
|
|
69
|
-
width: 160
|
|
70
|
-
}, {
|
|
71
|
-
title: '作业结束时间',
|
|
72
|
-
dataIndex: 'workEndTime',
|
|
73
|
-
key: 'workEndTime',
|
|
74
|
-
render: function render(text) {
|
|
75
|
-
return /*#__PURE__*/_jsx("span", {
|
|
76
|
-
children: text || '-'
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
sorter: function sorter(a, b) {
|
|
80
|
-
return a.workEndTime > b.workEndTime ? 1 : -1;
|
|
81
|
-
},
|
|
82
|
-
width: 160
|
|
83
|
-
}, {
|
|
84
|
-
title: '作业时长',
|
|
85
|
-
dataIndex: 'workDuration',
|
|
86
|
-
key: 'workDuration',
|
|
87
|
-
render: function render(text) {
|
|
88
|
-
return /*#__PURE__*/_jsx("span", {
|
|
89
|
-
children: secondToFormatTime((text || 0) / 1000) || '-'
|
|
90
|
-
});
|
|
91
|
-
},
|
|
92
|
-
width: 100
|
|
93
|
-
}, {
|
|
94
|
-
title: '行驶时长',
|
|
95
|
-
dataIndex: 'driveDuration',
|
|
96
|
-
key: 'driveDuration',
|
|
97
|
-
render: function render(text) {
|
|
98
|
-
return /*#__PURE__*/_jsx("span", {
|
|
99
|
-
children: secondToFormatTime((text || 0) / 1000) || '-'
|
|
100
|
-
});
|
|
101
|
-
},
|
|
102
|
-
width: 100
|
|
103
|
-
}, {
|
|
104
|
-
title: '核算作业里程(km)',
|
|
105
|
-
dataIndex: 'realWorkMileage',
|
|
106
|
-
key: 'realWorkMileage',
|
|
107
|
-
render: function render(text) {
|
|
108
|
-
return /*#__PURE__*/_jsx("span", {
|
|
109
|
-
children: text || '-'
|
|
110
|
-
});
|
|
111
|
-
},
|
|
112
|
-
align: 'right',
|
|
113
|
-
width: 120
|
|
114
|
-
}, {
|
|
115
|
-
title: '行驶里程(km)',
|
|
116
|
-
dataIndex: 'driveMileage',
|
|
117
|
-
key: 'driveMileage',
|
|
118
|
-
render: function render(text) {
|
|
119
|
-
return /*#__PURE__*/_jsx("span", {
|
|
120
|
-
children: text || '-'
|
|
121
|
-
});
|
|
122
|
-
},
|
|
123
|
-
align: 'right',
|
|
124
|
-
width: 100
|
|
125
|
-
}, {
|
|
126
|
-
title: /*#__PURE__*/_jsxs(Space, {
|
|
127
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
128
|
-
children: "\u6709\u6548\u4F5C\u4E1A\u7387"
|
|
129
|
-
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
130
|
-
title: "\u6838\u7B97\u4F5C\u4E1A\u91CC\u7A0B/\u884C\u9A76\u91CC\u7A0B",
|
|
131
|
-
children: /*#__PURE__*/_jsx(QuestionCircleOutlined, {})
|
|
132
|
-
})]
|
|
133
|
-
}),
|
|
134
|
-
dataIndex: 'percent',
|
|
135
|
-
key: 'percent',
|
|
136
|
-
render: function render(text) {
|
|
137
|
-
return /*#__PURE__*/_jsx("span", {
|
|
138
|
-
children: (text || 0) + '%'
|
|
139
|
-
});
|
|
140
|
-
},
|
|
141
|
-
align: 'right',
|
|
142
|
-
width: 100
|
|
143
|
-
}];
|
|
144
230
|
var tableProps = {
|
|
145
231
|
pagination: false,
|
|
146
232
|
dataSource: dailyData
|
|
@@ -153,17 +239,8 @@ var StaticInfo = function StaticInfo() {
|
|
|
153
239
|
}
|
|
154
240
|
var percent = item.percent,
|
|
155
241
|
driveMileage = item.driveMileage,
|
|
156
|
-
|
|
157
|
-
var color =
|
|
158
|
-
if (percent > 0 && percent <= 50) {
|
|
159
|
-
color = 'red';
|
|
160
|
-
} else if (percent > 50 && percent <= 80) {
|
|
161
|
-
color = 'yellow';
|
|
162
|
-
} else if (percent > 80 && percent < 100) {
|
|
163
|
-
color = 'blue';
|
|
164
|
-
} else if (percent >= 100) {
|
|
165
|
-
color = 'green';
|
|
166
|
-
}
|
|
242
|
+
workMileage = item.workMileage;
|
|
243
|
+
var color = getRateColor(percent);
|
|
167
244
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
168
245
|
children: [/*#__PURE__*/_jsx(VmCalendarPercent, {
|
|
169
246
|
percent: percent,
|
|
@@ -180,7 +257,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
180
257
|
}), /*#__PURE__*/_jsx(VmCalendarInner, {
|
|
181
258
|
type: "green",
|
|
182
259
|
img: workMileageIcon,
|
|
183
|
-
value:
|
|
260
|
+
value: workMileage,
|
|
184
261
|
style: {
|
|
185
262
|
width: '139px',
|
|
186
263
|
justifyContent: 'space-between'
|
|
@@ -188,17 +265,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
188
265
|
})]
|
|
189
266
|
});
|
|
190
267
|
};
|
|
191
|
-
return /*#__PURE__*/_jsxs(
|
|
192
|
-
title: '作业分析',
|
|
193
|
-
needChange: true,
|
|
194
|
-
showCalendar: true,
|
|
195
|
-
onChange: setType,
|
|
196
|
-
filterType: "monthPicker",
|
|
197
|
-
dateValue: month,
|
|
198
|
-
filterChange: setMonth,
|
|
199
|
-
disabledDate: function disabledDate(current) {
|
|
200
|
-
return current && current > dayjs().endOf('M');
|
|
201
|
-
},
|
|
268
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
202
269
|
children: [type === 'calendar' && /*#__PURE__*/_jsxs(_Fragment, {
|
|
203
270
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
204
271
|
className: 'vtx-car-calendar-head',
|
|
@@ -214,46 +281,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
214
281
|
return /*#__PURE__*/_jsx(VmCalendarInner, _objectSpread(_objectSpread({}, item), {}, {
|
|
215
282
|
value: item.name
|
|
216
283
|
}), index);
|
|
217
|
-
}), /*#__PURE__*/
|
|
218
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
219
|
-
children: "\u6709\u6548\u5B8C\u6210\u7387\uFF1A"
|
|
220
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
221
|
-
className: 'vtx-car-calendar-complete-legend',
|
|
222
|
-
style: {
|
|
223
|
-
background: 'var(--gray-color)'
|
|
224
|
-
}
|
|
225
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
226
|
-
children: "0%"
|
|
227
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
228
|
-
className: 'vtx-car-calendar-complete-legend',
|
|
229
|
-
style: {
|
|
230
|
-
background: 'var(--red-color)'
|
|
231
|
-
}
|
|
232
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
233
|
-
children: "(0%-50%]"
|
|
234
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
235
|
-
className: 'vtx-car-calendar-complete-legend',
|
|
236
|
-
style: {
|
|
237
|
-
background: 'var(--yellow-color)'
|
|
238
|
-
}
|
|
239
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
240
|
-
children: "(50%-80%]"
|
|
241
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
242
|
-
className: 'vtx-car-calendar-complete-legend',
|
|
243
|
-
style: {
|
|
244
|
-
background: 'var(--blue-color)'
|
|
245
|
-
}
|
|
246
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
247
|
-
children: "(80%-100%]"
|
|
248
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
249
|
-
className: 'vtx-car-calendar-complete-legend',
|
|
250
|
-
style: {
|
|
251
|
-
background: 'var(--green-color)'
|
|
252
|
-
}
|
|
253
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
254
|
-
children: "100%"
|
|
255
|
-
})]
|
|
256
|
-
})]
|
|
284
|
+
}), /*#__PURE__*/_jsx(RateLegend, {})]
|
|
257
285
|
}), /*#__PURE__*/_jsx("div", {
|
|
258
286
|
style: {
|
|
259
287
|
flex: 1,
|
|
@@ -265,7 +293,27 @@ var StaticInfo = function StaticInfo() {
|
|
|
265
293
|
})
|
|
266
294
|
})]
|
|
267
295
|
}), type === 'list' && /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
268
|
-
columns:
|
|
296
|
+
columns: BaseColumns.filter(function (v) {
|
|
297
|
+
return v.key !== 'planMileage';
|
|
298
|
+
}).concat({
|
|
299
|
+
title: /*#__PURE__*/_jsxs(Space, {
|
|
300
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
301
|
+
children: "\u6709\u6548\u4F5C\u4E1A\u7387"
|
|
302
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
303
|
+
title: "\u6838\u7B97\u4F5C\u4E1A\u91CC\u7A0B/\u884C\u9A76\u91CC\u7A0B",
|
|
304
|
+
children: /*#__PURE__*/_jsx(QuestionCircleOutlined, {})
|
|
305
|
+
})]
|
|
306
|
+
}),
|
|
307
|
+
dataIndex: 'percent',
|
|
308
|
+
key: 'percent',
|
|
309
|
+
render: function render(text) {
|
|
310
|
+
return /*#__PURE__*/_jsx("span", {
|
|
311
|
+
children: (text || 0) + '%'
|
|
312
|
+
});
|
|
313
|
+
},
|
|
314
|
+
align: 'right',
|
|
315
|
+
width: 100
|
|
316
|
+
}),
|
|
269
317
|
rowKey: "id"
|
|
270
318
|
}, tableProps)), type === 'chart' && /*#__PURE__*/_jsx(VmBarCharts, {
|
|
271
319
|
dataList: [{
|
|
@@ -276,10 +324,11 @@ var StaticInfo = function StaticInfo() {
|
|
|
276
324
|
}, {
|
|
277
325
|
name: '核算作业里程',
|
|
278
326
|
data: dailyData.map(function (item) {
|
|
279
|
-
return "\u2000".concat(item.
|
|
327
|
+
return "\u2000".concat(item.workMileage);
|
|
280
328
|
}),
|
|
281
329
|
color: 'green'
|
|
282
330
|
}],
|
|
331
|
+
unit: '%',
|
|
283
332
|
xAxis: dailyData.map(function (item) {
|
|
284
333
|
return item.workDate;
|
|
285
334
|
}),
|
|
@@ -303,5 +352,5 @@ var StaticInfo = function StaticInfo() {
|
|
|
303
352
|
loading: loading
|
|
304
353
|
})]
|
|
305
354
|
});
|
|
306
|
-
}
|
|
355
|
+
}
|
|
307
356
|
export default StaticInfo;
|
|
@@ -33,7 +33,8 @@ var WorkRecord = function WorkRecord() {
|
|
|
33
33
|
id = _useContext.id,
|
|
34
34
|
sDate = _useContext.startDate,
|
|
35
35
|
eDate = _useContext.endDate,
|
|
36
|
-
service = _useContext.service
|
|
36
|
+
service = _useContext.service,
|
|
37
|
+
info = _useContext.info;
|
|
37
38
|
var _useSetState = useSetState({
|
|
38
39
|
startDate: sDate ? sDate : dayjs().subtract(6, 'day'),
|
|
39
40
|
endDate: eDate ? eDate : dayjs(),
|
|
@@ -100,24 +101,28 @@ var WorkRecord = function WorkRecord() {
|
|
|
100
101
|
dataIndex: 'workDate',
|
|
101
102
|
key: 'workDate',
|
|
102
103
|
width: 100,
|
|
103
|
-
sorter: true
|
|
104
|
+
sorter: true,
|
|
105
|
+
fixed: 'left'
|
|
104
106
|
}, {
|
|
105
107
|
title: '作业开始时间',
|
|
106
108
|
dataIndex: 'workStartTime',
|
|
107
109
|
key: 'workStartTime',
|
|
108
110
|
width: 150,
|
|
109
|
-
sorter: true
|
|
111
|
+
sorter: true,
|
|
112
|
+
fixed: 'left'
|
|
110
113
|
}, {
|
|
111
114
|
title: '作业结束时间',
|
|
112
115
|
dataIndex: 'workEndTime',
|
|
113
116
|
key: 'workEndTime',
|
|
114
117
|
width: 150,
|
|
115
|
-
sorter: true
|
|
118
|
+
sorter: true,
|
|
119
|
+
fixed: 'left'
|
|
116
120
|
}, {
|
|
117
121
|
title: '作业类型',
|
|
118
122
|
dataIndex: 'workTypeName',
|
|
119
123
|
key: 'workTypeName',
|
|
120
124
|
width: 100,
|
|
125
|
+
fixed: 'left',
|
|
121
126
|
render: function render(text, record) {
|
|
122
127
|
return /*#__PURE__*/_jsx(VmTag, {
|
|
123
128
|
title: text,
|
|
@@ -129,6 +134,7 @@ var WorkRecord = function WorkRecord() {
|
|
|
129
134
|
dataIndex: 'roadName',
|
|
130
135
|
key: 'roadName',
|
|
131
136
|
width: 150,
|
|
137
|
+
fixed: 'left',
|
|
132
138
|
ellipsis: true
|
|
133
139
|
}];
|
|
134
140
|
if (extraData !== null && extraData > 0) {
|
|
@@ -139,10 +145,10 @@ var WorkRecord = function WorkRecord() {
|
|
|
139
145
|
align: 'right',
|
|
140
146
|
width: 110
|
|
141
147
|
}, {
|
|
142
|
-
title: '计划趟次',
|
|
148
|
+
title: '计划趟次(趟)',
|
|
143
149
|
dataIndex: 'workCount',
|
|
144
150
|
key: 'workCount',
|
|
145
|
-
width:
|
|
151
|
+
width: 110,
|
|
146
152
|
align: 'right',
|
|
147
153
|
render: function render(text, record) {
|
|
148
154
|
return /*#__PURE__*/_jsx("span", {
|
|
@@ -150,16 +156,16 @@ var WorkRecord = function WorkRecord() {
|
|
|
150
156
|
});
|
|
151
157
|
}
|
|
152
158
|
}, {
|
|
153
|
-
title: '核算作业里程',
|
|
159
|
+
title: '核算作业里程(km)',
|
|
154
160
|
dataIndex: 'workMileage',
|
|
155
161
|
key: 'workMileage',
|
|
156
|
-
width:
|
|
162
|
+
width: 130,
|
|
157
163
|
align: 'right'
|
|
158
164
|
}, {
|
|
159
|
-
title: '作业趟次',
|
|
165
|
+
title: '作业趟次(趟)',
|
|
160
166
|
dataIndex: 'actualWorkCount',
|
|
161
167
|
key: 'actualWorkCount',
|
|
162
|
-
width:
|
|
168
|
+
width: 110,
|
|
163
169
|
align: 'right'
|
|
164
170
|
}, {
|
|
165
171
|
title: '作业均速(km/h)',
|
|
@@ -234,10 +240,24 @@ var WorkRecord = function WorkRecord() {
|
|
|
234
240
|
flex: '108px',
|
|
235
241
|
children: /*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
236
242
|
rate: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workRate) || 0,
|
|
237
|
-
name: '有效作业率'
|
|
243
|
+
name: '有效作业率',
|
|
244
|
+
strokeColor: isDark ? {
|
|
245
|
+
'0%': '#009DFF',
|
|
246
|
+
'100%': '#44FF98'
|
|
247
|
+
} : {
|
|
248
|
+
'0%': '#1677FF',
|
|
249
|
+
'100%': '#48A2FF'
|
|
250
|
+
}
|
|
238
251
|
})
|
|
239
252
|
}), /*#__PURE__*/_jsxs(Col, {
|
|
240
|
-
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
253
|
+
children: [(info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' && /*#__PURE__*/_jsx(VmFactor, {
|
|
254
|
+
name: '规划里程',
|
|
255
|
+
unit: 'km',
|
|
256
|
+
type: 'sm',
|
|
257
|
+
value: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.planMileage) || 0,
|
|
258
|
+
fontType: 'blue',
|
|
259
|
+
img: isDark ? require("../../../imgs/track_dark.png") : require("../../../imgs/track.png")
|
|
260
|
+
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
241
261
|
name: '行驶里程',
|
|
242
262
|
unit: 'km',
|
|
243
263
|
type: 'sm',
|
|
@@ -256,11 +276,11 @@ var WorkRecord = function WorkRecord() {
|
|
|
256
276
|
})
|
|
257
277
|
}), /*#__PURE__*/_jsx(Col, {
|
|
258
278
|
span: 12,
|
|
259
|
-
children: extraData !== null && extraData > 0 ? /*#__PURE__*/_jsx(VmLineCharts, {
|
|
279
|
+
children: extraData !== null && extraData > 0 || (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(VmLineCharts, {
|
|
260
280
|
xAxis: names,
|
|
261
281
|
unit: "%",
|
|
262
282
|
dataList: [{
|
|
263
|
-
name: '
|
|
283
|
+
name: '有效完成率',
|
|
264
284
|
data: (values === null || values === void 0 ? void 0 : values.length) > 1 ? values[1] : [],
|
|
265
285
|
areaStyle: {
|
|
266
286
|
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
|
|
@@ -302,6 +322,7 @@ var WorkRecord = function WorkRecord() {
|
|
|
302
322
|
name: '核算作业里程',
|
|
303
323
|
data: (values === null || values === void 0 ? void 0 : values.length) > 0 ? values[0] : []
|
|
304
324
|
}],
|
|
325
|
+
unit: 'km',
|
|
305
326
|
loading: workAnaLoading,
|
|
306
327
|
height: 190,
|
|
307
328
|
yAxisList: [{
|
|
@@ -317,9 +338,11 @@ var WorkRecord = function WorkRecord() {
|
|
|
317
338
|
span: 24,
|
|
318
339
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
319
340
|
title: '作业明细',
|
|
320
|
-
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
341
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread(_objectSpread({
|
|
321
342
|
columns: columns
|
|
322
|
-
}, tableProps)
|
|
343
|
+
}, tableProps), {}, {
|
|
344
|
+
indexFixed: true
|
|
345
|
+
}))
|
|
323
346
|
})
|
|
324
347
|
})]
|
|
325
348
|
});
|
|
@@ -115,6 +115,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
115
115
|
},
|
|
116
116
|
children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
|
|
117
117
|
flex: '1',
|
|
118
|
+
style: {
|
|
119
|
+
minWidth: 0
|
|
120
|
+
},
|
|
118
121
|
children: /*#__PURE__*/_jsxs("div", {
|
|
119
122
|
className: 'vtx-car-info-right-wrap',
|
|
120
123
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -46,6 +46,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
46
46
|
},
|
|
47
47
|
children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
|
|
48
48
|
flex: '1',
|
|
49
|
+
style: {
|
|
50
|
+
minWidth: 0
|
|
51
|
+
},
|
|
49
52
|
children: /*#__PURE__*/_jsxs("div", {
|
|
50
53
|
className: 'vtx-car-info-right-wrap',
|
|
51
54
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { VmBarCharts } from "../../../../_components";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
export default function (props) {
|
|
4
|
+
return /*#__PURE__*/_jsx(VmBarCharts, {
|
|
5
|
+
dataList: [{
|
|
6
|
+
name: '规划里程',
|
|
7
|
+
data: [20, 50, 63, 51, 23],
|
|
8
|
+
yAxisIndex: 0,
|
|
9
|
+
color: 'geekblue'
|
|
10
|
+
}, {
|
|
11
|
+
name: '核算作业里程',
|
|
12
|
+
data: [20, 50, 63, 51, 23],
|
|
13
|
+
yAxisIndex: 0,
|
|
14
|
+
color: 'green'
|
|
15
|
+
}],
|
|
16
|
+
lineList: [{
|
|
17
|
+
name: '总电耗',
|
|
18
|
+
data: [2, 2, 4, 1, 5],
|
|
19
|
+
yAxisIndex: 1,
|
|
20
|
+
color: '#FFAB0C'
|
|
21
|
+
}],
|
|
22
|
+
xAxis: [1, 2, 3, 4, 5],
|
|
23
|
+
yAxisList: [{
|
|
24
|
+
unit: 'km',
|
|
25
|
+
name: '(km)'
|
|
26
|
+
}, {
|
|
27
|
+
unit: 'kwh',
|
|
28
|
+
name: '(kwh)'
|
|
29
|
+
}]
|
|
30
|
+
|
|
31
|
+
// loading={loadingJxh}
|
|
32
|
+
});
|
|
33
|
+
}
|