@vtx/modals2 5.0.58 → 6.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -2
- package/lib/_components/vm-calendar/index.js +12 -7
- package/lib/_components/vm-calendar/style/index.js +0 -1
- package/lib/_components/vm-calendar/style/index.less +1 -0
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-custom/index.js +1 -1
- package/lib/_components/vm-empty/index.js +13 -11
- package/lib/_components/vm-factor/index.js +1 -0
- package/lib/_components/vm-factor/style/index.less +4 -0
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/index.js +9 -12
- package/lib/_components/vm-info-collection/style/index.js +0 -1
- package/lib/_components/vm-map/index.js +18 -0
- package/lib/_components/vm-pie-charts/index.js +1 -1
- package/lib/_components/vm-popover/index.js +11 -3
- package/lib/_components/vm-popover/index.less +10 -7
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +7 -6
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +3 -2
- package/lib/_components/vm-repair-maintain/RmRecord.js +9 -8
- package/lib/_components/vm-repair-maintain/RmType.js +5 -4
- package/lib/_components/vm-repair-maintain/index.js +4 -3
- package/lib/_components/vm-table/index.js +31 -24
- package/lib/_components/vm-tabs/index.js +26 -10
- package/lib/_components/vm-video/index.js +21 -21
- package/lib/_components/vm-wrapper/index.js +8 -4
- package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +1 -1
- package/lib/_util/http.js +4 -2
- package/lib/_util/setupDayjs.js +16 -0
- package/lib/hooks/useTranslation.js +219 -0
- package/lib/index.js +3 -0
- package/lib/locales/en.json +1377 -0
- package/lib/locales/zh-CN.json +1377 -0
- package/lib/style/index.less +0 -2
- package/lib/vtx-area-modal/api.js +5 -4
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -1
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +10 -9
- package/lib/vtx-area-modal/components/BaseInfo/index.js +14 -13
- package/lib/vtx-area-modal/index.js +1 -1
- package/lib/vtx-base-modal/Header/index.less +99 -98
- package/lib/vtx-base-modal/index.js +34 -3
- package/lib/vtx-base-modal/style/index.less +14 -1
- package/lib/vtx-car-modal/components/Info/index.js +37 -7
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +7 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +22 -21
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +26 -25
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +15 -14
- package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +22 -21
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +13 -12
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +13 -12
- package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +16 -11
- package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +10 -7
- package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +13 -12
- package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +16 -15
- package/lib/vtx-car-modal/content/Common/Maintenance/index.js +23 -18
- package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +5 -4
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +7 -6
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +17 -15
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +10 -9
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +8 -7
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +9 -8
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +11 -10
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +8 -7
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +13 -12
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +44 -41
- package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +26 -20
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +18 -17
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +23 -22
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +41 -40
- package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +13 -12
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +21 -20
- package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +8 -7
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +26 -25
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +15 -9
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +20 -19
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +13 -12
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +6 -5
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +28 -27
- package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +23 -22
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +10 -9
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +13 -12
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +18 -17
- package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +15 -14
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +8 -7
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +12 -11
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +4 -3
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +18 -17
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +2 -1
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +8 -7
- package/lib/vtx-car-modal/index.js +25 -24
- package/lib/vtx-car-modal/style/index.js +1 -3
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +28 -16
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +7 -2
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +4 -3
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +3 -2
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +2 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +29 -34
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +25 -19
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +4 -3
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +21 -17
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +8 -7
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +34 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +4 -3
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +7 -2
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +4 -3
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +33 -35
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +3 -2
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +2 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +23 -13
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +2 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +25 -17
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +3 -2
- package/lib/vtx-cc-cp-modal/index.js +2 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +11 -7
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +3 -2
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +13 -9
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +13 -9
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +7 -6
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +13 -9
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +11 -7
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +14 -13
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +13 -9
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +15 -11
- package/lib/vtx-cc-unit-modal/index.js +17 -10
- package/lib/vtx-cp-modal/api.js +6 -5
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +11 -10
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +4 -3
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +6 -5
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +9 -8
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +3 -2
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +10 -9
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +5 -4
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +10 -9
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +4 -3
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +6 -5
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +5 -4
- package/lib/vtx-cp-modal/components/SyInfo/index.js +20 -19
- package/lib/vtx-cp-modal/index.js +5 -4
- package/lib/vtx-default-modal/components/BaseInfo/index.js +2 -1
- package/lib/vtx-default-modal/index.js +4 -3
- package/lib/vtx-default-modal/style/index.js +0 -1
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +4 -3
- package/lib/vtx-device-modal/components/BaseInfo/index.js +13 -12
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +15 -14
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +21 -20
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +15 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-device-modal/index.js +6 -3
- package/lib/vtx-device-modal/style/index.less +32 -0
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +12 -7
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfo/index.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +12 -7
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +4 -3
- package/lib/vtx-df-modal/components/Calendar/index.js +7 -6
- package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +7 -6
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +10 -8
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +6 -5
- package/lib/vtx-df-modal/components/Metering/List.js +12 -10
- package/lib/vtx-df-modal/components/Metering/index.js +11 -10
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +10 -8
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +6 -6
- package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +12 -10
- package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +11 -10
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -1
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +4 -3
- package/lib/vtx-df-modal/components/WorkCondition/index.js +9 -4
- package/lib/vtx-df-modal/index.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +7 -6
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +5 -4
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +8 -7
- package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +6 -5
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +9 -8
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +5 -4
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +5 -4
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +13 -12
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +7 -5
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +14 -13
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +12 -11
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +20 -17
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +55 -52
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +3 -2
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +2 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +6 -5
- package/lib/vtx-housing-estate-modal/config.js +10 -10
- package/lib/vtx-housing-estate-modal/index.js +6 -5
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +15 -9
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +31 -25
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +32 -24
- package/lib/vtx-jzlj-df-tpd-modal/components/FactorList.js +38 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +16 -10
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +16 -8
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/index.js +8 -5
- package/lib/vtx-jzlj-df-tpd-modal/style/index.less +22 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +41 -40
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +16 -15
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +10 -8
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +26 -24
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +26 -24
- package/lib/vtx-jzlj-gcxm-modal/components/FactorList.js +41 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/index.js +10 -6
- package/lib/vtx-jzlj-gcxm-modal/style/index.less +45 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +11 -9
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +27 -25
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +26 -24
- package/lib/vtx-jzlj-xnc-modal/components/FactorList.js +41 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +12 -10
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +13 -11
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +24 -13
- package/lib/vtx-jzlj-xnc-modal/index.js +9 -5
- package/lib/vtx-jzlj-xnc-modal/style/index.less +46 -0
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +29 -12
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.less +21 -0
- package/lib/vtx-jzlj-ysqy-modal/index.js +6 -2
- package/lib/vtx-kh-modal/api2.js +10 -9
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +21 -23
- package/lib/vtx-kh-modal/components/Record/index.js +18 -17
- package/lib/vtx-kh-modal/index.js +3 -2
- package/lib/vtx-kh-modal/style/index.js +0 -1
- package/lib/vtx-qyry-modal/api.js +8 -7
- package/lib/vtx-qyry-modal/index.js +17 -16
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +18 -9
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +7 -2
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +4 -3
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +3 -2
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +2 -1
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +11 -7
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +4 -1
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +3 -2
- package/lib/vtx-restaurant-modal/components/Basic/index.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -2
- package/lib/vtx-restaurant-modal/components/Collection/index.js +5 -4
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +24 -23
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +11 -10
- package/lib/vtx-restaurant-modal/config.js +94 -95
- package/lib/vtx-restaurant-modal/index.js +16 -7
- package/lib/vtx-road-modal/api.js +14 -13
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +6 -2
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +26 -21
- package/lib/vtx-road-modal/components/BaseInfo/index.js +7 -5
- package/lib/vtx-road-modal/components/BaseInfo/index.less +37 -0
- package/lib/vtx-road-modal/components/Calendar/index.js +5 -4
- package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +6 -3
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +25 -20
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +5 -3
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +42 -0
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +7 -6
- package/lib/vtx-road-modal/components/LaneStatistical/index.js +37 -24
- package/lib/vtx-road-modal/components/LaneStatistical/index.less +8 -0
- package/lib/vtx-road-modal/components/Statistical/index.js +36 -23
- package/lib/vtx-road-modal/components/Statistical/index.less +40 -32
- package/lib/vtx-road-modal/index.js +30 -21
- package/lib/vtx-road-modal/style/index.js +1 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +7 -6
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +4 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +8 -7
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +6 -5
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +9 -8
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +4 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +13 -12
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +14 -12
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +14 -13
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +12 -11
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +11 -10
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +13 -12
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +2 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +2 -1
- package/lib/vtx-sdyd-tfd-modal/config.js +6 -6
- package/lib/vtx-sdyd-tfd-modal/index.js +7 -6
- package/lib/vtx-shxq-modal/api.js +9 -8
- package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +8 -7
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +12 -11
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +11 -10
- package/lib/vtx-shxq-modal/components/Tfd/index.js +7 -6
- package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +2 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +4 -3
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +6 -5
- package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +15 -14
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +10 -9
- package/lib/vtx-shxq-modal/index.js +6 -5
- package/lib/vtx-staff-modal/api.js +8 -7
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +6 -5
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +8 -7
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +3 -2
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +5 -4
- package/lib/vtx-staff-modal/components/Attendance/Record.js +22 -20
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +8 -7
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +13 -11
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +11 -10
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +7 -6
- package/lib/vtx-staff-modal/components/Calendar/index.js +8 -7
- package/lib/vtx-staff-modal/components/Equipment/index.js +23 -22
- package/lib/vtx-staff-modal/index.js +6 -5
- package/lib/vtx-tfd-modal/api.js +7 -6
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +6 -5
- package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +4 -3
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +17 -17
- package/lib/vtx-tfd-modal/index.js +4 -4
- package/lib/vtx-wr-modal/components/Appraise/index.js +18 -18
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +15 -16
- package/lib/vtx-wr-modal/components/Base/Ptss.js +17 -16
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +12 -9
- package/lib/vtx-wr-modal/components/Base/index.js +14 -14
- package/lib/vtx-wr-modal/components/Build/index.js +6 -5
- package/lib/vtx-wr-modal/components/File/index.js +12 -15
- package/lib/vtx-wr-modal/components/File/index.less +8 -3
- package/lib/vtx-wr-modal/components/Score/index.js +20 -27
- package/lib/vtx-wr-modal/components/Score/index.less +49 -26
- package/lib/vtx-wr-modal/index.js +5 -2
- package/lib/vtx-wr-modal/style/index.js +0 -1
- package/lib/vtx-zf-modal/components/Base/index.js +37 -36
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +22 -21
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +9 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +27 -27
- package/lib/vtx-zf-modal/components/File/index.js +15 -14
- package/lib/vtx-zf-modal/components/Process/index.js +17 -17
- package/lib/vtx-zf-modal/components/Record/index.js +9 -8
- package/lib/vtx-zf-modal/components/Right/index.js +7 -7
- package/lib/vtx-zf-modal/style/index.js +0 -1
- package/lib/vtx-zg-modal/api.js +13 -12
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +52 -35
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +48 -1
- package/lib/vtx-zg-modal/index.js +2 -1
- package/lib/vtx-zzz-modal/index.js +2 -1
- package/package.json +92 -81
|
@@ -18,6 +18,7 @@ import dayjs from 'dayjs';
|
|
|
18
18
|
import _, { keyBy } from 'lodash';
|
|
19
19
|
import np from 'number-precision';
|
|
20
20
|
import http from "../_util/http";
|
|
21
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
21
22
|
var workTypeColors = ['blue', 'green', 'yellow', 'purple', 'orange'];
|
|
22
23
|
export var BaseService = {
|
|
23
24
|
useBaseInfo: function useBaseInfo(id, hasRule) {
|
|
@@ -45,27 +46,27 @@ export var BaseService = {
|
|
|
45
46
|
return item.key === 'tenderId' && item.enabled === true;
|
|
46
47
|
}) : true;
|
|
47
48
|
var baseInfo = (_ref = [{
|
|
48
|
-
label: '
|
|
49
|
+
label: translateLocaleText("t('vtxroadmodal.managementUnit')"),
|
|
49
50
|
key: 'manageUnitName',
|
|
50
51
|
value: info === null || info === void 0 ? void 0 : info.manageUnitName
|
|
51
52
|
}, {
|
|
52
|
-
label: '
|
|
53
|
+
label: translateLocaleText("t('vtxroadmodal.length')"),
|
|
53
54
|
key: 'roadSpace',
|
|
54
55
|
value: "".concat((info === null || info === void 0 ? void 0 : info.roadSpace) || '0', "m")
|
|
55
56
|
}, {
|
|
56
|
-
label: '
|
|
57
|
+
label: translateLocaleText("t('vtxroadmodal.administrativeDivision')"),
|
|
57
58
|
key: 'divisionName',
|
|
58
59
|
value: info === null || info === void 0 ? void 0 : info.divisionName
|
|
59
60
|
}, {
|
|
60
|
-
label: '
|
|
61
|
+
label: translateLocaleText("t('vtxroadmodal.m')"),
|
|
61
62
|
key: 'roadWidth',
|
|
62
63
|
value: "".concat((info === null || info === void 0 ? void 0 : info.roadWidth) || '0', "m")
|
|
63
64
|
}, showbidSection && {
|
|
64
|
-
label: '
|
|
65
|
+
label: translateLocaleText("t('vtxroadmodal.bidSection')"),
|
|
65
66
|
key: 'bidSectionName',
|
|
66
67
|
value: info === null || info === void 0 ? void 0 : info.bidSectionName
|
|
67
68
|
}, {
|
|
68
|
-
label: '
|
|
69
|
+
label: translateLocaleText("t('vtxroadmodal.unit')"),
|
|
69
70
|
key: 'companyName',
|
|
70
71
|
value: info === null || info === void 0 ? void 0 : info.companyName
|
|
71
72
|
}]) === null || _ref === void 0 ? void 0 : _ref.filter(Boolean);
|
|
@@ -303,31 +304,31 @@ export var LaneService = {
|
|
|
303
304
|
return item.key === 'tenderId' && item.enabled === true;
|
|
304
305
|
}) : true;
|
|
305
306
|
var baseInfo = (_ref4 = [{
|
|
306
|
-
label: '
|
|
307
|
+
label: translateLocaleText("t('vtxroadmodal.type')"),
|
|
307
308
|
key: 'roadTypeName',
|
|
308
309
|
value: info === null || info === void 0 ? void 0 : info.roadTypeName
|
|
309
310
|
}, {
|
|
310
|
-
label: '
|
|
311
|
+
label: translateLocaleText("t('vtxroadmodal.level')"),
|
|
311
312
|
key: 'levelName',
|
|
312
313
|
value: info === null || info === void 0 ? void 0 : info.levelName
|
|
313
314
|
}, showbidSection && {
|
|
314
|
-
label: '
|
|
315
|
+
label: translateLocaleText("t('vtxroadmodal.bidSection')"),
|
|
315
316
|
key: 'bidSectionName',
|
|
316
317
|
value: info === null || info === void 0 ? void 0 : info.bidSectionName
|
|
317
318
|
}, {
|
|
318
|
-
label: '
|
|
319
|
+
label: translateLocaleText("t('vtxroadmodal.unit')"),
|
|
319
320
|
key: 'companyName',
|
|
320
321
|
value: info === null || info === void 0 ? void 0 : info.companyName
|
|
321
322
|
}, {
|
|
322
|
-
label: '
|
|
323
|
+
label: translateLocaleText("t('vtxroadmodal.length2')"),
|
|
323
324
|
key: 'roadSpace',
|
|
324
325
|
value: "".concat((info === null || info === void 0 ? void 0 : info.roadSpace) || '0', "m")
|
|
325
326
|
}, {
|
|
326
|
-
label: '
|
|
327
|
+
label: translateLocaleText("t('vtxroadmodal.m2')"),
|
|
327
328
|
key: 'roadWidth',
|
|
328
329
|
value: "".concat((info === null || info === void 0 ? void 0 : info.roadWidth) || '0', "m")
|
|
329
330
|
}, {
|
|
330
|
-
label: '
|
|
331
|
+
label: translateLocaleText("t('vtxroadmodal.areaM')"),
|
|
331
332
|
key: 'roadArea',
|
|
332
333
|
value: "".concat((info === null || info === void 0 ? void 0 : info.roadArea) || '0', "m\xB2")
|
|
333
334
|
}]) === null || _ref4 === void 0 ? void 0 : _ref4.filter(Boolean);
|
|
@@ -2,6 +2,7 @@ import classnames from 'classnames';
|
|
|
2
2
|
import { isEmpty } from 'lodash';
|
|
3
3
|
import { VmEmpty } from "../../../_components";
|
|
4
4
|
import useSettings from "../../../_hooks/useSettings";
|
|
5
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
5
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
7
|
var Rules = function Rules(_ref) {
|
|
7
8
|
var rules = _ref.rules,
|
|
@@ -19,7 +20,10 @@ var Rules = function Rules(_ref) {
|
|
|
19
20
|
className: "vtx-road-rule-wrap-item-wrap",
|
|
20
21
|
children: [/*#__PURE__*/_jsx("div", {
|
|
21
22
|
className: classnames('vtx-road-rule-wrap-work', workTypeColorMap[item.workTypeName]),
|
|
22
|
-
children:
|
|
23
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
24
|
+
title: item.workTypeName,
|
|
25
|
+
children: item.workTypeName || '--'
|
|
26
|
+
})
|
|
23
27
|
}), /*#__PURE__*/_jsxs("div", {
|
|
24
28
|
children: [/*#__PURE__*/_jsx("span", {
|
|
25
29
|
className: classnames('vtx-road-rule-wrap-number', workTypeColorMap[item.workTypeName], {
|
|
@@ -30,7 +34,7 @@ var Rules = function Rules(_ref) {
|
|
|
30
34
|
className: classnames('vtx-road-rule-wrap-unit', workTypeColorMap[item.workTypeName], {
|
|
31
35
|
dark: isDark
|
|
32
36
|
}),
|
|
33
|
-
children: "
|
|
37
|
+
children: translateLocaleText("t('vtxroadmodal.tripUnit')")
|
|
34
38
|
})]
|
|
35
39
|
}), /*#__PURE__*/_jsx("div", {
|
|
36
40
|
className: 'vtx-road-rule-wrap-time',
|
|
@@ -19,6 +19,7 @@ import { useState } from 'react';
|
|
|
19
19
|
import { VmEmpty, VmProgress, VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
20
20
|
import useSettings from "../../../_hooks/useSettings";
|
|
21
21
|
import { BaseService } from "../../api";
|
|
22
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
22
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
24
|
var Work = function Work(props) {
|
|
24
25
|
var id = props.id,
|
|
@@ -54,7 +55,7 @@ var Work = function Work(props) {
|
|
|
54
55
|
return item.workType !== 'ALL';
|
|
55
56
|
});
|
|
56
57
|
var columns = [{
|
|
57
|
-
title: '
|
|
58
|
+
title: translateLocaleText("t('vtxroadmodal.plateNumber')"),
|
|
58
59
|
dataIndex: 'carCode',
|
|
59
60
|
key: 'carCode',
|
|
60
61
|
ellipsis: true,
|
|
@@ -66,7 +67,7 @@ var Work = function Work(props) {
|
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
}, {
|
|
69
|
-
title: '
|
|
70
|
+
title: translateLocaleText("t('vtxroadmodal.type2')"),
|
|
70
71
|
dataIndex: 'workTypeName',
|
|
71
72
|
key: 'workTypeName',
|
|
72
73
|
width: 80,
|
|
@@ -78,7 +79,7 @@ var Work = function Work(props) {
|
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
81
|
}, {
|
|
81
|
-
title: '
|
|
82
|
+
title: translateLocaleText("t('vtxroadmodal.hours')"),
|
|
82
83
|
dataIndex: 'ruleStartTime',
|
|
83
84
|
key: 'ruleStartTime',
|
|
84
85
|
width: 140,
|
|
@@ -87,21 +88,23 @@ var Work = function Work(props) {
|
|
|
87
88
|
return text ? "".concat(dayjs(text).format('HH:mm:ss'), "~").concat(dayjs(record.ruleEndTime).format('HH:mm:ss')) : '-';
|
|
88
89
|
}
|
|
89
90
|
}, {
|
|
90
|
-
title: '
|
|
91
|
+
title: translateLocaleText("t('vtxroadmodal.workTrips')"),
|
|
91
92
|
dataIndex: 'workCount',
|
|
92
93
|
key: 'workCount',
|
|
94
|
+
ellipsis: true,
|
|
93
95
|
width: 80,
|
|
94
96
|
align: 'right'
|
|
95
97
|
}, {
|
|
96
|
-
title: '
|
|
98
|
+
title: translateLocaleText("t('vtxroadmodal.km')"),
|
|
97
99
|
dataIndex: 'realWorkMileage',
|
|
98
100
|
key: 'realWorkMileage',
|
|
99
101
|
width: 110,
|
|
102
|
+
ellipsis: true,
|
|
100
103
|
align: 'right'
|
|
101
104
|
}, {
|
|
102
105
|
title: /*#__PURE__*/_jsxs(Space, {
|
|
103
|
-
children: ["
|
|
104
|
-
title: "
|
|
106
|
+
children: [translateLocaleText("t('vtxroadmodal.km2')"), /*#__PURE__*/_jsx(Tooltip, {
|
|
107
|
+
title: translateLocaleText("t('vtxroadmodal.lengthRuleHoursType')"),
|
|
105
108
|
children: /*#__PURE__*/_jsx(QuestionCircleOutlined, {})
|
|
106
109
|
})]
|
|
107
110
|
}),
|
|
@@ -110,7 +113,7 @@ var Work = function Work(props) {
|
|
|
110
113
|
width: 160,
|
|
111
114
|
align: 'right'
|
|
112
115
|
}, {
|
|
113
|
-
title: '
|
|
116
|
+
title: translateLocaleText("t('common.action')"),
|
|
114
117
|
dataIndex: 'track',
|
|
115
118
|
key: 'track',
|
|
116
119
|
width: 80,
|
|
@@ -126,12 +129,12 @@ var Work = function Work(props) {
|
|
|
126
129
|
}
|
|
127
130
|
var src = "".concat(prefix, "/carHistory/#/zyqsHistory?carId=").concat(record.carId, "&theme=").concat(theme === 'blue' ? 'dark' : theme, "&startTime=").concat(dayjs(date).format('YYYY-MM-DD 00:00:00'), "&endTime=").concat(dayjs(date).format('YYYY-MM-DD 23:59:59'), "&").concat(location.href.split('?')[1], "&roadId=").concat(record.roadId);
|
|
128
131
|
setIframeModalInfo({
|
|
129
|
-
title: '
|
|
132
|
+
title: translateLocaleText("t('vtxroadmodal.vehicleTrack')"),
|
|
130
133
|
visible: true,
|
|
131
134
|
src: src
|
|
132
135
|
});
|
|
133
136
|
},
|
|
134
|
-
children: "
|
|
137
|
+
children: translateLocaleText("t('vtxroadmodal.view')")
|
|
135
138
|
});
|
|
136
139
|
}
|
|
137
140
|
}];
|
|
@@ -157,7 +160,7 @@ var Work = function Work(props) {
|
|
|
157
160
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
158
161
|
filterType: "datePicker",
|
|
159
162
|
dateValue: day,
|
|
160
|
-
title: "
|
|
163
|
+
title: translateLocaleText("t('vtxroadmodal.workSummary')"),
|
|
161
164
|
filterChange: setDay,
|
|
162
165
|
disabledDate: function disabledDate(current) {
|
|
163
166
|
return current && current > dayjs().endOf('day');
|
|
@@ -184,7 +187,7 @@ var Work = function Work(props) {
|
|
|
184
187
|
className: "all-rate-wrap",
|
|
185
188
|
children: /*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
186
189
|
rate: allWorkInfo.rate,
|
|
187
|
-
name: '
|
|
190
|
+
name: translateLocaleText("t('vtxroadmodal.complete')")
|
|
188
191
|
})
|
|
189
192
|
}), /*#__PURE__*/_jsxs("div", {
|
|
190
193
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
@@ -196,7 +199,8 @@ var Work = function Work(props) {
|
|
|
196
199
|
}), /*#__PURE__*/_jsxs("div", {
|
|
197
200
|
children: [/*#__PURE__*/_jsx("span", {
|
|
198
201
|
className: "left-info-label",
|
|
199
|
-
|
|
202
|
+
title: translateLocaleText("t('vtxroadmodal.planAccountingMileage')"),
|
|
203
|
+
children: translateLocaleText("t('vtxroadmodal.planAccountingMileage')")
|
|
200
204
|
}), /*#__PURE__*/_jsxs("span", {
|
|
201
205
|
className: classnames('left-info-value', {
|
|
202
206
|
dark: isDark
|
|
@@ -206,7 +210,7 @@ var Work = function Work(props) {
|
|
|
206
210
|
className: classnames('left-info-unit', {
|
|
207
211
|
dark: isDark
|
|
208
212
|
}),
|
|
209
|
-
children: "
|
|
213
|
+
children: translateLocaleText("t('vtxroadmodal.kilometerUnit')")
|
|
210
214
|
})]
|
|
211
215
|
})]
|
|
212
216
|
}), /*#__PURE__*/_jsxs("div", {
|
|
@@ -218,7 +222,7 @@ var Work = function Work(props) {
|
|
|
218
222
|
}), /*#__PURE__*/_jsxs("div", {
|
|
219
223
|
children: [/*#__PURE__*/_jsx("span", {
|
|
220
224
|
className: "left-info-label",
|
|
221
|
-
children: "
|
|
225
|
+
children: translateLocaleText("t('vtxroadmodal.yesTimes')")
|
|
222
226
|
}), /*#__PURE__*/_jsxs("span", {
|
|
223
227
|
className: classnames('left-info-value', {
|
|
224
228
|
dark: isDark
|
|
@@ -228,7 +232,7 @@ var Work = function Work(props) {
|
|
|
228
232
|
className: classnames('left-info-unit', {
|
|
229
233
|
dark: isDark
|
|
230
234
|
}),
|
|
231
|
-
children: "
|
|
235
|
+
children: translateLocaleText("t('vtxroadmodal.tripUnit')")
|
|
232
236
|
})]
|
|
233
237
|
})]
|
|
234
238
|
})]
|
|
@@ -270,7 +274,8 @@ var Work = function Work(props) {
|
|
|
270
274
|
children: /*#__PURE__*/_jsxs("div", {
|
|
271
275
|
children: [/*#__PURE__*/_jsx("span", {
|
|
272
276
|
className: "left-info-label",
|
|
273
|
-
|
|
277
|
+
title: translateLocaleText("t('vtxroadmodal.planAccountingMileage')"),
|
|
278
|
+
children: translateLocaleText("t('vtxroadmodal.planAccountingMileage')")
|
|
274
279
|
}), /*#__PURE__*/_jsxs("span", {
|
|
275
280
|
className: classnames('left-info-value', {
|
|
276
281
|
dark: isDark
|
|
@@ -280,7 +285,7 @@ var Work = function Work(props) {
|
|
|
280
285
|
className: classnames('left-info-unit', {
|
|
281
286
|
dark: isDark
|
|
282
287
|
}),
|
|
283
|
-
children: "
|
|
288
|
+
children: translateLocaleText("t('vtxroadmodal.kilometerUnit')")
|
|
284
289
|
})]
|
|
285
290
|
})
|
|
286
291
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -288,7 +293,7 @@ var Work = function Work(props) {
|
|
|
288
293
|
children: /*#__PURE__*/_jsxs("div", {
|
|
289
294
|
children: [/*#__PURE__*/_jsx("span", {
|
|
290
295
|
className: "left-info-label",
|
|
291
|
-
children: "
|
|
296
|
+
children: translateLocaleText("t('vtxroadmodal.yesTimes')")
|
|
292
297
|
}), /*#__PURE__*/_jsxs("span", {
|
|
293
298
|
className: classnames('left-info-value', {
|
|
294
299
|
dark: isDark
|
|
@@ -298,7 +303,7 @@ var Work = function Work(props) {
|
|
|
298
303
|
className: classnames('left-info-unit', {
|
|
299
304
|
dark: isDark
|
|
300
305
|
}),
|
|
301
|
-
children: "
|
|
306
|
+
children: translateLocaleText("t('vtxroadmodal.tripUnit')")
|
|
302
307
|
})]
|
|
303
308
|
})
|
|
304
309
|
})]
|
|
@@ -314,7 +319,7 @@ var Work = function Work(props) {
|
|
|
314
319
|
minHeight: 0
|
|
315
320
|
},
|
|
316
321
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
317
|
-
title: "
|
|
322
|
+
title: translateLocaleText("t('vtxroadmodal.workDetails')"),
|
|
318
323
|
children: /*#__PURE__*/_jsx("div", {
|
|
319
324
|
style: {
|
|
320
325
|
width: '100%',
|
|
@@ -13,6 +13,7 @@ import "./index.less";
|
|
|
13
13
|
import Rules from "./Rules";
|
|
14
14
|
import Work from "./Work";
|
|
15
15
|
import { BaseService } from "../../api";
|
|
16
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
16
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
18
|
var BaseInfo = function BaseInfo(_ref) {
|
|
18
19
|
var _info$lngLats, _jcssInfo$geometryInf;
|
|
@@ -38,17 +39,18 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
38
39
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
39
40
|
flex: '400px',
|
|
40
41
|
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
41
|
-
title: '
|
|
42
|
+
title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
|
|
42
43
|
children: [/*#__PURE__*/_jsx(VmInfoCollection, {
|
|
43
44
|
data: [].concat(_toConsumableArray(baseInfo), [{
|
|
44
|
-
label: '
|
|
45
|
+
label: translateLocaleText("t('vtxroadmodal.level')"),
|
|
45
46
|
key: 'levelName',
|
|
46
47
|
value: info === null || info === void 0 ? void 0 : info.levelName
|
|
47
48
|
}, !getUrlParam('hideType') && {
|
|
48
|
-
label: '
|
|
49
|
+
label: translateLocaleText("t('vtxroadmodal.type')"),
|
|
49
50
|
key: 'roadTypeName',
|
|
50
51
|
value: info === null || info === void 0 ? void 0 : info.roadTypeName
|
|
51
|
-
}])
|
|
52
|
+
}]),
|
|
53
|
+
ellipsis: true
|
|
52
54
|
}), /*#__PURE__*/_jsx("div", {
|
|
53
55
|
style: {
|
|
54
56
|
height: 194
|
|
@@ -59,7 +61,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
59
61
|
geometryType: 'polyline'
|
|
60
62
|
})
|
|
61
63
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
62
|
-
title: '
|
|
64
|
+
title: translateLocaleText("t('vtxroadmodal.rule')"),
|
|
63
65
|
border: false
|
|
64
66
|
}), /*#__PURE__*/_jsx(Rules, {
|
|
65
67
|
rules: rules,
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
&-time {
|
|
29
29
|
color: var(--time-color);
|
|
30
30
|
font-size: 12px;
|
|
31
|
+
flex-shrink: 0;
|
|
31
32
|
}
|
|
32
33
|
&-number,
|
|
33
34
|
&-unit {
|
|
@@ -76,6 +77,16 @@
|
|
|
76
77
|
padding: 0 8px;
|
|
77
78
|
height: 24px;
|
|
78
79
|
border: 1px solid;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
max-width: 120px;
|
|
82
|
+
|
|
83
|
+
> span {
|
|
84
|
+
display: block;
|
|
85
|
+
max-width: 100%;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
text-overflow: ellipsis;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
}
|
|
79
90
|
&.blue {
|
|
80
91
|
color: var(--blue-color);
|
|
81
92
|
border-color: var(--blue-color);
|
|
@@ -124,6 +135,12 @@
|
|
|
124
135
|
}
|
|
125
136
|
.left-info-label {
|
|
126
137
|
color: var(--vm-calendar-cell-font-color);
|
|
138
|
+
display: inline-block;
|
|
139
|
+
max-width: 128px;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
text-overflow: ellipsis;
|
|
142
|
+
vertical-align: bottom;
|
|
143
|
+
white-space: nowrap;
|
|
127
144
|
}
|
|
128
145
|
.left-info-value,
|
|
129
146
|
.left-info-unit {
|
|
@@ -175,6 +192,10 @@
|
|
|
175
192
|
}
|
|
176
193
|
.work-type {
|
|
177
194
|
font-size: 14px;
|
|
195
|
+
max-width: 120px;
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
text-overflow: ellipsis;
|
|
198
|
+
white-space: nowrap;
|
|
178
199
|
}
|
|
179
200
|
.work-rate {
|
|
180
201
|
color: var(--vm-calendar-cell-font-color);
|
|
@@ -219,3 +240,19 @@
|
|
|
219
240
|
}
|
|
220
241
|
}
|
|
221
242
|
}
|
|
243
|
+
|
|
244
|
+
.vtx-road-info-right-wrap,
|
|
245
|
+
.vtx-road-rule-wrap {
|
|
246
|
+
.info-line,
|
|
247
|
+
.info-label-b,
|
|
248
|
+
.value {
|
|
249
|
+
min-width: 0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.info-label-b,
|
|
253
|
+
.value {
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
text-overflow: ellipsis;
|
|
256
|
+
white-space: nowrap;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
@@ -20,6 +20,7 @@ import darkWorkMileageIcon from "../../imgs/calendar/dark_green_mileage.png";
|
|
|
20
20
|
import darkMileageIcon from "../../imgs/calendar/dark_mileage.png";
|
|
21
21
|
import lightWorkMileageIcon from "../../imgs/calendar/green_mileage.png";
|
|
22
22
|
import lightMileageIcon from "../../imgs/calendar/mileage.png";
|
|
23
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
23
24
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
25
|
var Calendar = function Calendar(_ref) {
|
|
25
26
|
var id = _ref.id;
|
|
@@ -79,7 +80,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
79
80
|
});
|
|
80
81
|
};
|
|
81
82
|
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
82
|
-
title: '
|
|
83
|
+
title: translateLocaleText("t('vtxroadmodal.workCalendar')"),
|
|
83
84
|
filterType: "monthPicker",
|
|
84
85
|
dateValue: month,
|
|
85
86
|
filterChange: setMonth,
|
|
@@ -89,11 +90,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
89
90
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
90
91
|
className: 'vtx-road-calendar-head',
|
|
91
92
|
children: [[{
|
|
92
|
-
name: '
|
|
93
|
+
name: translateLocaleText("t('vtxroadmodal.km3')"),
|
|
93
94
|
img: mileageIcon,
|
|
94
95
|
type: 'blue'
|
|
95
96
|
}, {
|
|
96
|
-
name: '
|
|
97
|
+
name: translateLocaleText("t('vtxroadmodal.km4')"),
|
|
97
98
|
img: workMileageIcon,
|
|
98
99
|
type: 'green'
|
|
99
100
|
}].map(function (item, index) {
|
|
@@ -102,7 +103,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
102
103
|
}), index);
|
|
103
104
|
}), /*#__PURE__*/_jsxs(Space, {
|
|
104
105
|
children: [/*#__PURE__*/_jsx("div", {
|
|
105
|
-
children: "
|
|
106
|
+
children: translateLocaleText("t('vtxroadmodal.yesComplete')")
|
|
106
107
|
}), /*#__PURE__*/_jsx("div", {
|
|
107
108
|
className: 'vtx-road-calendar-complete-legend',
|
|
108
109
|
style: {
|
|
@@ -22,9 +22,8 @@ var Rules = function Rules(_ref) {
|
|
|
22
22
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
23
23
|
className: "vtx-road-lane-rule-item-top",
|
|
24
24
|
children: [/*#__PURE__*/_jsx("div", {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
25
|
+
className: "vtx-road-lane-rule-item-name",
|
|
26
|
+
title: item.facilityTypeName,
|
|
28
27
|
children: item.facilityTypeName
|
|
29
28
|
}), /*#__PURE__*/_jsx(VmTag, {
|
|
30
29
|
color: workTypeColorMap[item.workTypeName],
|
|
@@ -38,6 +37,8 @@ var Rules = function Rules(_ref) {
|
|
|
38
37
|
width: 16,
|
|
39
38
|
height: 16
|
|
40
39
|
}), /*#__PURE__*/_jsx("div", {
|
|
40
|
+
className: "vtx-road-lane-rule-item-text",
|
|
41
|
+
title: item.workCarCode,
|
|
41
42
|
children: item.workCarCode
|
|
42
43
|
}), /*#__PURE__*/_jsx("div", {
|
|
43
44
|
className: "vtx-road-lane-rule-item-bottom-line"
|
|
@@ -47,6 +48,8 @@ var Rules = function Rules(_ref) {
|
|
|
47
48
|
width: 16,
|
|
48
49
|
height: 16
|
|
49
50
|
}), /*#__PURE__*/_jsx("div", {
|
|
51
|
+
className: "vtx-road-lane-rule-item-text",
|
|
52
|
+
title: item.driverName,
|
|
50
53
|
children: item.driverName
|
|
51
54
|
})]
|
|
52
55
|
})]
|
|
@@ -18,6 +18,7 @@ import { useMemo, useState } from 'react';
|
|
|
18
18
|
import { VmBarCharts, VmEmpty, VmProgress, VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
19
19
|
import useSettings from "../../../_hooks/useSettings";
|
|
20
20
|
import { LaneService } from "../../api";
|
|
21
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
21
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
23
|
export var getPercentInfo = function getPercentInfo(percent) {
|
|
23
24
|
var colorList = ['#D9D9D9', '#D9D9D9'];
|
|
@@ -99,32 +100,32 @@ var Work = function Work(props) {
|
|
|
99
100
|
});
|
|
100
101
|
};
|
|
101
102
|
var columns = [{
|
|
102
|
-
title: '
|
|
103
|
+
title: translateLocaleText("t('vtxroadmodal.plateNumber')"),
|
|
103
104
|
dataIndex: 'workCarCode',
|
|
104
105
|
key: 'workCarCode',
|
|
105
106
|
ellipsis: true,
|
|
106
107
|
width: 90,
|
|
107
108
|
fixed: 'left'
|
|
108
109
|
}, {
|
|
109
|
-
title: '
|
|
110
|
+
title: translateLocaleText("t('vtxroadmodal.type3')"),
|
|
110
111
|
dataIndex: 'carClassesName',
|
|
111
112
|
key: 'carClassesName',
|
|
112
113
|
width: 80,
|
|
113
114
|
ellipsis: true
|
|
114
115
|
}, {
|
|
115
|
-
title: '
|
|
116
|
+
title: translateLocaleText("t('vtxroadmodal.type4')"),
|
|
116
117
|
dataIndex: 'facilityTypeName',
|
|
117
118
|
key: 'facilityTypeName',
|
|
118
119
|
width: 100,
|
|
119
120
|
ellipsis: true
|
|
120
121
|
}, {
|
|
121
|
-
title: '
|
|
122
|
+
title: translateLocaleText("t('vtxroadmodal.workDriver')"),
|
|
122
123
|
dataIndex: 'driverName',
|
|
123
124
|
key: 'driverName',
|
|
124
125
|
width: 100,
|
|
125
126
|
ellipsis: true
|
|
126
127
|
}, {
|
|
127
|
-
title: '
|
|
128
|
+
title: translateLocaleText("t('vtxroadmodal.hours')"),
|
|
128
129
|
dataIndex: 'startTime',
|
|
129
130
|
key: 'startTime',
|
|
130
131
|
width: 120,
|
|
@@ -133,7 +134,7 @@ var Work = function Work(props) {
|
|
|
133
134
|
return "".concat(text.slice(0, 5), " ~ ").concat(record.endTime.slice(0, 5));
|
|
134
135
|
}
|
|
135
136
|
}, {
|
|
136
|
-
title: '
|
|
137
|
+
title: translateLocaleText("t('vtxroadmodal.type2')"),
|
|
137
138
|
dataIndex: 'workTypeName',
|
|
138
139
|
key: 'workTypeName',
|
|
139
140
|
width: 80,
|
|
@@ -145,21 +146,21 @@ var Work = function Work(props) {
|
|
|
145
146
|
});
|
|
146
147
|
}
|
|
147
148
|
}, {
|
|
148
|
-
title: '
|
|
149
|
+
title: translateLocaleText("t('vtxroadmodal.workTrips')"),
|
|
149
150
|
dataIndex: 'workCount',
|
|
150
151
|
key: 'workCount',
|
|
151
152
|
width: 90,
|
|
152
153
|
ellipsis: true,
|
|
153
154
|
align: 'right'
|
|
154
155
|
}, {
|
|
155
|
-
title: '
|
|
156
|
+
title: translateLocaleText("t('vtxroadmodal.km5')"),
|
|
156
157
|
dataIndex: 'workMileage',
|
|
157
158
|
key: 'workMileage',
|
|
158
159
|
width: 130,
|
|
159
160
|
ellipsis: true,
|
|
160
161
|
align: 'right'
|
|
161
162
|
}, {
|
|
162
|
-
title: '
|
|
163
|
+
title: translateLocaleText("t('vtxroadmodal.complete')"),
|
|
163
164
|
dataIndex: 'completeRate',
|
|
164
165
|
key: 'completeRate',
|
|
165
166
|
width: 90,
|
|
@@ -169,7 +170,7 @@ var Work = function Work(props) {
|
|
|
169
170
|
return "".concat(text, "%");
|
|
170
171
|
}
|
|
171
172
|
}, {
|
|
172
|
-
title: '
|
|
173
|
+
title: translateLocaleText("t('vtxroadmodal.workQuality')"),
|
|
173
174
|
dataIndex: 'workQuality',
|
|
174
175
|
key: 'workQuality',
|
|
175
176
|
width: 90,
|
|
@@ -204,7 +205,7 @@ var Work = function Work(props) {
|
|
|
204
205
|
}) : '-';
|
|
205
206
|
}
|
|
206
207
|
}, {
|
|
207
|
-
title: '
|
|
208
|
+
title: translateLocaleText("t('common.action')"),
|
|
208
209
|
dataIndex: 'track',
|
|
209
210
|
key: 'track',
|
|
210
211
|
width: 100,
|
|
@@ -221,12 +222,12 @@ var Work = function Work(props) {
|
|
|
221
222
|
}
|
|
222
223
|
var src = "".concat(prefix, "/carHistory/#/zyqsLaneHistory?carId=").concat(record.workCarId, "&theme=").concat(theme === 'blue' ? 'dark' : theme, "&startTime=").concat(dayjs(date).format('YYYY-MM-DD 00:00:00'), "&endTime=").concat(dayjs(date).format('YYYY-MM-DD 23:59:59'), "&").concat(location.href.split('?')[1]);
|
|
223
224
|
setIframeModalInfo({
|
|
224
|
-
title: '
|
|
225
|
+
title: translateLocaleText("t('vtxroadmodal.vehicleTrack')"),
|
|
225
226
|
visible: true,
|
|
226
227
|
src: src
|
|
227
228
|
});
|
|
228
229
|
},
|
|
229
|
-
children: "
|
|
230
|
+
children: translateLocaleText("t('vtxroadmodal.view')")
|
|
230
231
|
});
|
|
231
232
|
}
|
|
232
233
|
}];
|
|
@@ -264,11 +265,11 @@ var Work = function Work(props) {
|
|
|
264
265
|
});
|
|
265
266
|
return {
|
|
266
267
|
dataList: [{
|
|
267
|
-
name: '
|
|
268
|
+
name: translateLocaleText("t('vtxroadmodal.scheduledMileage')"),
|
|
268
269
|
data: planMileageList,
|
|
269
270
|
color: 'geekblue'
|
|
270
271
|
}, {
|
|
271
|
-
name: '
|
|
272
|
+
name: translateLocaleText("t('vtxroadmodal.workMileage')"),
|
|
272
273
|
data: workMileageList,
|
|
273
274
|
color: 'green'
|
|
274
275
|
}],
|
|
@@ -280,11 +281,11 @@ var Work = function Work(props) {
|
|
|
280
281
|
xAxis = _useMemo.xAxis,
|
|
281
282
|
completeRateList = _useMemo.completeRateList;
|
|
282
283
|
var mileageList = [{
|
|
283
|
-
name: '
|
|
284
|
+
name: translateLocaleText("t('vtxroadmodal.scheduledMileage')"),
|
|
284
285
|
value: workInfo === null || workInfo === void 0 || (_workInfo$workInfo = workInfo.workInfo) === null || _workInfo$workInfo === void 0 ? void 0 : _workInfo$workInfo.planMileage,
|
|
285
286
|
icon: require("../../imgs/schedule.png")
|
|
286
287
|
}, {
|
|
287
|
-
name: '
|
|
288
|
+
name: translateLocaleText("t('vtxroadmodal.workMileage')"),
|
|
288
289
|
value: workInfo === null || workInfo === void 0 || (_workInfo$workInfo2 = workInfo.workInfo) === null || _workInfo$workInfo2 === void 0 ? void 0 : _workInfo$workInfo2.workMileage,
|
|
289
290
|
icon: require("../../imgs/work.png")
|
|
290
291
|
}];
|
|
@@ -295,7 +296,7 @@ var Work = function Work(props) {
|
|
|
295
296
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
296
297
|
filterType: "datePicker",
|
|
297
298
|
dateValue: day,
|
|
298
|
-
title: "
|
|
299
|
+
title: translateLocaleText("t('vtxroadmodal.workSummary')"),
|
|
299
300
|
filterChange: setDay,
|
|
300
301
|
disabledDate: function disabledDate(current) {
|
|
301
302
|
return current && current > dayjs().endOf('day');
|
|
@@ -329,7 +330,7 @@ var Work = function Work(props) {
|
|
|
329
330
|
align: "center",
|
|
330
331
|
children: [/*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
331
332
|
rate: workInfo === null || workInfo === void 0 || (_workInfo$workInfo3 = workInfo.workInfo) === null || _workInfo$workInfo3 === void 0 ? void 0 : _workInfo$workInfo3.completeRate,
|
|
332
|
-
name: '
|
|
333
|
+
name: translateLocaleText("t('vtxroadmodal.complete')"),
|
|
333
334
|
width: 80
|
|
334
335
|
}), mileageList.map(function (item) {
|
|
335
336
|
return /*#__PURE__*/_jsxs("div", {
|
|
@@ -348,6 +349,8 @@ var Work = function Work(props) {
|
|
|
348
349
|
src: item.icon,
|
|
349
350
|
className: 'vtx-road-lane-mileage-item-img'
|
|
350
351
|
}), /*#__PURE__*/_jsx("span", {
|
|
352
|
+
className: "vtx-road-lane-mileage-item-name",
|
|
353
|
+
title: item.name,
|
|
351
354
|
children: item.name
|
|
352
355
|
})]
|
|
353
356
|
})]
|
|
@@ -360,6 +363,8 @@ var Work = function Work(props) {
|
|
|
360
363
|
return /*#__PURE__*/_jsxs("div", {
|
|
361
364
|
className: 'vtx-road-work-type-item',
|
|
362
365
|
children: [/*#__PURE__*/_jsx("div", {
|
|
366
|
+
className: "vtx-road-work-type-item-name",
|
|
367
|
+
title: item.name,
|
|
363
368
|
children: item.name
|
|
364
369
|
}), /*#__PURE__*/_jsx("div", {
|
|
365
370
|
style: {
|
|
@@ -419,7 +424,7 @@ var Work = function Work(props) {
|
|
|
419
424
|
minHeight: 0
|
|
420
425
|
},
|
|
421
426
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
422
|
-
title: "
|
|
427
|
+
title: translateLocaleText("t('vtxroadmodal.workDetails')"),
|
|
423
428
|
children: /*#__PURE__*/_jsx("div", {
|
|
424
429
|
style: {
|
|
425
430
|
width: '100%',
|