@vtx/modals2 5.0.2 → 5.0.4
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 +22 -0
- package/lib/_components/vm-bar-charts/index.js +181 -0
- package/lib/_components/vm-calendar/index.js +117 -0
- package/lib/_components/vm-calendar/style/index.js +1 -0
- package/lib/_components/vm-calendar/style/index.less +136 -0
- package/lib/_components/vm-card-statistics/index.js +33 -0
- package/lib/_components/vm-card-statistics/index.less +27 -0
- package/lib/_components/vm-custom/index.js +25 -0
- package/lib/_components/vm-custom/style/index.js +1 -0
- package/lib/_components/vm-custom/style/index.less +20 -0
- package/lib/_components/vm-empty/assets/no_chart.png +0 -0
- package/lib/_components/vm-empty/assets/no_data.png +0 -0
- package/lib/_components/vm-empty/assets/no_data_2.png +0 -0
- package/lib/_components/vm-empty/assets/no_news.png +0 -0
- package/lib/_components/vm-empty/assets/no_permission.png +0 -0
- package/lib/_components/vm-empty/assets/no_picture.png +0 -0
- package/lib/_components/vm-empty/assets/no_result.png +0 -0
- package/lib/_components/vm-empty/assets/no_video.png +0 -0
- package/lib/_components/vm-empty/assets/page_error.png +0 -0
- package/lib/_components/vm-empty/index.js +83 -0
- package/lib/_components/vm-empty/style/index.js +1 -0
- package/lib/_components/vm-empty/style/index.less +22 -0
- package/lib/_components/vm-extra-tab/index.js +44 -0
- package/lib/_components/vm-extra-tab/style/index.js +2 -0
- package/lib/_components/vm-extra-tab/style/index.less +43 -0
- package/lib/_components/vm-factor/index.js +90 -0
- package/lib/_components/vm-factor/style/index.js +2 -0
- package/lib/_components/vm-factor/style/index.less +46 -0
- package/lib/_components/vm-factor-list/index.js +29 -0
- package/lib/_components/vm-factor-list/index.less +11 -0
- package/lib/_components/vm-filter/index.js +148 -0
- package/lib/_components/vm-filter/style/index.js +1 -0
- package/lib/_components/vm-filter/style/index.less +238 -0
- package/lib/_components/vm-iframe-modal/index.js +43 -0
- package/lib/_components/vm-iframe-modal/index.less +9 -0
- package/lib/_components/vm-info-collection/index.js +185 -0
- package/lib/_components/vm-info-collection/style/index.js +1 -0
- package/lib/_components/vm-info-collection/style/index.less +45 -0
- package/lib/_components/vm-line-charts/index.js +151 -0
- package/lib/_components/vm-map/index.js +277 -0
- package/lib/_components/vm-map/index.less +46 -0
- package/lib/_components/vm-pie-charts/index.js +176 -0
- package/lib/_components/vm-pie-charts/index.less +26 -0
- package/lib/_components/vm-progress/index.js +83 -0
- package/lib/_components/vm-progress/style/index.js +1 -0
- package/lib/_components/vm-progress/style/index.less +28 -0
- 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 +226 -0
- package/lib/_components/vm-table/style/index.js +1 -0
- package/lib/_components/vm-table/style/index.less +243 -0
- package/lib/_components/vm-tabs/index.js +27 -0
- package/lib/_components/vm-tabs/style/index.js +1 -0
- package/lib/_components/vm-tabs/style/index.less +22 -0
- package/lib/_components/vm-tag/index.js +25 -0
- package/lib/_components/vm-tag/style/index.js +1 -0
- package/lib/_components/vm-tag/style/index.less +71 -0
- package/lib/_components/vm-theme-provider/index.js +18 -0
- package/lib/_components/vm-title/index.js +35 -0
- package/lib/_components/vm-title/style/index.js +1 -0
- package/lib/_components/vm-title/style/index.less +53 -0
- package/lib/_components/vm-tooltip/index.js +15 -0
- package/lib/_components/vm-tooltip/style/index.js +2 -0
- package/lib/_components/vm-tooltip/style/index.less +7 -0
- package/lib/_components/vm-video/RealtimeGrid.js +48 -0
- package/lib/_components/vm-video/index.js +227 -0
- package/lib/_components/vm-video/index.less +168 -0
- package/lib/_components/vm-wrapper/imgs/chart.svg +6 -0
- package/lib/_components/vm-wrapper/imgs/list.svg +8 -0
- package/lib/_components/vm-wrapper/index.js +183 -0
- package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +127 -0
- package/lib/_components/vm-wrapper/style/index.js +1 -0
- package/lib/_components/vm-wrapper/style/index.less +109 -0
- package/lib/_hooks/useGetChannels.js +19 -0
- package/lib/_hooks/useGetConfig.js +52 -0
- package/lib/_hooks/useSettings.js +31 -0
- package/lib/_imgs/block_alarm.png +0 -0
- package/lib/_imgs/block_normal.png +0 -0
- package/lib/_service/index.js +99 -0
- package/lib/_util/http.js +277 -0
- package/lib/_util/iconSvgHtml.js +1303 -0
- package/lib/_util/index.js +203 -0
- package/lib/index.js +17 -0
- package/lib/resources/jessibuca/decoder.js +3839 -0
- package/lib/resources/jessibuca/decoder.wasm +0 -0
- package/lib/resources/jessibuca/jessibuca.js +5350 -0
- package/lib/style/index.less +258 -0
- package/lib/vtx-area-modal/api.js +165 -0
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +103 -0
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +109 -0
- package/lib/vtx-area-modal/components/BaseInfo/index.js +161 -0
- package/lib/vtx-area-modal/components/BaseInfo/index.less +133 -0
- package/lib/vtx-area-modal/components/index.js +2 -0
- package/lib/vtx-area-modal/imgs/onlinePerson.png +0 -0
- package/lib/vtx-area-modal/imgs/onlinePerson_dark.png +0 -0
- package/lib/vtx-area-modal/imgs/schdulePerson.png +0 -0
- package/lib/vtx-area-modal/imgs/schdulePerson_dark.png +0 -0
- package/lib/vtx-area-modal/imgs/todayOnline.png +0 -0
- package/lib/vtx-area-modal/imgs/todayOnline_dark.png +0 -0
- package/lib/vtx-area-modal/imgs/todayWork.png +0 -0
- package/lib/vtx-area-modal/imgs/todayWorkRate.png +0 -0
- package/lib/vtx-area-modal/imgs/todayWorkRate_dark.png +0 -0
- package/lib/vtx-area-modal/imgs/todayWork_dark.png +0 -0
- package/lib/vtx-area-modal/index.js +51 -0
- package/lib/vtx-area-modal/style/index.js +1 -0
- package/lib/vtx-area-modal/style/index.less +1 -0
- package/lib/vtx-base-modal/Header/assets/dark_star.png +0 -0
- package/lib/vtx-base-modal/Header/assets/light_star.png +0 -0
- package/lib/vtx-base-modal/Header/index.js +149 -0
- package/lib/vtx-base-modal/Header/index.less +98 -0
- package/lib/vtx-base-modal/Tabs/index.js +83 -0
- package/lib/vtx-base-modal/Tabs/index.less +31 -0
- package/lib/vtx-base-modal/index.js +205 -0
- package/lib/vtx-base-modal/service.js +39 -0
- package/lib/vtx-base-modal/style/index.js +1 -0
- package/lib/vtx-base-modal/style/index.less +78 -0
- package/lib/vtx-car-modal/api.js +1020 -0
- package/lib/vtx-car-modal/components/Info/index.js +110 -0
- package/lib/vtx-car-modal/components/Info/index.less +6 -0
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +111 -0
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +77 -0
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +69 -0
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +182 -0
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.less +24 -0
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +187 -0
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +200 -0
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.less +13 -0
- package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +395 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +237 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +140 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +69 -0
- package/lib/vtx-car-modal/content/Cc/index.js +12 -0
- package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +160 -0
- package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +76 -0
- package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +71 -0
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +195 -0
- package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +173 -0
- package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +92 -0
- package/lib/vtx-car-modal/content/Common/Maintenance/index.js +137 -0
- package/lib/vtx-car-modal/content/Common/Maintenance/index.less +16 -0
- package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +94 -0
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +151 -0
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -0
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +232 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +197 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -0
- package/lib/vtx-car-modal/content/Common/index.js +18 -0
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +128 -0
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +79 -0
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +71 -0
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +165 -0
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +308 -0
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +335 -0
- package/lib/vtx-car-modal/content/JXH/index.js +10 -0
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +105 -0
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +78 -0
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +71 -0
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +361 -0
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.less +24 -0
- package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +405 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +128 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +140 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +69 -0
- package/lib/vtx-car-modal/content/Ljsy/index.js +10 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +208 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.less +24 -0
- package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +193 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +122 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +110 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +69 -0
- package/lib/vtx-car-modal/content/Ljzy/index.js +8 -0
- package/lib/vtx-car-modal/content/index.js +6 -0
- package/lib/vtx-car-modal/imgs/calendar/alarm.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/blue_duration.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/blue_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/car_num.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/cyan_duration.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_alarm.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_car_num.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_duration.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_green_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_jcl.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_point.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/duration.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/green_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/jcl.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/point.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_point.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_trash.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_trash_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_unplanned_point.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_weight.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_weight_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_ws_point.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_ys_point.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/car_num.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_car_num.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_duration.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_jcl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_oil.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_percent.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_point.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_run.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_speed.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_trash.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_water.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_weight.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_ys_point.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/duration.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jcl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/oil.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/percent.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/point.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/run.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/speed.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/trash.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/water.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/weight.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ys_point.png +0 -0
- package/lib/vtx-car-modal/imgs/point.png +0 -0
- package/lib/vtx-car-modal/imgs/trash.png +0 -0
- package/lib/vtx-car-modal/imgs/trash_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/unplanned_point.png +0 -0
- package/lib/vtx-car-modal/imgs/warn.png +0 -0
- package/lib/vtx-car-modal/imgs/weight.png +0 -0
- package/lib/vtx-car-modal/imgs/weight_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/ws_point.png +0 -0
- package/lib/vtx-car-modal/imgs/ys_point.png +0 -0
- package/lib/vtx-car-modal/index.js +272 -0
- package/lib/vtx-car-modal/style/index.js +3 -0
- package/lib/vtx-car-modal/style/index.less +35 -0
- 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 +357 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +172 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +39 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +84 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/index.js +41 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/index.less +34 -0
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +116 -0
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +72 -0
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +154 -0
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +96 -0
- package/lib/vtx-cp-modal/components/BaseInfo/index.less +140 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +200 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +35 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +84 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/index.js +41 -0
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +62 -0
- package/lib/vtx-cp-modal/components/SyInfo/index.js +306 -0
- package/lib/vtx-cp-modal/components/SyInfo/index.less +18 -0
- package/lib/vtx-cp-modal/components/index.js +5 -0
- package/lib/vtx-cp-modal/imgs/alarm.png +0 -0
- package/lib/vtx-cp-modal/imgs/allRate.png +0 -0
- package/lib/vtx-cp-modal/imgs/allRate_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/bucket.png +0 -0
- package/lib/vtx-cp-modal/imgs/bucket_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/collect.png +0 -0
- package/lib/vtx-cp-modal/imgs/collect_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/corner_cy.png +0 -0
- package/lib/vtx-cp-modal/imgs/corner_khs.png +0 -0
- package/lib/vtx-cp-modal/imgs/corner_qt.png +0 -0
- package/lib/vtx-cp-modal/imgs/corner_yh.png +0 -0
- package/lib/vtx-cp-modal/imgs/cy.png +0 -0
- package/lib/vtx-cp-modal/imgs/default.png +0 -0
- package/lib/vtx-cp-modal/imgs/jhsj.png +0 -0
- package/lib/vtx-cp-modal/imgs/jhsj_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/khs.png +0 -0
- package/lib/vtx-cp-modal/imgs/plan.png +0 -0
- package/lib/vtx-cp-modal/imgs/plan_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/qt.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjl.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjl_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjsj.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjsj_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjts.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjts_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjzl.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjzl_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/track.png +0 -0
- package/lib/vtx-cp-modal/imgs/weight.png +0 -0
- package/lib/vtx-cp-modal/imgs/weight_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/yh.png +0 -0
- package/lib/vtx-cp-modal/index.js +124 -0
- package/lib/vtx-cp-modal/style/index.js +3 -0
- package/lib/vtx-cp-modal/style/index.less +1 -0
- package/lib/vtx-default-modal/api.js +170 -0
- package/lib/vtx-default-modal/components/BaseInfo/index.js +109 -0
- package/lib/vtx-default-modal/components/BaseInfo/index.less +26 -0
- package/lib/vtx-default-modal/components/index.js +2 -0
- package/lib/vtx-default-modal/index.js +129 -0
- package/lib/vtx-default-modal/style/index.js +4 -0
- package/lib/vtx-default-modal/style/index.less +1 -0
- 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 +611 -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/api.js +267 -0
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +62 -0
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +96 -0
- package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +43 -0
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +146 -0
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +47 -0
- package/lib/vtx-df-modal/components/BaseInfo/index.js +140 -0
- package/lib/vtx-df-modal/components/BaseInfo/index.less +161 -0
- package/lib/vtx-df-modal/components/Calendar/index.js +142 -0
- package/lib/vtx-df-modal/components/Calendar/index.less +81 -0
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +65 -0
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +77 -0
- package/lib/vtx-df-modal/components/Metering/List.js +125 -0
- package/lib/vtx-df-modal/components/Metering/index.js +187 -0
- package/lib/vtx-df-modal/components/Metering/index.less +68 -0
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +179 -0
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +84 -0
- package/lib/vtx-df-modal/components/WorkCondition/index.js +167 -0
- package/lib/vtx-df-modal/components/WorkCondition/index.less +113 -0
- package/lib/vtx-df-modal/components/index.js +5 -0
- package/lib/vtx-df-modal/imgs/alarm.png +0 -0
- package/lib/vtx-df-modal/imgs/alarm_light.png +0 -0
- package/lib/vtx-df-modal/imgs/c_car.png +0 -0
- package/lib/vtx-df-modal/imgs/c_jcl.png +0 -0
- package/lib/vtx-df-modal/imgs/down.png +0 -0
- package/lib/vtx-df-modal/imgs/jccc.png +0 -0
- package/lib/vtx-df-modal/imgs/jccc_dark.png +0 -0
- package/lib/vtx-df-modal/imgs/jcl.png +0 -0
- package/lib/vtx-df-modal/imgs/jcl_dark.png +0 -0
- package/lib/vtx-df-modal/imgs/normal.png +0 -0
- package/lib/vtx-df-modal/imgs/normal_light.png +0 -0
- package/lib/vtx-df-modal/imgs/rjjcl.svg +55 -0
- package/lib/vtx-df-modal/imgs/rjjcl_dark.svg +94 -0
- package/lib/vtx-df-modal/imgs/situation_parent.png +0 -0
- package/lib/vtx-df-modal/imgs/situation_parent_bg.png +0 -0
- package/lib/vtx-df-modal/imgs/sjnl.svg +39 -0
- package/lib/vtx-df-modal/imgs/sjnl_dark.svg +78 -0
- package/lib/vtx-df-modal/imgs/tab_more.png +0 -0
- package/lib/vtx-df-modal/imgs/tab_more_light.png +0 -0
- package/lib/vtx-df-modal/imgs/up.png +0 -0
- package/lib/vtx-df-modal/imgs/zjccc.svg +44 -0
- package/lib/vtx-df-modal/imgs/zjccc_dark.svg +84 -0
- package/lib/vtx-df-modal/imgs/zjcl.svg +55 -0
- package/lib/vtx-df-modal/imgs/zjcl_dark.svg +94 -0
- package/lib/vtx-df-modal/index.js +137 -0
- package/lib/vtx-df-modal/style/index.js +4 -0
- package/lib/vtx-df-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-qyry-modal/api.js +129 -0
- package/lib/vtx-qyry-modal/index.js +119 -0
- package/lib/vtx-qyry-modal/style/index.js +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/api.js +219 -0
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +48 -0
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +322 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.js +91 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -0
- package/lib/vtx-road-modal/components/Calendar/index.js +155 -0
- package/lib/vtx-road-modal/components/Statistical/index.js +244 -0
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -0
- package/lib/vtx-road-modal/components/index.js +4 -0
- package/lib/vtx-road-modal/imgs/calendar/dark_green_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/calendar/dark_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/calendar/green_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/calendar/mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/dark_real.png +0 -0
- package/lib/vtx-road-modal/imgs/dark_valid.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/dark_over_rate.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/dark_plan_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/dark_valid_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/over_rate.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/plan_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/valid_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/real.png +0 -0
- package/lib/vtx-road-modal/imgs/valid.png +0 -0
- package/lib/vtx-road-modal/index.js +102 -0
- package/lib/vtx-road-modal/style/index.js +3 -0
- package/lib/vtx-road-modal/style/index.less +26 -0
- package/lib/vtx-shxq-modal/api.js +337 -0
- package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +115 -0
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +151 -0
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.less +10 -0
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +190 -0
- package/lib/vtx-shxq-modal/components/BaseInfo/index.less +25 -0
- package/lib/vtx-shxq-modal/components/Tfd/index.js +132 -0
- package/lib/vtx-shxq-modal/components/Tfd/index.less +59 -0
- package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +64 -0
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +72 -0
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +158 -0
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.less +24 -0
- package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +133 -0
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +168 -0
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.less +10 -0
- package/lib/vtx-shxq-modal/components/index.js +6 -0
- package/lib/vtx-shxq-modal/imgs/cy.png +0 -0
- package/lib/vtx-shxq-modal/imgs/khs.png +0 -0
- package/lib/vtx-shxq-modal/imgs/ljht.png +0 -0
- package/lib/vtx-shxq-modal/imgs/ljht_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/qt.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_cy_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_khs_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_qt_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_total.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_total_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_yh_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/twtf.png +0 -0
- package/lib/vtx-shxq-modal/imgs/twtf_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wgzs.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wgzs_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wpd.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wpd_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wstf.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wstf_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/yh.png +0 -0
- package/lib/vtx-shxq-modal/index.js +108 -0
- package/lib/vtx-shxq-modal/style/index.js +1 -0
- package/lib/vtx-staff-modal/api.js +427 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +67 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +111 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +95 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/index.less +9 -0
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +58 -0
- package/lib/vtx-staff-modal/components/Attendance/Record.js +154 -0
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +129 -0
- package/lib/vtx-staff-modal/components/Attendance/index.js +49 -0
- package/lib/vtx-staff-modal/components/Attendance/index.less +38 -0
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +119 -0
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +42 -0
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +48 -0
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +183 -0
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +94 -0
- package/lib/vtx-staff-modal/components/Calendar/index.js +237 -0
- package/lib/vtx-staff-modal/components/Calendar/index.less +82 -0
- package/lib/vtx-staff-modal/components/Equipment/index.js +147 -0
- package/lib/vtx-staff-modal/components/Equipment/index.less +29 -0
- package/lib/vtx-staff-modal/components/index.js +6 -0
- package/lib/vtx-staff-modal/imgs/all_time.png +0 -0
- package/lib/vtx-staff-modal/imgs/all_time_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/avg.png +0 -0
- package/lib/vtx-staff-modal/imgs/avg_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/mileage.png +0 -0
- package/lib/vtx-staff-modal/imgs/mileage_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/online.png +0 -0
- package/lib/vtx-staff-modal/imgs/online_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_alarm.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_alarm_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_level.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_level_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_over.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_over_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_sum.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_sum_dark.png +0 -0
- package/lib/vtx-staff-modal/index.js +116 -0
- package/lib/vtx-staff-modal/style/index.js +5 -0
- package/lib/vtx-staff-modal/style/index.less +1 -0
- package/lib/vtx-tfd-modal/api.js +114 -0
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +96 -0
- package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +43 -0
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +259 -0
- package/lib/vtx-tfd-modal/components/BaseInfo/index.less +90 -0
- package/lib/vtx-tfd-modal/components/index.js +2 -0
- package/lib/vtx-tfd-modal/imgs/dzc.png +0 -0
- package/lib/vtx-tfd-modal/imgs/dzc_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/dzc_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/dzc_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/fdj.png +0 -0
- package/lib/vtx-tfd-modal/imgs/fdj_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/fdj_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/fdj_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/hjtfl.png +0 -0
- package/lib/vtx-tfd-modal/imgs/hjtfl_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/jfdhj.png +0 -0
- package/lib/vtx-tfd-modal/imgs/jfdhj_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/jfdhj_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/jfdhj_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/khsl.png +0 -0
- package/lib/vtx-tfd-modal/imgs/khsl_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/sxt.png +0 -0
- package/lib/vtx-tfd-modal/imgs/sxt_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/sxt_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/sxt_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/xdb.png +0 -0
- package/lib/vtx-tfd-modal/imgs/xdb_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/xdb_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/xdb_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/zntfj.png +0 -0
- package/lib/vtx-tfd-modal/imgs/zntfj_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/zntfj_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/zntfj_online.png +0 -0
- package/lib/vtx-tfd-modal/index.js +106 -0
- package/lib/vtx-tfd-modal/style/index.js +1 -0
- package/lib/vtx-zg-modal/api.js +107 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +287 -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 +135 -0
- package/package.json +4 -4
|
@@ -0,0 +1,1020 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
8
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
|
+
import { getVtxToken } from '@vtx/utils';
|
|
11
|
+
import { useRequest } from 'ahooks';
|
|
12
|
+
import http from "../_util/http";
|
|
13
|
+
var prefix = process.env.PREFIX || '';
|
|
14
|
+
export var BaseService = {
|
|
15
|
+
useBaseInfo: function useBaseInfo(id) {
|
|
16
|
+
var _useRequest = useRequest(function () {
|
|
17
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/sdk/car/getCarInfoByProductType"), {
|
|
18
|
+
body: {
|
|
19
|
+
carId: id
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}, {
|
|
23
|
+
refreshDeps: [id]
|
|
24
|
+
}),
|
|
25
|
+
baseInfoRes = _useRequest.data;
|
|
26
|
+
var _useRequest2 = useRequest(function () {
|
|
27
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/car/np/getCarDetailById"), {
|
|
28
|
+
body: {
|
|
29
|
+
id: id,
|
|
30
|
+
url: window.location.origin
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}, {
|
|
34
|
+
refreshDeps: [id]
|
|
35
|
+
}),
|
|
36
|
+
detailRes = _useRequest2.data;
|
|
37
|
+
var info = (baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data) || {};
|
|
38
|
+
var detail = (detailRes === null || detailRes === void 0 ? void 0 : detailRes.data) || {};
|
|
39
|
+
return {
|
|
40
|
+
info: info,
|
|
41
|
+
detail: detail
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
useFieldConfig: function useFieldConfig() {
|
|
45
|
+
var _data$data;
|
|
46
|
+
var _useRequest3 = useRequest(function () {
|
|
47
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/car/dataConfig/list"));
|
|
48
|
+
}),
|
|
49
|
+
data = _useRequest3.data;
|
|
50
|
+
return {
|
|
51
|
+
showFields: (data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.filter(function (ele) {
|
|
52
|
+
return ele.isVisible;
|
|
53
|
+
})) || []
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
useDailyCarRun: function useDailyCarRun(id, beginTime, endTime) {
|
|
57
|
+
//今日运行
|
|
58
|
+
var _useRequest4 = useRequest(function () {
|
|
59
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/report/dailyCarRun/list"), {
|
|
60
|
+
body: {
|
|
61
|
+
carIds: id,
|
|
62
|
+
reportDateStart: beginTime,
|
|
63
|
+
reportDateEnd: endTime
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}, {
|
|
67
|
+
refreshDeps: [id, beginTime, endTime]
|
|
68
|
+
}),
|
|
69
|
+
dailyCarRunRes = _useRequest4.data,
|
|
70
|
+
loading = _useRequest4.loading;
|
|
71
|
+
return {
|
|
72
|
+
dailyCarRunRes: (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.data) || [],
|
|
73
|
+
loading: loading
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
useServiceInfo: function useServiceInfo(carId) {
|
|
77
|
+
var _useRequest5 = useRequest(function () {
|
|
78
|
+
return http.get("".concat(prefix, "/cloud/jcss-reborn/contract/carHistoryContract"), {
|
|
79
|
+
body: {
|
|
80
|
+
carId: carId
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}),
|
|
84
|
+
data = _useRequest5.data;
|
|
85
|
+
return {
|
|
86
|
+
serviceInfo: data === null || data === void 0 ? void 0 : data.data
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
useDeviceInfo: function useDeviceInfo(id) {
|
|
90
|
+
var _useRequest6 = useRequest(function () {
|
|
91
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/device/list"), {
|
|
92
|
+
body: {
|
|
93
|
+
carId: id,
|
|
94
|
+
mainDevice: true
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}, {
|
|
98
|
+
refreshDeps: [id]
|
|
99
|
+
}),
|
|
100
|
+
data = _useRequest6.data;
|
|
101
|
+
return {
|
|
102
|
+
deviceList: (data === null || data === void 0 ? void 0 : data.data) || []
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
useAlarmType: function useAlarmType(carIds, startTime, endTime) {
|
|
106
|
+
var _useRequest7 = useRequest(function () {
|
|
107
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/statisticsPage"), {
|
|
108
|
+
body: {
|
|
109
|
+
carIds: carIds,
|
|
110
|
+
startTime: startTime,
|
|
111
|
+
endTime: endTime
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}, {
|
|
115
|
+
refreshDeps: [carIds, startTime, endTime]
|
|
116
|
+
}),
|
|
117
|
+
alarmTypesRes = _useRequest7.data;
|
|
118
|
+
return {
|
|
119
|
+
alarmTypes: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {
|
|
120
|
+
totalCount: 0,
|
|
121
|
+
summary: []
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
useAlarmList: function useAlarmList(carCode, alarmStrategyName, startTime, endTime, page, sort, sortField) {
|
|
126
|
+
var _useRequest8 = useRequest(function () {
|
|
127
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/pageList"), {
|
|
128
|
+
body: {
|
|
129
|
+
carCode: carCode,
|
|
130
|
+
alarmTypeCodes: alarmStrategyName,
|
|
131
|
+
startTime: startTime,
|
|
132
|
+
endTime: endTime,
|
|
133
|
+
page: page,
|
|
134
|
+
rows: 10,
|
|
135
|
+
sort: sort,
|
|
136
|
+
sortField: sortField
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}, {
|
|
140
|
+
ready: !!carCode,
|
|
141
|
+
refreshDeps: [carCode, alarmStrategyName, startTime, endTime, page, sort, sortField]
|
|
142
|
+
}),
|
|
143
|
+
recordRes = _useRequest8.data,
|
|
144
|
+
loading = _useRequest8.loading;
|
|
145
|
+
return {
|
|
146
|
+
alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {},
|
|
147
|
+
loading: loading
|
|
148
|
+
};
|
|
149
|
+
},
|
|
150
|
+
useTodayRun: function useTodayRun(carId, beginTime, endTime) {
|
|
151
|
+
//今日运行
|
|
152
|
+
var _useRequest9 = useRequest(function () {
|
|
153
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/car/detail/alarmSumWithDetail"), {
|
|
154
|
+
body: {
|
|
155
|
+
carId: carId,
|
|
156
|
+
beginTime: "".concat(beginTime, " 00:00:00"),
|
|
157
|
+
endTime: "".concat(endTime, " 23:59:59")
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}, {
|
|
161
|
+
refreshDeps: [carId, beginTime, endTime]
|
|
162
|
+
}),
|
|
163
|
+
todayRunRes = _useRequest9.data,
|
|
164
|
+
loading = _useRequest9.loading;
|
|
165
|
+
return {
|
|
166
|
+
todayRunRes: (todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.data) || {},
|
|
167
|
+
loading: loading
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
export var CcService = {
|
|
172
|
+
useTaskInfo: function useTaskInfo(carCode, day) {
|
|
173
|
+
var _useRequest10 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
174
|
+
var _res$data;
|
|
175
|
+
var res;
|
|
176
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
177
|
+
while (1) switch (_context.prev = _context.next) {
|
|
178
|
+
case 0:
|
|
179
|
+
_context.next = 2;
|
|
180
|
+
return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/kanban/kanbanTaskDetailList"), {
|
|
181
|
+
body: {
|
|
182
|
+
carCode: carCode,
|
|
183
|
+
taskDay: day,
|
|
184
|
+
size: 5,
|
|
185
|
+
page: 0
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
case 2:
|
|
189
|
+
res = _context.sent;
|
|
190
|
+
return _context.abrupt("return", (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.rows) === null || _res$data === void 0 ? void 0 : _res$data[0]) || {});
|
|
191
|
+
case 4:
|
|
192
|
+
case "end":
|
|
193
|
+
return _context.stop();
|
|
194
|
+
}
|
|
195
|
+
}, _callee);
|
|
196
|
+
})), {
|
|
197
|
+
refreshDeps: [carCode, day],
|
|
198
|
+
ready: !!carCode
|
|
199
|
+
}),
|
|
200
|
+
_useRequest10$data = _useRequest10.data,
|
|
201
|
+
data = _useRequest10$data === void 0 ? {} : _useRequest10$data,
|
|
202
|
+
loading = _useRequest10.loading;
|
|
203
|
+
return {
|
|
204
|
+
taskInfo: data,
|
|
205
|
+
loading: loading
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
useTaskDaySummary: function useTaskDaySummary(_ref2) {
|
|
209
|
+
var carId = _ref2.carId,
|
|
210
|
+
startDay = _ref2.startDay,
|
|
211
|
+
endDay = _ref2.endDay;
|
|
212
|
+
var _useRequest11 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
213
|
+
var res;
|
|
214
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
215
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
216
|
+
case 0:
|
|
217
|
+
_context2.next = 2;
|
|
218
|
+
return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/jsc/carTaskDaySummary"), {
|
|
219
|
+
body: {
|
|
220
|
+
carId: carId,
|
|
221
|
+
startDay: startDay,
|
|
222
|
+
endDay: endDay
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
case 2:
|
|
226
|
+
res = _context2.sent;
|
|
227
|
+
return _context2.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
|
|
228
|
+
case 4:
|
|
229
|
+
case "end":
|
|
230
|
+
return _context2.stop();
|
|
231
|
+
}
|
|
232
|
+
}, _callee2);
|
|
233
|
+
})), {
|
|
234
|
+
refreshDeps: [carId, startDay, endDay],
|
|
235
|
+
ready: !!carId
|
|
236
|
+
}),
|
|
237
|
+
_useRequest11$data = _useRequest11.data,
|
|
238
|
+
data = _useRequest11$data === void 0 ? [] : _useRequest11$data,
|
|
239
|
+
loading = _useRequest11.loading;
|
|
240
|
+
return {
|
|
241
|
+
taskDaySummary: data,
|
|
242
|
+
loading: loading
|
|
243
|
+
};
|
|
244
|
+
},
|
|
245
|
+
useGetOrderPage: function useGetOrderPage(carCode, startDay, endDay, page) {
|
|
246
|
+
var _useRequest12 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
247
|
+
var res;
|
|
248
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
249
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
250
|
+
case 0:
|
|
251
|
+
_context3.next = 2;
|
|
252
|
+
return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/draftDisposeUnit/page"), {
|
|
253
|
+
body: {
|
|
254
|
+
carCode: carCode,
|
|
255
|
+
startDay: startDay,
|
|
256
|
+
endDay: endDay,
|
|
257
|
+
size: 10,
|
|
258
|
+
page: page
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
case 2:
|
|
262
|
+
res = _context3.sent;
|
|
263
|
+
return _context3.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
|
|
264
|
+
case 4:
|
|
265
|
+
case "end":
|
|
266
|
+
return _context3.stop();
|
|
267
|
+
}
|
|
268
|
+
}, _callee3);
|
|
269
|
+
})), {
|
|
270
|
+
refreshDeps: [carCode, startDay, endDay, page],
|
|
271
|
+
ready: !!carCode
|
|
272
|
+
}),
|
|
273
|
+
_useRequest12$data = _useRequest12.data,
|
|
274
|
+
data = _useRequest12$data === void 0 ? [] : _useRequest12$data,
|
|
275
|
+
loading = _useRequest12.loading;
|
|
276
|
+
return {
|
|
277
|
+
orderPage: data,
|
|
278
|
+
loading: loading
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
useWeightList: function useWeightList(carId, queryStartTime, queryEndTime) {
|
|
282
|
+
var _useRequest13 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
283
|
+
var res;
|
|
284
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
285
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
286
|
+
case 0:
|
|
287
|
+
_context4.next = 2;
|
|
288
|
+
return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/rtCarDataDetail/list"), {
|
|
289
|
+
body: {
|
|
290
|
+
carId: carId,
|
|
291
|
+
queryStartTime: queryStartTime,
|
|
292
|
+
queryEndTime: queryEndTime
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
case 2:
|
|
296
|
+
res = _context4.sent;
|
|
297
|
+
return _context4.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
|
|
298
|
+
case 4:
|
|
299
|
+
case "end":
|
|
300
|
+
return _context4.stop();
|
|
301
|
+
}
|
|
302
|
+
}, _callee4);
|
|
303
|
+
})), {
|
|
304
|
+
refreshDeps: [carId, queryStartTime, queryEndTime],
|
|
305
|
+
ready: !!carId
|
|
306
|
+
}),
|
|
307
|
+
_useRequest13$data = _useRequest13.data,
|
|
308
|
+
data = _useRequest13$data === void 0 ? [] : _useRequest13$data;
|
|
309
|
+
return {
|
|
310
|
+
weightList: data
|
|
311
|
+
};
|
|
312
|
+
},
|
|
313
|
+
useWeightPage: function useWeightPage(_ref6) {
|
|
314
|
+
var carId = _ref6.carId,
|
|
315
|
+
queryStartTime = _ref6.queryStartTime,
|
|
316
|
+
queryEndTime = _ref6.queryEndTime,
|
|
317
|
+
page = _ref6.page;
|
|
318
|
+
var _useRequest14 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
319
|
+
var res;
|
|
320
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
321
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
322
|
+
case 0:
|
|
323
|
+
_context5.next = 2;
|
|
324
|
+
return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/rtCarDataDetail/page"), {
|
|
325
|
+
body: {
|
|
326
|
+
carId: carId,
|
|
327
|
+
queryStartTime: queryStartTime,
|
|
328
|
+
queryEndTime: queryEndTime,
|
|
329
|
+
page: page - 1,
|
|
330
|
+
size: 10
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
case 2:
|
|
334
|
+
res = _context5.sent;
|
|
335
|
+
return _context5.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
|
|
336
|
+
case 4:
|
|
337
|
+
case "end":
|
|
338
|
+
return _context5.stop();
|
|
339
|
+
}
|
|
340
|
+
}, _callee5);
|
|
341
|
+
})), {
|
|
342
|
+
refreshDeps: [carId, queryStartTime, queryEndTime, page],
|
|
343
|
+
ready: !!carId
|
|
344
|
+
}),
|
|
345
|
+
_useRequest14$data = _useRequest14.data,
|
|
346
|
+
data = _useRequest14$data === void 0 ? {} : _useRequest14$data;
|
|
347
|
+
return {
|
|
348
|
+
weightData: data
|
|
349
|
+
};
|
|
350
|
+
},
|
|
351
|
+
useGetAbnormalSummary: function useGetAbnormalSummary(_ref8) {
|
|
352
|
+
var objectId = _ref8.objectId,
|
|
353
|
+
startDay = _ref8.startDay,
|
|
354
|
+
endDay = _ref8.endDay;
|
|
355
|
+
var _useRequest15 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
356
|
+
var res;
|
|
357
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
358
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
359
|
+
case 0:
|
|
360
|
+
_context6.next = 2;
|
|
361
|
+
return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/abnormalEventRecord/getAbnormalSummaryNums"), {
|
|
362
|
+
body: {
|
|
363
|
+
objectId: objectId,
|
|
364
|
+
startDay: startDay,
|
|
365
|
+
endDay: endDay,
|
|
366
|
+
summaryType: 'DAY'
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
case 2:
|
|
370
|
+
res = _context6.sent;
|
|
371
|
+
return _context6.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
|
|
372
|
+
case 4:
|
|
373
|
+
case "end":
|
|
374
|
+
return _context6.stop();
|
|
375
|
+
}
|
|
376
|
+
}, _callee6);
|
|
377
|
+
})), {
|
|
378
|
+
refreshDeps: [objectId, startDay, endDay],
|
|
379
|
+
ready: !!objectId
|
|
380
|
+
}),
|
|
381
|
+
_useRequest15$data = _useRequest15.data,
|
|
382
|
+
data = _useRequest15$data === void 0 ? [] : _useRequest15$data,
|
|
383
|
+
loading = _useRequest15.loading;
|
|
384
|
+
return {
|
|
385
|
+
summaryData: data,
|
|
386
|
+
loading: loading
|
|
387
|
+
};
|
|
388
|
+
},
|
|
389
|
+
useAlarmList: function useAlarmList(_ref10) {
|
|
390
|
+
var alarmObjId = _ref10.alarmObjId,
|
|
391
|
+
queryStartTime = _ref10.queryStartTime,
|
|
392
|
+
queryEndTime = _ref10.queryEndTime,
|
|
393
|
+
page = _ref10.page,
|
|
394
|
+
sort = _ref10.sort;
|
|
395
|
+
var _useRequest16 = useRequest(function () {
|
|
396
|
+
return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/abnormalEventRecord/page"), {
|
|
397
|
+
body: {
|
|
398
|
+
alarmObjId: alarmObjId,
|
|
399
|
+
queryStartTime: queryStartTime,
|
|
400
|
+
queryEndTime: queryEndTime,
|
|
401
|
+
page: page,
|
|
402
|
+
size: 10,
|
|
403
|
+
sort: sort
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}, {
|
|
407
|
+
ready: !!alarmObjId,
|
|
408
|
+
refreshDeps: [alarmObjId, queryStartTime, queryEndTime, page, sort]
|
|
409
|
+
}),
|
|
410
|
+
recordRes = _useRequest16.data,
|
|
411
|
+
loading = _useRequest16.loading;
|
|
412
|
+
return {
|
|
413
|
+
alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {},
|
|
414
|
+
loading: loading
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
export var JxhService = {
|
|
419
|
+
useWorkSummaryJxh: function useWorkSummaryJxh(carId, startDate, endDate) {
|
|
420
|
+
//机械化作业统计
|
|
421
|
+
var _useRequest17 = useRequest(function () {
|
|
422
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/kanban/workInfoStatisticsByCarId"), {
|
|
423
|
+
body: {
|
|
424
|
+
carId: carId,
|
|
425
|
+
startDate: startDate,
|
|
426
|
+
endDate: endDate,
|
|
427
|
+
matchHistory: true
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}, {
|
|
431
|
+
refreshDeps: [carId, startDate, endDate]
|
|
432
|
+
}),
|
|
433
|
+
workSummaryJxhRes = _useRequest17.data,
|
|
434
|
+
loading = _useRequest17.loading;
|
|
435
|
+
return {
|
|
436
|
+
workSummaryJxhRes: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.data) || {},
|
|
437
|
+
loading: loading
|
|
438
|
+
};
|
|
439
|
+
},
|
|
440
|
+
useWorkAnaJxh: function useWorkAnaJxh(carId, startDate, endDate) {
|
|
441
|
+
//机械化作业分析
|
|
442
|
+
var _useRequest18 = useRequest(function () {
|
|
443
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/kanban/workInfoAnalysisByCarId"), {
|
|
444
|
+
body: {
|
|
445
|
+
carId: carId,
|
|
446
|
+
startDate: startDate,
|
|
447
|
+
endDate: endDate
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
}, {
|
|
451
|
+
refreshDeps: [carId, startDate, endDate]
|
|
452
|
+
}),
|
|
453
|
+
workAnaJxhRes = _useRequest18.data,
|
|
454
|
+
loading = _useRequest18.loading;
|
|
455
|
+
return {
|
|
456
|
+
workAnaJxhRes: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.data) || [],
|
|
457
|
+
loading: loading
|
|
458
|
+
};
|
|
459
|
+
},
|
|
460
|
+
useCarWorkDailyReport: function useCarWorkDailyReport(carId, startDate, endDate) {
|
|
461
|
+
//机械化作业类型
|
|
462
|
+
var _useRequest19 = useRequest(function () {
|
|
463
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/np/noshift/report/carWorkDailyReport"), {
|
|
464
|
+
body: {
|
|
465
|
+
carIds: carId,
|
|
466
|
+
startDate: startDate,
|
|
467
|
+
endDate: endDate
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
}, {
|
|
471
|
+
ready: !!startDate && !!endDate && !!carId,
|
|
472
|
+
refreshDeps: [startDate, endDate, carId]
|
|
473
|
+
}),
|
|
474
|
+
dailyDataRes = _useRequest19.data,
|
|
475
|
+
loading = _useRequest19.loading;
|
|
476
|
+
return {
|
|
477
|
+
dailyData: ((dailyDataRes === null || dailyDataRes === void 0 ? void 0 : dailyDataRes.data) || []).map(function (item) {
|
|
478
|
+
var percent = item.workMileage / item.driveMileage * 100;
|
|
479
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
480
|
+
percent: (percent > 100 ? 100 : percent).toFixed(2)
|
|
481
|
+
});
|
|
482
|
+
}),
|
|
483
|
+
loading: loading
|
|
484
|
+
};
|
|
485
|
+
},
|
|
486
|
+
useRecordJxh: function useRecordJxh(carId, workTypeCodes, startDate, endDate, pageNo, order) {
|
|
487
|
+
//机械化
|
|
488
|
+
var _useRequest20 = useRequest(function () {
|
|
489
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/v1.5/noshift/page"), {
|
|
490
|
+
body: {
|
|
491
|
+
carId: carId,
|
|
492
|
+
workTypeCodes: workTypeCodes,
|
|
493
|
+
needFilterWork: true,
|
|
494
|
+
startDate: startDate,
|
|
495
|
+
endDate: endDate,
|
|
496
|
+
pageNo: pageNo,
|
|
497
|
+
pageSize: 10,
|
|
498
|
+
sort: 'workDate',
|
|
499
|
+
order: order,
|
|
500
|
+
processBindRule: true
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
}, {
|
|
504
|
+
refreshDeps: [carId, workTypeCodes, startDate, endDate, pageNo, order]
|
|
505
|
+
}),
|
|
506
|
+
recordJxhRes = _useRequest20.data,
|
|
507
|
+
loading = _useRequest20.loading;
|
|
508
|
+
return {
|
|
509
|
+
recordJxhRes: (recordJxhRes === null || recordJxhRes === void 0 ? void 0 : recordJxhRes.data) || [],
|
|
510
|
+
loading: loading
|
|
511
|
+
};
|
|
512
|
+
},
|
|
513
|
+
useWorkTypeJxh: function useWorkTypeJxh() {
|
|
514
|
+
//机械化作业类型
|
|
515
|
+
var _useRequest21 = useRequest(function () {
|
|
516
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/v101/common/listWorkType"), {
|
|
517
|
+
body: {
|
|
518
|
+
tenantId: getVtxToken('tenantId')
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
}),
|
|
522
|
+
workTypeRes = _useRequest21.data;
|
|
523
|
+
return {
|
|
524
|
+
workTypeRes: (workTypeRes === null || workTypeRes === void 0 ? void 0 : workTypeRes.data) || []
|
|
525
|
+
};
|
|
526
|
+
},
|
|
527
|
+
useJXHAlarmStatistics: function useJXHAlarmStatistics(carIds, startDate, endDate) {
|
|
528
|
+
var _useRequest22 = useRequest(function () {
|
|
529
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/noshift/event/statistics"), {
|
|
530
|
+
body: {
|
|
531
|
+
carIds: carIds,
|
|
532
|
+
startDate: startDate,
|
|
533
|
+
endDate: endDate,
|
|
534
|
+
categoryCode: 'Alarm',
|
|
535
|
+
coordType: 'bd09'
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}, {
|
|
539
|
+
refreshDeps: [carIds, startDate, endDate]
|
|
540
|
+
}),
|
|
541
|
+
alarmTypesRes = _useRequest22.data,
|
|
542
|
+
loading = _useRequest22.loading;
|
|
543
|
+
return {
|
|
544
|
+
alarmTypes: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {},
|
|
545
|
+
loading: loading
|
|
546
|
+
};
|
|
547
|
+
},
|
|
548
|
+
useSingleCarAlarmStatistics: function useSingleCarAlarmStatistics(carId, startTime, endTime) {
|
|
549
|
+
var _useRequest23 = useRequest(function () {
|
|
550
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/noshift/event/singleCarAlarmStatistic"), {
|
|
551
|
+
body: {
|
|
552
|
+
carId: carId,
|
|
553
|
+
startTime: startTime,
|
|
554
|
+
endTime: endTime
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
}, {
|
|
558
|
+
refreshDeps: [carId, startTime, endTime]
|
|
559
|
+
}),
|
|
560
|
+
alarmTypesRes = _useRequest23.data,
|
|
561
|
+
loading = _useRequest23.loading;
|
|
562
|
+
return {
|
|
563
|
+
alarmStatistic: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {},
|
|
564
|
+
loading: loading
|
|
565
|
+
};
|
|
566
|
+
},
|
|
567
|
+
useJXHAlarmList: function useJXHAlarmList(carIds, startDate, endDate, page, sort) {
|
|
568
|
+
var _useRequest24 = useRequest(function () {
|
|
569
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/noshift/event/page"), {
|
|
570
|
+
body: {
|
|
571
|
+
carIds: carIds,
|
|
572
|
+
startDate: startDate,
|
|
573
|
+
endDate: endDate,
|
|
574
|
+
categoryCode: 'Alarm',
|
|
575
|
+
coordType: 'bd09',
|
|
576
|
+
pageNo: page,
|
|
577
|
+
pageSize: 10,
|
|
578
|
+
sort: sort
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
}, {
|
|
582
|
+
refreshDeps: [carIds, startDate, endDate, sort, page]
|
|
583
|
+
}),
|
|
584
|
+
alarmRecordRes = _useRequest24.data,
|
|
585
|
+
loading = _useRequest24.loading;
|
|
586
|
+
return {
|
|
587
|
+
alarmRecord: (alarmRecordRes === null || alarmRecordRes === void 0 ? void 0 : alarmRecordRes.data) || {},
|
|
588
|
+
loading: loading
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
export var LjsyService = {
|
|
593
|
+
useConfig: function useConfig() {
|
|
594
|
+
var _useRequest25 = useRequest(function () {
|
|
595
|
+
return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/param/config/webList"));
|
|
596
|
+
}),
|
|
597
|
+
config = _useRequest25.data;
|
|
598
|
+
var paramConfigsList = {};
|
|
599
|
+
if (config !== null && config !== void 0 && config.data) {
|
|
600
|
+
var _config$data;
|
|
601
|
+
(_config$data = config.data) === null || _config$data === void 0 || (_config$data = _config$data.paramConfigs) === null || _config$data === void 0 || _config$data.forEach(function (element) {
|
|
602
|
+
paramConfigsList[element.code] = _objectSpread({}, element);
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
return paramConfigsList;
|
|
606
|
+
},
|
|
607
|
+
useSYCarInfo: function useSYCarInfo(id, date) {
|
|
608
|
+
var _useRequest26 = useRequest(function () {
|
|
609
|
+
return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/gis/map/car/info"), {
|
|
610
|
+
body: {
|
|
611
|
+
carId: id,
|
|
612
|
+
day: date
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
}, {
|
|
616
|
+
refreshDeps: [id, date]
|
|
617
|
+
}),
|
|
618
|
+
syInfoRes = _useRequest26.data,
|
|
619
|
+
loading = _useRequest26.loading;
|
|
620
|
+
return {
|
|
621
|
+
syInfo: syInfoRes === null || syInfoRes === void 0 ? void 0 : syInfoRes.data,
|
|
622
|
+
loading: loading
|
|
623
|
+
};
|
|
624
|
+
},
|
|
625
|
+
useGetWorkInfo: function useGetWorkInfo(_ref11) {
|
|
626
|
+
var carId = _ref11.carId,
|
|
627
|
+
startDate = _ref11.startDate,
|
|
628
|
+
endDate = _ref11.endDate;
|
|
629
|
+
var _useRequest27 = useRequest(function () {
|
|
630
|
+
return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkInfoByCarIdDate"), {
|
|
631
|
+
body: {
|
|
632
|
+
carId: carId,
|
|
633
|
+
startDate: startDate,
|
|
634
|
+
endDate: endDate
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
}, {
|
|
638
|
+
refreshDeps: [carId, startDate, endDate]
|
|
639
|
+
}),
|
|
640
|
+
data = _useRequest27.data,
|
|
641
|
+
loading = _useRequest27.loading;
|
|
642
|
+
return {
|
|
643
|
+
taskDaySummary: (data === null || data === void 0 ? void 0 : data.data) || [],
|
|
644
|
+
loading: loading
|
|
645
|
+
};
|
|
646
|
+
},
|
|
647
|
+
useAlarmList: function useAlarmList(_ref12) {
|
|
648
|
+
var carId = _ref12.carId,
|
|
649
|
+
startDate = _ref12.startDate,
|
|
650
|
+
endDate = _ref12.endDate,
|
|
651
|
+
page = _ref12.page,
|
|
652
|
+
sort = _ref12.sort;
|
|
653
|
+
var _useRequest28 = useRequest(function () {
|
|
654
|
+
return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getAlarmDetailByCarId"), {
|
|
655
|
+
body: {
|
|
656
|
+
carId: carId,
|
|
657
|
+
startDate: startDate,
|
|
658
|
+
endDate: endDate,
|
|
659
|
+
page: page,
|
|
660
|
+
size: 10,
|
|
661
|
+
sort: sort
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
}, {
|
|
665
|
+
ready: !!carId,
|
|
666
|
+
refreshDeps: [carId, startDate, endDate, page, sort]
|
|
667
|
+
}),
|
|
668
|
+
recordRes = _useRequest28.data,
|
|
669
|
+
loading = _useRequest28.loading;
|
|
670
|
+
return {
|
|
671
|
+
alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {},
|
|
672
|
+
loading: loading
|
|
673
|
+
};
|
|
674
|
+
},
|
|
675
|
+
useGetWorkInfoAnalysis: function useGetWorkInfoAnalysis(_ref13) {
|
|
676
|
+
var carId = _ref13.carId,
|
|
677
|
+
startDate = _ref13.startDate,
|
|
678
|
+
endDate = _ref13.endDate;
|
|
679
|
+
var _useRequest29 = useRequest(function () {
|
|
680
|
+
return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkInfoAnalysisByCarId"), {
|
|
681
|
+
body: {
|
|
682
|
+
carId: carId,
|
|
683
|
+
startDate: startDate,
|
|
684
|
+
endDate: endDate
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
}, {
|
|
688
|
+
refreshDeps: [carId, startDate, endDate]
|
|
689
|
+
}),
|
|
690
|
+
data = _useRequest29.data,
|
|
691
|
+
loading = _useRequest29.loading;
|
|
692
|
+
return {
|
|
693
|
+
workInfoAnalysis: (data === null || data === void 0 ? void 0 : data.data) || {},
|
|
694
|
+
loading: loading
|
|
695
|
+
};
|
|
696
|
+
},
|
|
697
|
+
useGetAlarmInfo: function useGetAlarmInfo(_ref14) {
|
|
698
|
+
var carId = _ref14.carId,
|
|
699
|
+
startDate = _ref14.startDate,
|
|
700
|
+
endDate = _ref14.endDate;
|
|
701
|
+
var _useRequest30 = useRequest(function () {
|
|
702
|
+
return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getAlarmInfoByCarId"), {
|
|
703
|
+
body: {
|
|
704
|
+
carId: carId,
|
|
705
|
+
startDate: startDate,
|
|
706
|
+
endDate: endDate
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
}, {
|
|
710
|
+
refreshDeps: [carId, startDate, endDate]
|
|
711
|
+
}),
|
|
712
|
+
data = _useRequest30.data,
|
|
713
|
+
loading = _useRequest30.loading;
|
|
714
|
+
return {
|
|
715
|
+
alarmInfo: (data === null || data === void 0 ? void 0 : data.data) || [],
|
|
716
|
+
loading: loading
|
|
717
|
+
};
|
|
718
|
+
},
|
|
719
|
+
useGetAlarmInfoAnalysis: function useGetAlarmInfoAnalysis(_ref15) {
|
|
720
|
+
var carId = _ref15.carId,
|
|
721
|
+
startDate = _ref15.startDate,
|
|
722
|
+
endDate = _ref15.endDate;
|
|
723
|
+
var _useRequest31 = useRequest(function () {
|
|
724
|
+
return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getAlarmInfoAnalysisByCarId"), {
|
|
725
|
+
body: {
|
|
726
|
+
carId: carId,
|
|
727
|
+
startDate: startDate,
|
|
728
|
+
endDate: endDate
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
}, {
|
|
732
|
+
refreshDeps: [carId, startDate, endDate]
|
|
733
|
+
}),
|
|
734
|
+
data = _useRequest31.data,
|
|
735
|
+
loading = _useRequest31.loading;
|
|
736
|
+
return {
|
|
737
|
+
alarmInfoAnalysis: (data === null || data === void 0 ? void 0 : data.data) || {},
|
|
738
|
+
loading: loading
|
|
739
|
+
};
|
|
740
|
+
},
|
|
741
|
+
useGetWorkDetail: function useGetWorkDetail(_ref16) {
|
|
742
|
+
var carId = _ref16.carId,
|
|
743
|
+
startDate = _ref16.startDate,
|
|
744
|
+
endDate = _ref16.endDate,
|
|
745
|
+
page = _ref16.page,
|
|
746
|
+
sort = _ref16.sort;
|
|
747
|
+
var _useRequest32 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
748
|
+
var res;
|
|
749
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
750
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
751
|
+
case 0:
|
|
752
|
+
_context7.next = 2;
|
|
753
|
+
return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkDetailByCarId"), {
|
|
754
|
+
body: {
|
|
755
|
+
carId: carId,
|
|
756
|
+
startDate: startDate,
|
|
757
|
+
endDate: endDate,
|
|
758
|
+
page: page - 1,
|
|
759
|
+
size: 10,
|
|
760
|
+
sort: sort
|
|
761
|
+
}
|
|
762
|
+
});
|
|
763
|
+
case 2:
|
|
764
|
+
res = _context7.sent;
|
|
765
|
+
return _context7.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
|
|
766
|
+
case 4:
|
|
767
|
+
case "end":
|
|
768
|
+
return _context7.stop();
|
|
769
|
+
}
|
|
770
|
+
}, _callee7);
|
|
771
|
+
})), {
|
|
772
|
+
refreshDeps: [carId, startDate, endDate, page, sort],
|
|
773
|
+
ready: !!carId
|
|
774
|
+
}),
|
|
775
|
+
_useRequest32$data = _useRequest32.data,
|
|
776
|
+
data = _useRequest32$data === void 0 ? {} : _useRequest32$data;
|
|
777
|
+
return {
|
|
778
|
+
workDetailData: data
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
export var LjzyService = {
|
|
783
|
+
useGetCarSumByDate: function useGetCarSumByDate(_ref18) {
|
|
784
|
+
var carCode = _ref18.carCode,
|
|
785
|
+
startDate = _ref18.startDate,
|
|
786
|
+
endDate = _ref18.endDate;
|
|
787
|
+
var _useRequest33 = useRequest(function () {
|
|
788
|
+
return http.get("".concat(prefix, "/cloud/zd/lm/api/cp/dataBoard/getCarSumByDate.smvc"), {
|
|
789
|
+
body: {
|
|
790
|
+
carCode: carCode,
|
|
791
|
+
startDate: startDate,
|
|
792
|
+
endDate: endDate
|
|
793
|
+
}
|
|
794
|
+
});
|
|
795
|
+
}, {
|
|
796
|
+
refreshDeps: [carCode, startDate, endDate],
|
|
797
|
+
ready: !!carCode
|
|
798
|
+
}),
|
|
799
|
+
data = _useRequest33.data,
|
|
800
|
+
loading = _useRequest33.loading;
|
|
801
|
+
return {
|
|
802
|
+
taskDaySummary: (data === null || data === void 0 ? void 0 : data.data) || [],
|
|
803
|
+
loading: loading
|
|
804
|
+
};
|
|
805
|
+
},
|
|
806
|
+
useGetCarSumByDateAndDisposeUnit: function useGetCarSumByDateAndDisposeUnit(_ref19) {
|
|
807
|
+
var carCode = _ref19.carCode,
|
|
808
|
+
startDate = _ref19.startDate,
|
|
809
|
+
endDate = _ref19.endDate;
|
|
810
|
+
var _useRequest34 = useRequest(function () {
|
|
811
|
+
return http.get("".concat(prefix, "/cloud/zd/lm/api/cp/dataBoard/getCarSumByDateAndDisposeUnit.smvc"), {
|
|
812
|
+
body: {
|
|
813
|
+
carCode: carCode,
|
|
814
|
+
startDate: startDate,
|
|
815
|
+
endDate: endDate
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
}, {
|
|
819
|
+
refreshDeps: [carCode, startDate, endDate],
|
|
820
|
+
ready: !!carCode
|
|
821
|
+
}),
|
|
822
|
+
data = _useRequest34.data,
|
|
823
|
+
loading = _useRequest34.loading;
|
|
824
|
+
return {
|
|
825
|
+
taskDaySummary: (data === null || data === void 0 ? void 0 : data.data) || [],
|
|
826
|
+
loading: loading
|
|
827
|
+
};
|
|
828
|
+
},
|
|
829
|
+
useGetWorkDetail: function useGetWorkDetail(_ref20) {
|
|
830
|
+
var carNo = _ref20.carNo,
|
|
831
|
+
startTime = _ref20.startTime,
|
|
832
|
+
endTime = _ref20.endTime,
|
|
833
|
+
page = _ref20.page,
|
|
834
|
+
sort = _ref20.sort,
|
|
835
|
+
order = _ref20.order;
|
|
836
|
+
var _useRequest35 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
837
|
+
var res;
|
|
838
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
839
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
840
|
+
case 0:
|
|
841
|
+
_context8.next = 2;
|
|
842
|
+
return http.get("".concat(prefix, "/cloud/zd/lm/api/cp/zdjgLmWeighData/pageList.smvc"), {
|
|
843
|
+
body: {
|
|
844
|
+
carNo: carNo,
|
|
845
|
+
startTime: startTime,
|
|
846
|
+
endTime: endTime,
|
|
847
|
+
page: page - 1,
|
|
848
|
+
rows: 10,
|
|
849
|
+
sort: sort,
|
|
850
|
+
order: order
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
case 2:
|
|
854
|
+
res = _context8.sent;
|
|
855
|
+
return _context8.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
|
|
856
|
+
case 4:
|
|
857
|
+
case "end":
|
|
858
|
+
return _context8.stop();
|
|
859
|
+
}
|
|
860
|
+
}, _callee8);
|
|
861
|
+
})), {
|
|
862
|
+
refreshDeps: [carNo, startTime, endTime, page, sort, order],
|
|
863
|
+
ready: !!carNo
|
|
864
|
+
}),
|
|
865
|
+
_useRequest35$data = _useRequest35.data,
|
|
866
|
+
data = _useRequest35$data === void 0 ? {} : _useRequest35$data,
|
|
867
|
+
loading = _useRequest35.loading;
|
|
868
|
+
return {
|
|
869
|
+
workDetailData: data,
|
|
870
|
+
loading: loading
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
//油耗
|
|
876
|
+
export var OilService = {
|
|
877
|
+
useHasOil: function useHasOil(carId) {
|
|
878
|
+
var _data$data2;
|
|
879
|
+
var _useRequest36 = useRequest(function () {
|
|
880
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/car/config/getById"), {
|
|
881
|
+
body: {
|
|
882
|
+
id: carId
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
}, {
|
|
886
|
+
refreshDeps: [carId]
|
|
887
|
+
}),
|
|
888
|
+
data = _useRequest36.data;
|
|
889
|
+
return {
|
|
890
|
+
beenOilStatus: data === null || data === void 0 || (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.beenOilStatus
|
|
891
|
+
};
|
|
892
|
+
},
|
|
893
|
+
useOilLine: function useOilLine(carId, startTime, endTime) {
|
|
894
|
+
var _useRequest37 = useRequest(function () {
|
|
895
|
+
return http.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/oilLine.smvc"), {
|
|
896
|
+
body: {
|
|
897
|
+
carId: carId,
|
|
898
|
+
startTime: startTime,
|
|
899
|
+
endTime: endTime,
|
|
900
|
+
tenantId: getVtxToken('tenantId')
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
}, {
|
|
904
|
+
refreshDeps: [carId, startTime, endTime]
|
|
905
|
+
}),
|
|
906
|
+
oilLineRes = _useRequest37.data,
|
|
907
|
+
loading = _useRequest37.loading;
|
|
908
|
+
return {
|
|
909
|
+
oilLineRes: (oilLineRes === null || oilLineRes === void 0 ? void 0 : oilLineRes.data) || [],
|
|
910
|
+
loading: loading
|
|
911
|
+
};
|
|
912
|
+
},
|
|
913
|
+
useSummary: function useSummary(carId, startTime, endTime) {
|
|
914
|
+
var _useRequest38 = useRequest(function () {
|
|
915
|
+
return http.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/summary.smvc"), {
|
|
916
|
+
body: {
|
|
917
|
+
carId: carId,
|
|
918
|
+
startTime: startTime,
|
|
919
|
+
endTime: endTime,
|
|
920
|
+
tenantId: getVtxToken('tenantId')
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
}, {
|
|
924
|
+
refreshDeps: [carId, startTime, endTime]
|
|
925
|
+
}),
|
|
926
|
+
summaryRes = _useRequest38.data;
|
|
927
|
+
return {
|
|
928
|
+
summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
|
|
929
|
+
};
|
|
930
|
+
},
|
|
931
|
+
useRecord: function useRecord(carId, startTime, endTime, page, sort) {
|
|
932
|
+
var _useRequest39 = useRequest(function () {
|
|
933
|
+
return http.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/simplePage.smvc"), {
|
|
934
|
+
body: {
|
|
935
|
+
carId: carId,
|
|
936
|
+
startTime: startTime,
|
|
937
|
+
endTime: endTime,
|
|
938
|
+
page: page,
|
|
939
|
+
rows: 10,
|
|
940
|
+
sortKey: 'day',
|
|
941
|
+
sort: sort,
|
|
942
|
+
tenantId: getVtxToken('tenantId')
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
}, {
|
|
946
|
+
refreshDeps: [carId, startTime, endTime, page, sort]
|
|
947
|
+
}),
|
|
948
|
+
recordRes = _useRequest39.data;
|
|
949
|
+
return {
|
|
950
|
+
recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
//水耗
|
|
956
|
+
export var WaterService = {
|
|
957
|
+
useSummary: function useSummary(carId, startTime, endTime) {
|
|
958
|
+
var _useRequest40 = useRequest(function () {
|
|
959
|
+
return http.get("".concat(prefix, "/cloud/water-reborn/api/v101/water/waterMeasure/summary"), {
|
|
960
|
+
body: {
|
|
961
|
+
hasWaterStatus: true,
|
|
962
|
+
carId: carId,
|
|
963
|
+
startTime: startTime,
|
|
964
|
+
endTime: endTime
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
}, {
|
|
968
|
+
refreshDeps: [carId, startTime, endTime]
|
|
969
|
+
}),
|
|
970
|
+
summaryRes = _useRequest40.data;
|
|
971
|
+
return {
|
|
972
|
+
summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
|
|
973
|
+
};
|
|
974
|
+
},
|
|
975
|
+
useRecord: function useRecord(carId, startDate, endDate) {
|
|
976
|
+
var _useRequest41 = useRequest(function () {
|
|
977
|
+
return http.get("".concat(prefix, "/cloud/water-reborn/api/v101/water/waterMeasure/queryList"), {
|
|
978
|
+
body: {
|
|
979
|
+
hasWaterStatus: true,
|
|
980
|
+
carId: carId,
|
|
981
|
+
startDate: startDate,
|
|
982
|
+
endDate: endDate
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
}, {
|
|
986
|
+
refreshDeps: [carId, startDate, endDate]
|
|
987
|
+
}),
|
|
988
|
+
recordRes = _useRequest41.data,
|
|
989
|
+
loading = _useRequest41.loading;
|
|
990
|
+
return {
|
|
991
|
+
recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || [],
|
|
992
|
+
loading: loading
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
// 维保
|
|
998
|
+
export var MaintenanceService = {
|
|
999
|
+
useMaintenance: function useMaintenance(carId) {
|
|
1000
|
+
var _useRequest42 = useRequest(function () {
|
|
1001
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carComprehensiveBoard/carWbAnalyse"), {
|
|
1002
|
+
body: {
|
|
1003
|
+
carId: carId
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
}, {
|
|
1007
|
+
refreshDeps: [carId]
|
|
1008
|
+
}),
|
|
1009
|
+
maintenanceRes = _useRequest42.data;
|
|
1010
|
+
return {
|
|
1011
|
+
maintenanceRes: (maintenanceRes === null || maintenanceRes === void 0 ? void 0 : maintenanceRes.data) || []
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
};
|
|
1015
|
+
export var carIdentityMap = new Map([['innerCode', '自编号'], ['carCode', '车牌号'], ['originalDeviceCode', '原始设备编码'], ['carClassName', '车辆类别'], ['carGradeName', '车辆种类'], ['emissionStageName', '排放阶段'], ['licensePlateColorName', '车牌颜色'], ['drivingLicenseCode', '行驶证编号'], ['useUnitName', '使用单位'], ['belongUnitName', '所属单位'], ['manageStaffName', '责任人'], ['divisionName', '行政区划'], ['backupManageStaffName', '后备责任人'], ['contact', '联系人'], ['contactWay', '联系方式'], ['carBrand', '车辆品牌'], ['carType', '车辆型号'], ['procurementDate', '购置时间'], ['useYears', '使用年限'], ['procurementAmt', '购置金额(元)'], ['life', '使用年限(年)'], ['scrapDate', '报废时间'], ['depreciationVal', '已折旧金额(元)'], ['reDepreciationVal', '剩余折旧金额(元)'], ['invoiceCode', '发票编号'], ['certificateCode', '证书编号'], ['certificateKeeper', '证书保管人'], ['identifyCode', '车辆识别代号'], ['engineCode', '发动机号'], ['purchaseApprovalCode', '采购审批单号'], ['orderIndex', '排序号'], ['workTypeName', '作业类型'], ['carStateStr', '生命周期'], ['bidSectionName', '所属标段'], ['photoIds', '车辆照片'],
|
|
1016
|
+
// ['qrCode', '车辆二维码'],
|
|
1017
|
+
['photoTwoIds', '图片']]);
|
|
1018
|
+
export var carConfigMap = new Map([['carLabel', '车辆厂牌'], ['productionDate', '出厂日期'], ['productionPlace', '出厂地'], ['ownWeight', '自有重量(T)'], ['curbWeight', '整备质量(Kg)'], ['regulationWeight', '核定载质量(Kg)'], ['carUseWayName', '车辆用途'], ['carPropertyName', '车辆性质'], ['carAttrOneName', '车辆属性1'], ['carAttrTwoName', '车辆属性2'], ['regulationPerson', '核定载员(人)'], ['carWorkingWidth', '车辆作业宽度(米)'], ['driveLicensePhotoIds', '行驶证照片']]);
|
|
1019
|
+
export var carAuditMap = new Map([['annualReviewDate', '年审日期'], ['maturityDate', '到期日期'], ['annualAuditFee', '年审费用(元)']]);
|
|
1020
|
+
export var carSYMap = new Map([['matchingMethodStr', '匹配方式'], ['productTypeName', '垃圾类型'], ['collectMethodStr', '收运方式'], ['collectModeName', '收运模式'], ['taskGenerationMethodStr', '任务生成方式']]);
|