@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
package/lib/style/index.less
CHANGED
|
@@ -6,6 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
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
7
|
import { MapIcon } from '@vtx/map-icon';
|
|
8
8
|
import * as VtxMapIcon from '@vtx/map-icon';
|
|
9
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
9
10
|
console.log(VtxMapIcon, 'VtxMapIcon');
|
|
10
11
|
import { getUrlParam, getVtxToken, request } from '@vtx/utils';
|
|
11
12
|
import { useRequest } from 'ahooks';
|
|
@@ -77,19 +78,19 @@ var BaseService = {
|
|
|
77
78
|
});
|
|
78
79
|
}) : [];
|
|
79
80
|
var baseInfo = [{
|
|
80
|
-
label: '
|
|
81
|
+
label: translateLocaleText("t('vtxareamodal.code')"),
|
|
81
82
|
key: 'code',
|
|
82
83
|
value: info === null || info === void 0 ? void 0 : info.code
|
|
83
84
|
}, {
|
|
84
|
-
label: '
|
|
85
|
+
label: translateLocaleText("t('vtxareamodal.areaType')"),
|
|
85
86
|
key: 'workElementTypeName',
|
|
86
87
|
value: info === null || info === void 0 ? void 0 : info.workElementTypeName
|
|
87
88
|
}, {
|
|
88
|
-
label: '
|
|
89
|
+
label: translateLocaleText("t('vtxareamodal.dept')"),
|
|
89
90
|
key: 'departmentName',
|
|
90
91
|
value: info === null || info === void 0 ? void 0 : info.departmentName
|
|
91
92
|
}, {
|
|
92
|
-
label: '
|
|
93
|
+
label: translateLocaleText("t('vtxqyrymodal.administrativeDivision')"),
|
|
93
94
|
key: 'divisionName',
|
|
94
95
|
value: info === null || info === void 0 ? void 0 : info.divisionName
|
|
95
96
|
}];
|
|
@@ -4,6 +4,7 @@ import dayjs from 'dayjs';
|
|
|
4
4
|
import { VmEmpty } from "../../../_components";
|
|
5
5
|
import useSettings from "../../../_hooks/useSettings";
|
|
6
6
|
import { BaseService } from "../../api";
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
var Lcfx = function Lcfx(props) {
|
|
9
10
|
var _useSettings = useSettings(),
|
|
@@ -73,7 +74,7 @@ var Lcfx = function Lcfx(props) {
|
|
|
73
74
|
}
|
|
74
75
|
}],
|
|
75
76
|
series: [{
|
|
76
|
-
name: '
|
|
77
|
+
name: translateLocaleText("t('vtxareamodal.mileage')"),
|
|
77
78
|
type: 'bar',
|
|
78
79
|
barWidth: 18,
|
|
79
80
|
data: (values === null || values === void 0 ? void 0 : values.length) > 0 ? values[0] : [],
|
|
@@ -10,6 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
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
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
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
13
14
|
/**
|
|
14
15
|
* 作业明细-列表
|
|
15
16
|
*/
|
|
@@ -37,18 +38,18 @@ var ListZymx = function ListZymx(props) {
|
|
|
37
38
|
var _BaseService$useToday = BaseService.useTodayWork(id, startDate || dayjs().format('YYYY-MM-DD'), endDate || dayjs().format('YYYY-MM-DD'), pagination.current - 1),
|
|
38
39
|
todayWorkRes = _BaseService$useToday.todayWorkRes;
|
|
39
40
|
var columns = [{
|
|
40
|
-
title: '
|
|
41
|
+
title: translateLocaleText("t('vtxareamodal.date')"),
|
|
41
42
|
dataIndex: 'shiftDate',
|
|
42
43
|
key: 'shiftDate',
|
|
43
44
|
width: 100
|
|
44
45
|
}, {
|
|
45
|
-
title: '
|
|
46
|
+
title: translateLocaleText("t('vtxareamodal.timesName')"),
|
|
46
47
|
dataIndex: 'shiftName',
|
|
47
48
|
key: 'shiftName',
|
|
48
49
|
width: 110,
|
|
49
50
|
ellipsis: true
|
|
50
51
|
}, {
|
|
51
|
-
title: '
|
|
52
|
+
title: translateLocaleText("t('vtxareamodal.timesHours')"),
|
|
52
53
|
dataIndex: 'shiftStartTime',
|
|
53
54
|
key: 'shiftStartTime',
|
|
54
55
|
width: 120,
|
|
@@ -59,27 +60,27 @@ var ListZymx = function ListZymx(props) {
|
|
|
59
60
|
}) : '-';
|
|
60
61
|
}
|
|
61
62
|
}, {
|
|
62
|
-
title: '
|
|
63
|
+
title: translateLocaleText("t('vtxareamodal.timesHours2')"),
|
|
63
64
|
dataIndex: 'shiftTimeStr',
|
|
64
65
|
key: 'shiftTimeStr',
|
|
65
66
|
width: 100
|
|
66
67
|
}, {
|
|
67
|
-
title: '
|
|
68
|
+
title: translateLocaleText("t('vtxareamodal.scheduledStaff')"),
|
|
68
69
|
dataIndex: 'staffName',
|
|
69
70
|
key: 'staffName',
|
|
70
|
-
width:
|
|
71
|
+
width: 110
|
|
71
72
|
}, {
|
|
72
|
-
title: '
|
|
73
|
+
title: translateLocaleText("t('vtxareamodal.attendance')"),
|
|
73
74
|
dataIndex: 'inWorkElement',
|
|
74
75
|
key: 'inWorkElement',
|
|
75
76
|
width: 120,
|
|
76
77
|
render: function render(_text, record) {
|
|
77
78
|
return (record === null || record === void 0 ? void 0 : record.clockInStatusCode) === 'Normal' || (record === null || record === void 0 ? void 0 : record.clockInStatusCode) === 'clockOutStatusCode' ? /*#__PURE__*/_jsx("div", {
|
|
78
79
|
className: "block-green",
|
|
79
|
-
children: "
|
|
80
|
+
children: translateLocaleText("t('common.yes')")
|
|
80
81
|
}) : /*#__PURE__*/_jsx("div", {
|
|
81
82
|
className: "block-red",
|
|
82
|
-
children: "
|
|
83
|
+
children: translateLocaleText("t('common.no')")
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
}];
|
|
@@ -29,6 +29,7 @@ import onlinePerson from "../../imgs/onlinePerson.png";
|
|
|
29
29
|
import onlinePersonDark from "../../imgs/onlinePerson_dark.png";
|
|
30
30
|
import schdulePerson from "../../imgs/schdulePerson.png";
|
|
31
31
|
import schdulePersonDark from "../../imgs/schdulePerson_dark.png";
|
|
32
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
32
33
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
34
|
var BaseInfo = function BaseInfo(props) {
|
|
34
35
|
var id = props.id,
|
|
@@ -64,14 +65,14 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
64
65
|
})
|
|
65
66
|
});
|
|
66
67
|
var list = [{
|
|
67
|
-
name: '
|
|
68
|
-
unit: '
|
|
68
|
+
name: translateLocaleText("t('vtxareamodal.current')"),
|
|
69
|
+
unit: translateLocaleText("t('common.peopleUnit')"),
|
|
69
70
|
value: (numInfo === null || numInfo === void 0 ? void 0 : numInfo.shiftNum) || 0,
|
|
70
71
|
img: isDark ? schdulePersonDark : schdulePerson,
|
|
71
72
|
fontType: 'blue'
|
|
72
73
|
}, {
|
|
73
|
-
name: '
|
|
74
|
-
unit: '
|
|
74
|
+
name: translateLocaleText("t('vtxareamodal.currentOnline')"),
|
|
75
|
+
unit: translateLocaleText("t('common.peopleUnit')"),
|
|
75
76
|
value: (numInfo === null || numInfo === void 0 ? void 0 : numInfo.onlineNum) || 0,
|
|
76
77
|
img: isDark ? onlinePersonDark : onlinePerson,
|
|
77
78
|
fontType: 'blue'
|
|
@@ -81,9 +82,9 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
81
82
|
children: [/*#__PURE__*/_jsx("div", {
|
|
82
83
|
className: "area-base-left",
|
|
83
84
|
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
84
|
-
title: "
|
|
85
|
+
title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
|
|
85
86
|
children: [baseTabContent, /*#__PURE__*/_jsx(VmTitle, {
|
|
86
|
-
title: "
|
|
87
|
+
title: translateLocaleText("t('vtxareamodal.hours')")
|
|
87
88
|
}), /*#__PURE__*/_jsx(VmFactorList, {
|
|
88
89
|
list: list
|
|
89
90
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -101,7 +102,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
101
102
|
children: [/*#__PURE__*/_jsx("div", {
|
|
102
103
|
className: "area-base-right-top",
|
|
103
104
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
104
|
-
title: "
|
|
105
|
+
title: translateLocaleText("t('vtxareamodal.workStatistics')"),
|
|
105
106
|
filterType: "datePicker",
|
|
106
107
|
filterChange: function filterChange(date) {
|
|
107
108
|
setState({
|
|
@@ -117,8 +118,8 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
117
118
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
118
119
|
span: 8,
|
|
119
120
|
children: /*#__PURE__*/_jsx(VmFactor, {
|
|
120
|
-
name: "
|
|
121
|
-
unit: "
|
|
121
|
+
name: translateLocaleText("t('vtxareamodal.totalScheduledStaff')"),
|
|
122
|
+
unit: translateLocaleText("t('common.peopleUnit')"),
|
|
122
123
|
value: (workInfoRes === null || workInfoRes === void 0 ? void 0 : workInfoRes.totalNum) || 0,
|
|
123
124
|
img: isDark ? todayWorkDark : todayWork,
|
|
124
125
|
fontType: "blue"
|
|
@@ -126,8 +127,8 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
126
127
|
}), /*#__PURE__*/_jsx(Col, {
|
|
127
128
|
span: 8,
|
|
128
129
|
children: /*#__PURE__*/_jsx(VmFactor, {
|
|
129
|
-
name: "
|
|
130
|
-
unit: "
|
|
130
|
+
name: translateLocaleText("t('vtxareamodal.totalAttendanceStaff')"),
|
|
131
|
+
unit: translateLocaleText("t('common.peopleUnit')"),
|
|
131
132
|
value: (workInfoRes === null || workInfoRes === void 0 ? void 0 : workInfoRes.normalNum) || 0,
|
|
132
133
|
img: isDark ? todayOnlineDark : todayOnline,
|
|
133
134
|
fontType: "green"
|
|
@@ -135,7 +136,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
135
136
|
}), /*#__PURE__*/_jsx(Col, {
|
|
136
137
|
span: 8,
|
|
137
138
|
children: /*#__PURE__*/_jsx(VmFactor, {
|
|
138
|
-
name: "
|
|
139
|
+
name: translateLocaleText("t('vtxareamodal.attendanceRate')"),
|
|
139
140
|
unit: "%",
|
|
140
141
|
value: (workInfoRes === null || workInfoRes === void 0 ? void 0 : workInfoRes.rate) || 0,
|
|
141
142
|
img: isDark ? todayWorkRateDark : todayWorkRate,
|
|
@@ -147,7 +148,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
147
148
|
}), /*#__PURE__*/_jsx("div", {
|
|
148
149
|
className: "area-wgfx",
|
|
149
150
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
150
|
-
title: "
|
|
151
|
+
title: translateLocaleText("t('vtxareamodal.workDetails')"),
|
|
151
152
|
children: /*#__PURE__*/_jsx(ListZymx, {
|
|
152
153
|
id: id,
|
|
153
154
|
startDate: date.format('YYYY-MM-DD 00:00:00'),
|
|
@@ -9,7 +9,7 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
9
9
|
var TABS_BASE = 'area-base';
|
|
10
10
|
var tabs = [{
|
|
11
11
|
key: TABS_BASE,
|
|
12
|
-
title: '
|
|
12
|
+
title: "t('vtxdefaultmodal.overviewInformation')"
|
|
13
13
|
}];
|
|
14
14
|
var VtxAreaModal = function VtxAreaModal(props) {
|
|
15
15
|
var id = props.id,
|
|
@@ -1,98 +1,99 @@
|
|
|
1
|
-
.vm-modal-header-container {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
font-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
1
|
+
.vm-modal-header-container {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 116px;
|
|
5
|
+
border-radius: 8px 8px 0 0;
|
|
6
|
+
background: var(--modal-head-bg);
|
|
7
|
+
padding: 0 16px;
|
|
8
|
+
margin-top: 1px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.vm-modal-header-wrap {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 56px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
position: relative;
|
|
18
|
+
&::after {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 54px;
|
|
21
|
+
left: 0;
|
|
22
|
+
content: '';
|
|
23
|
+
width: 180px;
|
|
24
|
+
height: 1px;
|
|
25
|
+
background: var(--modal-head-line-bg);
|
|
26
|
+
box-shadow: var(--modal-head-line-shadow);
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
animation: move 6s linear infinite;
|
|
29
|
+
|
|
30
|
+
@keyframes move {
|
|
31
|
+
0% {
|
|
32
|
+
left: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
100% {
|
|
36
|
+
left: calc(100% - 180px);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-left {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
|
|
46
|
+
&-title {
|
|
47
|
+
font-weight: bold;
|
|
48
|
+
font-size: 20px;
|
|
49
|
+
color: var(--modal-title-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-tag {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
gap: 4px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
border-radius: 16px;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
padding: 0 8px;
|
|
61
|
+
border: 1px solid;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-right {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: 16px;
|
|
69
|
+
|
|
70
|
+
&-close {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
color: var(--modal-close-color);
|
|
75
|
+
width: 28px;
|
|
76
|
+
height: 28px;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
font-size: 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-line {
|
|
82
|
+
width: 1px;
|
|
83
|
+
height: 14px;
|
|
84
|
+
background-color: var(--modal-head-split-line-color);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-collect {
|
|
88
|
+
width: 28px;
|
|
89
|
+
height: 28px;
|
|
90
|
+
border-radius: 8px;
|
|
91
|
+
text-align: center;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
|
|
94
|
+
&.active {
|
|
95
|
+
background: var(--collect-bg);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -21,6 +21,22 @@ import { getTenantById, getUmsConfig } from "./service";
|
|
|
21
21
|
import "./style";
|
|
22
22
|
import VmTabs from "./Tabs";
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
+
var getTabContent = function getTabContent(contents, tabKey) {
|
|
25
|
+
if (!tabKey) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(contents, tabKey)) {
|
|
29
|
+
return contents[tabKey];
|
|
30
|
+
}
|
|
31
|
+
var keyParts = "".concat(tabKey).split('-');
|
|
32
|
+
for (var index = 1; index < keyParts.length; index++) {
|
|
33
|
+
var suffixKey = keyParts.slice(index).join('-');
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(contents, suffixKey)) {
|
|
35
|
+
return contents[suffixKey];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
};
|
|
24
40
|
var VmBaseModal = function VmBaseModal(props) {
|
|
25
41
|
var _props$tabs = props.tabs,
|
|
26
42
|
tabs = _props$tabs === void 0 ? [] : _props$tabs,
|
|
@@ -100,6 +116,21 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
100
116
|
}
|
|
101
117
|
}
|
|
102
118
|
}, [JSON.stringify(tabs), tabChose]);
|
|
119
|
+
var activeTabKey = useMemo(function () {
|
|
120
|
+
var _tabs$;
|
|
121
|
+
if (currentTabKey && tabs.find(function (item) {
|
|
122
|
+
return item.key === currentTabKey;
|
|
123
|
+
})) {
|
|
124
|
+
return currentTabKey;
|
|
125
|
+
}
|
|
126
|
+
if (tabChose && tabs.find(function (item) {
|
|
127
|
+
return item.key === tabChose;
|
|
128
|
+
})) {
|
|
129
|
+
return tabChose;
|
|
130
|
+
}
|
|
131
|
+
return ((_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.key) || currentTabKey;
|
|
132
|
+
}, [currentTabKey, JSON.stringify(tabs), tabChose]);
|
|
133
|
+
var activeContent = getTabContent(contents, activeTabKey);
|
|
103
134
|
var onCancel = function onCancel() {
|
|
104
135
|
if (props.onCancel && typeof props.onCancel === 'function') {
|
|
105
136
|
props.onCancel();
|
|
@@ -188,7 +219,7 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
188
219
|
onChange: function onChange(key) {
|
|
189
220
|
setCurrentTabKey(key);
|
|
190
221
|
},
|
|
191
|
-
active:
|
|
222
|
+
active: activeTabKey,
|
|
192
223
|
theme: theme
|
|
193
224
|
}), /*#__PURE__*/_jsx(VtxThemeProvider, {
|
|
194
225
|
value: value,
|
|
@@ -196,7 +227,7 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
196
227
|
className: 'vm-base-modal-content-wrap',
|
|
197
228
|
children: /*#__PURE__*/_jsx("div", {
|
|
198
229
|
className: 'vm-base-modal-content',
|
|
199
|
-
children:
|
|
230
|
+
children: activeContent
|
|
200
231
|
})
|
|
201
232
|
})
|
|
202
233
|
})]
|
|
@@ -210,7 +241,7 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
210
241
|
className: 'vm-base-modal-content-wrap',
|
|
211
242
|
children: /*#__PURE__*/_jsx("div", {
|
|
212
243
|
className: 'vm-base-modal-content',
|
|
213
|
-
children:
|
|
244
|
+
children: activeContent
|
|
214
245
|
})
|
|
215
246
|
})
|
|
216
247
|
})
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.vm-base-modal-wrap {
|
|
10
|
+
&,
|
|
11
|
+
* {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
position: fixed;
|
|
11
17
|
left: 50%;
|
|
12
18
|
top: 50%;
|
|
@@ -38,19 +44,26 @@
|
|
|
38
44
|
.vm-base-modal-body {
|
|
39
45
|
position: absolute;
|
|
40
46
|
top: 56px;
|
|
47
|
+
left: 0;
|
|
48
|
+
right: 0;
|
|
41
49
|
bottom: 0;
|
|
42
50
|
display: flex;
|
|
43
51
|
flex-direction: column;
|
|
44
|
-
width:
|
|
52
|
+
width: auto;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
overflow: hidden;
|
|
45
55
|
background: var(--modal-content-bg);
|
|
46
56
|
border-radius: 8px;
|
|
47
57
|
}
|
|
48
58
|
.vm-base-modal-content-wrap {
|
|
49
59
|
flex: 1;
|
|
60
|
+
min-width: 0;
|
|
50
61
|
min-height: 0;
|
|
51
62
|
overflow: auto;
|
|
52
63
|
padding: 0 16px 16px;
|
|
53
64
|
.vm-base-modal-content {
|
|
65
|
+
width: 100%;
|
|
66
|
+
min-width: 0;
|
|
54
67
|
height: 100%;
|
|
55
68
|
overflow-x: hidden;
|
|
56
69
|
overflow-y: auto;
|
|
@@ -27,7 +27,20 @@ import runIcon from "../../imgs/factor/run.png";
|
|
|
27
27
|
import speedIcon from "../../imgs/factor/speed.png";
|
|
28
28
|
import { CarContext } from "../../index";
|
|
29
29
|
import "./index.less";
|
|
30
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
30
31
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
|
+
var INFO_LABEL_MAP = {
|
|
33
|
+
belongUnitName: "t('vtxcarmodal.belongUnit')",
|
|
34
|
+
useUnitName: "t('vtxcarmodal.useUnit')",
|
|
35
|
+
bidSectionName: "t('vtxcarmodal.bidSection')",
|
|
36
|
+
divisionName: "t('vtxqyrymodal.administrativeDivision')",
|
|
37
|
+
manageStaffName: "t('vtxcarmodal.responsiblePerson')",
|
|
38
|
+
contact: "t('vtxrestaurantmodal.contactPerson')",
|
|
39
|
+
contactWay: "t('vtxdevicemodal.contactInformation')",
|
|
40
|
+
invoiceCode: "t('vtxcarmodal.invoiceCode')",
|
|
41
|
+
certificateCode: "t('vtxcarmodal.certificateCode')",
|
|
42
|
+
drivingLicenseCode: "t('vtxcarmodal.drivingLicenseCode')"
|
|
43
|
+
};
|
|
31
44
|
var Info = function Info(_ref) {
|
|
32
45
|
var _info$geoLocation;
|
|
33
46
|
var _ref$showQrCode = _ref.showQrCode,
|
|
@@ -70,13 +83,13 @@ var Info = function Info(_ref) {
|
|
|
70
83
|
}).map(function (item) {
|
|
71
84
|
var _showFieldsMap$item$k2;
|
|
72
85
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
73
|
-
label: (_showFieldsMap$item$k2 = showFieldsMap[item.key]) === null || _showFieldsMap$item$k2 === void 0 ? void 0 : _showFieldsMap$item$k2.displayName,
|
|
86
|
+
label: INFO_LABEL_MAP[item.key] ? translateLocaleText(INFO_LABEL_MAP[item.key]) : translateLocaleText((_showFieldsMap$item$k2 = showFieldsMap[item.key]) === null || _showFieldsMap$item$k2 === void 0 ? void 0 : _showFieldsMap$item$k2.displayName),
|
|
74
87
|
value: detail === null || detail === void 0 ? void 0 : detail[item.key]
|
|
75
88
|
});
|
|
76
89
|
});
|
|
77
90
|
if (showQrCode) {
|
|
78
91
|
data.push({
|
|
79
|
-
label: '
|
|
92
|
+
label: translateLocaleText("t('vtxcarmodal.qrCode')"),
|
|
80
93
|
key: 'qrCode',
|
|
81
94
|
value: detail.qrCode,
|
|
82
95
|
componentType: 'qrCode'
|
|
@@ -95,13 +108,13 @@ var Info = function Info(_ref) {
|
|
|
95
108
|
id: info.carCode
|
|
96
109
|
}] : [];
|
|
97
110
|
var list = [{
|
|
98
|
-
name: '
|
|
111
|
+
name: translateLocaleText("t('vtxcarmodal.today')"),
|
|
99
112
|
unit: 'km',
|
|
100
113
|
value: (info === null || info === void 0 ? void 0 : info.mileage) || 0,
|
|
101
114
|
img: showListImg ? isDark ? darkRunIcon : runIcon : null,
|
|
102
115
|
fontType: 'blue'
|
|
103
116
|
}, {
|
|
104
|
-
name: '
|
|
117
|
+
name: translateLocaleText("t('vtxcarmodal.current')"),
|
|
105
118
|
unit: 'km/h',
|
|
106
119
|
value: (info === null || info === void 0 ? void 0 : info.gpsSpeed) || 0,
|
|
107
120
|
img: showListImg ? isDark ? darkSpeedIcon : speedIcon : null,
|
|
@@ -113,12 +126,12 @@ var Info = function Info(_ref) {
|
|
|
113
126
|
height: '100%'
|
|
114
127
|
},
|
|
115
128
|
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
116
|
-
title: '
|
|
129
|
+
title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
|
|
117
130
|
children: [/*#__PURE__*/_jsx(VmInfoCollection, {
|
|
118
131
|
width: '100%',
|
|
119
132
|
data: data
|
|
120
133
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
121
|
-
title: '
|
|
134
|
+
title: translateLocaleText("t('vtxareamodal.hours')"),
|
|
122
135
|
time: info === null || info === void 0 ? void 0 : info.equipmentTime
|
|
123
136
|
}), (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.Monitor, {
|
|
124
137
|
carId: id
|
|
@@ -133,7 +146,24 @@ var Info = function Info(_ref) {
|
|
|
133
146
|
mapPoints: mapPoints,
|
|
134
147
|
mapType: 'wgs84',
|
|
135
148
|
mapCenter: [lng, lat],
|
|
136
|
-
address: info === null || info === void 0 ? void 0 : info.address
|
|
149
|
+
address: info === null || info === void 0 ? void 0 : info.address,
|
|
150
|
+
customEnumText: {
|
|
151
|
+
allText: translateLocaleText("t('export.all')"),
|
|
152
|
+
mapFeatureText: translateLocaleText("t('se.map.mapFeatures')"),
|
|
153
|
+
mapShapePointText: translateLocaleText("t('se.map.pointsOfInterest')"),
|
|
154
|
+
toolMeasureDistanceText: translateLocaleText("t('se.map.measureDistance')"),
|
|
155
|
+
toolMeasureAreaText: translateLocaleText("t('se.map.measureArea')"),
|
|
156
|
+
toolShowLengthText: translateLocaleText("t('se.map.showSegmentLength')"),
|
|
157
|
+
toolClearMessureResultText: translateLocaleText("t('se.map.clearMeasureResult')"),
|
|
158
|
+
messureStartTipText: translateLocaleText("t('se.map.measureStartTip')"),
|
|
159
|
+
distanceText: translateLocaleText("t('se.map.distance')"),
|
|
160
|
+
horizontalDistanceText: translateLocaleText("t('se.map.horizontalDistance')"),
|
|
161
|
+
verticalDistanceText: translateLocaleText("t('se.map.verticalDistance')"),
|
|
162
|
+
straightLineDistanceText: translateLocaleText("t('se.map.straightLineDistance')"),
|
|
163
|
+
totalDistanceText: translateLocaleText("t('se.map.totalDistance')"),
|
|
164
|
+
areaText: translateLocaleText("t('se.map.area')"),
|
|
165
|
+
legendText: translateLocaleText("t('se.map.legend')")
|
|
166
|
+
}
|
|
137
167
|
})
|
|
138
168
|
})]
|
|
139
169
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vm-car-map-wrap {
|
|
2
|
-
flex: 1;
|
|
3
|
-
min-height: 0;
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: 10px;
|
|
6
|
-
}
|
|
1
|
+
.vm-car-map-wrap {
|
|
2
|
+
flex: 1;
|
|
3
|
+
min-height: 0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-top: 10px;
|
|
6
|
+
}
|