@vtx/modals2 5.0.59 → 6.0.0-beta.1
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-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-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-popover/index.js +11 -3
- package/lib/_components/vm-popover/index.less +4 -1
- 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 +217 -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 +1 -0
- 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/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/StaticInfo/index.js +17 -15
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +10 -9
- 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/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/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/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 +42 -43
- 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 +8 -0
- 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 +9 -8
- 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 +30 -19
|
@@ -12,6 +12,7 @@ import { BaseService as facilityService } from "../vtx-default-modal/api";
|
|
|
12
12
|
import { BaseService } from "./api";
|
|
13
13
|
import { AlarmInfo, BaseInfo, ExeceptionInfo, SyInfo } from "./components";
|
|
14
14
|
import "./style";
|
|
15
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
15
16
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
17
|
var TABS_BASE = 'base';
|
|
17
18
|
var TABS_SY = 'sy';
|
|
@@ -32,16 +33,16 @@ var VtxCpModal = function VtxCpModal(props) {
|
|
|
32
33
|
tabChose = props.tabChose;
|
|
33
34
|
var tabs = [{
|
|
34
35
|
key: TABS_BASE,
|
|
35
|
-
title: '
|
|
36
|
+
title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')")
|
|
36
37
|
}, {
|
|
37
38
|
key: TABS_SY,
|
|
38
|
-
title: '
|
|
39
|
+
title: translateLocaleText("t('vtxcpmodal.collectionInformation')")
|
|
39
40
|
}, {
|
|
40
41
|
key: TABS_WARNNING,
|
|
41
|
-
title: '
|
|
42
|
+
title: translateLocaleText("t('vtxqyrymodal.alarmInformation')")
|
|
42
43
|
}, {
|
|
43
44
|
key: TABS_EXECEPTION,
|
|
44
|
-
title: '
|
|
45
|
+
title: translateLocaleText("t('vtxcpmodal.exceptionInformation')")
|
|
45
46
|
}];
|
|
46
47
|
var _BaseService$useBaseD = BaseService.useBaseDetail(id, 'wgs84'),
|
|
47
48
|
info = _BaseService$useBaseD.info,
|
|
@@ -12,6 +12,7 @@ import useSettings from "../../../_hooks/useSettings";
|
|
|
12
12
|
import { CommonService } from "../../../_service";
|
|
13
13
|
import { getFieldRender } from "../../../_util";
|
|
14
14
|
import "./index.less";
|
|
15
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
15
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
var BaseInfo = function BaseInfo(props) {
|
|
17
18
|
var _mapCenter, _info$geometryInfo3;
|
|
@@ -55,7 +56,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
55
56
|
children: [/*#__PURE__*/_jsx("div", {
|
|
56
57
|
className: "default-baseContent-left",
|
|
57
58
|
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
58
|
-
title: "
|
|
59
|
+
title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
|
|
59
60
|
children: [photos && /*#__PURE__*/_jsx("div", {
|
|
60
61
|
className: "default-base-img",
|
|
61
62
|
children: photos.length ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
|
|
@@ -4,8 +4,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
-
|
|
8
|
-
|
|
7
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
8
|
+
/**
|
|
9
|
+
* 通用弹窗
|
|
9
10
|
*/
|
|
10
11
|
import { useMemo } from 'react';
|
|
11
12
|
import { VmCustom, VmRepairMaintain, VmVideo } from "../_components";
|
|
@@ -41,7 +42,7 @@ var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
|
41
42
|
showCollect = props.showCollect;
|
|
42
43
|
var tabs = [{
|
|
43
44
|
key: TABS_BASE,
|
|
44
|
-
title: '
|
|
45
|
+
title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')")
|
|
45
46
|
}];
|
|
46
47
|
var _CommonService$useBas = CommonService.useBaseInfo(id, (customMapInfo === null || customMapInfo === void 0 ? void 0 : customMapInfo.coordinate) || 'wgs84'),
|
|
47
48
|
photos = _CommonService$useBas.photos,
|
|
@@ -16,6 +16,7 @@ import { getVtxToken } from '@vtx/utils';
|
|
|
16
16
|
import { useSetState } from 'ahooks';
|
|
17
17
|
import { Button, Popover } from 'antd';
|
|
18
18
|
import { useState } from 'react';
|
|
19
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
19
20
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
21
|
var PreviewAndDownload = function PreviewAndDownload(_ref) {
|
|
21
22
|
var key = _ref.key,
|
|
@@ -41,7 +42,7 @@ var PreviewAndDownload = function PreviewAndDownload(_ref) {
|
|
|
41
42
|
var base64 = Buffer.from(url).toString('base64');
|
|
42
43
|
setIframeModalInfo({
|
|
43
44
|
src: "".concat(window.location.origin, "/cloud/kkPreview/onlinePreview?url=").concat(base64, "&token=").concat(token),
|
|
44
|
-
title: '
|
|
45
|
+
title: translateLocaleText("t('vtxdevicemodal.filePreview')"),
|
|
45
46
|
visible: true
|
|
46
47
|
});
|
|
47
48
|
};
|
|
@@ -55,14 +56,14 @@ var PreviewAndDownload = function PreviewAndDownload(_ref) {
|
|
|
55
56
|
onClick: function onClick() {
|
|
56
57
|
return onPreview(info);
|
|
57
58
|
},
|
|
58
|
-
children: "
|
|
59
|
+
children: translateLocaleText("t('vtxdevicemodal.preview')")
|
|
59
60
|
}), "\xA0\xA0", /*#__PURE__*/_jsx(Button, {
|
|
60
61
|
type: "primary",
|
|
61
62
|
size: "small",
|
|
62
63
|
onClick: function onClick() {
|
|
63
64
|
return download(info);
|
|
64
65
|
},
|
|
65
|
-
children: "
|
|
66
|
+
children: translateLocaleText("t('vtxdevicemodal.download')")
|
|
66
67
|
})]
|
|
67
68
|
});
|
|
68
69
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
@@ -22,6 +22,7 @@ import { useMemo } from 'react';
|
|
|
22
22
|
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
23
23
|
import useSettings from "../../../_hooks/useSettings";
|
|
24
24
|
import KnowledgeBasesDetail from "./KnowledgeBasesDetail";
|
|
25
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
25
26
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
27
|
var BaseInfo = function BaseInfo(_ref) {
|
|
27
28
|
var info = _ref.info;
|
|
@@ -46,35 +47,35 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
46
47
|
modalInfo = _useSetState2[0],
|
|
47
48
|
setModalInfo = _useSetState2[1];
|
|
48
49
|
var data = [{
|
|
49
|
-
label: '
|
|
50
|
+
label: translateLocaleText("t('vtxdevicemodal.deviceCode')"),
|
|
50
51
|
key: 'code',
|
|
51
52
|
value: info === null || info === void 0 ? void 0 : info.code
|
|
52
53
|
}, {
|
|
53
|
-
label: '
|
|
54
|
+
label: translateLocaleText("t('vtxdevicemodal.deviceManufacturer')"),
|
|
54
55
|
key: 'factoryName',
|
|
55
56
|
value: info === null || info === void 0 ? void 0 : info.factoryName
|
|
56
57
|
}, {
|
|
57
|
-
label: '
|
|
58
|
+
label: translateLocaleText("t('vtxdevicemodal.deviceModel')"),
|
|
58
59
|
key: 'modelName',
|
|
59
60
|
value: info === null || info === void 0 ? void 0 : info.modelName
|
|
60
61
|
}, {
|
|
61
|
-
label: '
|
|
62
|
+
label: translateLocaleText("t('vtxdevicemodal.performanceParameter')"),
|
|
62
63
|
key: 'performanceParameter',
|
|
63
64
|
value: info === null || info === void 0 ? void 0 : info.performanceParameter
|
|
64
65
|
}, {
|
|
65
|
-
label: '
|
|
66
|
+
label: translateLocaleText("t('vtxkhmodal.managementUnit')"),
|
|
66
67
|
key: 'manageUnitName',
|
|
67
68
|
value: info === null || info === void 0 ? void 0 : info.manageUnitName
|
|
68
69
|
}, {
|
|
69
|
-
label: '
|
|
70
|
+
label: translateLocaleText("t('vtxzgmodal.responsiblePerson')"),
|
|
70
71
|
key: 'responsiblePersonName',
|
|
71
72
|
value: info === null || info === void 0 ? void 0 : info.responsiblePersonName
|
|
72
73
|
}, {
|
|
73
|
-
label: '
|
|
74
|
+
label: translateLocaleText("t('vtxdevicemodal.contactInformation')"),
|
|
74
75
|
key: 'phone',
|
|
75
76
|
value: info === null || info === void 0 ? void 0 : info.phone
|
|
76
77
|
}, {
|
|
77
|
-
label: '
|
|
78
|
+
label: translateLocaleText("t('vtxdevicemodal.knowledgeBase')"),
|
|
78
79
|
key: 'knowledgeBases',
|
|
79
80
|
render: function render() {
|
|
80
81
|
if (isEmpty(knowledgeBasesList)) {
|
|
@@ -150,7 +151,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
150
151
|
height: '100%'
|
|
151
152
|
},
|
|
152
153
|
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
153
|
-
title: '
|
|
154
|
+
title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
|
|
154
155
|
children: [url && /*#__PURE__*/_jsx("img", {
|
|
155
156
|
src: url,
|
|
156
157
|
style: {
|
|
@@ -166,16 +167,16 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
166
167
|
})
|
|
167
168
|
}), /*#__PURE__*/_jsx(Col, {
|
|
168
169
|
flex: '1',
|
|
170
|
+
className: 'vtx-device-base-map-col',
|
|
169
171
|
style: {
|
|
170
172
|
minWidth: 0,
|
|
171
173
|
height: '100%'
|
|
172
174
|
},
|
|
173
175
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
174
176
|
showTitle: false,
|
|
177
|
+
className: 'vtx-device-base-map-wrapper',
|
|
175
178
|
children: lng && lat ? /*#__PURE__*/_jsx("div", {
|
|
176
|
-
|
|
177
|
-
height: '100%'
|
|
178
|
-
},
|
|
179
|
+
className: 'vtx-device-base-map-inner',
|
|
179
180
|
children: /*#__PURE__*/_jsx(VmMap, {
|
|
180
181
|
mapPoints: mapPoints,
|
|
181
182
|
mapType: 'wgs84',
|
|
@@ -21,18 +21,19 @@ import { VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
|
21
21
|
import useSettings from "../../../_hooks/useSettings";
|
|
22
22
|
import { BaseService } from "../../api";
|
|
23
23
|
import "./index.less";
|
|
24
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
24
25
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
26
|
var tabList = [{
|
|
26
|
-
label: '
|
|
27
|
+
label: translateLocaleText("t('vtxdevicemodal.day')"),
|
|
27
28
|
value: 'day'
|
|
28
29
|
}, {
|
|
29
|
-
label: '
|
|
30
|
+
label: translateLocaleText("t('vtxdevicemodal.month')"),
|
|
30
31
|
value: 'month'
|
|
31
32
|
}, {
|
|
32
|
-
label: '
|
|
33
|
+
label: translateLocaleText("t('vtxdevicemodal.year')"),
|
|
33
34
|
value: 'year'
|
|
34
35
|
}, {
|
|
35
|
-
label: '
|
|
36
|
+
label: translateLocaleText("t('_components.custom')"),
|
|
36
37
|
value: 'self'
|
|
37
38
|
}];
|
|
38
39
|
var filterTypeMap = {
|
|
@@ -138,37 +139,37 @@ var AlarmAnalysis = function AlarmAnalysis(_ref) {
|
|
|
138
139
|
}
|
|
139
140
|
};
|
|
140
141
|
var columns = [{
|
|
141
|
-
title: '
|
|
142
|
+
title: translateLocaleText("t('vtxdevicemodal.name')"),
|
|
142
143
|
dataIndex: 'alarmName',
|
|
143
144
|
key: 'alarmName'
|
|
144
145
|
}, {
|
|
145
|
-
title: '
|
|
146
|
+
title: translateLocaleText("t('vtxdevicemodal.alarmLevel')"),
|
|
146
147
|
dataIndex: 'alarmLevelName',
|
|
147
148
|
key: 'alarmLevelName'
|
|
148
149
|
}, {
|
|
149
|
-
title: '
|
|
150
|
+
title: translateLocaleText("t('vtxdevicemodal.status')"),
|
|
150
151
|
dataIndex: 'alarmStatusName',
|
|
151
152
|
key: 'alarmStatusName'
|
|
152
153
|
}, {
|
|
153
|
-
title: '
|
|
154
|
+
title: translateLocaleText("t('vtxdevicemodal.startTime')"),
|
|
154
155
|
dataIndex: 'alarmStartTime',
|
|
155
156
|
key: 'alarmStartTime'
|
|
156
157
|
}, {
|
|
157
|
-
title: '
|
|
158
|
+
title: translateLocaleText("t('vtxdevicemodal.status2')"),
|
|
158
159
|
dataIndex: 'alarmHandleStatusName',
|
|
159
160
|
key: 'alarmHandleStatusName'
|
|
160
161
|
}];
|
|
161
162
|
var summaryList = [{
|
|
162
|
-
label: '
|
|
163
|
+
label: translateLocaleText("t('vtxdevicemodal.currentAlarm')"),
|
|
163
164
|
value: (currentAlarmRecord === null || currentAlarmRecord === void 0 ? void 0 : currentAlarmRecord.total) || 0,
|
|
164
165
|
key: 'current'
|
|
165
166
|
}, {
|
|
166
|
-
label: '
|
|
167
|
+
label: translateLocaleText("t('vtxdevicemodal.historyAlarm')"),
|
|
167
168
|
value: (historyAlarmRecord === null || historyAlarmRecord === void 0 ? void 0 : historyAlarmRecord.total) || 0,
|
|
168
169
|
key: 'history'
|
|
169
170
|
}];
|
|
170
171
|
return /*#__PURE__*/_jsx(VmWrapper, {
|
|
171
|
-
title: '
|
|
172
|
+
title: translateLocaleText("t('vtxdevicemodal.analyze')"),
|
|
172
173
|
filterType: filterTypeMap[dateType],
|
|
173
174
|
filterChange: function filterChange(date) {
|
|
174
175
|
setState({
|
|
@@ -188,7 +189,7 @@ var AlarmAnalysis = function AlarmAnalysis(_ref) {
|
|
|
188
189
|
checkCurrent: e.target.checked
|
|
189
190
|
});
|
|
190
191
|
},
|
|
191
|
-
children: "
|
|
192
|
+
children: translateLocaleText("t('vtxdevicemodal.currentAlarm2')")
|
|
192
193
|
}), /*#__PURE__*/_jsx(TabsList, {
|
|
193
194
|
list: tabList,
|
|
194
195
|
activeKey: dateType,
|
|
@@ -250,7 +251,7 @@ var AlarmAnalysis = function AlarmAnalysis(_ref) {
|
|
|
250
251
|
return setMonitorItemId('');
|
|
251
252
|
},
|
|
252
253
|
children: /*#__PURE__*/_jsx(VmTag, {
|
|
253
|
-
title: "
|
|
254
|
+
title: "".concat(translateLocaleText("t('export.all')"), "(").concat(alarmRecord.total || 0, ")"),
|
|
254
255
|
type: monitorItemId === '' ? 'blue' : 'black'
|
|
255
256
|
})
|
|
256
257
|
}), (info.monitorItems || []).map(function (item) {
|
|
@@ -22,6 +22,7 @@ import useSettings from "../../../_hooks/useSettings";
|
|
|
22
22
|
import { BaseService } from "../../api";
|
|
23
23
|
import "./index.less";
|
|
24
24
|
import TabsList from "./TabsList";
|
|
25
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
25
26
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
27
|
var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
27
28
|
var _newList$, _newList$2, _newList$3;
|
|
@@ -72,22 +73,22 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
72
73
|
danTimeType = state.danTimeType,
|
|
73
74
|
showType = state.showType;
|
|
74
75
|
var tabList = [{
|
|
75
|
-
label: '
|
|
76
|
+
label: translateLocaleText("t('vtxdevicemodal.24Hours')"),
|
|
76
77
|
value: '24h'
|
|
77
78
|
}, {
|
|
78
|
-
label: '3
|
|
79
|
+
label: translateLocaleText("t('vtxdevicemodal.3')"),
|
|
79
80
|
value: '3days'
|
|
80
81
|
}, {
|
|
81
|
-
label: '7
|
|
82
|
+
label: translateLocaleText("t('vtxdevicemodal.7')"),
|
|
82
83
|
value: '7days'
|
|
83
84
|
}].concat(_toConsumableArray(collectFrequency === 'day' ? [{
|
|
84
|
-
label: '
|
|
85
|
+
label: translateLocaleText("t('vtxdevicemodal.month')"),
|
|
85
86
|
value: 'month'
|
|
86
87
|
}] : []), _toConsumableArray(collectFrequency === 'month' ? [{
|
|
87
|
-
label: '
|
|
88
|
+
label: translateLocaleText("t('vtxdevicemodal.year')"),
|
|
88
89
|
value: 'year'
|
|
89
90
|
}] : []), [{
|
|
90
|
-
label: '
|
|
91
|
+
label: translateLocaleText("t('_components.custom')"),
|
|
91
92
|
value: 'self'
|
|
92
93
|
}]);
|
|
93
94
|
useEffect(function () {
|
|
@@ -370,14 +371,14 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
370
371
|
};
|
|
371
372
|
};
|
|
372
373
|
var columns = [{
|
|
373
|
-
title: '
|
|
374
|
+
title: translateLocaleText("t('vtxdevicemodal.monitoringItem')"),
|
|
374
375
|
dataIndex: 'monitorItemName',
|
|
375
376
|
width: 120,
|
|
376
377
|
ellipsis: true,
|
|
377
378
|
fixed: 'left'
|
|
378
379
|
}, {
|
|
379
380
|
width: 80,
|
|
380
|
-
title: '
|
|
381
|
+
title: translateLocaleText("t('vtxdevicemodal.value')"),
|
|
381
382
|
dataIndex: 'value',
|
|
382
383
|
align: 'right',
|
|
383
384
|
render: function render(text, record) {
|
|
@@ -385,7 +386,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
385
386
|
}
|
|
386
387
|
}, {
|
|
387
388
|
width: 80,
|
|
388
|
-
title: '
|
|
389
|
+
title: translateLocaleText("t('vtxdevicemodal.isAlarm')"),
|
|
389
390
|
dataIndex: 'onAlarm',
|
|
390
391
|
render: function render(text) {
|
|
391
392
|
return /*#__PURE__*/_jsx(VmTag, {
|
|
@@ -395,7 +396,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
395
396
|
error: text
|
|
396
397
|
})
|
|
397
398
|
}), /*#__PURE__*/_jsx("span", {
|
|
398
|
-
children: text ? '
|
|
399
|
+
children: text ? translateLocaleText("t('common.yes')") : translateLocaleText("t('common.no')")
|
|
399
400
|
})]
|
|
400
401
|
}),
|
|
401
402
|
type: text ? 'red' : 'green'
|
|
@@ -403,14 +404,14 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
403
404
|
}
|
|
404
405
|
}, {
|
|
405
406
|
width: 80,
|
|
406
|
-
title: '
|
|
407
|
+
title: translateLocaleText("t('vtxdevicemodal.value2')"),
|
|
407
408
|
dataIndex: 'alarmDescription',
|
|
408
409
|
ellipsis: true,
|
|
409
410
|
render: function render(text) {
|
|
410
411
|
return text ? text : '-';
|
|
411
412
|
}
|
|
412
413
|
}, {
|
|
413
|
-
title: '
|
|
414
|
+
title: translateLocaleText("t('vtxdevicemodal.hours')"),
|
|
414
415
|
dataIndex: 'timeDesc',
|
|
415
416
|
sorter: function sorter(a, b) {
|
|
416
417
|
return a.time - b.time;
|
|
@@ -428,7 +429,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
428
429
|
height: 348
|
|
429
430
|
},
|
|
430
431
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
431
|
-
title: '
|
|
432
|
+
title: translateLocaleText("t('vtxdevicemodal.indicatorAnalyze')"),
|
|
432
433
|
contentStyle: {
|
|
433
434
|
padding: '0 16px 16px'
|
|
434
435
|
},
|
|
@@ -438,7 +439,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
438
439
|
return;
|
|
439
440
|
}
|
|
440
441
|
if (date[1].diff(date[0], 'd') > 7) {
|
|
441
|
-
message.warning('
|
|
442
|
+
message.warning(translateLocaleText("t('vtxdevicemodal.hours7')"));
|
|
442
443
|
return;
|
|
443
444
|
}
|
|
444
445
|
setState({
|
|
@@ -459,7 +460,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
459
460
|
style: {
|
|
460
461
|
fontSize: 14
|
|
461
462
|
},
|
|
462
|
-
children: "
|
|
463
|
+
children: translateLocaleText("t('vtxdevicemodal.indicator')")
|
|
463
464
|
}), /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
464
465
|
value: collectFrequency,
|
|
465
466
|
options: collectList.map(function (item) {
|
|
@@ -512,7 +513,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
512
513
|
height: '100%'
|
|
513
514
|
},
|
|
514
515
|
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
515
|
-
title: '
|
|
516
|
+
title: translateLocaleText("t('vtxdevicemodal.monitoringIndicator')"),
|
|
516
517
|
border: false
|
|
517
518
|
}), /*#__PURE__*/_jsx("div", {
|
|
518
519
|
style: {
|
|
@@ -541,7 +542,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
541
542
|
height: '100%'
|
|
542
543
|
},
|
|
543
544
|
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
544
|
-
title: '
|
|
545
|
+
title: translateLocaleText("t('vtxdevicemodal.monitoringTrend')"),
|
|
545
546
|
border: false,
|
|
546
547
|
extra: /*#__PURE__*/_jsx(VmExtraTab, {
|
|
547
548
|
value: showType,
|
|
@@ -557,7 +558,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
557
558
|
height: 14,
|
|
558
559
|
fill: getActiveModeFill('chart')
|
|
559
560
|
}),
|
|
560
|
-
name: '
|
|
561
|
+
name: translateLocaleText("t('vtxdevicemodal.chart')")
|
|
561
562
|
}, {
|
|
562
563
|
key: 'list',
|
|
563
564
|
title: /*#__PURE__*/_jsx(ChartIcon, {
|
|
@@ -565,7 +566,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
565
566
|
height: 14,
|
|
566
567
|
fill: getActiveModeFill('list')
|
|
567
568
|
}),
|
|
568
|
-
name: '
|
|
569
|
+
name: translateLocaleText("t('_components.list')")
|
|
569
570
|
}]
|
|
570
571
|
})
|
|
571
572
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -591,7 +592,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
591
592
|
}
|
|
592
593
|
}) : /*#__PURE__*/_jsx(VmTable, {
|
|
593
594
|
columns: [{
|
|
594
|
-
title: '
|
|
595
|
+
title: translateLocaleText("t('vtxdevicemodal.hours')"),
|
|
595
596
|
dataIndex: 'date',
|
|
596
597
|
sorter: function sorter(a, b) {
|
|
597
598
|
return a.date > b.date ? 1 : -1;
|
|
@@ -7,13 +7,28 @@ var DataAnalysis = function DataAnalysis(_ref) {
|
|
|
7
7
|
info = _ref.info;
|
|
8
8
|
return /*#__PURE__*/_jsxs(Row, {
|
|
9
9
|
gutter: [16, 16],
|
|
10
|
+
style: {
|
|
11
|
+
width: '100%',
|
|
12
|
+
minWidth: 0,
|
|
13
|
+
margin: 0
|
|
14
|
+
},
|
|
10
15
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
11
16
|
span: 24,
|
|
17
|
+
style: {
|
|
18
|
+
minWidth: 0,
|
|
19
|
+
paddingLeft: 0,
|
|
20
|
+
paddingRight: 0
|
|
21
|
+
},
|
|
12
22
|
children: /*#__PURE__*/_jsx(MonitorAnalysis, {
|
|
13
23
|
id: id
|
|
14
24
|
})
|
|
15
25
|
}), /*#__PURE__*/_jsx(Col, {
|
|
16
26
|
span: 24,
|
|
27
|
+
style: {
|
|
28
|
+
minWidth: 0,
|
|
29
|
+
paddingLeft: 0,
|
|
30
|
+
paddingRight: 0
|
|
31
|
+
},
|
|
17
32
|
children: /*#__PURE__*/_jsx(AlarmAnalysis, {
|
|
18
33
|
id: id,
|
|
19
34
|
info: info
|
|
@@ -5,12 +5,15 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
5
5
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
6
6
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
7
7
|
import { useMemo } from 'react';
|
|
8
|
+
import "../_util/setupDayjs";
|
|
8
9
|
import { VmCustom, VmVideo } from "../_components";
|
|
9
10
|
import VtxBaseModal from "../vtx-base-modal";
|
|
10
11
|
import { BaseService } from "./api";
|
|
11
12
|
import { BaseInfo } from "./components";
|
|
12
13
|
import DataAnalysis from "./components/DataAnalysis";
|
|
14
|
+
import "../style/index.less";
|
|
13
15
|
import "./style";
|
|
16
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
14
17
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
18
|
var TABS_BASE = 'base';
|
|
16
19
|
var TABS_DATA = 'statistical';
|
|
@@ -26,13 +29,13 @@ var VtxDeviceModal = function VtxDeviceModal(props) {
|
|
|
26
29
|
tabChose = _props$tabChose === void 0 ? '' : _props$tabChose;
|
|
27
30
|
var tabs = [{
|
|
28
31
|
key: TABS_BASE,
|
|
29
|
-
title: '
|
|
32
|
+
title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')")
|
|
30
33
|
}, {
|
|
31
34
|
key: TABS_DATA,
|
|
32
|
-
title: '
|
|
35
|
+
title: translateLocaleText("t('vtxdevicemodal.analyze2')")
|
|
33
36
|
}, {
|
|
34
37
|
key: TABS_VIDEO,
|
|
35
|
-
title: '
|
|
38
|
+
title: translateLocaleText("t('vtxdevicemodal.video')")
|
|
36
39
|
}];
|
|
37
40
|
var _useGetConfig = useGetConfig('device', tabs),
|
|
38
41
|
tabsData = _useGetConfig.tabsData;
|
|
@@ -1 +1,33 @@
|
|
|
1
1
|
|
|
2
|
+
.vtx-device-base-map-col {
|
|
3
|
+
min-width: 0;
|
|
4
|
+
|
|
5
|
+
.vtx-device-base-map-wrapper {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
.div-wrapper-content {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
padding: 16px;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vtx-device-base-map-inner {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
min-height: 0;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
border-radius: 8px;
|
|
23
|
+
background: #f5f7fa;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.vm-modal-dark {
|
|
28
|
+
.vtx-device-base-map-col {
|
|
29
|
+
.vtx-device-base-map-inner {
|
|
30
|
+
background: rgba(0, 155, 233, 10%);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -2,6 +2,7 @@ import { flatten, max } from 'lodash';
|
|
|
2
2
|
import { VmLineCharts, VmWrapper } from "../../../_components";
|
|
3
3
|
import useSettings from "../../../_hooks/useSettings";
|
|
4
4
|
import { BaseService } from "../../api";
|
|
5
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
export default function Jcqsfx(props) {
|
|
7
8
|
var _trendRes$values, _trendRes$values2;
|
|
@@ -20,17 +21,17 @@ export default function Jcqsfx(props) {
|
|
|
20
21
|
return /*#__PURE__*/_jsx("div", {
|
|
21
22
|
className: "base-top--jcqsfx",
|
|
22
23
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
23
|
-
title: "
|
|
24
|
+
title: translateLocaleText("t('vtxdfmodal.analyze')"),
|
|
24
25
|
needChange: false,
|
|
25
26
|
children: /*#__PURE__*/_jsx(VmLineCharts, {
|
|
26
|
-
unit: "
|
|
27
|
+
unit: translateLocaleText("t('vtxdefaultmodal.tonUnit')"),
|
|
27
28
|
height: 240,
|
|
28
29
|
showLegend: false,
|
|
29
30
|
xAxis: (trendRes === null || trendRes === void 0 ? void 0 : trendRes.names) || [],
|
|
30
31
|
yMax: maxNum,
|
|
31
32
|
dataList: [{
|
|
32
33
|
data: ((_trendRes$values2 = trendRes.values) === null || _trendRes$values2 === void 0 ? void 0 : _trendRes$values2[0]) || [],
|
|
33
|
-
name: '
|
|
34
|
+
name: translateLocaleText("t('vtxdefaultmodal.inboundAmount')"),
|
|
34
35
|
markLine: {
|
|
35
36
|
data: [{
|
|
36
37
|
yAxis: trendRes !== null && trendRes !== void 0 && trendRes.values && trendRes.values[1] ? trendRes.values[1][0] : 0,
|
|
@@ -39,7 +40,7 @@ export default function Jcqsfx(props) {
|
|
|
39
40
|
color: '#FFE25D'
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
|
-
name: '
|
|
43
|
+
name: translateLocaleText("t('vtxdfmodal.tonsDay')")
|
|
43
44
|
}],
|
|
44
45
|
lineStyle: {
|
|
45
46
|
color: '#52C41A'
|
|
@@ -4,8 +4,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
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; }
|
|
5
5
|
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; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
|
+
/**
|
|
9
|
+
* 监测指标趋势分析
|
|
9
10
|
*/
|
|
10
11
|
import { useSetState } from 'ahooks';
|
|
11
12
|
import dayjs from 'dayjs';
|
|
@@ -41,7 +42,7 @@ function Jczbqs(props) {
|
|
|
41
42
|
return /*#__PURE__*/_jsx("div", {
|
|
42
43
|
className: "df-overview-trend",
|
|
43
44
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
44
|
-
title: "
|
|
45
|
+
title: translateLocaleText("t('vtxtfdmodal.monitoringIndicatorAnalyze24Hours')"),
|
|
45
46
|
extra: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
46
47
|
value: value,
|
|
47
48
|
onChange: function onChange(val) {
|
|
@@ -58,13 +59,13 @@ function Jczbqs(props) {
|
|
|
58
59
|
style: {
|
|
59
60
|
width: 150
|
|
60
61
|
},
|
|
61
|
-
placeholder: "
|
|
62
|
+
placeholder: translateLocaleText("t('common.placeholder.select')"),
|
|
62
63
|
allowClear: false
|
|
63
64
|
}),
|
|
64
65
|
children: /*#__PURE__*/_jsx("div", {
|
|
65
66
|
className: "df-overview-trend-content",
|
|
66
67
|
children: timeSumData ? /*#__PURE__*/_jsx(VmLineCharts, {
|
|
67
|
-
title: '
|
|
68
|
+
title: translateLocaleText("t('vtxtfdmodal.totalCount')"),
|
|
68
69
|
height: 191,
|
|
69
70
|
unit: (timeSumData === null || timeSumData === void 0 || (_timeSumData$extraDat = timeSumData.extraData) === null || _timeSumData$extraDat === void 0 || (_timeSumData$extraDat = _timeSumData$extraDat[0]) === null || _timeSumData$extraDat === void 0 ? void 0 : _timeSumData$extraDat.unit) || '',
|
|
70
71
|
xAxis: (timeSumData === null || timeSumData === void 0 ? void 0 : timeSumData.names) || [],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
1
2
|
/**
|
|
2
3
|
* 区域进场量分析
|
|
3
4
|
*/
|
|
@@ -20,9 +21,9 @@ function Qyjcl(props) {
|
|
|
20
21
|
children: areaSumData !== null && areaSumData !== void 0 && (_areaSumData$areaDeta = areaSumData.areaDetailList) !== null && _areaSumData$areaDeta !== void 0 && _areaSumData$areaDeta.length ? /*#__PURE__*/_jsx(VmPieCharts, {
|
|
21
22
|
height: 216,
|
|
22
23
|
total: total === null || total === void 0 ? void 0 : total.toFixed(2),
|
|
23
|
-
title: "
|
|
24
|
-
unit: "
|
|
25
|
-
name: "
|
|
24
|
+
title: translateLocaleText("t('vtxtfdmodal.tons')"),
|
|
25
|
+
unit: translateLocaleText("t('vtxdefaultmodal.tonUnit')"),
|
|
26
|
+
name: translateLocaleText("t('vtxdfmodal.areaInboundAmount')"),
|
|
26
27
|
innerRadius: ['50%', '65%'],
|
|
27
28
|
outerRadius: ['65%', '70%'],
|
|
28
29
|
dataList: (areaSumData === null || areaSumData === void 0 || (_areaSumData$areaDeta2 = areaSumData.areaDetailList) === null || _areaSumData$areaDeta2 === void 0 ? void 0 : _areaSumData$areaDeta2.map(function (ele) {
|