@vtx/modals2 6.0.0-beta.3 → 6.0.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/index.js +1 -0
- package/lib/_components/vm-appraisal-info/api.js +55 -0
- package/lib/_components/vm-appraisal-info/imgs/count.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/count_light.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract_light.png +0 -0
- package/lib/_components/vm-appraisal-info/index.js +205 -0
- package/lib/_components/vm-appraisal-info/index.less +7 -0
- package/lib/_components/vm-bar-charts/index.js +4 -4
- package/lib/_components/vm-calendar/index.js +1 -1
- package/lib/_components/vm-empty/index.js +1 -1
- package/lib/_components/vm-factor/index.js +1 -1
- package/lib/_components/vm-filter/index.js +1 -1
- package/lib/_components/vm-filter/style/index.less +7 -11
- package/lib/_components/vm-info-collection/index.js +1 -1
- package/lib/_components/vm-line-charts/index.js +4 -1
- package/lib/_components/vm-map/index.js +1 -1
- package/lib/_components/vm-progress/index.js +1 -1
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +1 -1
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +1 -1
- package/lib/_components/vm-repair-maintain/RmRecord.js +1 -1
- package/lib/_components/vm-repair-maintain/RmType.js +1 -1
- package/lib/_components/vm-repair-maintain/index.js +35 -3
- package/lib/_components/vm-table/index.js +1 -1
- package/lib/_components/vm-tag/index.js +1 -1
- package/lib/_components/vm-title/index.js +1 -1
- package/lib/_components/vm-video/HistoryGrid.js +53 -3
- package/lib/_components/vm-video/RealtimeGrid.js +24 -3
- package/lib/_components/vm-video/index.js +100 -38
- package/lib/_components/vm-video/index.less +18 -14
- package/lib/_components/vm-wrapper/index.js +1 -1
- package/lib/_hooks/useGetChannels.js +20 -6
- package/lib/_hooks/useUmsService.js +36 -0
- package/lib/_service/index.js +7 -33
- package/lib/_util/http.js +31 -4
- package/lib/_util/iconSvgHtml.js +15 -5
- package/lib/_util/index.js +1 -1
- package/lib/locales/en.json +1517 -1516
- package/lib/locales/zh-CN.json +1517 -1516
- package/lib/vtx-area-modal/api.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-base-modal/Header/index.js +2 -77
- package/lib/vtx-base-modal/Header/index.less +1 -0
- package/lib/vtx-base-modal/Tabs/index.js +2 -1
- package/lib/vtx-base-modal/index.js +1 -1
- package/lib/vtx-base-modal/style/index.less +4 -1
- package/lib/vtx-car-modal/api.js +322 -208
- package/lib/vtx-car-modal/components/Info/index.js +2 -2
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +1 -1
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/EleUse/index.js +20 -8
- package/lib/vtx-car-modal/content/Common/Maintenance/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilUse/index.js +18 -6
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -169
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/WaterUse/index.js +10 -5
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +2 -2
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +17 -17
- package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +3 -2
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +10 -9
- package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +12 -12
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +6 -5
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +9 -7
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +7 -4
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +1 -1
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +2 -2
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +1 -1
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +1 -1
- package/lib/vtx-car-modal/index.js +33 -22
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +1 -1
- package/lib/vtx-cc-unit-modal/index.js +1 -1
- package/lib/vtx-cp-modal/api.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +3 -6
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +8 -2
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +9 -5
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +1 -1
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +3 -3
- package/lib/vtx-cp-modal/components/SyInfo/index.js +1 -1
- package/lib/vtx-cp-modal/index.js +13 -13
- package/lib/vtx-default-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-default-modal/index.js +8 -7
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +1 -1
- package/lib/vtx-device-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +1 -1
- package/lib/vtx-device-modal/index.js +4 -4
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +3 -3
- package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +12 -6
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +3 -3
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +1 -1
- package/lib/vtx-df-modal/components/Calendar/index.js +10 -3
- package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +10 -3
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +1 -1
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +1 -1
- package/lib/vtx-df-modal/components/Metering/List.js +1 -1
- package/lib/vtx-df-modal/components/Metering/index.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +3 -3
- package/lib/vtx-df-modal/components/WorkCondition/index.js +1 -1
- package/lib/vtx-df-modal/index.js +20 -25
- package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +1 -1
- package/lib/vtx-housing-estate-modal/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/index.js +1 -1
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-ysqy-modal/index.js +1 -1
- package/lib/vtx-kh-modal/api2.js +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-kh-modal/components/Record/index.js +1 -205
- package/lib/vtx-kh-modal/index.js +1 -1
- package/lib/vtx-qyry-modal/api.js +1 -1
- package/lib/vtx-qyry-modal/index.js +2 -2
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Collection/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +3 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +1 -1
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +1 -1
- package/lib/vtx-restaurant-modal/config.js +11 -3
- package/lib/vtx-restaurant-modal/index.js +1 -1
- package/lib/vtx-road-modal/api.js +6 -2
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +11 -2
- package/lib/vtx-road-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-road-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +9 -2
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +1 -1
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +4 -1
- package/lib/vtx-road-modal/components/LaneStatistical/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-road-modal/index.js +21 -5
- package/lib/vtx-road-modal/utils/url.js +12 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/index.js +1 -1
- package/lib/vtx-shxq-modal/api.js +6 -6
- package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +1 -1
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +1 -1
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +3 -3
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +20 -7
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +1 -1
- package/lib/vtx-shxq-modal/index.js +21 -4
- package/lib/vtx-staff-modal/api.js +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +5 -2
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/Record.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-staff-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-staff-modal/components/Calendar/index.less +1 -1
- package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
- package/lib/vtx-staff-modal/index.js +1 -1
- package/lib/vtx-tfd-modal/api.js +3 -3
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +3 -3
- package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +1 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-wr-modal/components/Appraise/index.js +3 -3
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +4 -47
- package/lib/vtx-wr-modal/components/Base/Ptss.js +42 -8
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +1 -1
- package/lib/vtx-wr-modal/components/Base/index.js +45 -14
- package/lib/vtx-wr-modal/components/Base/index.less +87 -4
- package/lib/vtx-wr-modal/components/Build/index.js +1 -1
- package/lib/vtx-wr-modal/components/File/index.js +1 -1
- package/lib/vtx-wr-modal/components/Score/index.js +3 -3
- package/lib/vtx-wr-modal/index.js +34 -6
- package/lib/vtx-zf-modal/components/Base/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +1 -1
- package/lib/vtx-zf-modal/components/File/index.js +1 -1
- package/lib/vtx-zf-modal/components/Process/index.js +1 -1
- package/lib/vtx-zf-modal/components/Record/index.js +1 -1
- package/lib/vtx-zf-modal/components/Right/index.js +1 -1
- package/lib/vtx-zg-modal/api.js +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-zg-modal/index.js +1 -1
- package/lib/vtx-zzz-modal/index.js +29 -22
- package/package.json +6 -6
|
@@ -4,9 +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
|
-
import { translateLocaleText } from "./../hooks/useTranslation.
|
|
8
|
-
/**
|
|
9
|
-
* 通用弹窗
|
|
7
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
8
|
+
/**
|
|
9
|
+
* 通用弹窗
|
|
10
10
|
*/
|
|
11
11
|
import { useMemo } from 'react';
|
|
12
12
|
import { VmCustom, VmRepairMaintain, VmVideo } from "../_components";
|
|
@@ -15,7 +15,7 @@ import useGetConfig from "../_hooks/useGetConfig";
|
|
|
15
15
|
import { CommonService } from "../_service";
|
|
16
16
|
import VtxBaseModal from "../vtx-base-modal";
|
|
17
17
|
import Metering from "../vtx-df-modal/components/Metering";
|
|
18
|
-
import Appraisal from "../
|
|
18
|
+
import Appraisal from "../_components/vm-appraisal-info";
|
|
19
19
|
import { BaseInfo } from "./components";
|
|
20
20
|
import "./style";
|
|
21
21
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -27,6 +27,7 @@ var TABS_METERING = 'metering';
|
|
|
27
27
|
var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
28
28
|
var _info$geometryInfo, _info$geometryInfo2, _info$geometryInfo3;
|
|
29
29
|
var id = props.id,
|
|
30
|
+
facilityId = props.facilityId,
|
|
30
31
|
title = props.title,
|
|
31
32
|
subTitle = props.subTitle,
|
|
32
33
|
theme = props.theme,
|
|
@@ -94,17 +95,17 @@ var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
|
94
95
|
id: id
|
|
95
96
|
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
96
97
|
id: id
|
|
97
|
-
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
98
|
-
channels: channels
|
|
99
98
|
})), TABS_METERING, /*#__PURE__*/_jsx(Metering, {
|
|
100
99
|
id: id
|
|
100
|
+
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
101
|
+
channels: channels
|
|
101
102
|
}));
|
|
102
103
|
// 自定义页签可配置多个,包含custom即可
|
|
103
104
|
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
104
105
|
tabsData.forEach(function (ele) {
|
|
105
106
|
if (ele.url) {
|
|
106
107
|
contents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
107
|
-
id: id,
|
|
108
|
+
id: ele.url.indexOf('type=1') > -1 ? facilityId : id,
|
|
108
109
|
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
109
110
|
});
|
|
110
111
|
}
|
|
@@ -16,7 +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.
|
|
19
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
21
|
var PreviewAndDownload = function PreviewAndDownload(_ref) {
|
|
22
22
|
var key = _ref.key,
|
|
@@ -22,7 +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.
|
|
25
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
26
26
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
27
|
var BaseInfo = function BaseInfo(_ref) {
|
|
28
28
|
var info = _ref.info;
|
|
@@ -21,7 +21,7 @@ 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.
|
|
24
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
25
25
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
26
|
var tabList = [{
|
|
27
27
|
label: translateLocaleText("t('vtxdevicemodal.day')"),
|
|
@@ -22,7 +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.
|
|
25
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
26
26
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
27
|
var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
28
28
|
var _newList$, _newList$2, _newList$3;
|
|
@@ -5,15 +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";
|
|
9
8
|
import { VmCustom, VmVideo } from "../_components";
|
|
9
|
+
import "../_util/setupDayjs";
|
|
10
|
+
import "../style/index.less";
|
|
10
11
|
import VtxBaseModal from "../vtx-base-modal";
|
|
11
12
|
import { BaseService } from "./api";
|
|
12
13
|
import { BaseInfo } from "./components";
|
|
13
14
|
import DataAnalysis from "./components/DataAnalysis";
|
|
14
|
-
import "../style/index.less";
|
|
15
15
|
import "./style";
|
|
16
|
-
import { translateLocaleText } from "./../hooks/useTranslation.
|
|
16
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
17
17
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
18
|
var TABS_BASE = 'base';
|
|
19
19
|
var TABS_DATA = 'statistical';
|
|
@@ -60,7 +60,7 @@ var VtxDeviceModal = function VtxDeviceModal(props) {
|
|
|
60
60
|
id: id,
|
|
61
61
|
info: info
|
|
62
62
|
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
63
|
-
|
|
63
|
+
channels: channels
|
|
64
64
|
}));
|
|
65
65
|
// 自定义页签可配置多个,包含custom即可
|
|
66
66
|
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
@@ -2,7 +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.
|
|
5
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export default function Jcqsfx(props) {
|
|
8
8
|
var _trendRes$values, _trendRes$values2;
|
|
@@ -4,9 +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
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
8
|
-
/**
|
|
9
|
-
* 监测指标趋势分析
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
|
+
/**
|
|
9
|
+
* 监测指标趋势分析
|
|
10
10
|
*/
|
|
11
11
|
import { useSetState } from 'ahooks';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
1
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
2
2
|
/**
|
|
3
3
|
* 区域进场量分析
|
|
4
4
|
*/
|
|
@@ -9,27 +9,33 @@ import { BaseService } from "../../api";
|
|
|
9
9
|
import "./index.less";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
function Qyjcl(props) {
|
|
12
|
-
var _areaSumData$areaDeta, _areaSumData$areaDeta2;
|
|
12
|
+
var _areaSumData$areaDeta, _ref, _areaSumData$areaDeta2;
|
|
13
13
|
var code = props.code,
|
|
14
14
|
startDate = props.startDate,
|
|
15
15
|
endDate = props.endDate;
|
|
16
16
|
var _BaseService$useQyjcl = BaseService.useQyjcl(code, startDate, endDate),
|
|
17
17
|
areaSumData = _BaseService$useQyjcl.areaSumData;
|
|
18
18
|
var total = sumBy((areaSumData === null || areaSumData === void 0 ? void 0 : areaSumData.areaDetailList) || [], 'todayInWeight') || 0;
|
|
19
|
+
// 数据量达到万吨及以上时,转换为万吨展示,保留2位小数
|
|
20
|
+
var isWanTons = total >= 10000;
|
|
21
|
+
var rate = isWanTons ? 10000 : 1;
|
|
22
|
+
var unitText = isWanTons ? translateLocaleText("t('vtxtfdmodal.wanTons')") : translateLocaleText("t('vtxdefaultmodal.tonUnit')");
|
|
23
|
+
var titleText = isWanTons ? translateLocaleText("t('vtxtfdmodal.wanTons')") : translateLocaleText("t('vtxtfdmodal.tons')");
|
|
19
24
|
return /*#__PURE__*/_jsx("div", {
|
|
20
25
|
className: "df-qyjcl",
|
|
21
26
|
children: areaSumData !== null && areaSumData !== void 0 && (_areaSumData$areaDeta = areaSumData.areaDetailList) !== null && _areaSumData$areaDeta !== void 0 && _areaSumData$areaDeta.length ? /*#__PURE__*/_jsx(VmPieCharts, {
|
|
22
27
|
height: 216,
|
|
23
|
-
total: total === null ||
|
|
24
|
-
title:
|
|
25
|
-
unit:
|
|
28
|
+
total: (_ref = total / rate) === null || _ref === void 0 ? void 0 : _ref.toFixed(2),
|
|
29
|
+
title: titleText,
|
|
30
|
+
unit: unitText,
|
|
26
31
|
name: translateLocaleText("t('vtxdfmodal.areaInboundAmount')"),
|
|
27
32
|
innerRadius: ['50%', '65%'],
|
|
28
33
|
outerRadius: ['65%', '70%'],
|
|
29
34
|
dataList: (areaSumData === null || areaSumData === void 0 || (_areaSumData$areaDeta2 = areaSumData.areaDetailList) === null || _areaSumData$areaDeta2 === void 0 ? void 0 : _areaSumData$areaDeta2.map(function (ele) {
|
|
35
|
+
var _ref2;
|
|
30
36
|
return {
|
|
31
37
|
name: ele.areaName,
|
|
32
|
-
value: ele.todayInWeight,
|
|
38
|
+
value: Number((_ref2 = ele.todayInWeight / rate) === null || _ref2 === void 0 ? void 0 : _ref2.toFixed(2)),
|
|
33
39
|
rate: ele.todayInWeightPercent
|
|
34
40
|
};
|
|
35
41
|
})) || [],
|
|
@@ -10,7 +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.
|
|
13
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
14
14
|
/**
|
|
15
15
|
* 实时监测情况
|
|
16
16
|
*/
|
|
@@ -4,7 +4,7 @@ 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
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
8
|
/**
|
|
9
9
|
* 实时运行情况
|
|
10
10
|
*/
|
|
@@ -19,7 +19,7 @@ import Jcqsfx from "./Jcqsfx";
|
|
|
19
19
|
import Qyjcl from "./Qyjcl";
|
|
20
20
|
import RealtimeMonitor from "./RealtimeMonitor";
|
|
21
21
|
import Situation from "./Situation";
|
|
22
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
22
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
var BaseInfo = function BaseInfo(props) {
|
|
25
25
|
var info = props.info,
|
|
@@ -8,7 +8,7 @@ import { max } from 'lodash';
|
|
|
8
8
|
import { VmLineCharts, VmWrapper } from "../../../_components";
|
|
9
9
|
import useSettings from "../../../_hooks/useSettings";
|
|
10
10
|
import { CalendarService } from "../../api-zd-reborn";
|
|
11
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
11
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export default function Jcqsfx(props) {
|
|
14
14
|
var _useSettings = useSettings(),
|
|
@@ -4,9 +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
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
8
|
-
/**
|
|
9
|
-
* 监测指标趋势分析
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
|
+
/**
|
|
9
|
+
* 监测指标趋势分析
|
|
10
10
|
*/
|
|
11
11
|
import { useSetState } from 'ahooks';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
@@ -10,7 +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.
|
|
13
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
14
14
|
/**
|
|
15
15
|
* 实时监测情况
|
|
16
16
|
*/
|
|
@@ -4,7 +4,7 @@ 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
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
8
|
/**
|
|
9
9
|
* 实时运行情况
|
|
10
10
|
*/
|
|
@@ -19,7 +19,7 @@ import Jcqsfx from "./Jcqsfx";
|
|
|
19
19
|
import Qyjcl from "./Qyjcl";
|
|
20
20
|
import RealtimeMonitor from "./RealtimeMonitor";
|
|
21
21
|
import Situation from "./Situation";
|
|
22
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
22
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
var BaseInfo = function BaseInfo(props) {
|
|
25
25
|
var info = props.info,
|
|
@@ -20,10 +20,11 @@ import blockN from "../../../_imgs/block_normal.png";
|
|
|
20
20
|
import car from "../../imgs/c_car.png";
|
|
21
21
|
import jcl from "../../imgs/c_jcl.png";
|
|
22
22
|
import "./index.less";
|
|
23
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
23
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
25
|
var Charts = function Charts(_ref) {
|
|
26
|
-
var code = _ref.code
|
|
26
|
+
var code = _ref.code,
|
|
27
|
+
hasWorkCondition = _ref.hasWorkCondition;
|
|
27
28
|
var _useSettings = useSettings(),
|
|
28
29
|
isDark = _useSettings.isDark;
|
|
29
30
|
var _useSetState = useSetState({
|
|
@@ -112,20 +113,26 @@ var Charts = function Charts(_ref) {
|
|
|
112
113
|
children: [/*#__PURE__*/_jsx("div", {
|
|
113
114
|
className: "df-calendar-head",
|
|
114
115
|
children: [{
|
|
116
|
+
visible: true,
|
|
115
117
|
name: translateLocaleText("t('vtxdfmodal.tons')"),
|
|
116
118
|
img: jcl,
|
|
117
119
|
type: 'blue'
|
|
118
120
|
}, {
|
|
121
|
+
visible: true,
|
|
119
122
|
name: translateLocaleText("t('vtxjzljdftpdmodal.times')"),
|
|
120
123
|
img: car,
|
|
121
124
|
type: 'green'
|
|
122
125
|
}, {
|
|
126
|
+
visible: hasWorkCondition,
|
|
123
127
|
name: translateLocaleText("t('vtxdfmodal.workConditionNormal')"),
|
|
124
128
|
imgType: 'normal'
|
|
125
129
|
}, {
|
|
130
|
+
visible: hasWorkCondition,
|
|
126
131
|
name: translateLocaleText("t('vtxdfmodal.workConditionAbnormal')"),
|
|
127
132
|
imgType: 'alarm'
|
|
128
|
-
}].
|
|
133
|
+
}].filter(function (ele) {
|
|
134
|
+
return ele.visible;
|
|
135
|
+
}).map(function (item, index) {
|
|
129
136
|
return /*#__PURE__*/_jsx(VmCalendarInner, _objectSpread(_objectSpread({}, item), {}, {
|
|
130
137
|
value: item.name
|
|
131
138
|
}), index);
|
|
@@ -20,12 +20,13 @@ import blockN from "../../../_imgs/block_normal.png";
|
|
|
20
20
|
import car from "../../imgs/c_car.png";
|
|
21
21
|
import jcl from "../../imgs/c_jcl.png";
|
|
22
22
|
import "./index.less";
|
|
23
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
23
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
25
|
var Charts = function Charts(_ref) {
|
|
26
26
|
var code = _ref.code,
|
|
27
27
|
deviceId = _ref.deviceId,
|
|
28
|
-
handleAbility = _ref.handleAbility
|
|
28
|
+
handleAbility = _ref.handleAbility,
|
|
29
|
+
hasWorkCondition = _ref.hasWorkCondition;
|
|
29
30
|
var _useSettings = useSettings(),
|
|
30
31
|
isDark = _useSettings.isDark;
|
|
31
32
|
var _useSetState = useSetState({
|
|
@@ -112,20 +113,26 @@ var Charts = function Charts(_ref) {
|
|
|
112
113
|
children: [/*#__PURE__*/_jsx("div", {
|
|
113
114
|
className: "df-calendar-head",
|
|
114
115
|
children: [{
|
|
116
|
+
visible: true,
|
|
115
117
|
name: translateLocaleText("t('vtxdfmodal.tons')"),
|
|
116
118
|
img: jcl,
|
|
117
119
|
type: 'blue'
|
|
118
120
|
}, {
|
|
121
|
+
visible: true,
|
|
119
122
|
name: translateLocaleText("t('vtxjzljdftpdmodal.times')"),
|
|
120
123
|
img: car,
|
|
121
124
|
type: 'green'
|
|
122
125
|
}, {
|
|
126
|
+
visible: hasWorkCondition,
|
|
123
127
|
name: translateLocaleText("t('vtxdfmodal.workConditionNormal')"),
|
|
124
128
|
imgType: 'normal'
|
|
125
129
|
}, {
|
|
130
|
+
visible: hasWorkCondition,
|
|
126
131
|
name: translateLocaleText("t('vtxdfmodal.workConditionAbnormal')"),
|
|
127
132
|
imgType: 'alarm'
|
|
128
|
-
}].
|
|
133
|
+
}].filter(function (ele) {
|
|
134
|
+
return ele.visible;
|
|
135
|
+
}).map(function (item, index) {
|
|
129
136
|
return /*#__PURE__*/_jsx(VmCalendarInner, _objectSpread(_objectSpread({}, item), {}, {
|
|
130
137
|
value: item.name
|
|
131
138
|
}), index);
|
|
@@ -10,7 +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.
|
|
13
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
14
14
|
/**
|
|
15
15
|
* 考核信息-列表
|
|
16
16
|
*/
|
|
@@ -10,7 +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.
|
|
13
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
14
14
|
/**
|
|
15
15
|
* 终端-计量信息
|
|
16
16
|
*/
|
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
6
|
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; }
|
|
7
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
8
|
/**
|
|
9
9
|
* 计量信息-图表-进场趋势分析
|
|
10
10
|
*/
|
|
@@ -10,7 +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.
|
|
13
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
14
14
|
/**
|
|
15
15
|
* 考核信息-列表
|
|
16
16
|
*/
|
|
@@ -4,7 +4,7 @@ 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
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
8
|
/**
|
|
9
9
|
* 终端-计量信息
|
|
10
10
|
*/
|
|
@@ -13,7 +13,7 @@ import { VmEmpty, VmFilter } from "../../../_components";
|
|
|
13
13
|
import useSettings from "../../../_hooks/useSettings";
|
|
14
14
|
import { BaseService } from "../../api";
|
|
15
15
|
import "./index.less";
|
|
16
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
16
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
17
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
18
|
function Jczbqs(props) {
|
|
19
19
|
var _timeSumData$extraDat2, _timeSumData$extraDat3, _timeSumData$values;
|
|
@@ -10,9 +10,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
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; }
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
12
|
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); }
|
|
13
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
14
|
-
/**
|
|
15
|
-
* 计量-工况信息
|
|
13
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
14
|
+
/**
|
|
15
|
+
* 计量-工况信息
|
|
16
16
|
*/
|
|
17
17
|
import dayjs from 'dayjs';
|
|
18
18
|
import { VmTable } from "../../../_components";
|
|
@@ -4,7 +4,7 @@ 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
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
7
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
8
|
/**
|
|
9
9
|
* 计量-工况信息
|
|
10
10
|
*/
|
|
@@ -4,18 +4,18 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
4
4
|
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); }
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { BaseInfo as DefaultBaseInfo } from "../vtx-default-modal/components";
|
|
7
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
7
8
|
import { BaseInfo, BaseInfoZdReborn, Calendar, CalendarZdReborn, Metering, MeteringZdReborn, WorkCondition } from "./components";
|
|
8
|
-
import { translateLocaleText } from "./../hooks/useTranslation.ts";
|
|
9
9
|
// import Appraisal from '../vm-appraisal-info';
|
|
10
|
+
import VmCustom from "../_components/vm-custom";
|
|
10
11
|
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
11
|
-
import VmVideo from "../_components/vm-video";
|
|
12
|
+
import VmVideo, { insertVideoTab } from "../_components/vm-video";
|
|
12
13
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
13
|
-
import { CommonService } from "../_service";
|
|
14
|
-
import { BaseService } from "./api";
|
|
15
|
-
// import VideoService from '../vm-video/api';
|
|
16
|
-
import VmCustom from "../_components/vm-custom";
|
|
17
14
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
15
|
+
import { useZdService } from "../_hooks/useUmsService";
|
|
16
|
+
import { CommonService } from "../_service";
|
|
18
17
|
import VtxBaseModal from "../vtx-base-modal";
|
|
18
|
+
import { BaseService } from "./api";
|
|
19
19
|
import "./style";
|
|
20
20
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
21
|
var TABS_BASE = 'base';
|
|
@@ -37,9 +37,9 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
37
37
|
customMapInfo = props.customMapInfo,
|
|
38
38
|
tabChose = props.tabChose,
|
|
39
39
|
_props$showCollect = props.showCollect,
|
|
40
|
-
showCollect = _props$showCollect === void 0 ? true : _props$showCollect
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
showCollect = _props$showCollect === void 0 ? true : _props$showCollect;
|
|
41
|
+
var serviceConfig = useZdService();
|
|
42
|
+
var zdReborn = (serviceConfig === null || serviceConfig === void 0 ? void 0 : serviceConfig.zdService) === 'reborn';
|
|
43
43
|
var _CommonService$useBas = CommonService.useBaseInfo(id, (customMapInfo === null || customMapInfo === void 0 ? void 0 : customMapInfo.coordinate) || 'wgs84'),
|
|
44
44
|
info = _CommonService$useBas.info,
|
|
45
45
|
photos = _CommonService$useBas.photos;
|
|
@@ -59,7 +59,9 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
59
59
|
detail = _CommonService.detail;
|
|
60
60
|
var _BaseService$useRealt = BaseService.useRealtimeMonitor(info === null || info === void 0 ? void 0 : info.code),
|
|
61
61
|
realtimeMonitor = _BaseService$useRealt.realtimeMonitor;
|
|
62
|
-
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode))
|
|
62
|
+
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode) && (tabsData === null || tabsData === void 0 ? void 0 : tabsData.findIndex(function (ele) {
|
|
63
|
+
return ele.key === 'video';
|
|
64
|
+
})) > -1),
|
|
63
65
|
channels = _useGetChannels.channels;
|
|
64
66
|
|
|
65
67
|
// realtimeRes为空则无工况,beenWeigh为false则无计量
|
|
@@ -67,23 +69,14 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
67
69
|
var tabsList = tabsData;
|
|
68
70
|
if (!(detail !== null && detail !== void 0 && detail.beenWeigh)) {
|
|
69
71
|
tabsList = tabsList.filter(function (ele) {
|
|
70
|
-
return ele.key !== '
|
|
72
|
+
return ele.key !== 'metering';
|
|
71
73
|
});
|
|
72
74
|
}
|
|
73
|
-
|
|
74
|
-
return ele.key === 'df-video';
|
|
75
|
-
}) > -1) {
|
|
76
|
-
if ((channels === null || channels === void 0 ? void 0 : channels.length) < 1) {
|
|
77
|
-
tabsList = tabsList.filter(function (ele) {
|
|
78
|
-
return ele.key !== 'df-video';
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return tabsList;
|
|
75
|
+
return insertVideoTab(tabsList, channels);
|
|
83
76
|
}, [JSON.stringify(tabsData), JSON.stringify(channels), JSON.stringify(detail)]);
|
|
84
77
|
var ZLBase = zdReborn ? BaseInfoZdReborn : BaseInfo;
|
|
85
|
-
|
|
86
|
-
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, !(detail !== null && detail !== void 0 && detail.beenWeigh) && !
|
|
78
|
+
var hasWorkCondition = (realtimeMonitor === null || realtimeMonitor === void 0 ? void 0 : realtimeMonitor.length) > 0;
|
|
79
|
+
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, !(detail !== null && detail !== void 0 && detail.beenWeigh) && !hasWorkCondition ? /*#__PURE__*/_jsx(DefaultBaseInfo, {
|
|
87
80
|
id: id,
|
|
88
81
|
info: info,
|
|
89
82
|
photos: photos,
|
|
@@ -107,9 +100,11 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
107
100
|
})), TABS_Calendar, zdReborn ? /*#__PURE__*/_jsx(CalendarZdReborn, {
|
|
108
101
|
code: info === null || info === void 0 ? void 0 : info.code,
|
|
109
102
|
deviceId: detail === null || detail === void 0 ? void 0 : detail.deviceId,
|
|
110
|
-
handleAbility: detail === null || detail === void 0 ? void 0 : detail.handleAbility
|
|
103
|
+
handleAbility: detail === null || detail === void 0 ? void 0 : detail.handleAbility,
|
|
104
|
+
hasWorkCondition: hasWorkCondition
|
|
111
105
|
}) : /*#__PURE__*/_jsx(Calendar, {
|
|
112
|
-
code: info === null || info === void 0 ? void 0 : info.code
|
|
106
|
+
code: info === null || info === void 0 ? void 0 : info.code,
|
|
107
|
+
hasWorkCondition: hasWorkCondition
|
|
113
108
|
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
114
109
|
id: id
|
|
115
110
|
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
@@ -9,7 +9,7 @@ import { useState } from 'react';
|
|
|
9
9
|
import { VmFilter, VmPieCharts, VmTitle } from "../../../_components";
|
|
10
10
|
import { alarmService } from "../../api";
|
|
11
11
|
import "./index.less";
|
|
12
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
12
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
var FSSD = function FSSD(_ref) {
|
|
15
15
|
var _ref$classPrefix = _ref.classPrefix,
|
|
@@ -7,7 +7,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7
7
|
import ReactEcharts from 'echarts-for-react';
|
|
8
8
|
import groupBy from 'lodash/groupBy';
|
|
9
9
|
import useSettings from "../../../_hooks/useSettings";
|
|
10
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
10
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
var xAxis = _toConsumableArray(new Array(24)).map(function (_, index) {
|
|
13
13
|
return add0(index);
|
|
@@ -16,7 +16,7 @@ import { useState } from 'react';
|
|
|
16
16
|
import { VmFilter, VmLineCharts, VmTitle } from "../../../_components";
|
|
17
17
|
import { overViewService } from "../../api";
|
|
18
18
|
import "./index.less";
|
|
19
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
19
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
21
|
var TREND = function TREND(_ref) {
|
|
22
22
|
var _ref$classPrefix = _ref.classPrefix,
|