@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
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
1
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
2
2
|
import { VmEmpty, VmLineCharts, VmPieCharts } from "../../../_components";
|
|
3
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
4
|
var Charts = function Charts(_ref) {
|
|
5
|
+
var _chartData$filter;
|
|
5
6
|
var chartData = _ref.chartData,
|
|
6
7
|
lineData = _ref.lineData;
|
|
7
8
|
var legends = lineData.legends,
|
|
@@ -17,7 +18,9 @@ var Charts = function Charts(_ref) {
|
|
|
17
18
|
});
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
var total = chartData === null || chartData === void 0
|
|
21
|
+
var total = chartData === null || chartData === void 0 || (_chartData$filter = chartData.filter(function (item) {
|
|
22
|
+
return item.alarmTypeCode;
|
|
23
|
+
})) === null || _chartData$filter === void 0 ? void 0 : _chartData$filter.reduce(function (acc, cur) {
|
|
21
24
|
return acc + cur.value;
|
|
22
25
|
}, 0);
|
|
23
26
|
return /*#__PURE__*/_jsxs("div", {
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -18,7 +18,7 @@ import { BaseService } from "../../api";
|
|
|
18
18
|
import "./index.less";
|
|
19
19
|
import ListZymx from "./ListZymx";
|
|
20
20
|
import WorkStatic from "./WorkStatic";
|
|
21
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
21
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
22
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
23
|
var BaseInfo = function BaseInfo(props) {
|
|
24
24
|
var id = props.id,
|
|
@@ -30,7 +30,7 @@ import overTimeDark from "../../imgs/time_over_dark.png";
|
|
|
30
30
|
import sumTime from "../../imgs/time_sum.png";
|
|
31
31
|
import sumTimeDark from "../../imgs/time_sum_dark.png";
|
|
32
32
|
import "./index.less";
|
|
33
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
33
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
34
34
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
35
|
var StaticInfo = function StaticInfo(_ref) {
|
|
36
36
|
var id = _ref.id,
|
|
@@ -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
|
*/
|
|
@@ -6,7 +6,7 @@ import { useMemo } from 'react';
|
|
|
6
6
|
import VmCustom from "../_components/vm-custom";
|
|
7
7
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
8
8
|
import VtxBaseModal from "../vtx-base-modal";
|
|
9
|
-
import { translateLocaleText } from "./../hooks/useTranslation.
|
|
9
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
10
10
|
import { BaseService } from "./api";
|
|
11
11
|
import { AlarmInfo, Attendance, BaseInfo, Calendar, Equipment } from "./components";
|
|
12
12
|
import "./style";
|
package/lib/vtx-tfd-modal/api.js
CHANGED
|
@@ -6,7 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { request } from '@vtx/utils';
|
|
8
8
|
import { useRequest } from 'ahooks';
|
|
9
|
-
import { translateLocaleText } from "./../hooks/useTranslation.
|
|
9
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
10
10
|
var BaseService = {
|
|
11
11
|
useBaseInfo: function useBaseInfo(id) {
|
|
12
12
|
var _baseInfoRes$data, _info$timePeriods;
|
|
@@ -42,9 +42,9 @@ var BaseService = {
|
|
|
42
42
|
}, {
|
|
43
43
|
label: translateLocaleText("t('vtxtfdmodal.hours')"),
|
|
44
44
|
key: 'householdNum',
|
|
45
|
-
value: info
|
|
45
|
+
value: info !== null && info !== void 0 && info.timePeriods && _typeof(info.timePeriods) === 'object' ? (_info$timePeriods = info.timePeriods) === null || _info$timePeriods === void 0 || (_info$timePeriods = _info$timePeriods.map(function (ele) {
|
|
46
46
|
return "".concat(ele.startTime, "~").concat(ele.endTime);
|
|
47
|
-
})) === null || _info$timePeriods === void 0 ? void 0 : _info$timePeriods.join('、')
|
|
47
|
+
})) === null || _info$timePeriods === void 0 ? void 0 : _info$timePeriods.join('、') : info === null || info === void 0 ? void 0 : info.timePeriods
|
|
48
48
|
}, {
|
|
49
49
|
label: translateLocaleText("t('vtxtfdmodal.supervisor')"),
|
|
50
50
|
key: 'supervisorName',
|
|
@@ -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';
|
|
@@ -21,7 +21,7 @@ import useSettings from "../../../_hooks/useSettings";
|
|
|
21
21
|
import { DownIcon, UpIcon } from "../../../_util/iconSvgHtml";
|
|
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
|
// svg大小比png2倍还大,不如使用2次png
|
|
26
26
|
import { sumBy } from 'lodash';
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -16,7 +16,7 @@ import dayjs from 'dayjs';
|
|
|
16
16
|
import { useEffect } from 'react';
|
|
17
17
|
import { VmBarCharts, VmTable } from "../../../_components";
|
|
18
18
|
import { VMRangePicker } from "../../../_components/vm-filter";
|
|
19
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
19
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
20
20
|
//柱状图
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
var overview = function overview(params) {
|
|
@@ -151,7 +151,7 @@ export default (function (props) {
|
|
|
151
151
|
fontSize: '20px'
|
|
152
152
|
},
|
|
153
153
|
children: (_baseInfo$total = baseInfo.total) !== null && _baseInfo$total !== void 0 ? _baseInfo$total : 0
|
|
154
|
-
}), translateLocaleText("t('vtxwrmodal.nbspTimes')")]
|
|
154
|
+
}), "\xA0", translateLocaleText("t('vtxwrmodal.nbspTimes')")]
|
|
155
155
|
})]
|
|
156
156
|
})]
|
|
157
157
|
}), /*#__PURE__*/_jsxs("div", {
|
|
@@ -168,7 +168,7 @@ export default (function (props) {
|
|
|
168
168
|
fontSize: '20px'
|
|
169
169
|
},
|
|
170
170
|
children: (_baseInfo$score = baseInfo.score) !== null && _baseInfo$score !== void 0 ? _baseInfo$score : 0
|
|
171
|
-
}), translateLocaleText("t('vtxwrmodal.nbsp')")]
|
|
171
|
+
}), "\xA0", translateLocaleText("t('vtxwrmodal.nbsp')")]
|
|
172
172
|
})]
|
|
173
173
|
})]
|
|
174
174
|
})]
|
|
@@ -4,62 +4,19 @@ 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
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
7
|
import { VtxImage } from '@vtx/components';
|
|
14
|
-
import
|
|
15
|
-
import { useEffect, useState } from 'react';
|
|
8
|
+
import '@vtx/components/lib/vtx-image/style/index';
|
|
16
9
|
import { VmEmpty, VmMap } from "../../../_components";
|
|
17
10
|
import Sjjg from "./Sjjg";
|
|
18
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
19
|
-
//基础设施详情
|
|
11
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
20
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
|
-
var getJcssDetail = function getJcssDetail(params) {
|
|
22
|
-
return request.get('/cloud/jcss-reborn/facility/get', {
|
|
23
|
-
data: params
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
13
|
export default (function (props) {
|
|
27
14
|
var _gcDetail$geometryInf, _gcDetail$geometryInf2, _gcDetail$geometryInf3, _gcDetail$geometryInf4;
|
|
28
15
|
var theme = props.theme,
|
|
29
16
|
gcDetail = props.gcDetail,
|
|
30
17
|
fields = props.fields;
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
imgList = _useState2[0],
|
|
34
|
-
setImgList = _useState2[1];
|
|
35
|
-
useEffect(function () {
|
|
36
|
-
if (gcDetail.id) {
|
|
37
|
-
if (gcDetail.photoIds) {
|
|
38
|
-
setImgList(JSON.parse(gcDetail.photoIds).map(function (item, index) {
|
|
39
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
40
|
-
index: index + 1,
|
|
41
|
-
name: item.name.split('.')[0],
|
|
42
|
-
url: "/vortex/rest/cloud/np/file/downloadFileThumbnail/".concat(item.id, "?token=").concat(getVtxToken('token'), "&outputQuality=0.5&scale=0.5")
|
|
43
|
-
});
|
|
44
|
-
}));
|
|
45
|
-
} else {
|
|
46
|
-
getJcssDetail({
|
|
47
|
-
id: gcDetail.id,
|
|
48
|
-
coordType: 'bd09'
|
|
49
|
-
}).then(function (res) {
|
|
50
|
-
if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
|
|
51
|
-
setImgList(res.data.typePhotoIds ? JSON.parse(res.data.typePhotoIds).map(function (item, index) {
|
|
52
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
53
|
-
index: index + 1,
|
|
54
|
-
name: item.name.split('.')[0],
|
|
55
|
-
url: "/vortex/rest/cloud/np/file/downloadFileThumbnail/".concat(item.id, "?token=").concat(getVtxToken('token'), "&outputQuality=0.5&scale=0.5")
|
|
56
|
-
});
|
|
57
|
-
}) : []);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}, [gcDetail]);
|
|
18
|
+
var _gcDetail$imgList = gcDetail.imgList,
|
|
19
|
+
imgList = _gcDetail$imgList === void 0 ? [] : _gcDetail$imgList;
|
|
63
20
|
var isShow = function isShow(key) {
|
|
64
21
|
return fields.filter(function (item) {
|
|
65
22
|
return item.key === key;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
1
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
export default (function (props) {
|
|
4
|
-
var _gcDetail$pitInuseMal, _gcDetail$pitTotalMal, _gcDetail$urinalNums, _gcDetail$squatNumMal, _gcDetail$seatNumMale, _gcDetail$manAccessib, _gcDetail$pitInuseFem, _gcDetail$pitTotalFem, _gcDetail$squatNumFem, _gcDetail$seatNumFema, _gcDetail$womanAccess;
|
|
4
|
+
var _gcDetail$jcssDetail, _gcDetail$noGenderNum, _gcDetail$noGenderNum2, _gcDetail$pitInuseMal, _gcDetail$pitTotalMal, _gcDetail$urinalNums, _gcDetail$squatNumMal, _gcDetail$seatNumMale, _gcDetail$manAccessib, _gcDetail$pitInuseFem, _gcDetail$pitTotalFem, _gcDetail$squatNumFem, _gcDetail$seatNumFema, _gcDetail$womanAccess;
|
|
5
5
|
var theme = props.theme,
|
|
6
6
|
gcDetail = props.gcDetail,
|
|
7
7
|
fields = props.fields;
|
|
8
|
+
var isUniversalRestroom = ((_gcDetail$jcssDetail = gcDetail.jcssDetail) === null || _gcDetail$jcssDetail === void 0 || (_gcDetail$jcssDetail = _gcDetail$jcssDetail.dataJson) === null || _gcDetail$jcssDetail === void 0 ? void 0 : _gcDetail$jcssDetail.sfywxbcjId) === true;
|
|
8
9
|
var ptss = [{
|
|
9
10
|
name: translateLocaleText("t('vtxwrmodal.thirdToilet')"),
|
|
10
11
|
key: 'third',
|
|
@@ -22,7 +23,7 @@ export default (function (props) {
|
|
|
22
23
|
return item.showKey;
|
|
23
24
|
});
|
|
24
25
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
25
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
26
|
+
children: [!isUniversalRestroom && /*#__PURE__*/_jsx("div", {
|
|
26
27
|
className: "wr-base-ptss",
|
|
27
28
|
style: {
|
|
28
29
|
padding: gcDetail.hasDevice ? '10px 136px 0' : '30px 136px 30px'
|
|
@@ -38,7 +39,40 @@ export default (function (props) {
|
|
|
38
39
|
})]
|
|
39
40
|
}, item.key);
|
|
40
41
|
})
|
|
41
|
-
}), /*#__PURE__*/
|
|
42
|
+
}), isUniversalRestroom ? /*#__PURE__*/_jsx("div", {
|
|
43
|
+
className: "wr-base-universal",
|
|
44
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
45
|
+
className: "wr-base-universal-card",
|
|
46
|
+
style: {
|
|
47
|
+
background: theme === 'blue' ? 'rgba(255, 203, 105, 0.2)' : '#FFF9EF'
|
|
48
|
+
},
|
|
49
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
50
|
+
className: "wr-universal-title",
|
|
51
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
52
|
+
src: require("./assets/".concat(theme, "/tywsj.png")),
|
|
53
|
+
alt: "tywsj"
|
|
54
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
55
|
+
children: "\u901A\u7528\u536B\u751F\u95F4"
|
|
56
|
+
})]
|
|
57
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
58
|
+
className: "wr-universal-total",
|
|
59
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
60
|
+
className: "wr-universal-tip"
|
|
61
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
62
|
+
children: "\u5395\u4F4D\u6570"
|
|
63
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
64
|
+
className: "wr-universal-used",
|
|
65
|
+
children: (_gcDetail$noGenderNum = gcDetail.noGenderNumInUse) !== null && _gcDetail$noGenderNum !== void 0 ? _gcDetail$noGenderNum : '--'
|
|
66
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
67
|
+
children: "/"
|
|
68
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
69
|
+
children: (_gcDetail$noGenderNum2 = gcDetail.noGenderNum) !== null && _gcDetail$noGenderNum2 !== void 0 ? _gcDetail$noGenderNum2 : '--'
|
|
70
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
71
|
+
children: "\u4E2A"
|
|
72
|
+
})]
|
|
73
|
+
})]
|
|
74
|
+
})
|
|
75
|
+
}) : /*#__PURE__*/_jsxs("div", {
|
|
42
76
|
style: {
|
|
43
77
|
display: 'flex',
|
|
44
78
|
flexDirection: gcDetail.hasDevice ? 'row' : 'column',
|
|
@@ -50,7 +84,7 @@ export default (function (props) {
|
|
|
50
84
|
className: "wr-base-kws",
|
|
51
85
|
style: {
|
|
52
86
|
flex: gcDetail.hasDevice ? 1 : 'auto',
|
|
53
|
-
height: gcDetail.hasDevice ? 'auto' : '
|
|
87
|
+
height: gcDetail.hasDevice ? 'auto' : '160px',
|
|
54
88
|
background: theme === 'blue' ? 'rgba(51, 166, 255, 0.2)' : '#F3F8FF'
|
|
55
89
|
},
|
|
56
90
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
@@ -110,7 +144,7 @@ export default (function (props) {
|
|
|
110
144
|
}), /*#__PURE__*/_jsxs("div", {
|
|
111
145
|
className: "wr-kws-each",
|
|
112
146
|
style: {
|
|
113
|
-
padding: gcDetail.hasDevice ? '0' : '
|
|
147
|
+
padding: gcDetail.hasDevice ? '0' : '12px 80px 4px'
|
|
114
148
|
},
|
|
115
149
|
children: [showKeys.includes('urinalNums') && /*#__PURE__*/_jsxs("div", {
|
|
116
150
|
children: [/*#__PURE__*/_jsx("span", {
|
|
@@ -166,7 +200,7 @@ export default (function (props) {
|
|
|
166
200
|
className: "wr-base-kws",
|
|
167
201
|
style: {
|
|
168
202
|
flex: gcDetail.hasDevice ? 1 : 'auto',
|
|
169
|
-
height: gcDetail.hasDevice ? 'auto' : '
|
|
203
|
+
height: gcDetail.hasDevice ? 'auto' : '160px',
|
|
170
204
|
background: theme === 'blue' ? 'rgba(255,152,175,0.2)' : '#FFF2F5'
|
|
171
205
|
},
|
|
172
206
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
@@ -226,7 +260,7 @@ export default (function (props) {
|
|
|
226
260
|
}), /*#__PURE__*/_jsxs("div", {
|
|
227
261
|
className: "wr-kws-each",
|
|
228
262
|
style: {
|
|
229
|
-
padding: gcDetail.hasDevice ? '0' : '
|
|
263
|
+
padding: gcDetail.hasDevice ? '0' : '12px 80px 4px'
|
|
230
264
|
},
|
|
231
265
|
children: [showKeys.includes('womanSquatNums') && /*#__PURE__*/_jsxs("div", {
|
|
232
266
|
children: [/*#__PURE__*/_jsx("span", {
|
|
@@ -7,7 +7,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
7
7
|
import { request } from '@vtx/utils';
|
|
8
8
|
import { useSetState } from 'ahooks';
|
|
9
9
|
import { useEffect } from 'react';
|
|
10
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
10
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
12
|
var readData = function readData(params) {
|
|
13
13
|
return request.get('/cloud/zhgc-reborn/api/gis/pop/readData', {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
2
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
4
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
5
|
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
6
|
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
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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 { getVtxToken, request } from '@vtx/utils';
|
|
14
14
|
import { useSetState } from 'ahooks';
|
|
15
15
|
import { Alert, Tabs } from 'antd';
|
|
16
16
|
import dayjs from 'dayjs';
|
|
@@ -19,7 +19,7 @@ import { VmLineCharts, VmTable } from "../../../_components";
|
|
|
19
19
|
import { VMDatePicker, VMRangePicker, VMSelect } from "../../../_components/vm-filter";
|
|
20
20
|
import Jbxx from "./Jbxx";
|
|
21
21
|
import Ptss from "./Ptss";
|
|
22
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.
|
|
22
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
23
23
|
//公厕详情
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
var getDetail = function getDetail(params) {
|
|
@@ -27,6 +27,12 @@ var getDetail = function getDetail(params) {
|
|
|
27
27
|
data: params
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
+
//基础设施详情
|
|
31
|
+
var getJcssDetail = function getJcssDetail(params) {
|
|
32
|
+
return request.get('/cloud/jcss-reborn/facility/get', {
|
|
33
|
+
data: params
|
|
34
|
+
});
|
|
35
|
+
};
|
|
30
36
|
//公厕配置字段
|
|
31
37
|
var getFields = function getFields(params) {
|
|
32
38
|
return request.get('/cloud/jcss-reborn/facility/type/view/detail', {
|
|
@@ -50,6 +56,19 @@ var getAlarmList = function getAlarmList(params) {
|
|
|
50
56
|
data: JSON.stringify(params)
|
|
51
57
|
});
|
|
52
58
|
};
|
|
59
|
+
var getImgList = function getImgList(photoIds, typePhotoIds) {
|
|
60
|
+
var photoList = photoIds || typePhotoIds;
|
|
61
|
+
if (!photoList) {
|
|
62
|
+
return [];
|
|
63
|
+
}
|
|
64
|
+
return (typeof photoList === 'string' ? JSON.parse(photoList) : photoList).map(function (item, index) {
|
|
65
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
66
|
+
index: index + 1,
|
|
67
|
+
name: item.name.split('.')[0],
|
|
68
|
+
url: "/vortex/rest/cloud/np/file/downloadFileThumbnail/".concat(item.id, "?token=").concat(getVtxToken('token'), "&outputQuality=0.5&scale=0.5")
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
};
|
|
53
72
|
export default (function (props) {
|
|
54
73
|
var _monitorTypeList$filt;
|
|
55
74
|
var theme = props.theme,
|
|
@@ -96,11 +115,22 @@ export default (function (props) {
|
|
|
96
115
|
alarmList = state.alarmList;
|
|
97
116
|
useEffect(function () {
|
|
98
117
|
if (id) {
|
|
99
|
-
getDetail({
|
|
118
|
+
Promise.all([getDetail({
|
|
100
119
|
id: id
|
|
101
|
-
})
|
|
102
|
-
|
|
103
|
-
|
|
120
|
+
}), getJcssDetail({
|
|
121
|
+
id: id,
|
|
122
|
+
coordType: 'bd09'
|
|
123
|
+
})]).then(function (_ref) {
|
|
124
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
125
|
+
detailRes = _ref2[0],
|
|
126
|
+
jcssRes = _ref2[1];
|
|
127
|
+
if ((detailRes === null || detailRes === void 0 ? void 0 : detailRes.result) === 0) {
|
|
128
|
+
var detailData = detailRes.data || {};
|
|
129
|
+
var jcssDetail = (jcssRes === null || jcssRes === void 0 ? void 0 : jcssRes.result) === 0 ? jcssRes.data || {} : {};
|
|
130
|
+
setGcDetail(_objectSpread(_objectSpread({}, detailData), {}, {
|
|
131
|
+
jcssDetail: jcssDetail,
|
|
132
|
+
imgList: getImgList(detailData.photoIds, jcssDetail.typePhotoIds)
|
|
133
|
+
}));
|
|
104
134
|
}
|
|
105
135
|
});
|
|
106
136
|
getFields({
|
|
@@ -156,7 +186,7 @@ export default (function (props) {
|
|
|
156
186
|
}];
|
|
157
187
|
var tableProps = {
|
|
158
188
|
columns: columns,
|
|
159
|
-
height:
|
|
189
|
+
height: 220,
|
|
160
190
|
isIndex: false,
|
|
161
191
|
pagination: false,
|
|
162
192
|
dataSource: alarmList
|
|
@@ -165,7 +195,7 @@ export default (function (props) {
|
|
|
165
195
|
label: translateLocaleText("t('vtxwrmodal.monitoringData')"),
|
|
166
196
|
key: 'data',
|
|
167
197
|
children: /*#__PURE__*/_jsx(VmLineCharts, {
|
|
168
|
-
height:
|
|
198
|
+
height: 260,
|
|
169
199
|
xAxis: echartsData.names || [],
|
|
170
200
|
dataList: (echartsData.values || []).map(function (item, index) {
|
|
171
201
|
return {
|
|
@@ -326,7 +356,8 @@ export default (function (props) {
|
|
|
326
356
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
327
357
|
className: "wr-base-sjjg",
|
|
328
358
|
style: {
|
|
329
|
-
height: gcDetail.hasDevice ? '270px' : '
|
|
359
|
+
height: gcDetail.hasDevice ? '270px' : 'auto',
|
|
360
|
+
flex: gcDetail.hasDevice ? '0 0 270px' : '1 1 auto'
|
|
330
361
|
},
|
|
331
362
|
children: [/*#__PURE__*/_jsx("div", {
|
|
332
363
|
className: "wr-base-title",
|