@vtx/modals2 4.0.7 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/style/css.js +3 -0
- package/lib/style/css.js.map +1 -1
- package/lib/style/index.css +52 -3
- package/lib/style/index.js +3 -0
- package/lib/style/index.js.map +1 -1
- package/lib/style/themes/dark.css +52 -3
- package/lib/style/themes/dark.less +47 -1
- package/lib/style/themes/default.css +5 -2
- package/lib/style/themes/default.less +6 -2
- package/lib/style/themes/index.css +52 -3
- package/lib/typings.d.ts +2 -0
- package/lib/util/index.js +293 -1
- package/lib/util/index.js.map +1 -1
- package/lib/vm-alarm-info/Components/index.css +3 -0
- package/lib/vm-alarm-info/Components/index.less +3 -0
- package/lib/vm-alarm-situation/index.js +1 -1
- package/lib/vm-alarm-situation/index.js.map +1 -1
- package/lib/vm-appraisal-info/ListKh.js +26 -8
- package/lib/vm-appraisal-info/ListKh.js.map +1 -1
- package/lib/vm-appraisal-info/ListZg.js +22 -6
- package/lib/vm-appraisal-info/ListZg.js.map +1 -1
- package/lib/vm-appraisal-info/Wtlx.js +6 -4
- package/lib/vm-appraisal-info/Wtlx.js.map +1 -1
- package/lib/vm-appraisal-info/index.js +4 -3
- package/lib/vm-appraisal-info/index.js.map +1 -1
- package/lib/vm-appraisal-info/style/index.css +9 -1
- package/lib/vm-appraisal-info/style/index.less +15 -1
- package/lib/vm-base-list/OpenArrow.js +2 -8
- package/lib/vm-base-list/OpenArrow.js.map +1 -1
- package/lib/vm-charts/Line.js +1 -3
- package/lib/vm-charts/Line.js.map +1 -1
- package/lib/vm-charts/Line1.js +19 -1
- package/lib/vm-charts/Line1.js.map +1 -1
- package/lib/vm-container/style/index.css +1 -0
- package/lib/vm-container/style/index.less +2 -0
- package/lib/vm-filter/index.js +0 -3
- package/lib/vm-filter/index.js.map +1 -1
- package/lib/vm-filter/style/index.css +109 -2
- package/lib/vm-filter/style/index.less +128 -1
- package/lib/vm-hooks/useSettings.js +1 -0
- package/lib/vm-hooks/useSettings.js.map +1 -1
- package/lib/vm-iframe-modal/style/index.css +2 -1
- package/lib/vm-iframe-modal/style/index.less +2 -1
- package/lib/vm-image-text/index.js +2 -1
- package/lib/vm-image-text/index.js.map +1 -1
- package/lib/vm-image-text/style/index.css +2 -0
- package/lib/vm-image-text/style/index.less +2 -0
- package/lib/vm-info-collection/index.js +110 -8
- package/lib/vm-info-collection/index.js.map +1 -1
- package/lib/vm-info-collection/style/index.css +19 -23
- package/lib/vm-info-collection/style/index.less +13 -23
- package/lib/vm-map/imgs/defaultMarker.png +0 -0
- package/lib/vm-map/index.js +71 -27
- package/lib/vm-map/index.js.map +1 -1
- package/lib/vm-map/style/css.js +4 -0
- package/lib/vm-map/style/css.js.map +1 -0
- package/lib/vm-map/style/index.css +3 -0
- package/lib/vm-map/style/index.js +4 -0
- package/lib/vm-map/style/index.js.map +1 -0
- package/lib/vm-map/style/index.less +3 -0
- package/lib/vm-repair-maintain/RmMonthTrend.js +12 -10
- package/lib/vm-repair-maintain/RmMonthTrend.js.map +1 -1
- package/lib/vm-repair-maintain/RmType.js +6 -4
- package/lib/vm-repair-maintain/RmType.js.map +1 -1
- package/lib/vm-repair-maintain/style/index.css +4 -0
- package/lib/vm-repair-maintain/style/index.less +7 -0
- package/lib/vm-sub-tabs/style/index.css +46 -0
- package/lib/vm-sub-tabs/style/index.less +61 -1
- package/lib/vm-sub-title/imgs/bg_blue.png +0 -0
- package/lib/vm-sub-title/index.js +18 -2
- package/lib/vm-sub-title/index.js.map +1 -1
- package/lib/vm-sub-title/style/index.css +44 -1
- package/lib/vm-sub-title/style/index.less +46 -1
- package/lib/vm-table/index.js +1 -7
- package/lib/vm-table/index.js.map +1 -1
- package/lib/vm-table/style/index.css +89 -10
- package/lib/vm-table/style/index.less +101 -10
- package/lib/vm-video/index.css +76 -3
- package/lib/vm-video/index.js +6 -4
- package/lib/vm-video/index.js.map +1 -1
- package/lib/vm-video/index.less +26 -0
- package/lib/vtx-base-info/index.js +11 -2
- package/lib/vtx-base-info/index.js.map +1 -1
- package/lib/vtx-base-info/style/index.css +4 -0
- package/lib/vtx-base-info/style/index.less +4 -0
- package/lib/vtx-base-modal/api.js +8 -1
- package/lib/vtx-base-modal/api.js.map +1 -1
- package/lib/vtx-base-modal/config.js +307 -0
- package/lib/vtx-base-modal/config.js.map +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/alarm.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/alarm_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/alarm_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/base.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/base_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/base_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/cut_in.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/cut_in_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/cut_in_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/default.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/default_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/default_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/fenxi.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/fenxi_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/fenxi_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongdan.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongdan_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongdan_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongkuang.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongkuang_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongkuang_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongshi.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongshi_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/gongshi_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/jiliang.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/jiliang_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/jiliang_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/kaohe.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/kaohe_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/kaohe_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/kaoqin.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/kaoqin_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/kaoqin_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/maintenance.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/maintenance_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/maintenance_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/monitor.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/monitor_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/monitor_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/oil.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/oil_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/oil_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/paiban.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/paiban_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/paiban_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/pingjia.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/pingjia_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/pingjia_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/shebei.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/shebei_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/shebei_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/shouyun.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/shouyun_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/shouyun_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/sum.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/sum_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/sum_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/video.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/video_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/video_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/water.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/water_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/water_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/weigui.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/weigui_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/weigui_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/yichang.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/yichang_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/yichang_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/yunwei.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/yunwei_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/yunwei_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/zijian.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/zijian_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/blue/zijian_blue.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/alarm_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/alarm_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/base_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/base_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/cut_in_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/cut_in_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/default_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/default_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/fenxi_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/fenxi_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/gongdan_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/gongdan_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/gongkuang_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/gongkuang_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/gongshi_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/gongshi_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/jiliang_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/jiliang_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/kaohe_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/kaohe_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/kaoqin_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/kaoqin_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/maintenance_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/maintenance_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/monitor_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/monitor_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/oil_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/oil_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/paiban_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/paiban_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/pingjia_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/pingjia_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/shebei_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/shebei_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/shouyun_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/shouyun_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/sum_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/sum_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/video_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/video_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/water_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/water_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/weigui_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/weigui_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/yichang_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/yichang_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/yunwei_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/yunwei_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/zijian_active.svg +1 -0
- package/lib/vtx-base-modal/imgs/assets/light/zijian_light.svg +1 -0
- package/lib/vtx-base-modal/imgs/bg_blue.png +0 -0
- package/lib/vtx-base-modal/imgs/close-blue-new.png +0 -0
- package/lib/vtx-base-modal/imgs/close-blue.png +0 -0
- package/lib/vtx-base-modal/imgs/collect-blue.png +0 -0
- package/lib/vtx-base-modal/imgs/collect_light.png +0 -0
- package/lib/vtx-base-modal/imgs/tab_bg_blue.png +0 -0
- package/lib/vtx-base-modal/imgs/title_bg_blue.png +0 -0
- package/lib/vtx-base-modal/imgs/track_blue.png +0 -0
- package/lib/vtx-base-modal/imgs/track_light.png +0 -0
- package/lib/vtx-base-modal/index.js +162 -36
- package/lib/vtx-base-modal/index.js.map +1 -1
- package/lib/vtx-base-modal/style/index.css +731 -4
- package/lib/vtx-base-modal/style/index.less +506 -6
- package/lib/vtx-car-modal/api.js +301 -65
- package/lib/vtx-car-modal/api.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/Charts.js +27 -11
- package/lib/vtx-car-modal/components/AlarmInfo/Charts.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/List.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/index.css +2 -0
- package/lib/vtx-car-modal/components/AlarmInfo/index.js +6 -5
- package/lib/vtx-car-modal/components/AlarmInfo/index.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/index.less +2 -0
- package/lib/vtx-car-modal/components/BaseInfo/Chain.js +100 -0
- package/lib/vtx-car-modal/components/BaseInfo/Chain.js.map +1 -0
- package/lib/vtx-car-modal/components/BaseInfo/Charts.js +37 -8
- package/lib/vtx-car-modal/components/BaseInfo/Charts.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayRun.js +5 -3
- package/lib/vtx-car-modal/components/BaseInfo/TodayRun.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkCC.js +6 -4
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkCC.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkLJSY.js +21 -9
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkLJSY.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/Wgfx.js +25 -7
- package/lib/vtx-car-modal/components/BaseInfo/Wgfx.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/WorkSummaryJxh.js +19 -4
- package/lib/vtx-car-modal/components/BaseInfo/WorkSummaryJxh.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxCC.js +6 -5
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxCC.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxJXH.js +20 -9
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxJXH.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxLJSY.js +29 -18
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxLJSY.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.css +70 -5
- package/lib/vtx-car-modal/components/BaseInfo/index.js +100 -41
- package/lib/vtx-car-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.less +57 -6
- package/lib/vtx-car-modal/components/Collection/index.css +28 -0
- package/lib/vtx-car-modal/components/Collection/index.js +193 -0
- package/lib/vtx-car-modal/components/Collection/index.js.map +1 -0
- package/lib/vtx-car-modal/components/Collection/index.less +18 -0
- package/lib/vtx-car-modal/components/DetailInfo/index.css +19 -0
- package/lib/vtx-car-modal/components/DetailInfo/index.js +174 -0
- package/lib/vtx-car-modal/components/DetailInfo/index.js.map +1 -0
- package/lib/vtx-car-modal/components/DetailInfo/index.less +21 -0
- package/lib/vtx-car-modal/components/Maintenance/index.css +1 -0
- package/lib/vtx-car-modal/components/Maintenance/index.less +1 -0
- package/lib/vtx-car-modal/components/OilConsumption/OilLIne.js +25 -6
- package/lib/vtx-car-modal/components/OilConsumption/OilLIne.js.map +1 -1
- package/lib/vtx-car-modal/components/OilConsumption/index.css +3 -0
- package/lib/vtx-car-modal/components/OilConsumption/index.less +3 -0
- package/lib/vtx-car-modal/components/StaticInfo/Charts.js +17 -3
- package/lib/vtx-car-modal/components/StaticInfo/Charts.js.map +1 -1
- package/lib/vtx-car-modal/components/StaticInfo/index.css +10 -0
- package/lib/vtx-car-modal/components/StaticInfo/index.js +24 -11
- package/lib/vtx-car-modal/components/StaticInfo/index.js.map +1 -1
- package/lib/vtx-car-modal/components/StaticInfo/index.less +11 -1
- package/lib/vtx-car-modal/components/WaterConsumption/index.css +2 -0
- package/lib/vtx-car-modal/components/WaterConsumption/index.less +3 -0
- package/lib/vtx-car-modal/components/WorkInfo/CarJobExe.js +120 -0
- package/lib/vtx-car-modal/components/WorkInfo/CarJobExe.js.map +1 -0
- package/lib/vtx-car-modal/components/WorkInfo/CollectItem.js +100 -0
- package/lib/vtx-car-modal/components/WorkInfo/CollectItem.js.map +1 -0
- package/lib/vtx-car-modal/components/WorkInfo/SingleCollectItem.js +88 -0
- package/lib/vtx-car-modal/components/WorkInfo/SingleCollectItem.js.map +1 -0
- package/lib/vtx-car-modal/components/WorkInfo/Wcl.js +17 -7
- package/lib/vtx-car-modal/components/WorkInfo/Wcl.js.map +1 -1
- package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js +37 -32
- package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js.map +1 -1
- package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js +54 -12
- package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js.map +1 -1
- package/lib/vtx-car-modal/components/WorkInfo/index.css +197 -2
- package/lib/vtx-car-modal/components/WorkInfo/index.less +226 -2
- package/lib/vtx-car-modal/components/index.js +14 -0
- package/lib/vtx-car-modal/components/index.js.map +1 -1
- package/lib/vtx-car-modal/imgs/ccc.png +0 -0
- package/lib/vtx-car-modal/imgs/daily_ws.png +0 -0
- package/lib/vtx-car-modal/imgs/daily_ys.png +0 -0
- package/lib/vtx-car-modal/imgs/dash.png +0 -0
- package/lib/vtx-car-modal/imgs/dqsd_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/jrxs_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/ljsjdw_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/ljsjts_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/ljsjzl_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/outTime_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/out_ws.png +0 -0
- package/lib/vtx-car-modal/imgs/out_ys.png +0 -0
- package/lib/vtx-car-modal/imgs/pjwcl_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/position_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/refresh_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/runTime_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/tab_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/tab_bg_light.png +0 -0
- package/lib/vtx-car-modal/imgs/temp_ws.png +0 -0
- package/lib/vtx-car-modal/imgs/temp_ys.png +0 -0
- package/lib/vtx-car-modal/imgs/wcl_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/xslc_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/ysdw_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/ywcdw_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/zlc_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/zld_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/zycs_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/zycssc_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/zyl_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/zylc_blue.png +0 -0
- package/lib/vtx-car-modal/imgs/zysc_blue.png +0 -0
- package/lib/vtx-car-modal/index.js +112 -48
- package/lib/vtx-car-modal/index.js.map +1 -1
- package/lib/vtx-car-modal/style/index.css +58 -3
- package/lib/vtx-car-modal/style/index.less +2 -0
- package/lib/vtx-cc-cp-modal/api.js +150 -51
- package/lib/vtx-cc-cp-modal/api.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/MonthTrend.js +25 -6
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/MonthTrend.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js +22 -5
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.css +3 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.less +4 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.css +4 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +6 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/MonthTrend.js +25 -6
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/MonthTrend.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js +22 -5
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.css +3 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.less +4 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/MonthTrend.js +118 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/MonthTrend.js.map +1 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/OrderRecord.js +123 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/OrderRecord.js.map +1 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/Summary.js +147 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/Summary.js.map +1 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/index.css +119 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/index.js +55 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/index.js.map +1 -0
- package/lib/vtx-cc-cp-modal/components/OrderInfo/index.less +108 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.css +1 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +1 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +25 -6
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.css +5 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.less +7 -1
- package/lib/vtx-cc-cp-modal/index.js +14 -2
- package/lib/vtx-cc-cp-modal/index.js.map +1 -1
- package/lib/vtx-cc-cp-modal/style/index.css +52 -3
- package/lib/vtx-cp-modal/api.js +81 -51
- package/lib/vtx-cp-modal/api.js.map +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +17 -6
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js.map +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +22 -5
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js.map +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/index.css +3 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/index.less +4 -0
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +22 -37
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +75 -152
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +11 -4
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/index.css +45 -203
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +4 -41
- package/lib/vtx-cp-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/index.less +40 -110
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +17 -6
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js.map +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +22 -5
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js.map +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/index.css +3 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/index.less +4 -0
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +20 -9
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js.map +1 -1
- package/lib/vtx-cp-modal/components/SyInfo/index.css +14 -0
- package/lib/vtx-cp-modal/components/SyInfo/index.js +5 -3
- package/lib/vtx-cp-modal/components/SyInfo/index.js.map +1 -1
- package/lib/vtx-cp-modal/components/SyInfo/index.less +10 -1
- package/lib/vtx-cp-modal/imgs/cy_car.png +0 -0
- package/lib/vtx-cp-modal/imgs/khsw_car.png +0 -0
- package/lib/vtx-cp-modal/imgs/qt_car.png +0 -0
- package/lib/vtx-cp-modal/imgs/yf_car.png +0 -0
- package/lib/vtx-cp-modal/imgs/yh_car.png +0 -0
- package/lib/vtx-cp-modal/index.js +57 -15
- package/lib/vtx-cp-modal/index.js.map +1 -1
- package/lib/vtx-cp-modal/style/index.css +52 -3
- package/lib/vtx-default-modal/api.js +264 -22
- package/lib/vtx-default-modal/api.js.map +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.css +12 -2
- package/lib/vtx-default-modal/components/BaseInfo/index.js +45 -15
- package/lib/vtx-default-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.less +16 -3
- package/lib/vtx-default-modal/index.js +77 -26
- package/lib/vtx-default-modal/index.js.map +1 -1
- package/lib/vtx-default-modal/style/index.css +52 -3
- package/lib/vtx-device-modal/components/OverViewInfo/Left.js +5 -3
- package/lib/vtx-device-modal/components/OverViewInfo/Left.js.map +1 -1
- package/lib/vtx-device-modal/config.js +8 -12
- package/lib/vtx-device-modal/config.js.map +1 -1
- package/lib/vtx-device-modal/index.js +4 -2
- package/lib/vtx-device-modal/index.js.map +1 -1
- package/lib/vtx-df-modal/api.js +97 -63
- package/lib/vtx-df-modal/api.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/AlarmDetail.js +48 -20
- package/lib/vtx-df-modal/components/BaseInfo/AlarmDetail.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +30 -18
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +31 -23
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.css +39 -174
- package/lib/vtx-df-modal/components/BaseInfo/index.js +74 -68
- package/lib/vtx-df-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.less +45 -63
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +12 -9
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +19 -13
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/List.js +16 -3
- package/lib/vtx-df-modal/components/Metering/List.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/index.css +11 -4
- package/lib/vtx-df-modal/components/Metering/index.js +3 -2
- package/lib/vtx-df-modal/components/Metering/index.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/index.less +14 -6
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js.map +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/index.css +18 -2
- package/lib/vtx-df-modal/components/WorkCondition/index.less +24 -1
- package/lib/vtx-df-modal/imgs/cljcbj.png +0 -0
- package/lib/vtx-df-modal/imgs/jcbj_blue.png +0 -0
- package/lib/vtx-df-modal/imgs/jccc.png +0 -0
- package/lib/vtx-df-modal/imgs/jccc_blue.png +0 -0
- package/lib/vtx-df-modal/imgs/jcl.png +0 -0
- package/lib/vtx-df-modal/imgs/jcl_blue.png +0 -0
- package/lib/vtx-df-modal/imgs/rjjcl_blue.png +0 -0
- package/lib/vtx-df-modal/imgs/sjnl_blue.png +0 -0
- package/lib/vtx-df-modal/imgs/yxzbbj.png +0 -0
- package/lib/vtx-df-modal/imgs/zbbj_blue.png +0 -0
- package/lib/vtx-df-modal/imgs/zjccc_blue.png +0 -0
- package/lib/vtx-df-modal/imgs/zjcl_blue.png +0 -0
- package/lib/vtx-df-modal/index.js +66 -41
- package/lib/vtx-df-modal/index.js.map +1 -1
- package/lib/vtx-df-modal/style/index.css +52 -3
- package/lib/vtx-facility-modal/components/OverView/Left.js +7 -3
- package/lib/vtx-facility-modal/components/OverView/Left.js.map +1 -1
- package/lib/vtx-facility-modal/components/OverView/index.css +3 -0
- package/lib/vtx-facility-modal/components/OverView/index.js +38 -10
- package/lib/vtx-facility-modal/components/OverView/index.js.map +1 -1
- package/lib/vtx-facility-modal/components/OverView/index.less +4 -0
- package/lib/vtx-facility-modal/config.js +7 -10
- package/lib/vtx-facility-modal/config.js.map +1 -1
- package/lib/vtx-facility-modal/imgs/default.png +0 -0
- package/lib/vtx-facility-modal/index.js +9 -5
- package/lib/vtx-facility-modal/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/api.js +52 -40
- package/lib/vtx-housing-estate-modal/api.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js +19 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +67 -33
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +5 -3
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +37 -10
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/index.css +5 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.js +8 -3
- package/lib/vtx-housing-estate-modal/components/OverView/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +10 -0
- package/lib/vtx-housing-estate-modal/components/SPJK/index.js +3 -3
- package/lib/vtx-housing-estate-modal/components/SPJK/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +2 -1
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +2 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.css +21 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +7 -2
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +26 -0
- package/lib/vtx-housing-estate-modal/config.js +2 -2
- package/lib/vtx-housing-estate-modal/config.js.map +1 -1
- package/lib/vtx-housing-estate-modal/index.js +9 -2
- package/lib/vtx-housing-estate-modal/index.js.map +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.css +3 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +6 -4
- package/lib/vtx-kh-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +4 -0
- package/lib/vtx-kh-modal/index.js +3 -1
- package/lib/vtx-kh-modal/index.js.map +1 -1
- package/lib/vtx-kh-modal/style/index.css +52 -3
- package/lib/vtx-pump-modal/api.js +71 -38
- package/lib/vtx-pump-modal/api.js.map +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/AlarmTotal.js +22 -5
- package/lib/vtx-pump-modal/components/AlarmRecord/AlarmTotal.js.map +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/AlarmTrend.js +22 -4
- package/lib/vtx-pump-modal/components/AlarmRecord/AlarmTrend.js.map +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/index.css +10 -9
- package/lib/vtx-pump-modal/components/AlarmRecord/index.js +4 -4
- package/lib/vtx-pump-modal/components/AlarmRecord/index.js.map +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/index.less +16 -11
- package/lib/vtx-pump-modal/components/Basic/JyqInfo.js +12 -9
- package/lib/vtx-pump-modal/components/Basic/JyqInfo.js.map +1 -1
- package/lib/vtx-pump-modal/components/Basic/PumpInfo.js +4 -4
- package/lib/vtx-pump-modal/components/Basic/PumpInfo.js.map +1 -1
- package/lib/vtx-pump-modal/components/Basic/SxInfo.js +3 -3
- package/lib/vtx-pump-modal/components/Basic/SxInfo.js.map +1 -1
- package/lib/vtx-pump-modal/components/Basic/XqInfo.js +3 -3
- package/lib/vtx-pump-modal/components/Basic/XqInfo.js.map +1 -1
- package/lib/vtx-pump-modal/components/Basic/index.css +4 -0
- package/lib/vtx-pump-modal/components/Basic/index.less +6 -1
- package/lib/vtx-pump-modal/components/Sbxl/SBYXQK.js +7 -7
- package/lib/vtx-pump-modal/components/Sbxl/SBYXQK.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sbxl/index.css +10 -9
- package/lib/vtx-pump-modal/components/Sbxl/index.js +1 -1
- package/lib/vtx-pump-modal/components/Sbxl/index.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sbxl/index.less +16 -17
- package/lib/vtx-pump-modal/components/Sjfx/index.css +3 -1
- package/lib/vtx-pump-modal/components/Sjfx/index.js +29 -29
- package/lib/vtx-pump-modal/components/Sjfx/index.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sjfx/index.less +8 -6
- package/lib/vtx-pump-modal/components/Sxyx/index.css +7 -5
- package/lib/vtx-pump-modal/components/Sxyx/index.js +7 -4
- package/lib/vtx-pump-modal/components/Sxyx/index.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sxyx/index.less +16 -11
- package/lib/vtx-pump-modal/config.js +3 -3
- package/lib/vtx-pump-modal/config.js.map +1 -1
- package/lib/vtx-pump-modal/index.js +21 -4
- package/lib/vtx-pump-modal/index.js.map +1 -1
- package/lib/vtx-restaurant-modal/api.js +52 -34
- package/lib/vtx-restaurant-modal/api.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +6 -5
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +4 -3
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.css +3 -0
- package/lib/vtx-restaurant-modal/components/Alarm/index.less +3 -0
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +3 -3
- package/lib/vtx-restaurant-modal/components/Basic/Info.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +1 -3
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/index.css +3 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.less +4 -0
- package/lib/vtx-restaurant-modal/components/Collection/Charts.js +154 -0
- package/lib/vtx-restaurant-modal/components/Collection/Charts.js.map +1 -0
- package/lib/vtx-restaurant-modal/components/Collection/List.js +37 -0
- package/lib/vtx-restaurant-modal/components/Collection/List.js.map +1 -0
- package/lib/vtx-restaurant-modal/components/Collection/index.css +12 -0
- package/lib/vtx-restaurant-modal/components/Collection/index.js +44 -19
- package/lib/vtx-restaurant-modal/components/Collection/index.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Collection/index.less +6 -0
- package/lib/vtx-restaurant-modal/index.js +9 -3
- package/lib/vtx-restaurant-modal/index.js.map +1 -1
- package/lib/vtx-road-modal/api.js +104 -28
- package/lib/vtx-road-modal/api.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +3 -1
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/TodayWork.js +16 -6
- package/lib/vtx-road-modal/components/BaseInfo/TodayWork.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/TodayWorkTable.js +17 -5
- package/lib/vtx-road-modal/components/BaseInfo/TodayWorkTable.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/index.css +16 -9
- package/lib/vtx-road-modal/components/BaseInfo/index.js +36 -15
- package/lib/vtx-road-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/index.less +18 -9
- package/lib/vtx-road-modal/components/Statistical/Zylc.js +20 -9
- package/lib/vtx-road-modal/components/Statistical/Zylc.js.map +1 -1
- package/lib/vtx-road-modal/components/Statistical/Zywcl.js +13 -4
- package/lib/vtx-road-modal/components/Statistical/Zywcl.js.map +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.css +4 -0
- package/lib/vtx-road-modal/components/Statistical/index.less +2 -0
- package/lib/vtx-road-modal/index.js +90 -15
- package/lib/vtx-road-modal/index.js.map +1 -1
- package/lib/vtx-road-modal/style/index.css +52 -3
- package/lib/vtx-staff-modal/api.js +59 -35
- package/lib/vtx-staff-modal/api.js.map +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +24 -9
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js.map +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.css +1 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +5 -4
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js.map +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.less +1 -0
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +11 -4
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js.map +1 -1
- package/lib/vtx-staff-modal/components/Attendance/Record.js +25 -35
- package/lib/vtx-staff-modal/components/Attendance/Record.js.map +1 -1
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +7 -6
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js.map +1 -1
- package/lib/vtx-staff-modal/components/Attendance/index.css +3 -0
- package/lib/vtx-staff-modal/components/Attendance/index.less +3 -0
- package/lib/vtx-staff-modal/components/BaseInfo/Lcfx.js +16 -5
- package/lib/vtx-staff-modal/components/BaseInfo/Lcfx.js.map +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +12 -4
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js.map +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.css +6 -2
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +8 -2
- package/lib/vtx-staff-modal/components/Equipment/index.css +1 -0
- package/lib/vtx-staff-modal/components/Equipment/index.less +1 -0
- package/lib/vtx-staff-modal/index.js +28 -14
- package/lib/vtx-staff-modal/index.js.map +1 -1
- package/lib/vtx-staff-modal/style/index.css +52 -3
- package/lib/vtx-theme-provider/index.js +1 -0
- package/lib/vtx-theme-provider/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/api.js +102 -47
- package/lib/vtx-throw-point-modal/api.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/index.css +2 -0
- package/lib/vtx-throw-point-modal/components/Alarm/index.less +3 -0
- package/lib/vtx-throw-point-modal/components/OverView/Hot.js +67 -33
- package/lib/vtx-throw-point-modal/components/OverView/Hot.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/Left.js +6 -5
- package/lib/vtx-throw-point-modal/components/OverView/Left.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/RightBottom.js +18 -9
- package/lib/vtx-throw-point-modal/components/OverView/RightBottom.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/index.css +6 -1
- package/lib/vtx-throw-point-modal/components/OverView/index.js +8 -3
- package/lib/vtx-throw-point-modal/components/OverView/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/index.less +11 -1
- package/lib/vtx-throw-point-modal/components/SBZJ/index.js +1 -2
- package/lib/vtx-throw-point-modal/components/SBZJ/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/WGGS/Content.js +2 -1
- package/lib/vtx-throw-point-modal/components/WGGS/Content.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/WGXW/Content.js +2 -1
- package/lib/vtx-throw-point-modal/components/WGXW/Content.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/WGXW/index.css +21 -0
- package/lib/vtx-throw-point-modal/components/WGXW/index.js +7 -2
- package/lib/vtx-throw-point-modal/components/WGXW/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/WGXW/index.less +26 -0
- package/lib/vtx-throw-point-modal/index.js +66 -30
- package/lib/vtx-throw-point-modal/index.js.map +1 -1
- package/lib/vtx-wr-modal/api.js +89 -51
- package/lib/vtx-wr-modal/api.js.map +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/MonthTrend.js +6 -5
- package/lib/vtx-wr-modal/components/AlarmInfo/MonthTrend.js.map +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/Summary.js +22 -5
- package/lib/vtx-wr-modal/components/AlarmInfo/Summary.js.map +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/index.css +3 -0
- package/lib/vtx-wr-modal/components/AlarmInfo/index.less +3 -0
- package/lib/vtx-wr-modal/components/BaseInfo/AlarmType.js +24 -8
- package/lib/vtx-wr-modal/components/BaseInfo/AlarmType.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfo/BaseInner.js +8 -4
- package/lib/vtx-wr-modal/components/BaseInfo/BaseInner.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfo/Situation.js +17 -8
- package/lib/vtx-wr-modal/components/BaseInfo/Situation.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfo/index.css +8 -0
- package/lib/vtx-wr-modal/components/BaseInfo/index.js +3 -3
- package/lib/vtx-wr-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfo/index.less +10 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Img.js +9 -13
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Img.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Jbxx.js +53 -23
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Jbxx.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Ssjk.js +9 -4
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Ssjk.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew/index.js +28 -12
- package/lib/vtx-wr-modal/components/BaseInfoNew/index.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Alarm.js +119 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Alarm.js.map +1 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Jbxx.js +286 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Jbxx.js.map +1 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Jcbj.js +54 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Jcbj.js.map +1 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Monitor.js +364 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Monitor.js.map +1 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Ptss.js +159 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Ptss.js.map +1 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Sjjg.js +220 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Sjjg.js.map +1 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.css +319 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.js +112 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.js.map +1 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.less +320 -0
- package/lib/vtx-wr-modal/components/Evaluate/index.css +3 -0
- package/lib/vtx-wr-modal/components/Evaluate/index.less +3 -0
- package/lib/vtx-wr-modal/components/Monitor/MonitorInfo.js +6 -5
- package/lib/vtx-wr-modal/components/Monitor/MonitorInfo.js.map +1 -1
- package/lib/vtx-wr-modal/components/Monitor/RealtimeInfo.js +34 -31
- package/lib/vtx-wr-modal/components/Monitor/RealtimeInfo.js.map +1 -1
- package/lib/vtx-wr-modal/components/Monitor/index.css +2 -0
- package/lib/vtx-wr-modal/components/Monitor/index.less +4 -0
- package/lib/vtx-wr-modal/components/Score/index.css +11 -0
- package/lib/vtx-wr-modal/components/Score/index.js +7 -8
- package/lib/vtx-wr-modal/components/Score/index.js.map +1 -1
- package/lib/vtx-wr-modal/components/Score/index.less +33 -16
- package/lib/vtx-wr-modal/components/Ztt/index.js +27 -0
- package/lib/vtx-wr-modal/components/Ztt/index.js.map +1 -0
- package/lib/vtx-wr-modal/components/index.js +14 -0
- package/lib/vtx-wr-modal/components/index.js.map +1 -1
- package/lib/vtx-wr-modal/imgs/2/aq.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/cqz.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/dswsj.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/dswsjC.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/dws.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/female.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/lhq.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/male.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/mys.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/rll.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/sd.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/ty.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/tywsj.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/wd.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/xbd.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/ydl.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/ydlBg.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/ysl.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/yslBg.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/zsp.png +0 -0
- package/lib/vtx-wr-modal/imgs/2/zws.png +0 -0
- package/lib/vtx-wr-modal/imgs/daMen.png +0 -0
- package/lib/vtx-wr-modal/imgs/yingYe.png +0 -0
- package/lib/vtx-wr-modal/index.js +163 -39
- package/lib/vtx-wr-modal/index.js.map +1 -1
- package/lib/vtx-wr-modal/style/index.css +52 -3
- package/lib/vtx-zg-modal/components/BaseInfo/index.css +3 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +6 -4
- package/lib/vtx-zg-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +6 -0
- package/lib/vtx-zg-modal/index.js +6 -2
- package/lib/vtx-zg-modal/index.js.map +1 -1
- package/lib/vtx-zg-modal/style/index.css +52 -3
- package/package.json +4 -3
- package/lib/vtx-cp-modal/components/BaseInfo/Rules copy.js +0 -180
- package/lib/vtx-cp-modal/components/BaseInfo/Rules copy.js.map +0 -1
- package/lib/vtx-cp-modal/imgs/cylj.png +0 -0
- package/lib/vtx-cp-modal/imgs/qtlj.png +0 -0
- package/lib/vtx-cp-modal/imgs/shlj.png +0 -0
- package/lib/vtx-cp-modal/imgs/yhlj.png +0 -0
|
@@ -5,8 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _components = require("@vtx/components");
|
|
8
9
|
require("./style");
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
12
|
+
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."); }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
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; } }
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
10
17
|
function InfoCollection(props) {
|
|
11
18
|
var _props$data = props.data,
|
|
12
19
|
data = _props$data === void 0 ? [] : _props$data,
|
|
@@ -17,31 +24,126 @@ function InfoCollection(props) {
|
|
|
17
24
|
_props$horizontal = props.horizontal,
|
|
18
25
|
horizontal = _props$horizontal === void 0 ? false : _props$horizontal,
|
|
19
26
|
_props$ellipsis = props.ellipsis,
|
|
20
|
-
ellipsis = _props$ellipsis === void 0 ? false : _props$ellipsis
|
|
27
|
+
ellipsis = _props$ellipsis === void 0 ? false : _props$ellipsis,
|
|
28
|
+
padding = props.padding;
|
|
29
|
+
if (!data.length) return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null);
|
|
21
30
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
31
|
className: horizontal ? 'info-collection-horizontal' : 'info-collection',
|
|
23
32
|
style: {
|
|
24
|
-
|
|
33
|
+
padding: padding !== null && padding !== void 0 ? padding : 'unset'
|
|
25
34
|
}
|
|
26
35
|
}, data.map(function (item) {
|
|
36
|
+
var _a;
|
|
27
37
|
var style = {};
|
|
28
|
-
if (item.color) style.color = item.color;
|
|
38
|
+
if (item === null || item === void 0 ? void 0 : item.color) style.color = item.color;
|
|
29
39
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
30
40
|
className: "info-line",
|
|
31
41
|
key: item.key,
|
|
32
42
|
style: {
|
|
33
43
|
marginRight: horizontal ? 0 : 12,
|
|
34
44
|
marginBottom: gap,
|
|
35
|
-
width: width
|
|
45
|
+
width: item.label === '地址' || item.key === 'panoramaLinkAddress' || item.key.indexOf('hoto') > -1 ? '100%' : width
|
|
36
46
|
}
|
|
37
47
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
38
|
-
className: "label"
|
|
39
|
-
},
|
|
48
|
+
className: "info-label"
|
|
49
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
title: item.label,
|
|
51
|
+
className: "ellipsis label"
|
|
52
|
+
}, item.label, " \uFF1A")), item.label === '地址' ? ( /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
|
+
className: "value",
|
|
54
|
+
style: style
|
|
55
|
+
}, item.value || '-')) : item.key === 'panoramaLinkAddress' ? ( /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
+
className: 'value'
|
|
57
|
+
}, ((_a = item === null || item === void 0 ? void 0 : item.value) === null || _a === void 0 ? void 0 : _a.indexOf('http')) > -1 ? ( /*#__PURE__*/_react["default"].createElement("a", {
|
|
58
|
+
onClick: function onClick() {
|
|
59
|
+
window.open(item.value);
|
|
60
|
+
}
|
|
61
|
+
}, item.value)) : item.value || '-')) : ( /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
62
|
className: "value ".concat(ellipsis ? 'ellipsis' : ''),
|
|
41
63
|
style: style,
|
|
42
|
-
title:
|
|
43
|
-
}, typeof item.render === 'function' ? item.render() : item.
|
|
64
|
+
title: ValueDom(item.componentType || '', item.value)
|
|
65
|
+
}, typeof item.render === 'function' ? item.render() : ValueDom(item.componentType || '', item.value))));
|
|
44
66
|
}));
|
|
45
67
|
}
|
|
46
68
|
var _default = exports["default"] = InfoCollection;
|
|
69
|
+
var QUARTER_MAP = {
|
|
70
|
+
'01': 'Q1',
|
|
71
|
+
'04': 'Q2',
|
|
72
|
+
'07': 'Q3',
|
|
73
|
+
'10': 'Q4'
|
|
74
|
+
};
|
|
75
|
+
/* eslint-disable no-case-declarations */
|
|
76
|
+
var ValueDom = function ValueDom(componentType, value) {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
var node;
|
|
79
|
+
switch (componentType) {
|
|
80
|
+
case 'MONTH_PERIOD':
|
|
81
|
+
node = (_a = value.join) === null || _a === void 0 ? void 0 : _a.call(value, '~');
|
|
82
|
+
break;
|
|
83
|
+
case 'QUARTER':
|
|
84
|
+
var _value$split = value.split('-'),
|
|
85
|
+
_value$split2 = _slicedToArray(_value$split, 2),
|
|
86
|
+
year = _value$split2[0],
|
|
87
|
+
quarter = _value$split2[1];
|
|
88
|
+
node = "".concat(year, "-").concat(QUARTER_MAP[quarter]);
|
|
89
|
+
break;
|
|
90
|
+
case 'ATTACHS':
|
|
91
|
+
var files = JSON.parse(value || '[]');
|
|
92
|
+
if (files.length) {
|
|
93
|
+
node = /*#__PURE__*/_react["default"].createElement(_components.VtxUpload, {
|
|
94
|
+
name: "file",
|
|
95
|
+
viewMode: true,
|
|
96
|
+
fileList: files,
|
|
97
|
+
downloadUrl: "".concat(process.env.PREFIX, "/cloudFile/common/downloadFile?id=")
|
|
98
|
+
});
|
|
99
|
+
} else {
|
|
100
|
+
node = '-';
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
case 'MAP':
|
|
104
|
+
var lngLats = (value === null || value === void 0 ? void 0 : value.lngLats) || '';
|
|
105
|
+
node = lngLats;
|
|
106
|
+
break;
|
|
107
|
+
case 'SWITCH':
|
|
108
|
+
node = value ? '是' : '否';
|
|
109
|
+
break;
|
|
110
|
+
case 'GARBAGE_CAN':
|
|
111
|
+
var arr = [];
|
|
112
|
+
Array.isArray(node) && (node === null || node === void 0 ? void 0 : node.forEach(function (item) {
|
|
113
|
+
arr.push("".concat(item.garbageTypeName, "x").concat(item.throwDoorCount));
|
|
114
|
+
}));
|
|
115
|
+
node = arr;
|
|
116
|
+
break;
|
|
117
|
+
case 'TIME_PERIOD':
|
|
118
|
+
if (Array.isArray(value)) {
|
|
119
|
+
node = (_b = value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
120
|
+
return "".concat(item.startTime, "~").concat(item.endTime);
|
|
121
|
+
})) === null || _b === void 0 ? void 0 : _b.join(';');
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
case 'image':
|
|
125
|
+
var photos = JSON.parse(value || '[]');
|
|
126
|
+
if (photos.length) {
|
|
127
|
+
node = /*#__PURE__*/_react["default"].createElement(_components.VtxUpload, {
|
|
128
|
+
name: "file",
|
|
129
|
+
viewMode: true,
|
|
130
|
+
fileList: files,
|
|
131
|
+
downloadUrl: "".concat(process.env.PREFIX, "/cloudFile/common/downloadFile?id=")
|
|
132
|
+
});
|
|
133
|
+
} else {
|
|
134
|
+
node = '-';
|
|
135
|
+
}
|
|
136
|
+
break;
|
|
137
|
+
case 'qrCode':
|
|
138
|
+
node = /*#__PURE__*/_react["default"].createElement(_components.VtxImage, {
|
|
139
|
+
aspectFit: true,
|
|
140
|
+
src: value
|
|
141
|
+
});
|
|
142
|
+
break;
|
|
143
|
+
default:
|
|
144
|
+
node = value;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
return node || '-';
|
|
148
|
+
};
|
|
47
149
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","e","__esModule","InfoCollection","props","_props$data","data","_props$width","width","_props$gap","gap","_props$horizontal","horizontal","_props$ellipsis","ellipsis","React","createElement","className","style","height","map","item","color","key","marginRight","marginBottom","label","concat","title","value","render","_default","exports"],"sources":["vm-info-collection/index.js"],"sourcesContent":["import React from 'react';\nimport './style';\nfunction InfoCollection(props) {\n const { data = [], \n // infoData = {},\n width = '100%', gap = 8, horizontal = false, ellipsis = false, } = props;\n return (React.createElement(\"div\", { className: horizontal ? 'info-collection-horizontal' : 'info-collection', style: { height: '100%' } }, data.map(item => {\n const style = {};\n if (item.color)\n style.color = item.color;\n return (React.createElement(\"div\", { className: \"info-line\", key: item.key, style: { marginRight: horizontal ? 0 : 12, marginBottom: gap, width } },\n React.createElement(\"div\", { className: \"label\" },\n item.label,\n \"\\uFF1A\"),\n React.createElement(\"div\", { className: `value ${ellipsis ? 'ellipsis' : ''}`, style: style, title: `${item.value || ''}` }, typeof item.render === 'function' ? item.render() : item.value || '--')));\n })));\n}\nexport default InfoCollection;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAAiB,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AACjB,SAASE,cAAcA,CAACC,KAAK,EAAE;EAC3B,IAAAC,WAAA,GAEmED,KAAK,CAFhEE,IAAI;IAA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U,GAAG,EAAE,CAAE;MAAEI,KAAK,EAAEA,KAAK;MAAEU,KAAK,KAAAD,MAAA,CAAKN,IAAI,CAACQ,KAAK,IAAI,EAAE;IAAG,CAAC,EAAE,OAAOR,IAAI,CAACS,MAAM,KAAK,UAAU,GAAGT,IAAI,CAACS,MAAM,CAAC,CAAC,GAAGT,IAAI,CAACQ,KAAK,IAAI,IAAI,CAAC,CAAC;EAC7M,CAAC,CAAC,CAAC;AACP;AAAC,IAAAE,QAAA,GAAAC,OAAA,cACc7B,cAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_components","e","__esModule","_slicedToArray","r","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","t","toString","call","slice","constructor","name","Array","from","test","length","n","l","Symbol","iterator","i","u","f","o","next","Object","done","push","value","isArray","InfoCollection","props","_props$data","data","_props$width","width","_props$gap","gap","_props$horizontal","horizontal","_props$ellipsis","ellipsis","padding","React","createElement","Fragment","className","style","map","item","_a","color","key","marginRight","marginBottom","label","indexOf","title","onClick","window","open","concat","ValueDom","componentType","render","_default","exports","QUARTER_MAP","_b","node","join","_value$split","split","_value$split2","year","quarter","files","JSON","parse","VtxUpload","viewMode","fileList","downloadUrl","process","env","PREFIX","lngLats","arr","forEach","garbageTypeName","throwDoorCount","startTime","endTime","photos","VtxImage","aspectFit","src"],"sources":["vm-info-collection/index.js"],"sourcesContent":["import React from 'react';\nimport { VtxUpload, VtxImage } from '@vtx/components';\nimport './style';\nfunction InfoCollection(props) {\n const { data = [], width = '100%', gap = 8, horizontal = false, ellipsis = false, padding, } = props;\n if (!data.length)\n return React.createElement(React.Fragment, null);\n return (React.createElement(\"div\", { className: horizontal ? 'info-collection-horizontal' : 'info-collection', style: { padding: padding !== null && padding !== void 0 ? padding : 'unset' } }, data.map(item => {\n var _a;\n const style = {};\n if (item === null || item === void 0 ? void 0 : item.color)\n style.color = item.color;\n return (React.createElement(\"div\", { className: \"info-line\", key: item.key, style: {\n marginRight: horizontal ? 0 : 12,\n marginBottom: gap,\n width: item.label === '地址' ||\n item.key === 'panoramaLinkAddress' ||\n item.key.indexOf('hoto') > -1\n ? '100%'\n : width,\n } },\n React.createElement(\"div\", { className: \"info-label\" },\n React.createElement(\"div\", { title: item.label, className: `ellipsis label` },\n item.label,\n \" \\uFF1A\")),\n item.label === '地址' ? (React.createElement(\"div\", { className: \"value\", style: style }, item.value || '-')) : item.key === 'panoramaLinkAddress' ? (React.createElement(\"div\", { className: 'value' }, ((_a = item === null || item === void 0 ? void 0 : item.value) === null || _a === void 0 ? void 0 : _a.indexOf('http')) > -1 ? (React.createElement(\"a\", { onClick: () => {\n window.open(item.value);\n } }, item.value)) : (item.value || '-'))) : (React.createElement(\"div\", { className: `value ${ellipsis ? 'ellipsis' : ''}`, style: style, title: ValueDom(item.componentType || '', item.value) }, typeof item.render === 'function'\n ? item.render()\n : ValueDom(item.componentType || '', item.value)))));\n })));\n}\nexport default InfoCollection;\nconst QUARTER_MAP = {\n '01': 'Q1',\n '04': 'Q2',\n '07': 'Q3',\n '10': 'Q4',\n};\n/* eslint-disable no-case-declarations */\nconst ValueDom = (componentType, value) => {\n var _a, _b;\n let node;\n switch (componentType) {\n case 'MONTH_PERIOD':\n node = (_a = value.join) === null || _a === void 0 ? void 0 : _a.call(value, '~');\n break;\n case 'QUARTER':\n const [year, quarter] = value.split('-');\n node = `${year}-${QUARTER_MAP[quarter]}`;\n break;\n case 'ATTACHS':\n const files = JSON.parse(value || '[]');\n if (files.length) {\n node = (React.createElement(VtxUpload, { name: \"file\", viewMode: true, fileList: files, downloadUrl: `${process.env.PREFIX}/cloudFile/common/downloadFile?id=` }));\n }\n else {\n node = '-';\n }\n break;\n case 'MAP':\n const lngLats = (value === null || value === void 0 ? void 0 : value.lngLats) || '';\n node = lngLats;\n break;\n case 'SWITCH':\n node = value ? '是' : '否';\n break;\n case 'GARBAGE_CAN':\n const arr = [];\n Array.isArray(node) &&\n (node === null || node === void 0 ? void 0 : node.forEach(item => {\n arr.push(`${item.garbageTypeName}x${item.throwDoorCount}`);\n }));\n node = arr;\n break;\n case 'TIME_PERIOD':\n if (Array.isArray(value)) {\n node = (_b = value === null || value === void 0 ? void 0 : value.map((item) => `${item.startTime}~${item.endTime}`)) === null || _b === void 0 ? void 0 : _b.join(';');\n }\n break;\n case 'image':\n const photos = JSON.parse(value || '[]');\n if (photos.length) {\n node = (React.createElement(VtxUpload, { name: \"file\", viewMode: true, fileList: files, downloadUrl: `${process.env.PREFIX}/cloudFile/common/downloadFile?id=` }));\n }\n else {\n node = '-';\n }\n break;\n case 'qrCode':\n node = React.createElement(VtxImage, { aspectFit: true, src: value });\n break;\n default:\n node = value;\n break;\n }\n return node || '-';\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACAA,OAAA;AAAiB,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,eAAAC,CAAA,EAAAH,CAAA,WAAAI,eAAA,CAAAD,CAAA,KAAAE,qBAAA,CAAAF,CAAA,EAAAH,CAAA,KAAAM,2BAAA,CAAAH,CAAA,EAAAH,CAAA,KAAAO,gBAAA;AAAA,SAAAA,iBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAH,CAAA,EAAAM,CAAA,QAAAN,CAAA,2BAAAA,CAAA,SAAAO,iBAAA,CAAAP,CAAA,EAAAM,CAAA,OAAAE,CAAA,MAAAC,QAAA,CAAAC,IAAA,CAAAV,CAAA,EAAAW,KAAA,6BAAAH,CAAA,IAAAR,CAAA,CAAAY,WAAA,KAAAJ,CAAA,GAAAR,CAAA,CAAAY,WAAA,CAAAC,IAAA,aAAAL,CAAA,cAAAA,CAAA,GAAAM,KAAA,CAAAC,IAAA,CAAAf,CAAA,oB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
|
22
22
|
-webkit-box-pack: start;
|
|
23
23
|
-ms-flex-pack: start;
|
|
24
24
|
justify-content: start;
|
|
25
|
+
-webkit-box-align: center;
|
|
26
|
+
-ms-flex-align: center;
|
|
27
|
+
align-items: center;
|
|
25
28
|
margin-right: 12px;
|
|
26
29
|
}
|
|
27
30
|
.info-collection,
|
|
28
31
|
.info-collection-horizontal {
|
|
29
32
|
font-size: 14px;
|
|
30
33
|
}
|
|
31
|
-
.info-collection .label,
|
|
32
|
-
.info-collection-horizontal .label {
|
|
33
|
-
color: var(--label-color);
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
}
|
|
36
34
|
.info-collection .value,
|
|
37
35
|
.info-collection-horizontal .value {
|
|
38
36
|
color: var(--info-color);
|
|
@@ -48,24 +46,22 @@
|
|
|
48
46
|
text-overflow: ellipsis;
|
|
49
47
|
white-space: nowrap;
|
|
50
48
|
}
|
|
51
|
-
.info-collection .
|
|
52
|
-
.info-collection-horizontal .
|
|
53
|
-
width:
|
|
54
|
-
height: 60%;
|
|
55
|
-
margin-right: 10px;
|
|
56
|
-
background-color: var(--bg-color2);
|
|
49
|
+
.info-collection .ellipsis.label,
|
|
50
|
+
.info-collection-horizontal .ellipsis.label {
|
|
51
|
+
min-width: 78px;
|
|
57
52
|
}
|
|
58
|
-
.info-collection .
|
|
59
|
-
.info-collection-horizontal .
|
|
60
|
-
|
|
61
|
-
width:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
53
|
+
.info-collection .info-label,
|
|
54
|
+
.info-collection-horizontal .info-label {
|
|
55
|
+
min-width: 98px;
|
|
56
|
+
max-width: 350px;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
min-width: 80px;
|
|
60
|
+
color: var(--label-color);
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
margin-right: 4px;
|
|
66
63
|
}
|
|
67
|
-
.info-collection .
|
|
68
|
-
.info-collection-horizontal .
|
|
69
|
-
|
|
70
|
-
width: 100%;
|
|
64
|
+
.info-collection .info-label.label,
|
|
65
|
+
.info-collection-horizontal .info-label.label {
|
|
66
|
+
min-width: 78px;
|
|
71
67
|
}
|
|
@@ -7,9 +7,13 @@
|
|
|
7
7
|
.info-collection-horizontal {
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-flow: wrap;
|
|
10
|
+
// max-height: 340px;
|
|
11
|
+
// overflow-y: auto;
|
|
12
|
+
// overflow-x: hidden;
|
|
10
13
|
.info-line {
|
|
11
14
|
display: flex;
|
|
12
15
|
justify-content: start;
|
|
16
|
+
align-items: center;
|
|
13
17
|
margin-right: 12px;
|
|
14
18
|
}
|
|
15
19
|
}
|
|
@@ -17,11 +21,6 @@
|
|
|
17
21
|
.info-collection-horizontal {
|
|
18
22
|
font-size: 14px;
|
|
19
23
|
|
|
20
|
-
.label {
|
|
21
|
-
color: var(--label-color);
|
|
22
|
-
white-space: nowrap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
24
|
.value {
|
|
26
25
|
color: var(--info-color);
|
|
27
26
|
font-weight: 400;
|
|
@@ -34,24 +33,15 @@
|
|
|
34
33
|
overflow: hidden;
|
|
35
34
|
text-overflow: ellipsis;
|
|
36
35
|
white-space: nowrap;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
width: 430px;
|
|
40
|
-
height: 60%;
|
|
41
|
-
// padding: 24px;
|
|
42
|
-
margin-right: 10px;
|
|
43
|
-
background-color: var(--bg-color2);
|
|
44
|
-
img {
|
|
45
|
-
height:160px;
|
|
46
|
-
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
&-img {
|
|
49
|
-
margin-bottom: 24px;
|
|
50
|
-
img {
|
|
51
|
-
height:160px;
|
|
52
|
-
width: 100%;
|
|
53
|
-
}
|
|
36
|
+
&.label {
|
|
37
|
+
min-width: 78px;
|
|
54
38
|
}
|
|
55
39
|
}
|
|
56
|
-
|
|
40
|
+
.info-label {
|
|
41
|
+
.ellipsis;
|
|
42
|
+
min-width: 80px;
|
|
43
|
+
color: var(--label-color);
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
margin-right: 4px;
|
|
46
|
+
}
|
|
57
47
|
}
|
|
Binary file
|
package/lib/vm-map/index.js
CHANGED
|
@@ -11,9 +11,14 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _map = require("@vtx/map");
|
|
12
12
|
var _useSettings2 = _interopRequireDefault(require("../vm-hooks/useSettings"));
|
|
13
13
|
var _mapStyle = require("./mapStyle");
|
|
14
|
+
require("./style");
|
|
14
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
19
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
21
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
17
22
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
18
23
|
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."); }
|
|
19
24
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -22,17 +27,20 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
22
27
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /* eslint-disable no-undef */
|
|
23
28
|
var defaultCenter = [116.421516, 39.898331];
|
|
24
29
|
function VmMap(_a) {
|
|
25
|
-
var
|
|
30
|
+
var _b, _c;
|
|
31
|
+
var _a$key = _a.key,
|
|
32
|
+
key = _a$key === void 0 ? 1 : _a$key,
|
|
33
|
+
_a$mapType = _a.mapType,
|
|
26
34
|
mapType = _a$mapType === void 0 ? 'bmap' : _a$mapType,
|
|
27
|
-
mapCenter = _a.mapCenter,
|
|
28
35
|
_a$mapPoints = _a.mapPoints,
|
|
29
36
|
mapPoints = _a$mapPoints === void 0 ? [] : _a$mapPoints,
|
|
37
|
+
mapCenter = _a.mapCenter,
|
|
30
38
|
_a$mapPolygons = _a.mapPolygons,
|
|
31
39
|
mapPolygons = _a$mapPolygons === void 0 ? [] : _a$mapPolygons,
|
|
32
40
|
currentLayer = _a.currentLayer,
|
|
33
41
|
geometryType = _a.geometryType,
|
|
34
42
|
clickGraphic = _a.clickGraphic,
|
|
35
|
-
rest = (0, _tslib.__rest)(_a, ["
|
|
43
|
+
rest = (0, _tslib.__rest)(_a, ["key", "mapType", "mapPoints", "mapCenter", "mapPolygons", "currentLayer", "geometryType", "clickGraphic"]);
|
|
36
44
|
var mapRef = (0, _react.useRef)();
|
|
37
45
|
var markers = (0, _react.useRef)([]);
|
|
38
46
|
var mappolygons = (0, _react.useRef)([]);
|
|
@@ -44,14 +52,18 @@ function VmMap(_a) {
|
|
|
44
52
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45
53
|
points = _useState2[0],
|
|
46
54
|
setPoints = _useState2[1];
|
|
47
|
-
var _useState3 = (0, _react.useState)(
|
|
55
|
+
var _useState3 = (0, _react.useState)(false),
|
|
48
56
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
center = _useState4[0],
|
|
58
|
+
setCenter = _useState4[1];
|
|
51
59
|
var _useState5 = (0, _react.useState)([]),
|
|
52
60
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
polygons = _useState6[0],
|
|
62
|
+
setPolygons = _useState6[1];
|
|
63
|
+
var _useState7 = (0, _react.useState)([]),
|
|
64
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
65
|
+
lines = _useState8[0],
|
|
66
|
+
setLines = _useState8[1];
|
|
55
67
|
(0, _react.useEffect)(function () {
|
|
56
68
|
var wrapScroll = document.querySelector('.ant-modal-body');
|
|
57
69
|
wrapScroll && wrapScroll.addEventListener('scroll', function () {
|
|
@@ -65,13 +77,13 @@ function VmMap(_a) {
|
|
|
65
77
|
}, [theme]);
|
|
66
78
|
(0, _react.useEffect)(function () {
|
|
67
79
|
if ((mapPoints === null || mapPoints === void 0 ? void 0 : mapPoints.length) > 0) {
|
|
68
|
-
var
|
|
80
|
+
var _list = mapPoints.map(function (ele) {
|
|
69
81
|
return Object.assign(Object.assign({}, ele), {
|
|
70
82
|
longitude: ele.lng,
|
|
71
83
|
latitude: ele.lat
|
|
72
84
|
});
|
|
73
85
|
}) || [];
|
|
74
|
-
setPoints(
|
|
86
|
+
setPoints(_list);
|
|
75
87
|
}
|
|
76
88
|
}, [mapPoints]);
|
|
77
89
|
(0, _react.useEffect)(function () {
|
|
@@ -82,13 +94,15 @@ function VmMap(_a) {
|
|
|
82
94
|
if ((filterMapPolygons === null || filterMapPolygons === void 0 ? void 0 : filterMapPolygons.length) > 0) {
|
|
83
95
|
if (geometryType === 'polyline') {
|
|
84
96
|
setLines(filterMapPolygons.map(function (item) {
|
|
85
|
-
return
|
|
97
|
+
return {
|
|
98
|
+
id: item.id,
|
|
99
|
+
config: item.config,
|
|
86
100
|
paths: item.rings.split(';').map(function (v) {
|
|
87
101
|
return v.split(',').map(function (v) {
|
|
88
102
|
return Number(v);
|
|
89
103
|
});
|
|
90
104
|
})
|
|
91
|
-
}
|
|
105
|
+
};
|
|
92
106
|
}));
|
|
93
107
|
} else {
|
|
94
108
|
setPolygons(filterMapPolygons.map(function (item) {
|
|
@@ -128,7 +142,7 @@ function VmMap(_a) {
|
|
|
128
142
|
var center = mapCenter || defaultCenter;
|
|
129
143
|
mapRef.current = new window.BMapGL.Map('modalMap', {
|
|
130
144
|
style: {
|
|
131
|
-
styleJson: isDark ? _mapStyle.customStyle : _mapStyle.customLight
|
|
145
|
+
styleJson: isDark || theme == 'blue' ? _mapStyle.customStyle : _mapStyle.customLight
|
|
132
146
|
}
|
|
133
147
|
});
|
|
134
148
|
var point = new window.BMapGL.Point(center[0], center[1]);
|
|
@@ -151,8 +165,8 @@ function VmMap(_a) {
|
|
|
151
165
|
var points = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
152
166
|
removePoints();
|
|
153
167
|
if (!(points === null || points === void 0 ? void 0 : points.length)) {
|
|
154
|
-
var
|
|
155
|
-
var point = new window.BMapGL.Point(
|
|
168
|
+
var _center = mapCenter || defaultCenter;
|
|
169
|
+
var point = new window.BMapGL.Point(_center[0], _center[1]);
|
|
156
170
|
mapRef.current.addOverlay(new window.BMapGL.Marker(point));
|
|
157
171
|
return;
|
|
158
172
|
}
|
|
@@ -162,10 +176,10 @@ function VmMap(_a) {
|
|
|
162
176
|
var _a, _b;
|
|
163
177
|
var position = new window.BMapGL.Point(item.lng, item.lat);
|
|
164
178
|
positions.push(position);
|
|
165
|
-
var icon = new window.BMapGL.Icon(item.url, new window.BMapGL.Size(item.width || 32, item.height || 45));
|
|
179
|
+
var icon = new window.BMapGL.Icon(item.url || require('./imgs/defaultMarker.png'), new window.BMapGL.Size(item.width || 32, item.height || 45));
|
|
166
180
|
var marker = new window.BMapGL.Marker(position, {
|
|
167
181
|
icon: icon,
|
|
168
|
-
offset: new window.BMapGL.Size(((_a = item.offset) === null || _a === void 0 ? void 0 : _a.width) || -10, ((_b = item.offset) === null || _b === void 0 ? void 0 : _b.height) || -16),
|
|
182
|
+
offset: new window.BMapGL.Size(((_a = item === null || item === void 0 ? void 0 : item.offset) === null || _a === void 0 ? void 0 : _a.width) || -10, ((_b = item === null || item === void 0 ? void 0 : item.offset) === null || _b === void 0 ? void 0 : _b.height) || -16),
|
|
169
183
|
title: item.name || ''
|
|
170
184
|
});
|
|
171
185
|
markers.current.push(marker);
|
|
@@ -175,7 +189,8 @@ function VmMap(_a) {
|
|
|
175
189
|
};
|
|
176
190
|
// 清除地图点位
|
|
177
191
|
var removePoints = function removePoints() {
|
|
178
|
-
|
|
192
|
+
var _a;
|
|
193
|
+
((_a = markers.current) === null || _a === void 0 ? void 0 : _a.length) && markers.current.forEach(function (marker) {
|
|
179
194
|
mapRef.current.addOverlay(marker);
|
|
180
195
|
});
|
|
181
196
|
markers.current = [];
|
|
@@ -195,11 +210,13 @@ function VmMap(_a) {
|
|
|
195
210
|
var polygons = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
196
211
|
var type = arguments.length > 1 ? arguments[1] : undefined;
|
|
197
212
|
removePolygons();
|
|
198
|
-
|
|
213
|
+
var list = polygons === null || polygons === void 0 ? void 0 : polygons.filter(function (ele) {
|
|
214
|
+
return !!ele.rings;
|
|
215
|
+
});
|
|
216
|
+
if (!(list === null || list === void 0 ? void 0 : list.length)) return;
|
|
199
217
|
var points = [];
|
|
200
218
|
//遍历添加图层(图元)
|
|
201
219
|
polygons.map(function (item) {
|
|
202
|
-
var _a;
|
|
203
220
|
//初始化参数
|
|
204
221
|
var cg = {
|
|
205
222
|
lineType: 'solid',
|
|
@@ -222,7 +239,7 @@ function VmMap(_a) {
|
|
|
222
239
|
fillColor: cg.color,
|
|
223
240
|
fillOpacity: cg.pellucidity
|
|
224
241
|
},
|
|
225
|
-
polygonPath =
|
|
242
|
+
polygonPath = item.rings.split(';').map(function (item) {
|
|
226
243
|
var _ref2 = item === null || item === void 0 ? void 0 : item.split(','),
|
|
227
244
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
228
245
|
lng = _ref3[0],
|
|
@@ -238,8 +255,7 @@ function VmMap(_a) {
|
|
|
238
255
|
clickPolygon(item, e);
|
|
239
256
|
// 居中显示
|
|
240
257
|
setTimeout(function () {
|
|
241
|
-
|
|
242
|
-
mapRef.current.setViewport((_a = item.rings) === null || _a === void 0 ? void 0 : _a.split(';').map(function (item) {
|
|
258
|
+
mapRef.current.setViewport(item.rings.split(';').map(function (item) {
|
|
243
259
|
var _ref4 = item === null || item === void 0 ? void 0 : item.split(','),
|
|
244
260
|
_ref5 = _slicedToArray(_ref4, 2),
|
|
245
261
|
lng = _ref5[0],
|
|
@@ -262,7 +278,8 @@ function VmMap(_a) {
|
|
|
262
278
|
};
|
|
263
279
|
// 清除地图图元
|
|
264
280
|
var removePolygons = function removePolygons() {
|
|
265
|
-
|
|
281
|
+
var _a;
|
|
282
|
+
((_a = mappolygons.current) === null || _a === void 0 ? void 0 : _a.length) && mappolygons.current.forEach(function (polygon) {
|
|
266
283
|
mapRef.current.removeOverlay(polygon);
|
|
267
284
|
});
|
|
268
285
|
mappolygons.current = [];
|
|
@@ -274,15 +291,42 @@ function VmMap(_a) {
|
|
|
274
291
|
});
|
|
275
292
|
highlightLayer.current = [];
|
|
276
293
|
};
|
|
294
|
+
var list = mapType !== 'olmap' ? [].concat(_toConsumableArray(polygons), _toConsumableArray(lines)) : [];
|
|
295
|
+
var pointCneter;
|
|
296
|
+
if ((points === null || points === void 0 ? void 0 : points.length) > 0) {
|
|
297
|
+
pointCneter = [(_b = points === null || points === void 0 ? void 0 : points[0]) === null || _b === void 0 ? void 0 : _b.lng, (_c = points === null || points === void 0 ? void 0 : points[0]) === null || _c === void 0 ? void 0 : _c.lat];
|
|
298
|
+
}
|
|
277
299
|
var mapProps = Object.assign({
|
|
300
|
+
key: key,
|
|
278
301
|
mapId: Date.now(),
|
|
279
|
-
mapCenter: mapCenter || defaultCenter,
|
|
302
|
+
mapCenter: pointCneter || mapCenter || defaultCenter,
|
|
280
303
|
mapType: mapType,
|
|
281
304
|
mapPoints: points || [],
|
|
282
305
|
mapPolygons: polygons || [],
|
|
283
|
-
mapLines: lines || []
|
|
306
|
+
mapLines: lines || [],
|
|
307
|
+
setCenter: center
|
|
284
308
|
}, rest);
|
|
285
|
-
|
|
309
|
+
// 点位层级固定显示16,可在customMapInfo传参修改
|
|
310
|
+
if (list.length) {
|
|
311
|
+
mapProps = Object.assign(Object.assign({}, mapProps), {
|
|
312
|
+
mapVisiblePoints: {
|
|
313
|
+
fitView: list.length ? list === null || list === void 0 ? void 0 : list.map(function (ele) {
|
|
314
|
+
return ele.id;
|
|
315
|
+
}) : [],
|
|
316
|
+
type: 'all'
|
|
317
|
+
},
|
|
318
|
+
setVisiblePoints: Math.random() * 1000
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
(0, _react.useEffect)(function () {
|
|
322
|
+
if (mapCenter && (mapCenter === null || mapCenter === void 0 ? void 0 : mapCenter.length) > 0) {
|
|
323
|
+
setCenter(true);
|
|
324
|
+
setTimeout(function () {
|
|
325
|
+
return setCenter(false);
|
|
326
|
+
}, 2500);
|
|
327
|
+
}
|
|
328
|
+
}, [JSON.stringify(mapCenter)]);
|
|
329
|
+
return theme == 'light' ? ( /*#__PURE__*/_react["default"].createElement(_map.VtxMap, Object.assign({}, mapProps))) : ( /*#__PURE__*/_react["default"].createElement("div", {
|
|
286
330
|
id: "modalMap",
|
|
287
331
|
style: {
|
|
288
332
|
width: '100%',
|