@vtx/modals2 6.0.0-beta.1 → 6.0.0-beta.3
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/vm-calendar/index.js +3 -4
- package/lib/_components/vm-empty/index.js +1 -1
- package/lib/_components/vm-factor/index.js +2 -1
- package/lib/_components/vm-filter/index.js +8 -8
- package/lib/_components/vm-info-collection/index.js +3 -2
- package/lib/_components/vm-map/index.js +1 -1
- package/lib/_components/vm-progress/index.js +2 -1
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +1 -1
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +1 -1
- package/lib/_components/vm-repair-maintain/RmRecord.js +1 -1
- package/lib/_components/vm-repair-maintain/RmType.js +1 -1
- package/lib/_components/vm-repair-maintain/index.js +1 -1
- package/lib/_components/vm-table/index.js +3 -3
- package/lib/_components/vm-tag/index.js +2 -1
- package/lib/_components/vm-title/index.js +2 -1
- package/lib/_components/vm-video/index.js +1 -1
- package/lib/_components/vm-wrapper/index.js +2 -2
- package/lib/_components/vm-wrapper/style/index.less +4 -2
- package/lib/_util/http.js +6 -5
- package/lib/_util/index.js +6 -5
- package/lib/locales/en.json +1516 -1377
- package/lib/locales/zh-CN.json +1516 -1377
- package/lib/vtx-area-modal/api.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-base-modal/index.js +2 -1
- package/lib/vtx-car-modal/api.js +415 -25
- package/lib/vtx-car-modal/components/Info/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +1 -1
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/EleUse/index.js +206 -0
- package/lib/vtx-car-modal/content/Common/EleUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/Maintenance/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilUse/index.js +218 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +376 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -0
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/WaterUse/index.js +196 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/index.js +9 -1
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +1 -1
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -1
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +1 -1
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +1 -1
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +1 -1
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +1 -1
- package/lib/vtx-car-modal/imgs/czb_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/czb_bg_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +23 -3
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +4 -4
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +1 -1
- package/lib/vtx-cc-unit-modal/index.js +1 -1
- package/lib/vtx-cp-modal/api.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +1 -1
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +1 -1
- package/lib/vtx-cp-modal/components/SyInfo/index.js +1 -1
- package/lib/vtx-cp-modal/index.js +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-default-modal/index.js +1 -1
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +1 -1
- package/lib/vtx-device-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +1 -1
- package/lib/vtx-device-modal/index.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +1 -1
- package/lib/vtx-df-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +1 -1
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +1 -1
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +1 -1
- package/lib/vtx-df-modal/components/Metering/List.js +1 -1
- package/lib/vtx-df-modal/components/Metering/index.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/index.js +1 -1
- package/lib/vtx-df-modal/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +1 -1
- package/lib/vtx-housing-estate-modal/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/index.js +1 -1
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-ysqy-modal/index.js +1 -1
- package/lib/vtx-kh-modal/api2.js +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-kh-modal/components/Record/index.js +1 -1
- package/lib/vtx-kh-modal/index.js +1 -1
- package/lib/vtx-qyry-modal/api.js +1 -1
- package/lib/vtx-qyry-modal/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +4 -4
- package/lib/vtx-restaurant-modal/components/Collection/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +51 -34
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +4 -4
- package/lib/vtx-restaurant-modal/index.js +1 -1
- package/lib/vtx-road-modal/api.js +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +1 -1
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +1 -1
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +1 -1
- package/lib/vtx-road-modal/components/LaneStatistical/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-road-modal/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/index.js +1 -1
- package/lib/vtx-shxq-modal/api.js +1 -1
- package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +1 -1
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +1 -1
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +1 -1
- package/lib/vtx-shxq-modal/index.js +1 -1
- package/lib/vtx-staff-modal/api.js +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/Record.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-staff-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
- package/lib/vtx-staff-modal/index.js +1 -1
- package/lib/vtx-tfd-modal/api.js +1 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +1 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +1 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-wr-modal/components/Appraise/index.js +1 -1
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +1 -1
- package/lib/vtx-wr-modal/components/Base/Ptss.js +1 -1
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +1 -1
- package/lib/vtx-wr-modal/components/Base/index.js +1 -1
- package/lib/vtx-wr-modal/components/Build/index.js +1 -1
- package/lib/vtx-wr-modal/components/File/index.js +1 -1
- package/lib/vtx-wr-modal/components/Score/index.js +1 -1
- package/lib/vtx-wr-modal/index.js +1 -1
- package/lib/vtx-zf-modal/components/Base/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +4 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +5 -4
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +12 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +10 -5
- package/lib/vtx-zf-modal/components/File/index.js +1 -1
- package/lib/vtx-zf-modal/components/Process/index.js +1 -1
- package/lib/vtx-zf-modal/components/Record/index.js +1 -1
- package/lib/vtx-zf-modal/components/Right/index.js +1 -1
- package/lib/vtx-zg-modal/api.js +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-zg-modal/index.js +1 -1
- package/lib/vtx-zzz-modal/index.js +3 -3
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { VMRangePicker } from "../../../../_components/vm-filter";
|
|
|
12
12
|
import useSettings from "../../../../_hooks/useSettings";
|
|
13
13
|
import List from "./List";
|
|
14
14
|
import StaticInfo from "./StaticInfo";
|
|
15
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
15
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
var AlarmInfo = function AlarmInfo() {
|
|
18
18
|
var _useSettings = useSettings(),
|
|
@@ -20,7 +20,7 @@ import Info from "../../../components/Info";
|
|
|
20
20
|
import { CarContext } from "../../../index";
|
|
21
21
|
import "./index.less";
|
|
22
22
|
import np from 'number-precision';
|
|
23
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
23
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
var BaseInfo = function BaseInfo() {
|
|
26
26
|
var _useContext = useContext(CarContext),
|
|
@@ -8,7 +8,7 @@ import { VmInfoCollection, VmTable, VmTitle, VmWrapper } from "../../../../_comp
|
|
|
8
8
|
import useSettings from "../../../../_hooks/useSettings";
|
|
9
9
|
import { paramSerializer } from "../../../../_util";
|
|
10
10
|
import dayjs from "dayjs";
|
|
11
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
11
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
var Content = function Content(_ref) {
|
|
14
14
|
var data = _ref.data;
|
|
@@ -19,7 +19,7 @@ import Detail from "./Detail";
|
|
|
19
19
|
import { VmTable, VmWrapper } from "../../../../_components";
|
|
20
20
|
import dayjs from "dayjs";
|
|
21
21
|
import { VtxExport } from '@vtx/components';
|
|
22
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
22
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
23
23
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
var OrderInfo = function OrderInfo() {
|
|
25
25
|
var _useContext = useContext(CarContext),
|
|
@@ -26,7 +26,7 @@ import lightTrashIcon from "../../../imgs/trash.png";
|
|
|
26
26
|
import lightUnplannedIcon from "../../../imgs/unplanned_point.png";
|
|
27
27
|
import lightWeightIcon from "../../../imgs/weight.png";
|
|
28
28
|
import { CarContext } from "../../../index";
|
|
29
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
29
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
30
30
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
31
31
|
var StaticInfo = function StaticInfo() {
|
|
32
32
|
var _useSettings = useSettings(),
|
|
@@ -19,7 +19,7 @@ import { VmEmpty, VmTable, VmWrapper } from "../../../../_components";
|
|
|
19
19
|
import useSettings from "../../../../_hooks/useSettings";
|
|
20
20
|
import { CcService } from "../../../api";
|
|
21
21
|
import { CarContext } from "../../../index";
|
|
22
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
22
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
23
23
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
var Detail = function Detail(_ref) {
|
|
25
25
|
var startDate = _ref.startDate,
|
|
@@ -14,7 +14,7 @@ import pointIcon from "../../../imgs/factor/point.png";
|
|
|
14
14
|
import trashBg from "../../../imgs/trash_bg.png";
|
|
15
15
|
import weightBg from "../../../imgs/weight_bg.png";
|
|
16
16
|
import { CarContext } from "../../../index";
|
|
17
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
17
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
18
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
19
|
var Summary = function Summary(_ref) {
|
|
20
20
|
var startDate = _ref.startDate,
|
|
@@ -12,7 +12,7 @@ import { VMRangePicker } from "../../../../_components/vm-filter";
|
|
|
12
12
|
import useSettings from "../../../../_hooks/useSettings";
|
|
13
13
|
import Detail from "./Detail";
|
|
14
14
|
import Summary from "./Summary";
|
|
15
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
15
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
var WorkRecord = function WorkRecord() {
|
|
18
18
|
var _useSettings = useSettings(),
|
|
@@ -16,7 +16,7 @@ import { VmTable, VmWrapper } from "../../../../_components";
|
|
|
16
16
|
import { VMSelect } from "../../../../_components/vm-filter";
|
|
17
17
|
import { BaseService } from "../../../api";
|
|
18
18
|
import { CarContext } from "../../../index";
|
|
19
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
19
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
21
|
var List = function List(props) {
|
|
22
22
|
var _useContext = useContext(CarContext),
|
|
@@ -5,7 +5,7 @@ import { useContext, useMemo } from 'react';
|
|
|
5
5
|
import { VmLineCharts, VmPieCharts, VmWrapper } from "../../../../_components";
|
|
6
6
|
import { BaseService } from "../../../api";
|
|
7
7
|
import { CarContext } from "../../../index";
|
|
8
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
8
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
var StaticInfo = function StaticInfo(_ref) {
|
|
11
11
|
var _todayRunRes$alarmGro;
|
|
@@ -12,7 +12,7 @@ import { VMRangePicker } from "../../../../_components/vm-filter";
|
|
|
12
12
|
import useSettings from "../../../../_hooks/useSettings";
|
|
13
13
|
import List from "./List";
|
|
14
14
|
import StaticInfo from "./StaticInfo";
|
|
15
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
15
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
var AlarmInfo = function AlarmInfo() {
|
|
18
18
|
var _useSettings = useSettings(),
|
|
@@ -18,7 +18,7 @@ import darkRunIcon from "../../../imgs/factor/dark_run.png";
|
|
|
18
18
|
import durationIcon from "../../../imgs/factor/duration.png";
|
|
19
19
|
import runIcon from "../../../imgs/factor/run.png";
|
|
20
20
|
import { CarContext } from "../../../index";
|
|
21
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
21
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
22
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
23
|
var MILEAGE_TEXT = "t('vtxcarmodal.drivingMileage')";
|
|
24
24
|
var DURATION_TEXT = "t('vtxcarmodal.hours2')";
|
|
@@ -3,7 +3,7 @@ import { useContext } from 'react';
|
|
|
3
3
|
import { VmInfoCollection, VmTable, VmWrapper } from "../../../../_components";
|
|
4
4
|
import { BaseService, carAuditMap, carConfigMap, carIdentityMap, carSYMap } from "../../../api";
|
|
5
5
|
import { CarContext } from "../../../index";
|
|
6
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
6
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
var DetailInfo = function DetailInfo() {
|
|
9
9
|
var _useContext = useContext(CarContext),
|
|
@@ -4,7 +4,7 @@ import { useContext } from 'react';
|
|
|
4
4
|
import { VmInfoCollection, VmWrapper } from "../../../../_components";
|
|
5
5
|
import { BaseService } from "../../../api";
|
|
6
6
|
import { CarContext } from "../../../index";
|
|
7
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
7
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
var DeviceInfo = function DeviceInfo() {
|
|
10
10
|
var _useContext = useContext(CarContext),
|
|
@@ -0,0 +1,206 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useSetState } from 'ahooks';
|
|
14
|
+
import dayjs from 'dayjs';
|
|
15
|
+
import { useContext } from 'react';
|
|
16
|
+
import { VmBarCharts, VmFactor, VmTable, VmWrapper } from "../../../../_components";
|
|
17
|
+
import useSettings from "../../../../_hooks/useSettings";
|
|
18
|
+
import { MaintenanceService } from "../../../api";
|
|
19
|
+
import { CarContext } from "../../../index";
|
|
20
|
+
import "./index.less";
|
|
21
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
var WaterUse = function WaterUse() {
|
|
24
|
+
var _useSettings = useSettings(),
|
|
25
|
+
isDark = _useSettings.isDark;
|
|
26
|
+
var _useContext = useContext(CarContext),
|
|
27
|
+
id = _useContext.id,
|
|
28
|
+
sDate = _useContext.startDate,
|
|
29
|
+
eDate = _useContext.endDate;
|
|
30
|
+
var _useSetState = useSetState({
|
|
31
|
+
startDate: sDate ? sDate : dayjs().subtract(6, 'day'),
|
|
32
|
+
endDate: eDate ? eDate : dayjs(),
|
|
33
|
+
sorter: 'chargeTime,ASC'
|
|
34
|
+
}),
|
|
35
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
36
|
+
state = _useSetState2[0],
|
|
37
|
+
setState = _useSetState2[1];
|
|
38
|
+
var startDate = dayjs(state.startDate).format('YYYY-MM-DD');
|
|
39
|
+
var endDate = dayjs(state.endDate).format('YYYY-MM-DD');
|
|
40
|
+
var filterChange = function filterChange(dateValue) {
|
|
41
|
+
setState({
|
|
42
|
+
startDate: dateValue[0],
|
|
43
|
+
endDate: dateValue[1]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var _MaintenanceService$u = MaintenanceService.useEleSummary(id, startDate, endDate),
|
|
47
|
+
eleSummary = _MaintenanceService$u.eleSummary;
|
|
48
|
+
var _MaintenanceService$u2 = MaintenanceService.useEleRecord(id, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59"), state.sorter),
|
|
49
|
+
recordRes = _MaintenanceService$u2.recordRes,
|
|
50
|
+
loading = _MaintenanceService$u2.loading;
|
|
51
|
+
var _MaintenanceService$u3 = MaintenanceService.useEleTypeSummary(id, startDate, endDate),
|
|
52
|
+
eleTypeSummary = _MaintenanceService$u3.eleTypeSummary,
|
|
53
|
+
loadingType = _MaintenanceService$u3.loading;
|
|
54
|
+
var columns = [{
|
|
55
|
+
title: translateLocaleText("t('vtxcarmodal.chargeTime')"),
|
|
56
|
+
dataIndex: 'chargeTime',
|
|
57
|
+
key: 'chargeTime',
|
|
58
|
+
sorter: true,
|
|
59
|
+
width: '30%'
|
|
60
|
+
}, {
|
|
61
|
+
title: translateLocaleText("t('vtxcarmodal.chargeLocation')"),
|
|
62
|
+
dataIndex: 'chargeAddress',
|
|
63
|
+
key: 'chargeAddress',
|
|
64
|
+
width: '30%',
|
|
65
|
+
render: function render(text) {
|
|
66
|
+
return /*#__PURE__*/_jsx("div", {
|
|
67
|
+
children: text || '--'
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
title: translateLocaleText("t('vtxcarmodal.chargeMoneyYuan')"),
|
|
72
|
+
dataIndex: 'chargeMoney',
|
|
73
|
+
key: 'chargeMoney',
|
|
74
|
+
width: '30%',
|
|
75
|
+
align: 'right'
|
|
76
|
+
}];
|
|
77
|
+
var handleTableChange = function handleTableChange(sorter) {
|
|
78
|
+
setState({
|
|
79
|
+
sorter: "".concat(sorter.columnKey || 'waterTime', ",").concat(sorter.order === 'ascend' ? 'ASC' : 'DESC')
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
var tableProps = {
|
|
83
|
+
pagination: {
|
|
84
|
+
total: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.total) || 0,
|
|
85
|
+
defaultPageSize: 10
|
|
86
|
+
},
|
|
87
|
+
height: 360,
|
|
88
|
+
dataSource: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.rows) || [],
|
|
89
|
+
loading: loading,
|
|
90
|
+
handleTableChange: handleTableChange
|
|
91
|
+
};
|
|
92
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
93
|
+
className: 'vtx-car-water-use-wrap',
|
|
94
|
+
children: [/*#__PURE__*/_jsx(VmWrapper, {
|
|
95
|
+
title: translateLocaleText("t('vtxcarmodal.statisticalScope')"),
|
|
96
|
+
filterType: "rangePicker",
|
|
97
|
+
dateValue: [state.startDate, state.endDate],
|
|
98
|
+
filterChange: filterChange,
|
|
99
|
+
showContent: false,
|
|
100
|
+
style: {
|
|
101
|
+
height: 50
|
|
102
|
+
},
|
|
103
|
+
headerStyle: {
|
|
104
|
+
borderBottom: 'none'
|
|
105
|
+
},
|
|
106
|
+
extraStyle: {
|
|
107
|
+
left: 100,
|
|
108
|
+
right: 'unset'
|
|
109
|
+
}
|
|
110
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
111
|
+
className: "vtx-car-water-use-summary",
|
|
112
|
+
children: [/*#__PURE__*/_jsx(VmWrapper, {
|
|
113
|
+
title: translateLocaleText("t('vtxcarmodal.chargeSummary')"),
|
|
114
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
115
|
+
className: "vtx-car-water-use-row",
|
|
116
|
+
children: [{
|
|
117
|
+
name: translateLocaleText("t('vtxcarmodal.chargeCount')"),
|
|
118
|
+
unit: translateLocaleText("t('common.unit.times')"),
|
|
119
|
+
value: (eleSummary === null || eleSummary === void 0 ? void 0 : eleSummary.chargeCount) || 0,
|
|
120
|
+
icon: 'cdcs'
|
|
121
|
+
}, {
|
|
122
|
+
name: translateLocaleText("t('vtxcarmodal.chargeMoney')"),
|
|
123
|
+
unit: translateLocaleText("t('common.unit.yuan')"),
|
|
124
|
+
value: (eleSummary === null || eleSummary === void 0 ? void 0 : eleSummary.chargeMoney) || 0,
|
|
125
|
+
icon: 'cdje'
|
|
126
|
+
}, {
|
|
127
|
+
name: translateLocaleText("t('vtxcarmodal.singleChargeMoney')"),
|
|
128
|
+
unit: translateLocaleText("t('common.unit.yuanPerTimes')"),
|
|
129
|
+
value: (eleSummary === null || eleSummary === void 0 ? void 0 : eleSummary.singleChargeMoney) || 0,
|
|
130
|
+
icon: 'dccdje'
|
|
131
|
+
}, {
|
|
132
|
+
name: translateLocaleText("t('vtxcarmodal.chargeFrequency')"),
|
|
133
|
+
unit: translateLocaleText("t('common.unit.dayPerTimes')"),
|
|
134
|
+
value: (eleSummary === null || eleSummary === void 0 ? void 0 : eleSummary.chargeFrequency) || 0,
|
|
135
|
+
icon: 'cdpc'
|
|
136
|
+
}, {
|
|
137
|
+
name: translateLocaleText("t('vtxcarmodal.day2')"),
|
|
138
|
+
unit: 'km',
|
|
139
|
+
value: (eleSummary === null || eleSummary === void 0 ? void 0 : eleSummary.distance) || 0,
|
|
140
|
+
icon: 'xslc'
|
|
141
|
+
}, {
|
|
142
|
+
name: translateLocaleText("t('vtxcarmodal.electricCost')"),
|
|
143
|
+
unit: translateLocaleText("t('common.unit.yuanPerKm')"),
|
|
144
|
+
value: (eleSummary === null || eleSummary === void 0 ? void 0 : eleSummary.electricCost) || 0,
|
|
145
|
+
icon: 'ydcb'
|
|
146
|
+
}].map(function (ele) {
|
|
147
|
+
return /*#__PURE__*/_jsx(VmFactor, {
|
|
148
|
+
name: translateLocaleText(ele.name),
|
|
149
|
+
unit: ele.unit,
|
|
150
|
+
value: ele.value,
|
|
151
|
+
img: require("../../../imgs/factor/".concat(ele.icon).concat(isDark ? '_dark' : '', ".png"))
|
|
152
|
+
}, ele.name);
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
}), /*#__PURE__*/_jsx(VmWrapper, {
|
|
156
|
+
title: translateLocaleText("t('vtxcarmodal.chargeTimePreferenceAnalysis')"),
|
|
157
|
+
children: /*#__PURE__*/_jsx(VmBarCharts, {
|
|
158
|
+
name: translateLocaleText("t('vtxcarmodal.chargeTimePreferenceAnalysis')"),
|
|
159
|
+
unit: translateLocaleText("t('common.unit.times')"),
|
|
160
|
+
loading: loadingType,
|
|
161
|
+
dataList: [{
|
|
162
|
+
name: translateLocaleText("t('vtxcarmodal.chargeCount')"),
|
|
163
|
+
data: _.map(eleTypeSummary, 'value'),
|
|
164
|
+
color: 'geekblue'
|
|
165
|
+
}],
|
|
166
|
+
yAxisList: [{
|
|
167
|
+
key: '',
|
|
168
|
+
unit: translateLocaleText("t('common.unit.times')"),
|
|
169
|
+
name: ''
|
|
170
|
+
}],
|
|
171
|
+
otherProps: {
|
|
172
|
+
xAxis: {
|
|
173
|
+
type: 'value',
|
|
174
|
+
unit: translateLocaleText("t('common.unit.times')"),
|
|
175
|
+
name: translateLocaleText("t('common.unit.times')")
|
|
176
|
+
},
|
|
177
|
+
yAxis: {
|
|
178
|
+
type: 'category',
|
|
179
|
+
data: _.map(eleTypeSummary, 'name')
|
|
180
|
+
},
|
|
181
|
+
grid: {
|
|
182
|
+
left: '5%',
|
|
183
|
+
right: '5%',
|
|
184
|
+
bottom: '5%',
|
|
185
|
+
top: '5%',
|
|
186
|
+
containLabel: true
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
})
|
|
190
|
+
})]
|
|
191
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
192
|
+
style: {
|
|
193
|
+
flex: 1,
|
|
194
|
+
minHeight: 0
|
|
195
|
+
},
|
|
196
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
197
|
+
title: translateLocaleText("t('vtxcarmodal.chargeDetail')"),
|
|
198
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
199
|
+
columns: columns,
|
|
200
|
+
rowKey: "id"
|
|
201
|
+
}, tableProps))
|
|
202
|
+
})
|
|
203
|
+
})]
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
export default WaterUse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.vtx-car-water-use-wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
.vtx-car-water-use-summary {
|
|
8
|
+
height: 240px;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.vtx-car-water-use-row {
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-columns: repeat(3, 1fr);
|
|
17
|
+
gap: 40px 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -5,7 +5,7 @@ import { MaintenanceService } from "../../../api";
|
|
|
5
5
|
import warn from "../../../imgs/warn.png";
|
|
6
6
|
import { CarContext } from "../../../index";
|
|
7
7
|
import "./index.less";
|
|
8
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
8
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
var Maintenance = function Maintenance() {
|
|
11
11
|
var _useContext = useContext(CarContext),
|
|
@@ -15,7 +15,7 @@ import { useContext } from 'react';
|
|
|
15
15
|
import { VmTable } from "../../../../_components";
|
|
16
16
|
import { OilService } from "../../../api";
|
|
17
17
|
import { CarContext } from "../../../index";
|
|
18
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
18
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
var List = function List(_ref) {
|
|
21
21
|
var startDate = _ref.startDate,
|
|
@@ -20,7 +20,7 @@ import oilIcon from "../../../imgs/factor/oil.png";
|
|
|
20
20
|
import { CarContext } from "../../../index";
|
|
21
21
|
import "./index.less";
|
|
22
22
|
import List from "./List";
|
|
23
|
-
import { translateLocaleText } from "./../../../../hooks/useTranslation.
|
|
23
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.ts";
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
var OilConsumption = function OilConsumption() {
|
|
26
26
|
var _oilLineRes$values;
|
|
@@ -0,0 +1,218 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useSetState } from 'ahooks';
|
|
14
|
+
import dayjs from 'dayjs';
|
|
15
|
+
import { useContext } from 'react';
|
|
16
|
+
import { VmBarCharts, VmFactor, VmTable, VmWrapper } from "../../../../_components";
|
|
17
|
+
import useSettings from "../../../../_hooks/useSettings";
|
|
18
|
+
import { MaintenanceService } from "../../../api";
|
|
19
|
+
import { CarContext } from "../../../index";
|
|
20
|
+
import "./index.less";
|
|
21
|
+
import { translateLocaleText } from "../../../../hooks/useTranslation";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
var OilUse = function OilUse() {
|
|
24
|
+
var _useSettings = useSettings(),
|
|
25
|
+
isDark = _useSettings.isDark;
|
|
26
|
+
var _useContext = useContext(CarContext),
|
|
27
|
+
id = _useContext.id,
|
|
28
|
+
sDate = _useContext.startDate,
|
|
29
|
+
eDate = _useContext.endDate;
|
|
30
|
+
var _useSetState = useSetState({
|
|
31
|
+
startDate: sDate ? sDate : dayjs().subtract(6, 'day'),
|
|
32
|
+
endDate: eDate ? eDate : dayjs(),
|
|
33
|
+
sorter: 'oilTime,ASC'
|
|
34
|
+
}),
|
|
35
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
36
|
+
state = _useSetState2[0],
|
|
37
|
+
setState = _useSetState2[1];
|
|
38
|
+
var startDate = dayjs(state.startDate).format('YYYY-MM-DD');
|
|
39
|
+
var endDate = dayjs(state.endDate).format('YYYY-MM-DD');
|
|
40
|
+
var filterChange = function filterChange(dateValue) {
|
|
41
|
+
setState({
|
|
42
|
+
startDate: dateValue[0],
|
|
43
|
+
endDate: dateValue[1]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var _MaintenanceService$u = MaintenanceService.useOilSummary(id, startDate, endDate),
|
|
47
|
+
oilUseSummary = _MaintenanceService$u.oilUseSummary;
|
|
48
|
+
var _MaintenanceService$u2 = MaintenanceService.useOilRecord(id, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59"), state.sorter),
|
|
49
|
+
recordRes = _MaintenanceService$u2.recordRes,
|
|
50
|
+
loading = _MaintenanceService$u2.loading;
|
|
51
|
+
var _MaintenanceService$u3 = MaintenanceService.useOilTypeSummary(id, startDate, endDate),
|
|
52
|
+
oilUseTypeSummary = _MaintenanceService$u3.oilUseTypeSummary,
|
|
53
|
+
loadingType = _MaintenanceService$u3.loading;
|
|
54
|
+
var columns = [{
|
|
55
|
+
title: translateLocaleText("t('vtxcarmodal.oilRefuelTime')"),
|
|
56
|
+
dataIndex: 'oilTime',
|
|
57
|
+
key: 'oilTime',
|
|
58
|
+
sorter: true,
|
|
59
|
+
width: '15%'
|
|
60
|
+
}, {
|
|
61
|
+
title: translateLocaleText("t('vtxcarmodal.oilRefuelPoint')"),
|
|
62
|
+
dataIndex: 'oilPoint',
|
|
63
|
+
key: 'oilPoint',
|
|
64
|
+
width: '15%'
|
|
65
|
+
}, {
|
|
66
|
+
title: translateLocaleText("t('vtxcarmodal.oilProduct')"),
|
|
67
|
+
dataIndex: 'oilType',
|
|
68
|
+
key: 'oilType',
|
|
69
|
+
width: '15%'
|
|
70
|
+
}, {
|
|
71
|
+
title: translateLocaleText("t('vtxcarmodal.oilRefuelAmountL')"),
|
|
72
|
+
dataIndex: 'oilCount',
|
|
73
|
+
key: 'oilCount',
|
|
74
|
+
align: 'right',
|
|
75
|
+
width: '15%'
|
|
76
|
+
}, {
|
|
77
|
+
title: translateLocaleText("t('vtxcarmodal.totalPriceYuan')"),
|
|
78
|
+
dataIndex: 'totalPrice',
|
|
79
|
+
key: 'totalPrice',
|
|
80
|
+
align: 'right',
|
|
81
|
+
width: '15%'
|
|
82
|
+
}, {
|
|
83
|
+
title: translateLocaleText("t('vtxcarmodal.mileageKm')"),
|
|
84
|
+
dataIndex: 'mileage',
|
|
85
|
+
key: 'mileage',
|
|
86
|
+
align: 'right',
|
|
87
|
+
width: '15%'
|
|
88
|
+
}];
|
|
89
|
+
var handleTableChange = function handleTableChange(sorter) {
|
|
90
|
+
setState({
|
|
91
|
+
sorter: "".concat(sorter.columnKey || 'oilTime', ",").concat(sorter.order === 'ascend' ? 'ASC' : 'DESC')
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
var tableProps = {
|
|
95
|
+
pagination: {
|
|
96
|
+
total: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.total) || 0,
|
|
97
|
+
defaultPageSize: 10
|
|
98
|
+
},
|
|
99
|
+
height: 360,
|
|
100
|
+
dataSource: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.rows) || [],
|
|
101
|
+
loading: loading,
|
|
102
|
+
handleTableChange: handleTableChange
|
|
103
|
+
};
|
|
104
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
105
|
+
className: 'vtx-car-water-use-wrap',
|
|
106
|
+
children: [/*#__PURE__*/_jsx(VmWrapper, {
|
|
107
|
+
title: translateLocaleText("t('vtxcarmodal.statisticalScope')"),
|
|
108
|
+
filterType: "rangePicker",
|
|
109
|
+
dateValue: [state.startDate, state.endDate],
|
|
110
|
+
filterChange: filterChange,
|
|
111
|
+
showContent: false,
|
|
112
|
+
style: {
|
|
113
|
+
height: 50
|
|
114
|
+
},
|
|
115
|
+
headerStyle: {
|
|
116
|
+
borderBottom: 'none'
|
|
117
|
+
},
|
|
118
|
+
extraStyle: {
|
|
119
|
+
left: 100,
|
|
120
|
+
right: 'unset'
|
|
121
|
+
}
|
|
122
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
123
|
+
className: "vtx-car-water-use-summary",
|
|
124
|
+
children: [/*#__PURE__*/_jsx(VmWrapper, {
|
|
125
|
+
title: translateLocaleText("t('vtxcarmodal.oilRefuelSummary')"),
|
|
126
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
127
|
+
className: "vtx-car-water-use-row",
|
|
128
|
+
children: [{
|
|
129
|
+
name: translateLocaleText("t('vtxcarmodal.oilRefuelCount')"),
|
|
130
|
+
unit: translateLocaleText("t('common.unit.times')"),
|
|
131
|
+
value: (oilUseSummary === null || oilUseSummary === void 0 ? void 0 : oilUseSummary.oilCount) || 0,
|
|
132
|
+
icon: 'jycs'
|
|
133
|
+
}, {
|
|
134
|
+
name: translateLocaleText("t('vtxcarmodal.oilRefuelAmount')"),
|
|
135
|
+
unit: 'L',
|
|
136
|
+
value: (oilUseSummary === null || oilUseSummary === void 0 ? void 0 : oilUseSummary.oilAmount) || 0,
|
|
137
|
+
icon: 'jyl'
|
|
138
|
+
}, {
|
|
139
|
+
name: translateLocaleText("t('vtxcarmodal.oilRefuelMoney')"),
|
|
140
|
+
unit: translateLocaleText("t('common.unit.yuan')"),
|
|
141
|
+
value: (oilUseSummary === null || oilUseSummary === void 0 ? void 0 : oilUseSummary.oilMoney) || 0,
|
|
142
|
+
icon: 'jyje'
|
|
143
|
+
}, {
|
|
144
|
+
name: translateLocaleText("t('vtxcarmodal.day2')"),
|
|
145
|
+
unit: 'km',
|
|
146
|
+
value: (oilUseSummary === null || oilUseSummary === void 0 ? void 0 : oilUseSummary.distance) || 0,
|
|
147
|
+
icon: 'xslc'
|
|
148
|
+
}, {
|
|
149
|
+
name: translateLocaleText("t('vtxcarmodal.fuelConsumptionPer100Km')"),
|
|
150
|
+
unit: 'L',
|
|
151
|
+
value: (oilUseSummary === null || oilUseSummary === void 0 ? void 0 : oilUseSummary.averageOilUse) || 0,
|
|
152
|
+
icon: 'bglyh'
|
|
153
|
+
}, {
|
|
154
|
+
name: translateLocaleText("t('vtxcarmodal.oilCost')"),
|
|
155
|
+
unit: translateLocaleText("t('common.unit.yuanPerKm')"),
|
|
156
|
+
value: (oilUseSummary === null || oilUseSummary === void 0 ? void 0 : oilUseSummary.oilCost) || 0,
|
|
157
|
+
icon: 'yhcb'
|
|
158
|
+
}].map(function (ele) {
|
|
159
|
+
return /*#__PURE__*/_jsx(VmFactor, {
|
|
160
|
+
name: translateLocaleText(ele.name),
|
|
161
|
+
unit: ele.unit,
|
|
162
|
+
value: ele.value,
|
|
163
|
+
img: require("../../../imgs/factor/".concat(ele.icon).concat(isDark ? '_dark' : '', ".png"))
|
|
164
|
+
}, ele.name);
|
|
165
|
+
})
|
|
166
|
+
})
|
|
167
|
+
}), /*#__PURE__*/_jsx(VmWrapper, {
|
|
168
|
+
title: translateLocaleText("t('vtxcarmodal.oilRefuelTimePreferenceAnalysis')"),
|
|
169
|
+
children: /*#__PURE__*/_jsx(VmBarCharts, {
|
|
170
|
+
name: translateLocaleText("t('vtxcarmodal.oilRefuelTimePreferenceAnalysis')"),
|
|
171
|
+
unit: translateLocaleText("t('common.unit.times')"),
|
|
172
|
+
loading: loadingType,
|
|
173
|
+
dataList: [{
|
|
174
|
+
name: translateLocaleText("t('vtxcarmodal.oilRefuelCount')"),
|
|
175
|
+
data: _.map(oilUseTypeSummary, 'value'),
|
|
176
|
+
color: 'geekblue'
|
|
177
|
+
}],
|
|
178
|
+
yAxisList: [{
|
|
179
|
+
key: '',
|
|
180
|
+
unit: translateLocaleText("t('common.unit.times')"),
|
|
181
|
+
name: ''
|
|
182
|
+
}],
|
|
183
|
+
otherProps: {
|
|
184
|
+
xAxis: {
|
|
185
|
+
type: 'value',
|
|
186
|
+
unit: translateLocaleText("t('common.unit.times')"),
|
|
187
|
+
name: translateLocaleText("t('common.unit.times')")
|
|
188
|
+
},
|
|
189
|
+
yAxis: {
|
|
190
|
+
type: 'category',
|
|
191
|
+
data: _.map(oilUseTypeSummary, 'name')
|
|
192
|
+
},
|
|
193
|
+
grid: {
|
|
194
|
+
left: '5%',
|
|
195
|
+
right: '5%',
|
|
196
|
+
bottom: '5%',
|
|
197
|
+
top: '5%',
|
|
198
|
+
containLabel: true
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
})
|
|
202
|
+
})]
|
|
203
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
204
|
+
style: {
|
|
205
|
+
flex: 1,
|
|
206
|
+
minHeight: 0
|
|
207
|
+
},
|
|
208
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
209
|
+
title: translateLocaleText("t('vtxcarmodal.oilRefuelDetail')"),
|
|
210
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
211
|
+
columns: columns,
|
|
212
|
+
rowKey: "id"
|
|
213
|
+
}, tableProps))
|
|
214
|
+
})
|
|
215
|
+
})]
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
export default OilUse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.vtx-car-water-use-wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
.vtx-car-water-use-summary {
|
|
8
|
+
height: 240px;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.vtx-car-water-use-row {
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-columns: repeat(3, 1fr);
|
|
17
|
+
gap: 40px 0;
|
|
18
|
+
}
|
|
19
|
+
}
|