@vtx/modals2 4.0.11 → 4.0.13
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 +33 -33
- package/lib/style/index.less +8 -8
- package/lib/style/themes/dark.less +69 -69
- package/lib/style/themes/default.less +34 -34
- package/lib/style/themes/index.less +1 -1
- package/lib/typings.d.ts +15 -15
- package/lib/vm-alarm-info/Components/AlarmRecord.js.map +1 -1
- package/lib/vm-alarm-info/Components/AlarmStatistics.js +3 -3
- package/lib/vm-alarm-info/Components/AlarmStatistics.js.map +1 -1
- package/lib/vm-alarm-info/Components/AlarmTrend.js.map +1 -1
- package/lib/vm-alarm-info/Components/CurrentAlarmNew.js +2 -2
- package/lib/vm-alarm-info/Components/CurrentAlarmNew.js.map +1 -1
- package/lib/vm-alarm-info/Components/index.less +40 -40
- package/lib/vm-alarm-info/api.js.map +1 -1
- package/lib/vm-alarm-info/index.js +2 -2
- package/lib/vm-alarm-info/index.js.map +1 -1
- package/lib/vm-alarm-info/style/index.less +16 -16
- package/lib/vm-alarm-situation/api.js.map +1 -1
- package/lib/vm-alarm-situation/index.js +5 -5
- package/lib/vm-alarm-situation/index.js.map +1 -1
- package/lib/vm-alarm-situation/style/index.less +67 -67
- package/lib/vm-alarm-situation-pt/api.js.map +1 -1
- package/lib/vm-alarm-situation-pt/index.js +2 -2
- package/lib/vm-alarm-situation-pt/index.js.map +1 -1
- package/lib/vm-alarm-situation-pt/style/index.less +65 -65
- package/lib/vm-analysis-comparison/api.js.map +1 -1
- package/lib/vm-analysis-comparison/index.js +3 -3
- package/lib/vm-analysis-comparison/index.js.map +1 -1
- package/lib/vm-analysis-comparison/style/index.less +12 -12
- package/lib/vm-appraisal-info/AppraisalTop5.js +1 -1
- package/lib/vm-appraisal-info/AppraisalTop5.js.map +1 -1
- package/lib/vm-appraisal-info/List.js.map +1 -1
- package/lib/vm-appraisal-info/ListKh.js +2 -2
- package/lib/vm-appraisal-info/ListKh.js.map +1 -1
- package/lib/vm-appraisal-info/ListZg.js +2 -2
- package/lib/vm-appraisal-info/ListZg.js.map +1 -1
- package/lib/vm-appraisal-info/Wtlx.js +2 -2
- package/lib/vm-appraisal-info/Wtlx.js.map +1 -1
- package/lib/vm-appraisal-info/api.js.map +1 -1
- package/lib/vm-appraisal-info/index.js +4 -4
- package/lib/vm-appraisal-info/index.js.map +1 -1
- package/lib/vm-appraisal-info/style/index.less +122 -122
- package/lib/vm-base-list/OpenArrow.js +2 -2
- package/lib/vm-base-list/OpenArrow.js.map +1 -1
- package/lib/vm-base-list/index.js +3 -3
- package/lib/vm-base-list/index.js.map +1 -1
- package/lib/vm-base-list/style/index.less +39 -39
- package/lib/vm-button/index.js.map +1 -1
- package/lib/vm-button/style/index.less +20 -20
- package/lib/vm-charts/Distribute1.js.map +1 -1
- package/lib/vm-charts/Line.js +2 -2
- package/lib/vm-charts/Line.js.map +1 -1
- package/lib/vm-charts/Pie.js +2 -2
- package/lib/vm-charts/Pie.js.map +1 -1
- package/lib/vm-charts/index.less +30 -30
- package/lib/vm-checkbox/style/index.less +25 -25
- package/lib/vm-container/index.js +1 -1
- package/lib/vm-container/index.js.map +1 -1
- package/lib/vm-container/style/index.less +28 -28
- package/lib/vm-correlation-comparison/api.js.map +1 -1
- package/lib/vm-correlation-comparison/index.js +4 -4
- package/lib/vm-correlation-comparison/index.js.map +1 -1
- package/lib/vm-correlation-comparison/style/index.less +13 -13
- package/lib/vm-empty/style/index.less +23 -23
- package/lib/vm-filter/index.js.map +1 -1
- package/lib/vm-filter/style/index.css +3 -0
- package/lib/vm-filter/style/index.less +1 -0
- package/lib/vm-iframe-modal/index.js +1 -1
- package/lib/vm-iframe-modal/index.js.map +1 -1
- package/lib/vm-iframe-modal/style/index.less +8 -8
- package/lib/vm-image-text/index.js +2 -2
- package/lib/vm-image-text/index.js.map +1 -1
- package/lib/vm-image-text/style/index.less +30 -30
- package/lib/vm-info-collection/style/index.less +57 -57
- package/lib/vm-map/index.js +2 -2
- package/lib/vm-map/index.js.map +1 -1
- package/lib/vm-modal-table/index.js +1 -1
- package/lib/vm-modal-table/index.js.map +1 -1
- package/lib/vm-modal-table/style/index.less +23 -23
- package/lib/vm-radio/style/index.less +26 -26
- package/lib/vm-real-time-monitor/api.js.map +1 -1
- package/lib/vm-real-time-monitor/index.js +3 -3
- package/lib/vm-real-time-monitor/index.js.map +1 -1
- package/lib/vm-real-time-monitor/style/index.less +12 -12
- package/lib/vm-repair-maintain/RmInfoSummary.js +2 -2
- package/lib/vm-repair-maintain/RmInfoSummary.js.map +1 -1
- package/lib/vm-repair-maintain/RmRecord.js.map +1 -1
- package/lib/vm-repair-maintain/RmType.js +2 -2
- package/lib/vm-repair-maintain/RmType.js.map +1 -1
- package/lib/vm-repair-maintain/api.js.map +1 -1
- package/lib/vm-repair-maintain/style/index.less +108 -108
- package/lib/vm-round-content/index.js +1 -1
- package/lib/vm-round-content/index.js.map +1 -1
- package/lib/vm-round-content/style/index.less +33 -33
- package/lib/vm-select-device/style/index.less +16 -16
- package/lib/vm-sub-tabs/style/index.less +119 -119
- package/lib/vm-sub-title/index.js +1 -1
- package/lib/vm-sub-title/index.js.map +1 -1
- package/lib/vm-sub-title/style/index.less +23 -23
- package/lib/vm-table/index.js.map +1 -1
- package/lib/vm-table/style/index.less +224 -224
- package/lib/vm-time-line/index.js +2 -2
- package/lib/vm-time-line/index.js.map +1 -1
- package/lib/vm-video/api.js.map +1 -1
- package/lib/vm-video/index.js +2 -2
- package/lib/vm-video/index.js.map +1 -1
- package/lib/vm-video/index.less +10 -10
- package/lib/vtx-base-info/index.js +1 -1
- package/lib/vtx-base-info/index.js.map +1 -1
- package/lib/vtx-base-info/style/index.less +62 -62
- package/lib/vtx-base-modal/index.js +7 -7
- package/lib/vtx-base-modal/index.js.map +1 -1
- package/lib/vtx-base-modal/style/index.less +572 -572
- package/lib/vtx-car-modal/api.js +233 -35
- package/lib/vtx-car-modal/api.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/Charts.js +3 -3
- package/lib/vtx-car-modal/components/AlarmInfo/Charts.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/List.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/index.js +4 -4
- package/lib/vtx-car-modal/components/AlarmInfo/index.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/index.less +38 -38
- package/lib/vtx-car-modal/components/AssessInfo/Charts.js +159 -0
- package/lib/vtx-car-modal/components/AssessInfo/Charts.js.map +1 -0
- package/lib/vtx-car-modal/components/AssessInfo/List.js +190 -0
- package/lib/vtx-car-modal/components/AssessInfo/List.js.map +1 -0
- package/lib/vtx-car-modal/components/AssessInfo/index.css +45 -0
- package/lib/vtx-car-modal/components/AssessInfo/index.js +129 -0
- package/lib/vtx-car-modal/components/AssessInfo/index.js.map +1 -0
- package/lib/vtx-car-modal/components/AssessInfo/index.less +38 -0
- package/lib/vtx-car-modal/components/BaseInfo/Charts.js +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/Charts.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayRun.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkCC.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkJXH.js +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkJXH.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkLJSY.js +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkLJSY.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/Wgfx.js +2 -2
- package/lib/vtx-car-modal/components/BaseInfo/Wgfx.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxCC.js +2 -2
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxCC.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxJXH.js +2 -2
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxJXH.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxLJSY.js +2 -2
- package/lib/vtx-car-modal/components/BaseInfo/ZyfxLJSY.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.less +239 -239
- package/lib/vtx-car-modal/components/CanData/index.js.map +1 -1
- package/lib/vtx-car-modal/components/CanData/index.less +36 -36
- package/lib/vtx-car-modal/components/Maintenance/index.js +2 -2
- package/lib/vtx-car-modal/components/Maintenance/index.js.map +1 -1
- package/lib/vtx-car-modal/components/Maintenance/index.less +34 -34
- package/lib/vtx-car-modal/components/OilConsumption/OilLIne.js +2 -2
- package/lib/vtx-car-modal/components/OilConsumption/OilLIne.js.map +1 -1
- package/lib/vtx-car-modal/components/OilConsumption/index.js.map +1 -1
- package/lib/vtx-car-modal/components/OilConsumption/index.less +36 -36
- package/lib/vtx-car-modal/components/PowerConsumption/index.js.map +1 -1
- package/lib/vtx-car-modal/components/PowerConsumption/index.less +22 -22
- package/lib/vtx-car-modal/components/StaticInfo/Charts.js +2 -2
- package/lib/vtx-car-modal/components/StaticInfo/Charts.js.map +1 -1
- package/lib/vtx-car-modal/components/StaticInfo/List.js.map +1 -1
- package/lib/vtx-car-modal/components/StaticInfo/index.js +2 -2
- package/lib/vtx-car-modal/components/StaticInfo/index.js.map +1 -1
- package/lib/vtx-car-modal/components/StaticInfo/index.less +72 -72
- package/lib/vtx-car-modal/components/WaterConsumption/index.js.map +1 -1
- package/lib/vtx-car-modal/components/WaterConsumption/index.less +22 -22
- package/lib/vtx-car-modal/components/WorkInfo/Wcl.js +2 -2
- package/lib/vtx-car-modal/components/WorkInfo/Wcl.js.map +1 -1
- package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js +2 -2
- package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js.map +1 -1
- package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js +4 -4
- package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js.map +1 -1
- package/lib/vtx-car-modal/components/WorkInfo/index.less +62 -62
- package/lib/vtx-car-modal/components/index.js +7 -0
- package/lib/vtx-car-modal/components/index.js.map +1 -1
- package/lib/vtx-car-modal/index.js +48 -7
- package/lib/vtx-car-modal/index.js.map +1 -1
- package/lib/vtx-car-modal/style/index.less +6 -6
- package/lib/vtx-cc-cp-modal/api.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js +4 -4
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.less +104 -104
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +89 -89
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionRecord.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js +4 -4
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.less +104 -104
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +7 -7
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +2 -2
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.less +40 -40
- package/lib/vtx-cc-cp-modal/style/index.less +1 -1
- package/lib/vtx-cp-modal/api.js.map +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js.map +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +4 -4
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js.map +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/index.less +105 -105
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/Rules copy.js +4 -4
- package/lib/vtx-cp-modal/components/BaseInfo/Rules copy.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +4 -4
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +3 -3
- package/lib/vtx-cp-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/index.less +226 -226
- package/lib/vtx-cp-modal/components/ExeceptionInfo/ExeceptionRecord.js.map +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +4 -4
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js.map +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/index.less +105 -105
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +2 -2
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js.map +1 -1
- package/lib/vtx-cp-modal/components/SyInfo/index.js +2 -2
- package/lib/vtx-cp-modal/components/SyInfo/index.js.map +1 -1
- package/lib/vtx-cp-modal/components/SyInfo/index.less +38 -38
- package/lib/vtx-cp-modal/index.js +1 -1
- package/lib/vtx-cp-modal/index.js.map +1 -1
- package/lib/vtx-cp-modal/style/index.less +1 -1
- package/lib/vtx-default-modal/api.js.map +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.js +3 -3
- package/lib/vtx-default-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.less +25 -25
- package/lib/vtx-default-modal/index.js +1 -1
- package/lib/vtx-default-modal/index.js.map +1 -1
- package/lib/vtx-default-modal/style/index.less +1 -1
- package/lib/vtx-device-modal/api.js.map +1 -1
- package/lib/vtx-device-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-device-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/index.js.map +1 -1
- package/lib/vtx-device-modal/components/FacilityFile/index.js +1 -1
- package/lib/vtx-device-modal/components/FacilityFile/index.js.map +1 -1
- package/lib/vtx-device-modal/components/OverViewInfo/index.js +2 -2
- package/lib/vtx-device-modal/components/OverViewInfo/index.js.map +1 -1
- package/lib/vtx-device-modal/index.js +1 -1
- package/lib/vtx-device-modal/index.js.map +1 -1
- package/lib/vtx-device-modal/style/index.less +7 -7
- package/lib/vtx-df-modal/api.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +2 -2
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.js +4 -4
- package/lib/vtx-df-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.less +191 -191
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +2 -2
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +2 -2
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/List.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/index.js +3 -3
- package/lib/vtx-df-modal/components/Metering/index.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/index.less +75 -75
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js.map +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/Situation.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/Situation.js.map +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/index.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/index.js.map +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/index.less +113 -113
- package/lib/vtx-df-modal/index.js +3 -3
- package/lib/vtx-df-modal/index.js.map +1 -1
- package/lib/vtx-df-modal/style/index.less +1 -1
- package/lib/vtx-facility-modal/api.js.map +1 -1
- package/lib/vtx-facility-modal/components/OverView/index.js +3 -3
- package/lib/vtx-facility-modal/components/OverView/index.js.map +1 -1
- package/lib/vtx-facility-modal/components/OverView/index.less +116 -116
- package/lib/vtx-facility-modal/style/index.less +1 -1
- package/lib/vtx-housing-estate-modal/api.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/LDB.js +2 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/LDB.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MY.js +2 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/MY.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +3 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +66 -66
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +2 -2
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +246 -246
- package/lib/vtx-housing-estate-modal/components/SPJK/index.less +6 -6
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +15 -15
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +2 -2
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +38 -38
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +2 -2
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +76 -76
- package/lib/vtx-housing-estate-modal/index.js +3 -3
- package/lib/vtx-housing-estate-modal/index.js.map +1 -1
- package/lib/vtx-housing-estate-modal/style/index.less +1 -1
- package/lib/vtx-kh-modal/api.js.map +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +62 -62
- package/lib/vtx-kh-modal/index.js +1 -1
- package/lib/vtx-kh-modal/index.js.map +1 -1
- package/lib/vtx-kh-modal/style/index.less +1 -1
- package/lib/vtx-pump-modal/api.js.map +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/AlarmTotal.js.map +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/AlarmTrend.js.map +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/index.less +91 -91
- package/lib/vtx-pump-modal/components/Basic/JyqInfo.js +2 -2
- package/lib/vtx-pump-modal/components/Basic/JyqInfo.js.map +1 -1
- package/lib/vtx-pump-modal/components/Basic/PumpInfo.js.map +1 -1
- package/lib/vtx-pump-modal/components/Basic/index.js.map +1 -1
- package/lib/vtx-pump-modal/components/Basic/index.less +69 -69
- package/lib/vtx-pump-modal/components/Sbxl/SBXLFX.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sbxl/SBYXQK.js +1 -1
- package/lib/vtx-pump-modal/components/Sbxl/SBYXQK.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sbxl/index.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sbxl/index.less +91 -91
- package/lib/vtx-pump-modal/components/Sjfx/index.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sjfx/index.less +58 -58
- package/lib/vtx-pump-modal/components/Sxyx/index.js.map +1 -1
- package/lib/vtx-pump-modal/components/Sxyx/index.less +156 -156
- package/lib/vtx-pump-modal/style/index.less +1 -1
- package/lib/vtx-restaurant-modal/api.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.less +32 -32
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/index.less +55 -55
- package/lib/vtx-restaurant-modal/components/Collection/index.less +23 -23
- package/lib/vtx-restaurant-modal/style/index.less +1 -1
- package/lib/vtx-road-modal/api.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/TodayWork.js +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/TodayWork.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/TodayWorkTable.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/index.js +3 -3
- package/lib/vtx-road-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/index.less +137 -137
- package/lib/vtx-road-modal/components/Statistical/Zylc.js +2 -2
- package/lib/vtx-road-modal/components/Statistical/Zylc.js.map +1 -1
- package/lib/vtx-road-modal/components/Statistical/Zywcl.js +2 -2
- package/lib/vtx-road-modal/components/Statistical/Zywcl.js.map +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js.map +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.less +110 -110
- package/lib/vtx-road-modal/index.js +1 -1
- package/lib/vtx-road-modal/index.js.map +1 -1
- package/lib/vtx-road-modal/style/index.less +1 -1
- package/lib/vtx-staff-modal/api.js +136 -13
- package/lib/vtx-staff-modal/api.js.map +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +3 -3
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js.map +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js.map +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +3 -3
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js.map +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.less +22 -22
- package/lib/vtx-staff-modal/components/AssessInfo/Charts.js +159 -0
- package/lib/vtx-staff-modal/components/AssessInfo/Charts.js.map +1 -0
- package/lib/vtx-staff-modal/components/AssessInfo/List.js +123 -0
- package/lib/vtx-staff-modal/components/AssessInfo/List.js.map +1 -0
- package/lib/vtx-staff-modal/components/AssessInfo/index.css +26 -0
- package/lib/vtx-staff-modal/components/AssessInfo/index.js +91 -0
- package/lib/vtx-staff-modal/components/AssessInfo/index.js.map +1 -0
- package/lib/vtx-staff-modal/components/AssessInfo/index.less +22 -0
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +2 -2
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js.map +1 -1
- package/lib/vtx-staff-modal/components/Attendance/Record.js +6 -6
- package/lib/vtx-staff-modal/components/Attendance/Record.js.map +1 -1
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +2 -2
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js.map +1 -1
- package/lib/vtx-staff-modal/components/Attendance/index.less +19 -19
- package/lib/vtx-staff-modal/components/BaseInfo/Lcfx.js +2 -2
- package/lib/vtx-staff-modal/components/BaseInfo/Lcfx.js.map +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/TodayWork.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/TodayWork.js.map +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +2 -2
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js.map +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +144 -144
- package/lib/vtx-staff-modal/components/Equipment/index.less +27 -27
- package/lib/vtx-staff-modal/components/index.js +7 -0
- package/lib/vtx-staff-modal/components/index.js.map +1 -1
- package/lib/vtx-staff-modal/index.js +42 -3
- package/lib/vtx-staff-modal/index.js.map +1 -1
- package/lib/vtx-staff-modal/style/index.less +1 -1
- package/lib/vtx-throw-point-modal/api.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/FLZL.js +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/FLZL.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/LDB.js +2 -2
- package/lib/vtx-throw-point-modal/components/Alarm/LDB.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/MY.js +2 -2
- package/lib/vtx-throw-point-modal/components/Alarm/MY.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/index.js +3 -3
- package/lib/vtx-throw-point-modal/components/Alarm/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/index.less +66 -66
- package/lib/vtx-throw-point-modal/components/OverView/Hot.js +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/Hot.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/Left.js +2 -2
- package/lib/vtx-throw-point-modal/components/OverView/Left.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/Manage.js +2 -2
- package/lib/vtx-throw-point-modal/components/OverView/Manage.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/RightBottom.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/index.js +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/OverView/index.less +321 -321
- package/lib/vtx-throw-point-modal/components/SBZJ/index.js +9 -9
- package/lib/vtx-throw-point-modal/components/SBZJ/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/SBZJ/index.less +92 -92
- package/lib/vtx-throw-point-modal/components/TFRD/index.js +2 -2
- package/lib/vtx-throw-point-modal/components/TFRD/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/TFRD/index.less +15 -15
- package/lib/vtx-throw-point-modal/components/WGGS/Content.js +2 -2
- package/lib/vtx-throw-point-modal/components/WGGS/Content.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/WGGS/index.js +1 -1
- package/lib/vtx-throw-point-modal/components/WGGS/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/WGGS/index.less +38 -38
- package/lib/vtx-throw-point-modal/components/WGXW/Content.js +2 -2
- package/lib/vtx-throw-point-modal/components/WGXW/Content.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/WGXW/index.js +1 -1
- package/lib/vtx-throw-point-modal/components/WGXW/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/WGXW/index.less +76 -76
- package/lib/vtx-throw-point-modal/index.js +3 -3
- package/lib/vtx-throw-point-modal/index.js.map +1 -1
- package/lib/vtx-throw-point-modal/style/index.less +1 -1
- package/lib/vtx-wr-modal/api.js.map +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/AlarmRecord.js.map +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/MonthTrend.js +2 -2
- package/lib/vtx-wr-modal/components/AlarmInfo/MonthTrend.js.map +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/Summary.js +4 -4
- package/lib/vtx-wr-modal/components/AlarmInfo/Summary.js.map +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/index.less +103 -103
- package/lib/vtx-wr-modal/components/BaseInfo/AlarmType.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfo/BaseInner.js +2 -2
- package/lib/vtx-wr-modal/components/BaseInfo/BaseInner.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfo/index.less +132 -132
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Img.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Ssjk.js +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew/components/Ssjk.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew/index.js +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew/index.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew/index.less +570 -570
- package/lib/vtx-wr-modal/components/Evaluate/Summary.js.map +1 -1
- package/lib/vtx-wr-modal/components/Evaluate/index.less +121 -121
- package/lib/vtx-wr-modal/components/Monitor/MonitorInfo.js.map +1 -1
- package/lib/vtx-wr-modal/components/Monitor/RealtimeInfo.js +2 -2
- package/lib/vtx-wr-modal/components/Monitor/RealtimeInfo.js.map +1 -1
- package/lib/vtx-wr-modal/components/Monitor/index.less +78 -78
- package/lib/vtx-wr-modal/components/Score/index.js +2 -2
- package/lib/vtx-wr-modal/components/Score/index.js.map +1 -1
- package/lib/vtx-wr-modal/components/Score/index.less +117 -117
- package/lib/vtx-wr-modal/index.js +2 -2
- package/lib/vtx-wr-modal/index.js.map +1 -1
- package/lib/vtx-wr-modal/style/index.less +1 -1
- package/lib/vtx-zg-modal/api.js.map +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +7 -7
- package/lib/vtx-zg-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +82 -82
- package/lib/vtx-zg-modal/index.js +1 -1
- package/lib/vtx-zg-modal/index.js.map +1 -1
- package/lib/vtx-zg-modal/style/index.less +1 -1
- package/package.json +121 -121
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _ahooks = require("ahooks");
|
|
10
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
11
|
+
var _vmFilter = require("../../../vm-filter");
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
var _Charts = _interopRequireDefault(require("./Charts"));
|
|
14
|
+
var _useSettings2 = _interopRequireDefault(require("../../../vm-hooks/useSettings"));
|
|
15
|
+
var _api = require("../../api");
|
|
16
|
+
require("./index.less");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
+
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); }
|
|
19
|
+
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; }
|
|
20
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
21
|
+
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."); }
|
|
22
|
+
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; } }
|
|
23
|
+
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; }
|
|
24
|
+
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; } }
|
|
25
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /**
|
|
26
|
+
* 车辆-报警信息
|
|
27
|
+
*/
|
|
28
|
+
var Option = _antd.Select.Option;
|
|
29
|
+
var AssessInfo = function AssessInfo(props) {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
var carCode = props.carCode,
|
|
32
|
+
actionType = props.actionType,
|
|
33
|
+
clickTract = props.clickTract;
|
|
34
|
+
var _useSettings = (0, _useSettings2["default"])(),
|
|
35
|
+
sDate = _useSettings.startDate,
|
|
36
|
+
eDate = _useSettings.endDate;
|
|
37
|
+
var _useSetState = (0, _ahooks.useSetState)({
|
|
38
|
+
startDate: sDate ? sDate : (0, _moment["default"])().startOf('M').format('YYYY-MM-DD'),
|
|
39
|
+
endDate: eDate ? eDate : (0, _moment["default"])().format('YYYY-MM-DD'),
|
|
40
|
+
tabKey: '1',
|
|
41
|
+
value: 'WORK',
|
|
42
|
+
staffIds: []
|
|
43
|
+
}),
|
|
44
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
45
|
+
state = _useSetState2[0],
|
|
46
|
+
setState = _useSetState2[1];
|
|
47
|
+
var startDate = state.startDate,
|
|
48
|
+
endDate = state.endDate,
|
|
49
|
+
tabKey = state.tabKey,
|
|
50
|
+
staffIds = state.staffIds;
|
|
51
|
+
(0, _react.useEffect)(function () {
|
|
52
|
+
if (actionType.includes('ACTION_CC')) {
|
|
53
|
+
setState({
|
|
54
|
+
value: 'GPS'
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}, [actionType]);
|
|
58
|
+
var _AssessService$useDri = _api.AssessService.useDriverList(carCode),
|
|
59
|
+
driverList = _AssessService$useDri.driverList,
|
|
60
|
+
allIds = _AssessService$useDri.allIds;
|
|
61
|
+
var _AssessService$useAla = _api.AssessService.useAlarmTodayRun(startDate, endDate, staffIds === null || staffIds === void 0 ? void 0 : staffIds.join(','), allIds === null || allIds === void 0 ? void 0 : allIds.join(',')),
|
|
62
|
+
pieData = _AssessService$useAla.pieData;
|
|
63
|
+
var _AssessService$useAss = _api.AssessService.useAssessType(startDate, endDate, staffIds === null || staffIds === void 0 ? void 0 : staffIds.join(','), allIds === null || allIds === void 0 ? void 0 : allIds.join(',')),
|
|
64
|
+
assessTypeRes = _AssessService$useAss.assessTypeRes;
|
|
65
|
+
console.log(allIds, 'allIds');
|
|
66
|
+
var handleDateChange = function handleDateChange(start, end) {
|
|
67
|
+
setState({
|
|
68
|
+
startDate: start,
|
|
69
|
+
endDate: end
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: 'car-assess'
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
+
className: 'car-main'
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
className: 'car-head'
|
|
78
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: 'car-head-filter'
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
|
+
className: 'car-head-sel'
|
|
82
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
83
|
+
className: 'car-head-label'
|
|
84
|
+
}, "\u7ED1\u5B9A\u53F8\u673A:"), /*#__PURE__*/_react["default"].createElement(_vmFilter.VMSelect, {
|
|
85
|
+
style: {
|
|
86
|
+
width: 200
|
|
87
|
+
},
|
|
88
|
+
value: (staffIds === null || staffIds === void 0 ? void 0 : staffIds.length) > 0 ? staffIds : (_b = (_a = driverList[0]) === null || _a === void 0 ? void 0 : _a.umsStaffId) === null || _b === void 0 ? void 0 : _b.split(','),
|
|
89
|
+
onChange: function onChange(value) {
|
|
90
|
+
setState({
|
|
91
|
+
staffIds: value
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
mode: 'multiple'
|
|
95
|
+
}, driverList === null || driverList === void 0 ? void 0 : driverList.map(function (item) {
|
|
96
|
+
return /*#__PURE__*/_react["default"].createElement(Option, {
|
|
97
|
+
key: item.umsStaffId,
|
|
98
|
+
value: item.umsStaffId
|
|
99
|
+
}, item.name);
|
|
100
|
+
}))), /*#__PURE__*/_react["default"].createElement(_vmFilter.VMRangePicker, {
|
|
101
|
+
value: [(0, _moment["default"])(startDate), (0, _moment["default"])(endDate)],
|
|
102
|
+
onChange: function onChange(dates) {
|
|
103
|
+
return dates && handleDateChange((0, _moment["default"])(dates[0]).format('YYYY-MM-DD'), (0, _moment["default"])(dates[1]).format('YYYY-MM-DD'));
|
|
104
|
+
}
|
|
105
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
style: {
|
|
107
|
+
position: 'relative',
|
|
108
|
+
left: '93%',
|
|
109
|
+
top: '15px',
|
|
110
|
+
color: '#1a91ff',
|
|
111
|
+
cursor: 'pointer',
|
|
112
|
+
zIndex: 1
|
|
113
|
+
},
|
|
114
|
+
onClick: function onClick() {
|
|
115
|
+
var _window$location = window.location,
|
|
116
|
+
host = _window$location.host,
|
|
117
|
+
protocol = _window$location.protocol;
|
|
118
|
+
// let src=`http://10.10.10.185:8002/#/checkRecordNec?startTime=${startDate} 00:00:00&endTime=${endDate} 23:59:59&carCode=${carCode}&activeKey=CLBJ`
|
|
119
|
+
var src = "".concat(protocol, "//").concat(host, "/zykh-reborn/#/checkRecordNec?startTime=").concat(startDate, " 00:00:00&endTime=").concat(endDate, " 23:59:59&carCode=").concat(carCode, "&activeKey=CLBJ");
|
|
120
|
+
clickTract(src);
|
|
121
|
+
}
|
|
122
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, "\u67E5\u770B\u66F4\u591A>>")), tabKey === '1' && ( /*#__PURE__*/_react["default"].createElement(_Charts["default"], {
|
|
123
|
+
chartData: pieData || [],
|
|
124
|
+
lineData: assessTypeRes || {},
|
|
125
|
+
driverList: driverList || []
|
|
126
|
+
}))));
|
|
127
|
+
};
|
|
128
|
+
var _default = exports["default"] = AssessInfo;
|
|
129
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_ahooks","_moment","_interopRequireDefault","_vmFilter","_antd","_Charts","_useSettings2","_api","e","__esModule","_getRequireWildcardCache","WeakMap","r","t","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","f","o","next","done","push","value","isArray","Option","Select","AssessInfo","props","_a","_b","carCode","actionType","clickTract","_useSettings","useSettings","sDate","startDate","eDate","endDate","_useSetState","useSetState","moment","startOf","format","tabKey","staffIds","_useSetState2","state","setState","useEffect","includes","_AssessService$useDri","AssessService","useDriverList","driverList","allIds","_AssessService$useAla","useAlarmTodayRun","join","pieData","_AssessService$useAss","useAssessType","assessTypeRes","console","log","handleDateChange","start","end","React","createElement","className","VMSelect","style","width","umsStaffId","split","onChange","mode","map","item","key","VMRangePicker","dates","position","left","top","color","cursor","zIndex","onClick","_window$location","window","location","host","protocol","src","concat","Charts","chartData","lineData","_default","exports"],"sources":["vtx-car-modal/components/AssessInfo/index.js"],"sourcesContent":["/**\n * 车辆-报警信息\n */\nimport React, { useEffect } from 'react';\nimport { useSetState } from 'ahooks';\nimport moment from 'moment';\nimport { VMRangePicker, VMSelect } from '../../../vm-filter';\nimport { Select } from 'antd';\nimport Charts from './Charts';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { AssessService } from '../../api';\nimport './index.less';\nconst { Option } = Select;\nconst AssessInfo = props => {\n var _a, _b;\n const { carCode, actionType, clickTract } = props;\n const { startDate: sDate, endDate: eDate } = useSettings();\n const [state, setState] = useSetState({\n startDate: sDate ? sDate : moment().startOf('M').format('YYYY-MM-DD'),\n endDate: eDate ? eDate : moment().format('YYYY-MM-DD'),\n tabKey: '1',\n value: 'WORK',\n staffIds: [],\n });\n const { startDate, endDate, tabKey, staffIds } = state;\n useEffect(() => {\n if (actionType.includes('ACTION_CC')) {\n setState({\n value: 'GPS',\n });\n }\n }, [actionType]);\n const { driverList, allIds } = AssessService.useDriverList(carCode);\n const { pieData } = AssessService.useAlarmTodayRun(startDate, endDate, staffIds === null || staffIds === void 0 ? void 0 : staffIds.join(','), allIds === null || allIds === void 0 ? void 0 : allIds.join(','));\n const { assessTypeRes } = AssessService.useAssessType(startDate, endDate, staffIds === null || staffIds === void 0 ? void 0 : staffIds.join(','), allIds === null || allIds === void 0 ? void 0 : allIds.join(','));\n console.log(allIds, 'allIds');\n const handleDateChange = (start, end) => {\n setState({\n startDate: start,\n endDate: end,\n });\n };\n return (React.createElement(\"div\", { className: 'car-assess' },\n React.createElement(\"div\", { className: 'car-main' },\n React.createElement(\"div\", { className: 'car-head' },\n React.createElement(\"div\", { className: 'car-head-filter' },\n React.createElement(\"div\", { className: 'car-head-sel' },\n React.createElement(\"span\", { className: 'car-head-label' }, \"\\u7ED1\\u5B9A\\u53F8\\u673A:\"),\n React.createElement(VMSelect, { style: { width: 200 }, value: (staffIds === null || staffIds === void 0 ? void 0 : staffIds.length) > 0 ? staffIds : (_b = (_a = driverList[0]) === null || _a === void 0 ? void 0 : _a.umsStaffId) === null || _b === void 0 ? void 0 : _b.split(','), onChange: value => {\n setState({\n staffIds: value,\n });\n }, mode: 'multiple' }, driverList === null || driverList === void 0 ? void 0 : driverList.map((item) => {\n return (React.createElement(Option, { key: item.umsStaffId, value: item.umsStaffId }, item.name));\n }))),\n React.createElement(VMRangePicker, { value: [moment(startDate), moment(endDate)], onChange: (dates) => dates &&\n handleDateChange(moment(dates[0]).format('YYYY-MM-DD'), moment(dates[1]).format('YYYY-MM-DD')) }))),\n React.createElement(\"div\", { style: {\n position: 'relative',\n left: '93%',\n top: '15px',\n color: '#1a91ff',\n cursor: 'pointer',\n zIndex: 1,\n }, onClick: () => {\n let { host, protocol } = window.location;\n // let src=`http://10.10.10.185:8002/#/checkRecordNec?startTime=${startDate} 00:00:00&endTime=${endDate} 23:59:59&carCode=${carCode}&activeKey=CLBJ`\n let src = `${protocol}//${host}/zykh-reborn/#/checkRecordNec?startTime=${startDate} 00:00:00&endTime=${endDate} 23:59:59&carCode=${carCode}&activeKey=CLBJ`;\n clickTract(src);\n } },\n React.createElement(\"div\", null, \"\\u67E5\\u770B\\u66F4\\u591A>>\")),\n tabKey === '1' && (React.createElement(Charts, { chartData: pieData || [], lineData: assessTypeRes || {}, driverList: driverList || [] })))));\n};\nexport default AssessInfo;\n"],"mappings":";;;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,aAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,IAAA,GAAAR,OAAA;AACAA,OAAA;AAAsB,SAAAG,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,yBAAAF,CAAA,6BAAAG,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,yBAAAF,CAAA,WAAAA,CAAA,GAAAK,CAAA,GAAAD,CAAA,KAAAJ,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAI,CAAA,SAAAA,CAAA,IAAAJ,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,gBAAAM,OAAA,CAAAN,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAK,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAE,GAAA,CAAAP,CAAA,UAAAK,CAAA,CAAAG,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,CAAA,SAAAG,CAAA,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,UAAU,EAAEA,UAAU,IAAI;EAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACxJ,CAAC;AAAC,IAAA8C,QAAA,GAAAC,OAAA,cACa3E,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.car-assess {
|
|
2
|
+
padding: 10px;
|
|
3
|
+
|
|
4
|
+
.car-main {
|
|
5
|
+
padding: 11px 16px;
|
|
6
|
+
background-color: var(--bg-color2);
|
|
7
|
+
min-height: 580px;
|
|
8
|
+
|
|
9
|
+
.car-head {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: end;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
&-filter {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: end;
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-label {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
color: var(--info-color);
|
|
23
|
+
margin-right: 8px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-sel {
|
|
27
|
+
margin-right: 24px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&-list {
|
|
31
|
+
min-height: 550px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
&-charts {
|
|
35
|
+
margin: 24px auto;
|
|
36
|
+
text-align: center;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -53,7 +53,7 @@ function Charts(_ref) {
|
|
|
53
53
|
className: "jrxs-name"
|
|
54
54
|
}, "\u4ECA\u65E5\u884C\u9A76"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
55
|
className: "jrxs-value"
|
|
56
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, mileage || 0), "km")), (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.planMileage) && (/*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, mileage || 0), "km")), (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.planMileage) && ( /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
57
|
className: "jrxs-name"
|
|
58
58
|
}, "\u4ECA\u65E5\u4F5C\u4E1A"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
59
|
className: "jrxs-value"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Charts.js","names":["_react","_interopRequireDefault","require","_useSettings2","_api","_dqsd","_jrxs","_dqsd_light","_jrxs_light","e","__esModule","Charts","_ref","id","mileage","gpsSpeed","date","service","_a","_useSettings","useSettings","isDark","_BaseService$useDaily","BaseService","useDailySummaryJxh","dailySummaryJxh","React","createElement","Fragment","className","src","dqsd","dqsdLight","jrxs","jrxsLight","planMileage","workMileage","toFixed"],"sources":["vtx-car-modal/components/BaseInfo/Charts.js"],"sourcesContent":["/**\n * 左侧统计图片\n */\nimport React from 'react';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { BaseService } from '../../api';\nimport dqsd from '../../imgs/dqsd.png';\n// import syyl from '../../imgs/syyl.png';\nimport jrxs from '../../imgs/jrxs.png';\nimport dqsdLight from '../../imgs/dqsd_light.png';\n// import syylLight from '../../imgs/syyl_light.png';\nimport jrxsLight from '../../imgs/jrxs_light.png';\nexport default function Charts({ id, mileage, gpsSpeed, date, service }) {\n var _a;\n const { isDark } = useSettings();\n const { dailySummaryJxh } = BaseService.useDailySummaryJxh(id, date, service);\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"car-base-left--charts\" },\n React.createElement(\"div\", { className: \"car-base-left--charts-item\" },\n React.createElement(\"div\", { className: \"car-base-left--charts-item-chart\" },\n React.createElement(\"img\", { src: isDark ? dqsd : dqsdLight })),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"car-base-left--charts-item-name\" }, \"\\u5F53\\u524D\\u901F\\u5EA6\"),\n React.createElement(\"div\", { className: \"car-base-left--charts-item-value\" },\n React.createElement(\"span\", null, gpsSpeed || 0),\n \"km/h\")))),\n React.createElement(\"div\", { className: \"car-base-left-jrxs\" },\n React.createElement(\"div\", null,\n React.createElement(\"img\", { src: isDark ? jrxs : jrxsLight })),\n React.createElement(\"div\", { className: \"car-base-left-jrxs-right\" },\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"jrxs-name\" }, \"\\u4ECA\\u65E5\\u884C\\u9A76\"),\n React.createElement(\"div\", { className: \"jrxs-value\" },\n React.createElement(\"span\", null, mileage || 0),\n \"km\")),\n (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.planMileage) && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"jrxs-name\" }, \"\\u4ECA\\u65E5\\u4F5C\\u4E1A\"),\n React.createElement(\"div\", { className: \"jrxs-value\" },\n React.createElement(\"span\", null, ((_a = dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.workMileage) === null || _a === void 0 ? void 0 : _a.toFixed(2)) || 0),\n \"km\")),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"jrxs-name\" }, \"\\u4ECA\\u65E5\\u6392\\u73ED\"),\n React.createElement(\"div\", { className: \"jrxs-value\" },\n React.createElement(\"span\", null, (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.planMileage) || 0),\n \"km\"))))))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,KAAA,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CAACC,aAAa,CAAC,KAAK,EAAE;IAAEE,SAAS,EAAE;EAAkC,CAAC,EAAE,0BAA0B,CAAC,eACxGH,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEE,SAAS,EAAE;EAAmC,CAAC,eACxEH,iBAAK,CAACC,aAAa,CAAC,MAAM,EAAE,IAAI,EAAEZ,QAAQ,IAAI,CAAC,CAAC,EAChD,MAAM,CAAC,CAAC,CAAC,CAAC,eAC1BW,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEE,SAAS,EAAE;EAAqB,CAAC,eAC1DH,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE,IAAI,eAC3BD,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEG,GAAG,EAAET,MAAM,GAAGY,gBAAI,GAAGC;EAAU,CAAC,CAAC,CAAC,eACnER,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEE,SAAS,EAAE;EAA2B,CAAC,eAChEH,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE,IAAI,eAC3BD,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEE,SAAS,EAAE;EAAY,CAAC,EAAE,0BAA0B,CAAC,eAClFH,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEE,SAAS,EAAE;EAAa,CAAC,eAClDH,iBAAK,CAACC,aAAa,CAAC,MAAM,EAAE,IAAI,EAAEb,OAAO,IAAI,CAAC,CAAC,EAC/C,IAAI,CAAC,CAAC,EACd,CAACW,eAAe,KAAK,IAAI,IAAIA,eAAe,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,eAAe,CAACU,WAAW,
|
|
1
|
+
{"version":3,"file":"Charts.js","names":["_react","_interopRequireDefault","require","_useSettings2","_api","_dqsd","_jrxs","_dqsd_light","_jrxs_light","e","__esModule","Charts","_ref","id","mileage","gpsSpeed","date","service","_a","_useSettings","useSettings","isDark","_BaseService$useDaily","BaseService","useDailySummaryJxh","dailySummaryJxh","React","createElement","Fragment","className","src","dqsd","dqsdLight","jrxs","jrxsLight","planMileage","workMileage","toFixed"],"sources":["vtx-car-modal/components/BaseInfo/Charts.js"],"sourcesContent":["/**\n * 左侧统计图片\n */\nimport React from 'react';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { BaseService } from '../../api';\nimport dqsd from '../../imgs/dqsd.png';\n// import syyl from '../../imgs/syyl.png';\nimport jrxs from '../../imgs/jrxs.png';\nimport dqsdLight from '../../imgs/dqsd_light.png';\n// import syylLight from '../../imgs/syyl_light.png';\nimport jrxsLight from '../../imgs/jrxs_light.png';\nexport default function Charts({ id, mileage, gpsSpeed, date, service }) {\n var _a;\n const { isDark } = useSettings();\n const { dailySummaryJxh } = BaseService.useDailySummaryJxh(id, date, service);\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"car-base-left--charts\" },\n React.createElement(\"div\", { className: \"car-base-left--charts-item\" },\n React.createElement(\"div\", { className: \"car-base-left--charts-item-chart\" },\n React.createElement(\"img\", { src: isDark ? dqsd : dqsdLight })),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"car-base-left--charts-item-name\" }, \"\\u5F53\\u524D\\u901F\\u5EA6\"),\n React.createElement(\"div\", { className: \"car-base-left--charts-item-value\" },\n React.createElement(\"span\", null, gpsSpeed || 0),\n \"km/h\")))),\n React.createElement(\"div\", { className: \"car-base-left-jrxs\" },\n React.createElement(\"div\", null,\n React.createElement(\"img\", { src: isDark ? jrxs : jrxsLight })),\n React.createElement(\"div\", { className: \"car-base-left-jrxs-right\" },\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"jrxs-name\" }, \"\\u4ECA\\u65E5\\u884C\\u9A76\"),\n React.createElement(\"div\", { className: \"jrxs-value\" },\n React.createElement(\"span\", null, mileage || 0),\n \"km\")),\n (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.planMileage) && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"jrxs-name\" }, \"\\u4ECA\\u65E5\\u4F5C\\u4E1A\"),\n React.createElement(\"div\", { className: \"jrxs-value\" },\n React.createElement(\"span\", null, ((_a = dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.workMileage) === null || _a === void 0 ? void 0 : _a.toFixed(2)) || 0),\n \"km\")),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"jrxs-name\" }, \"\\u4ECA\\u65E5\\u6392\\u73ED\"),\n React.createElement(\"div\", { className: \"jrxs-value\" },\n React.createElement(\"span\", null, (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.planMileage) || 0),\n \"km\"))))))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,WAAA,GAAAP,sBAAA,CAAAC,OAAA;AAAkD,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAXlD;AACA;AACA;;AAKA;;AAGA;;AAEe,SAASE,MAAMA,CAAAC,IAAA,EAA2C;EAAA,IAAxCC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;EACjE,IAAIC,EAAE;EACN,IAAAC,YAAA,GAAmB,IAAAC,wBAAW,EAAC,CAAC;IAAx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BAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEE,SAAS,EAAE;EAAa,CAAC,eAClDH,iBAAK,CAACC,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,CAACF,eAAe,KAAK,IAAI,IAAIA,eAAe,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,eAAe,CAACU,WAAW,KAAK,CAAC,CAAC,EACvI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TodayRun.js","names":["_react","_interopRequireDefault","require","_moment","_vmTable","_useSettings2","_api","_outTime","_runTime","_outTime_light","_runTime_light","e","__esModule","TodayRun","props","_a","_b","_useSettings","useSettings","isDark","id","data","_BaseService$useDaily","BaseService","useDailyCarRun","moment","format","dailyCarRunRes","columns","title","dataIndex","key","width","ellipsis","render","_text","record","concat","detail","alarmBeginTime","alarmEndTime","alarmTypeName","tableProps","height","paganitation","dataSource","React","createElement","className","src","outTime","outTimeLight","length","firstRunTime","runTime","runTimeLight","driveDurationStr","VMTable","Object","assign","isIndex","rowKey"],"sources":["vtx-car-modal/components/BaseInfo/TodayRun.js"],"sourcesContent":["/**\n * 今日运行-通用\n */\nimport React from 'react';\nimport moment from 'moment';\nimport VMTable from '../../../vm-table';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { BaseService } from '../../api';\nimport outTime from '../../imgs/outTime.png';\nimport runTime from '../../imgs/runTime.png';\nimport outTimeLight from '../../imgs/outTime_light.png';\nimport runTimeLight from '../../imgs/runTime_light.png';\nexport default function TodayRun(props) {\n var _a, _b;\n const { isDark } = useSettings();\n const { id, data } = props;\n const { dailyCarRunRes } = BaseService.useDailyCarRun(id, moment().format('YYYY-MM-DD'), moment().format('YYYY-MM-DD'));\n const columns = [\n {\n title: '报警类型',\n dataIndex: 'alarmTypeName',\n key: 'alarmTypeName',\n width: 100,\n ellipsis: true,\n },\n {\n title: '报警时间',\n dataIndex: 'day',\n key: 'day',\n width: 100,\n render: (_text, record) => {\n return `${moment(record.detail.alarmBeginTime).format('HH:mm:ss')}-${moment(record.detail.alarmEndTime).format('HH:mm:ss')}`;\n },\n },\n {\n title: '报警内容',\n dataIndex: 'alarmTypeName',\n key: 'alarmTypeName',\n ellipsis: true,\n render: (_text, record) => {\n return record.detail.alarmTypeName;\n },\n },\n ];\n const tableProps = {\n height: 220,\n paganitation: false,\n dataSource: data,\n };\n return (React.createElement(\"div\", { className: \"today-run\" },\n React.createElement(\"div\", { className: \"today-run-head\" },\n React.createElement(\"div\", { className: \"today-run-head-item\" },\n React.createElement(\"img\", { src: isDark ? outTime : outTimeLight }),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"today-run-head-item--name\" }, \"\\u51FA\\u8F66\\u65F6\\u95F4\"),\n React.createElement(\"div\", { className: \"today-run-head-item--value\" }, (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.length) > 0 ? ((_a = dailyCarRunRes[0]) === null || _a === void 0 ? void 0 : _a.firstRunTime) || 0 : 0))),\n React.createElement(\"div\", { className: \"today-run-head-item\" },\n React.createElement(\"img\", { src: isDark ? runTime : runTimeLight }),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"today-run-head-item--name\" }, \"\\u8FD0\\u884C\\u65F6\\u957F\"),\n React.createElement(\"div\", { className: \"today-run-head-item--value\" }, (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.length) > 0 ? (_b = dailyCarRunRes[0]) === null || _b === void 0 ? void 0 : _b.driveDurationStr : 0)))),\n React.createElement(VMTable, Object.assign({ columns: columns, isIndex: false, rowKey: \"index\" }, tableProps))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,QAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,cAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,cAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAwD,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAXxD;AACA;AACA;;AAUe,SAASE,QAAQA,CAACC,KAAK,EAAE;EACpC,IAAIC,EAAE,EAAEC,EAAE;EACV,IAAAC,YAAA,GAAmB,IAAAC,wBAAW,EAAC,CAAC;IAAxBC,MAAM,GAAAF,YAAA,CAANE,MAAM;EACd,IAAQC,EAAE,GAAWN,KAAK,CAAlBM,EAAE;IAAEC,IAAI,GAAKP,KAAK,CAAdO,IAAI;EAChB,IAAAC,qBAAA,GAA2BC,gBAAW,CAACC,cAAc,CAACJ,EAAE,EAAE,IAAAK,kBAAM,EAAC,CAAC,CAACC,MAAM,CAAC,YAAY,CAAC,EAAE,IAAAD,kBAAM,EAAC,CAAC,CAACC,MAAM,CAAC,YAAY,CAAC,CAAC;IAA/GC,cAAc,GAAAL,qBAAA,CAAdK,cAAc;EACtB,IAAMC,OAAO,GAAG,CACZ;IACIC,KAAK,EAAE,MAAM;IACbC,SAAS,EAAE,eAAe;IAC1BC,GAAG,EAAE,eAAe;IACpBC,KAAK,EAAE,GAAG;IACVC,QAAQ,EAAE;EACd,CAAC,EACD;IACIJ,KAAK,EAAE,MAAM;IACbC,SAAS,EAAE,KAAK;IAChBC,GAAG,EAAE,KAAK;IACVC,KAAK,EAAE,GAAG;IACVE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"TodayRun.js","names":["_react","_interopRequireDefault","require","_moment","_vmTable","_useSettings2","_api","_outTime","_runTime","_outTime_light","_runTime_light","e","__esModule","TodayRun","props","_a","_b","_useSettings","useSettings","isDark","id","data","_BaseService$useDaily","BaseService","useDailyCarRun","moment","format","dailyCarRunRes","columns","title","dataIndex","key","width","ellipsis","render","_text","record","concat","detail","alarmBeginTime","alarmEndTime","alarmTypeName","tableProps","height","paganitation","dataSource","React","createElement","className","src","outTime","outTimeLight","length","firstRunTime","runTime","runTimeLight","driveDurationStr","VMTable","Object","assign","isIndex","rowKey"],"sources":["vtx-car-modal/components/BaseInfo/TodayRun.js"],"sourcesContent":["/**\n * 今日运行-通用\n */\nimport React from 'react';\nimport moment from 'moment';\nimport VMTable from '../../../vm-table';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { BaseService } from '../../api';\nimport outTime from '../../imgs/outTime.png';\nimport runTime from '../../imgs/runTime.png';\nimport outTimeLight from '../../imgs/outTime_light.png';\nimport runTimeLight from '../../imgs/runTime_light.png';\nexport default function TodayRun(props) {\n var _a, _b;\n const { isDark } = useSettings();\n const { id, data } = props;\n const { dailyCarRunRes } = BaseService.useDailyCarRun(id, moment().format('YYYY-MM-DD'), moment().format('YYYY-MM-DD'));\n const columns = [\n {\n title: '报警类型',\n dataIndex: 'alarmTypeName',\n key: 'alarmTypeName',\n width: 100,\n ellipsis: true,\n },\n {\n title: '报警时间',\n dataIndex: 'day',\n key: 'day',\n width: 100,\n render: (_text, record) => {\n return `${moment(record.detail.alarmBeginTime).format('HH:mm:ss')}-${moment(record.detail.alarmEndTime).format('HH:mm:ss')}`;\n },\n },\n {\n title: '报警内容',\n dataIndex: 'alarmTypeName',\n key: 'alarmTypeName',\n ellipsis: true,\n render: (_text, record) => {\n return record.detail.alarmTypeName;\n },\n },\n ];\n const tableProps = {\n height: 220,\n paganitation: false,\n dataSource: data,\n };\n return (React.createElement(\"div\", { className: \"today-run\" },\n React.createElement(\"div\", { className: \"today-run-head\" },\n React.createElement(\"div\", { className: \"today-run-head-item\" },\n React.createElement(\"img\", { src: isDark ? outTime : outTimeLight }),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"today-run-head-item--name\" }, \"\\u51FA\\u8F66\\u65F6\\u95F4\"),\n React.createElement(\"div\", { className: \"today-run-head-item--value\" }, (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.length) > 0 ? ((_a = dailyCarRunRes[0]) === null || _a === void 0 ? void 0 : _a.firstRunTime) || 0 : 0))),\n React.createElement(\"div\", { className: \"today-run-head-item\" },\n React.createElement(\"img\", { src: isDark ? runTime : runTimeLight }),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"today-run-head-item--name\" }, \"\\u8FD0\\u884C\\u65F6\\u957F\"),\n React.createElement(\"div\", { className: \"today-run-head-item--value\" }, (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.length) > 0 ? (_b = dailyCarRunRes[0]) === null || _b === void 0 ? void 0 : _b.driveDurationStr : 0)))),\n React.createElement(VMTable, Object.assign({ columns: columns, isIndex: false, rowKey: \"index\" }, tableProps))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,QAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,cAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,cAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAwD,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAXxD;AACA;AACA;;AAUe,SAASE,QAAQA,CAACC,KAAK,EAAE;EACpC,IAAIC,EAAE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3BD,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEC,SAAS,EAAE;EAA4B,CAAC,EAAE,0BAA0B,CAAC,eAClGF,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEC,SAAS,EAAE;EAA6B,CAAC,EAAE,CAACrB,cAAc,KAAK,IAAI,IAAIA,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,cAAc,CAACyB,MAAM,IAAI,CAAC,GAAG,CAACpC,EAAE,GAAGW,cAAc,CAAC,CAAC,CAAC,MAAM,IAAI,IAAIX,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAACwC,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,eAC3QV,iBAAK,CAACC,aAAa,CAACU,mBAAO,EAAEC,MAAM,CAACC,MAAM,CAAC;IAAE/B,OAAO,EAAEA,OAAO;IAAEgC,OAAO,EAAE,KAAK;IAAEC,MAAM,EAAE;EAAQ,CAAC,EAAEnB,UAAU,CAAC,CAAC,CAAC;AACvH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TodayWorkCC.js","names":["_react","_interopRequireDefault","require","_moment","_vmTable","_api","e","__esModule","TodayWorkCC","_ref","id","_BaseService$useToday","BaseService","useTodayWorkCC","moment","format","todayRunCCRes","columns","title","dataIndex","key","width","ellipsis","align","sorter","a","b","netWeight","tableProps","height","length","paganitation","dataSource","React","createElement","Fragment","VMTable","Object","assign","isIndex","rowKey"],"sources":["vtx-car-modal/components/BaseInfo/TodayWorkCC.js"],"sourcesContent":["/**\n * 今日作业-垃圾收运\n */\nimport React from 'react';\nimport moment from 'moment';\nimport VMTable from '../../../vm-table';\nimport { BaseService } from '../../api';\nexport default function TodayWorkCC({ id }) {\n const { todayRunCCRes } = BaseService.useTodayWorkCC(id, moment().format('YYYY-MM-DD 00:00:00'), moment().format('YYYY-MM-DD 23:59:59'));\n let columns = [\n {\n title: '商户名称',\n dataIndex: 'restaurantName',\n key: 'restaurantName',\n width: 150,\n ellipsis: true,\n },\n {\n title: '收集桶数',\n dataIndex: 'trashNum',\n key: 'trashNum',\n width: 80,\n align: 'right',\n },\n {\n title: '收集重量(kg)',\n dataIndex: 'netWeight',\n key: 'netWeight',\n width: 100,\n align: 'right',\n sorter: (a, b) => a.netWeight - b.netWeight,\n },\n ];\n const tableProps = {\n height: (todayRunCCRes === null || todayRunCCRes === void 0 ? void 0 : todayRunCCRes.length) > 0 ? 180 : 246,\n paganitation: false,\n dataSource: todayRunCCRes || [],\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(VMTable, Object.assign({ columns: columns, isIndex: false, rowKey: \"index\" }, tableProps))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAAwC,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AANxC;AACA;AACA;;AAKe,SAASE,WAAWA,CAAAC,IAAA,EAAS;EAAA,IAANC,EAAE,GAAAD,IAAA,CAAFC,EAAE;EACpC,IAAAC,qBAAA,GAA0BC,gBAAW,CAACC,cAAc,CAACH,EAAE,EAAE,IAAAI,kBAAM,EAAC,CAAC,CAACC,MAAM,CAAC,qBAAqB,CAAC,EAAE,IAAAD,kBAAM,EAAC,CAAC,CAACC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAAhIC,aAAa,GAAAL,qBAAA,CAAbK,aAAa;EACrB,IAAIC,OAAO,GAAG,CACV;IACIC,KAAK,EAAE,MAAM;IACbC,SAAS,EAAE,gBAAgB;IAC3BC,GAAG,EAAE,gBAAgB;IACrBC,KAAK,EAAE,GAAG;IACVC,QAAQ,EAAE;EACd,CAAC,EACD;IACIJ,KAAK,EAAE,MAAM;IACbC,SAAS,EAAE,UAAU;IACrBC,GAAG,EAAE,UAAU;IACfC,KAAK,EAAE,EAAE;IACTE,KAAK,EAAE;EACX,CAAC,EACD;IACIL,KAAK,EAAE,UAAU;IACjBC,SAAS,EAAE,WAAW;IACtBC,GAAG,EAAE,WAAW;IAChBC,KAAK,EAAE,GAAG;IACVE,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"TodayWorkCC.js","names":["_react","_interopRequireDefault","require","_moment","_vmTable","_api","e","__esModule","TodayWorkCC","_ref","id","_BaseService$useToday","BaseService","useTodayWorkCC","moment","format","todayRunCCRes","columns","title","dataIndex","key","width","ellipsis","align","sorter","a","b","netWeight","tableProps","height","length","paganitation","dataSource","React","createElement","Fragment","VMTable","Object","assign","isIndex","rowKey"],"sources":["vtx-car-modal/components/BaseInfo/TodayWorkCC.js"],"sourcesContent":["/**\n * 今日作业-垃圾收运\n */\nimport React from 'react';\nimport moment from 'moment';\nimport VMTable from '../../../vm-table';\nimport { BaseService } from '../../api';\nexport default function TodayWorkCC({ id }) {\n const { todayRunCCRes } = BaseService.useTodayWorkCC(id, moment().format('YYYY-MM-DD 00:00:00'), moment().format('YYYY-MM-DD 23:59:59'));\n let columns = [\n {\n title: '商户名称',\n dataIndex: 'restaurantName',\n key: 'restaurantName',\n width: 150,\n ellipsis: true,\n },\n {\n title: '收集桶数',\n dataIndex: 'trashNum',\n key: 'trashNum',\n width: 80,\n align: 'right',\n },\n {\n title: '收集重量(kg)',\n dataIndex: 'netWeight',\n key: 'netWeight',\n width: 100,\n align: 'right',\n sorter: (a, b) => a.netWeight - b.netWeight,\n },\n ];\n const tableProps = {\n height: (todayRunCCRes === null || todayRunCCRes === void 0 ? void 0 : todayRunCCRes.length) > 0 ? 180 : 246,\n paganitation: false,\n dataSource: todayRunCCRes || [],\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(VMTable, Object.assign({ columns: colum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MC,UAAU,GAAG;IACfC,MAAM,EAAE,CAACb,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,aAAa,CAACc,MAAM,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG;IAC5GC,YAAY,EAAE,KAAK;IACnBC,UAAU,EAAEhB,aAAa,IAAI;EACjC,CAAC;EACD,oBAAQiB,iBAAK,CAACC,aAAa,CAACD,iBAAK,CAACE,QAAQ,EAAE,IAAI,eAC5CF,iBAAK,CAACC,aAAa,CAACE,mBAAO,EAAEC,MAAM,CAACC,MAAM,CAAC;IAAErB,OAAO,EAAEA,OAAO;IAAEsB,OAAO,EAAE,KAAK;IAAEC,MAAM,EAAE;EAAQ,CAAC,EAAEZ,UAAU,CAAC,CAAC,CAAC;AACvH","ignoreList":[]}
|
|
@@ -63,6 +63,6 @@ function TodayWorkJXH(props) {
|
|
|
63
63
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
64
|
className: "today-run-jxh--value"
|
|
65
65
|
}, "".concat((ele === null || ele === void 0 ? void 0 : ele.completePercent) || 0, "%")));
|
|
66
|
-
}) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null)));
|
|
66
|
+
}) : ( /*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null)));
|
|
67
67
|
}
|
|
68
68
|
//# sourceMappingURL=TodayWorkJXH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TodayWorkJXH.js","names":["_react","_interopRequireDefault","require","_moment","_progress","_useSettings2","_vmNodata","_api","e","__esModule","TodayWorkJXH","props","_useSettings","useSettings","isDark","id","service","_BaseService$useToday","BaseService","useTodayWorkJxh","moment","format","todayRunJxhRes","strokeColor","num","color","React","createElement","className","length","map","ele","index","key","roadName","title","concat","workMileage","totalMileage","Progress","strokeLinecap","percent","completePercent","trailColor","strokeWidth","showInfo","NoData"],"sources":["vtx-car-modal/components/BaseInfo/TodayWorkJXH.js"],"sourcesContent":["/**\n * 今日运行\n */\nimport React from 'react';\nimport moment from 'moment';\nimport Progress from 'antd/es/progress';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport NoData from '../../../vm-nodata';\nimport { BaseService } from '../../api';\nexport default function TodayWorkJXH(props) {\n const { isDark } = useSettings();\n const { id, service } = props;\n const { todayRunJxhRes } = BaseService.useTodayWorkJxh(id, moment().format('YYYY-MM-DD'), service);\n const strokeColor = (num) => {\n let color;\n if (num >= 85) {\n color = isDark\n ? {\n '0%': '#55A591',\n '100%': '#46E8C5',\n }\n : '#1890ff';\n }\n else if (num >= 60) {\n color = {\n '0%': '#F5803C',\n '100%': '#FFE290',\n };\n }\n else {\n color = {\n '0%': '#F74D2F',\n '100%': '#F98E6B',\n };\n }\n return color;\n };\n return (React.createElement(\"div\", { className: \"today-run-jxh\" }, (todayRunJxhRes === null || todayRunJxhRes === void 0 ? void 0 : todayRunJxhRes.length) > 0 ? (todayRunJxhRes.map((ele, index) => (React.createElement(\"div\", { className: \"today-run-jxh-item\", key: index },\n React.createElement(\"div\", { className: \"today-run-jxh--name\" }, ele.roadName),\n React.createElement(\"div\", { className: \"today-run-jxh--progress\", title: `${ele === null || ele === void 0 ? void 0 : ele.workMileage}km/${ele === null || ele === void 0 ? void 0 : ele.totalMileage}km` },\n React.createElement(Progress, { strokeLinecap: \"butt\", percent: (ele === null || ele === void 0 ? void 0 : ele.completePercent) || 0, strokeColor: strokeColor((ele === null || ele === void 0 ? void 0 : ele.completePercent) || 0), trailColor: isDark ? '#444B59' : '#D1D5D9', strokeWidth: 6, showInfo: false })),\n React.createElement(\"div\", { className: \"today-run-jxh--value\" }, `${(ele === null || ele === void 0 ? void 0 : ele.completePercent) ||\n 0}%`))))) : (React.createElement(NoData, null))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,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,KAAAQ,MAAA,CAAK,CAACL,GAAG,KAAK,IAAI,IAAIA,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,GAAG,CAACW,eAAe,KAC/H,CAAC,MAAG,CAAC,CAAC;EAAA,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"TodayWorkJXH.js","names":["_react","_interopRequireDefault","require","_moment","_progress","_useSettings2","_vmNodata","_api","e","__esModule","TodayWorkJXH","props","_useSettings","useSettings","isDark","id","service","_BaseService$useToday","BaseService","useTodayWorkJxh","moment","format","todayRunJxhRes","strokeColor","num","color","React","createElement","className","length","map","ele","index","key","roadName","title","concat","workMileage","totalMileage","Progress","strokeLinecap","percent","completePercent","trailColor","strokeWidth","showInfo","NoData"],"sources":["vtx-car-modal/components/BaseInfo/TodayWorkJXH.js"],"sourcesContent":["/**\n * 今日运行\n */\nimport React from 'react';\nimport moment from 'moment';\nimport Progress from 'antd/es/progress';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport NoData from '../../../vm-nodata';\nimport { BaseService } from '../../api';\nexport default function TodayWorkJXH(props) {\n const { isDark } = useSettings();\n const { id, service } = props;\n const { todayRunJxhRes } = BaseService.useTodayWorkJxh(id, moment().format('YYYY-MM-DD'), service);\n const strokeColor = (num) => {\n let color;\n if (num >= 85) {\n color = isDark\n ? {\n '0%': '#55A591',\n '100%': '#46E8C5',\n }\n : '#1890ff';\n }\n else if (num >= 60) {\n color = {\n '0%': '#F5803C',\n '100%': '#FFE290',\n };\n }\n else {\n color = {\n '0%': '#F74D2F',\n '100%': '#F98E6B',\n };\n }\n return color;\n };\n return (React.createElement(\"div\", { className: \"today-run-jxh\" }, (todayRunJxhRes === null || todayRunJxhRes === void 0 ? void 0 : todayRunJxhRes.length) > 0 ? (todayRunJxhRes.map((ele, index) => (React.createElement(\"div\", { className: \"today-run-jxh-item\", key: index },\n React.createElement(\"div\", { className: \"today-run-jxh--name\" }, ele.roadName),\n React.createElement(\"div\", { className: \"today-run-jxh--progress\", title: `${ele === null || ele === void 0 ? void 0 : ele.workMileage}km/${ele === null || ele === void 0 ? void 0 : ele.totalMileage}km` },\n React.createElement(Progress, { strokeLinecap: \"butt\", percent: (ele === null || ele === void 0 ? void 0 : ele.completePercent) || 0, strokeColor: strokeColor((ele === null || ele === void 0 ? void 0 : ele.completePercent) || 0), trailColor: isDark ? '#444B59' : '#D1D5D9', strokeWidth: 6, showInfo: false })),\n React.createElement(\"div\", { className: \"today-run-jxh--value\" }, `${(ele === null || ele === void 0 ? void 0 : ele.completePercent) ||\n 0}%`))))) : (React.createElement(NoData, null))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAAwC,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AARxC;AACA;AACA;;AAOe,SAASE,YAAYA,CAACC,KAAK,EAAE;EACxC,IAAAC,YAAA,GAAmB,IAAAC,wBAAW,EAAC,CAAC;IAAxBC,MAAM,GAAAF,YAAA,CAANE,MAAM;EACd,IAAQC,EAAE,GAAcJ,KAAK,CAArBI,EAAE;IAAEC,OAAO,GAAKL,KAAK,CAAjBK,OAAO;EACnB,IAAAC,qBAAA,GAA2BC,gBAAW,CAACC,eAAe,CAACJ,EAAE,EAAE,IAAAK,kBAAM,EAAC,CAAC,CAACC,MAAM,CAAC,YAAY,CAAC,EAAEL,OAAO,CAAC;IAA1FM,cAAc,GAAAL,qBAAA,CAAdK,cAAc;EACtB,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAG,EAAK;IACzB,I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MAAEC,aAAa,EAAE,MAAM;MAAEC,OAAO,EAAE,CAACV,GAAG,KAAK,IAAI,IAAIA,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,GAAG,CAACW,eAAe,KAAK,CAAC;MAAEnB,WAAW,EAAEA,WAAW,CAAC,CAACQ,GAAG,KAAK,IAAI,IAAIA,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,GAAG,CAACW,eAAe,KAAK,CAAC,CAAC;MAAEC,UAAU,EAAE7B,MAAM,GAAG,SAAS,GAAG,SAAS;MAAE8B,WAAW,EAAE,CAAC;MAAEC,QAAQ,EAAE;IAAM,CAAC,CAAC,CAAC,eACzTnB,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;MAAEC,SAAS,EAAE;IAAuB,CAAC,KAAAQ,MAAA,CAAK,CAACL,GAAG,KAAK,IAAI,IAAIA,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,GAAG,CAACW,eAAe,KAC/H,CAAC,MAAG,CAAC,CAAC;EAAA,CAAC,CAAC,kBAAKhB,iBAAK,CAACC,aAAa,CAACmB,oBAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5D","ignoreList":[]}
|
|
@@ -98,7 +98,7 @@ function TodayWorkLJSY(_ref) {
|
|
|
98
98
|
paganitation: false,
|
|
99
99
|
dataSource: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.details) || []
|
|
100
100
|
};
|
|
101
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.planCollectPointNum) > 0 && (/*#__PURE__*/_react["default"].createElement("div", {
|
|
101
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.planCollectPointNum) > 0 && ( /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
102
|
className: "ljsy-summary"
|
|
103
103
|
}, data === null || data === void 0 ? void 0 : data.map(function (ele, index) {
|
|
104
104
|
return /*#__PURE__*/_react["default"].createElement(_vmImageText["default"], Object.assign({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TodayWorkLJSY.js","names":["_react","_interopRequireDefault","require","_moment","_vmTable","_vmImageText","_useSettings2","_api","_ysdw","_ywcdw","_wcl","_ysdw_light","_ywcdw_light","_wcl_light","e","__esModule","TodayWorkLJSY","_ref","id","_a","_b","_useSettings","useSettings","isDark","_BaseService$useToday","BaseService","useTodayWorkLjsy","moment","format","todayRunLjsyRes","paramConfigsList","useConfig","getSrc","code","obj","ysdw","ywcdw","wcl","ysdwLight","ywcdwLight","wclLight","data","src","name","value","planCollectPointNum","unit","collectPointNum","completeRate","columns","title","dataIndex","key","width","ellipsis","align","concat","tableProps","height","paganitation","dataSource","details","React","createElement","Fragment","className","map","ele","index","ImageText","Object","assign","style","margin","VMTable","isIndex","rowKey"],"sources":["vtx-car-modal/components/BaseInfo/TodayWorkLJSY.js"],"sourcesContent":["/**\n * 今日作业-垃圾收运\n */\nimport React from 'react';\nimport moment from 'moment';\nimport VMTable from '../../../vm-table';\nimport ImageText from '../../../vm-image-text';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { BaseService } from '../../api';\nimport ysdw from '../../imgs/ysdw.png';\nimport ywcdw from '../../imgs/ywcdw.png';\nimport wcl from '../../imgs/wcl.png';\nimport ysdwLight from '../../imgs/ysdw_light.png';\nimport ywcdwLight from '../../imgs/ywcdw_light.png';\nimport wclLight from '../../imgs/wcl_light.png';\nexport default function TodayWorkLJSY({ id }) {\n var _a, _b;\n const { isDark } = useSettings();\n const { todayRunLjsyRes } = BaseService.useTodayWorkLjsy(id, moment().format('YYYY-MM-DD'));\n const paramConfigsList = BaseService.useConfig();\n const getSrc = (code) => {\n let obj = {};\n if (isDark) {\n obj = {\n ysdw: ysdw,\n ywcdw: ywcdw,\n wcl: wcl,\n };\n }\n else {\n obj = {\n ysdw: ysdwLight,\n ywcdw: ywcdwLight,\n wcl: wclLight,\n };\n }\n return obj[code];\n };\n const data = [\n {\n src: getSrc('ysdw'),\n name: '应收频次',\n value: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.planCollectPointNum) || 0,\n unit: '次',\n },\n {\n src: getSrc('ywcdw'),\n name: '实收频次',\n value: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.collectPointNum) || 0,\n unit: '次',\n },\n {\n src: getSrc('wcl'),\n name: '完成率',\n value: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.completeRate) || 0,\n unit: '%',\n },\n ];\n let columns = [\n {\n title: '收集点',\n dataIndex: 'collectPointName',\n key: 'collectPointName',\n width: 150,\n ellipsis: true,\n },\n {\n title: '收集次数',\n dataIndex: 'collectNum',\n key: 'collectNum',\n width: 80,\n align: 'right',\n },\n ];\n if (((_a = paramConfigsList['SHOW_COLLECTING_BUCKETS']) === null || _a === void 0 ? void 0 : _a.value) === 'true') {\n columns = columns.concat([\n {\n title: '收集桶数',\n dataIndex: 'bucketNum',\n key: 'bucketNum',\n width: 80,\n align: 'right',\n },\n ]);\n }\n if (((_b = paramConfigsList['SHOW_WEIGHTING']) === null || _b === void 0 ? void 0 : _b.value) === 'true') {\n columns = columns.concat([\n {\n title: '收集重量',\n dataIndex: 'weight',\n key: 'weight',\n width: 80,\n align: 'right',\n },\n ]);\n }\n const tableProps = {\n height: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.planCollectPointNum) > 0 ? 180 : 246,\n paganitation: false,\n dataSource: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.details) || [],\n };\n return (React.createElement(React.Fragment, null,\n (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.planCollectPointNum) > 0 && (React.createElement(\"div\", { className: \"ljsy-summary\" }, data === null || data === void 0 ? void 0 : data.map((ele, index) => (React.createElement(ImageText, Object.assign({ key: index }, ele, { style: { margin: '0 0 12px 0', width: '33.3333%' } })))))),\n React.createElement(VMTable, Object.assign({ columns: columns, isIndex: false, rowKey: \"index\" }, tableProps))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,YAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,IAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,WAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,YAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,UAAA,GAAAZ,sBAAA,CAAAC,OAAA;AAAgD,SAAAD,uBAAAa,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAdhD;AACA;AACA;;AAae,SAASE,aAAaA,CAAAC,IAAA,EAAS;EAAA,IAANC,EAAE,GAAAD,IAAA,CAAFC,EAAE;EACtC,IAAIC,EAAE,EAAEC,EAAE;EACV,IAAAC,YAAA,GAAmB,IAAAC,wBAAW,EAAC,CAAC;IAAxBC,MAAM,GAAAF,YAAA,CAANE,MAAM;EACd,IAAAC,qBAAA,GAA4BC,gBAAW,CAACC,gBAAgB,CAACR,EAAE,EAAE,IAAAS,kBAAM,EAAC,CAAC,CAACC,MAAM,CAAC,YAAY,CAAC,CAAC;IA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Y,EAAE,KAAK;IACnBC,UAAU,EAAE,CAAC/B,eAAe,KAAK,IAAI,IAAIA,eAAe,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,eAAe,CAACgC,OAAO,KAAK;EAC/G,CAAC;EACD,oBAAQC,iBAAK,CAACC,aAAa,CAACD,iBAAK,CAACE,QAAQ,EAAE,IAAI,EAC5C,CAACnC,eAAe,KAAK,IAAI,IAAIA,eAAe,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,eAAe,CAACgB,mBAAmB,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"TodayWorkLJSY.js","names":["_react","_interopRequireDefault","require","_moment","_vmTable","_vmImageText","_useSettings2","_api","_ysdw","_ywcdw","_wcl","_ysdw_light","_ywcdw_light","_wcl_light","e","__esModule","TodayWorkLJSY","_ref","id","_a","_b","_useSettings","useSettings","isDark","_BaseService$useToday","BaseService","useTodayWorkLjsy","moment","format","todayRunLjsyRes","paramConfigsList","useConfig","getSrc","code","obj","ysdw","ywcdw","wcl","ysdwLight","ywcdwLight","wclLight","data","src","name","value","planCollectPointNum","unit","collectPointNum","completeRate","columns","title","dataIndex","key","width","ellipsis","align","concat","tableProps","height","paganitation","dataSource","details","React","createElement","Fragment","className","map","ele","index","ImageText","Object","assign","style","margin","VMTable","isIndex","rowKey"],"sources":["vtx-car-modal/components/BaseInfo/TodayWorkLJSY.js"],"sourcesContent":["/**\n * 今日作业-垃圾收运\n */\nimport React from 'react';\nimport moment from 'moment';\nimport VMTable from '../../../vm-table';\nimport ImageText from '../../../vm-image-text';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { BaseService } from '../../api';\nimport ysdw from '../../imgs/ysdw.png';\nimport ywcdw from '../../imgs/ywcdw.png';\nimport wcl from '../../imgs/wcl.png';\nimport ysdwLight from '../../imgs/ysdw_light.png';\nimport ywcdwLight from '../../imgs/ywcdw_light.png';\nimport wclLight from '../../imgs/wcl_light.png';\nexport default function TodayWorkLJSY({ id }) {\n var _a, _b;\n const { isDark } = useSettings();\n const { todayRunLjsyRes } = BaseService.useTodayWorkLjsy(id, moment().format('YYYY-MM-DD'));\n const paramConfigsList = BaseService.useConfig();\n const getSrc = (code) => {\n let obj = {};\n if (isDark) {\n obj = {\n ysdw: ysdw,\n ywcdw: ywcdw,\n wcl: wcl,\n };\n }\n else {\n obj = {\n ysdw: ysdwLight,\n ywcdw: ywcdwLight,\n wcl: wclLight,\n };\n }\n return obj[code];\n };\n const data = [\n {\n src: getSrc('ysdw'),\n name: '应收频次',\n value: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.planCollectPointNum) || 0,\n unit: '次',\n },\n {\n src: getSrc('ywcdw'),\n name: '实收频次',\n value: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.collectPointNum) || 0,\n unit: '次',\n },\n {\n src: getSrc('wcl'),\n name: '完成率',\n value: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.completeRate) || 0,\n unit: '%',\n },\n ];\n let columns = [\n {\n title: '收集点',\n dataIndex: 'collectPointName',\n key: 'collectPointName',\n width: 150,\n ellipsis: true,\n },\n {\n title: '收集次数',\n dataIndex: 'collectNum',\n key: 'collectNum',\n width: 80,\n align: 'right',\n },\n ];\n if (((_a = paramConfigsList['SHOW_COLLECTING_BUCKETS']) === null || _a === void 0 ? void 0 : _a.value) === 'true') {\n columns = columns.concat([\n {\n title: '收集桶数',\n dataIndex: 'bucketNum',\n key: 'bucketNum',\n width: 80,\n align: 'right',\n },\n ]);\n }\n if (((_b = paramConfigsList['SHOW_WEIGHTING']) === null || _b === void 0 ? void 0 : _b.value) === 'true') {\n columns = columns.concat([\n {\n title: '收集重量',\n dataIndex: 'weight',\n key: 'weight',\n width: 80,\n align: 'right',\n },\n ]);\n }\n const tableProps = {\n height: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.planCollectPointNum) > 0 ? 180 : 246,\n paganitation: false,\n dataSource: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.details) || [],\n };\n return (React.createElement(React.Fragment, null,\n (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.planCollectPointNum) > 0 && (React.createElement(\"div\", { className: \"ljsy-summary\" }, data === null || data === void 0 ? void 0 : data.map((ele, index) => (React.createElement(ImageText, Object.assign({ key: index }, ele, { style: { margin: '0 0 12px 0', width: '33.3333%' } })))))),\n React.createElement(VMTable, Object.assign({ columns: columns, isIndex: false, rowKey: \"index\" }, tableProps))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,YAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,IAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,WAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,YAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,UAAA,GAAAZ,sBAAA,CAAAC,OAAA;AAAgD,SAAAD,uBAAAa,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAdhD;AACA;AACA;;AAae,SAASE,aAAaA,CAAAC,IAAA,EAAS;EAAA,IAANC,EAAE,GAAAD,IAAA,CAAFC,EAAE;EACtC,IAAIC,EAAE,EAAEC,EAAE;EACV,IAAAC,YAAA,GAAmB,IAAAC,wBAAW,EAAC,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gfx = function Wgfx(props) {
|
|
|
101
101
|
}
|
|
102
102
|
}]
|
|
103
103
|
};
|
|
104
|
-
return (data === null || data === void 0 ? void 0 : data.length) > 0 ? (/*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
|
|
104
|
+
return (data === null || data === void 0 ? void 0 : data.length) > 0 ? ( /*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
|
|
105
105
|
option: option,
|
|
106
106
|
notMerge: true,
|
|
107
107
|
lazyUpdate: true,
|
|
@@ -109,7 +109,7 @@ var Wgfx = function Wgfx(props) {
|
|
|
109
109
|
height: '100%',
|
|
110
110
|
width: '100%'
|
|
111
111
|
}
|
|
112
|
-
})) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null));
|
|
112
|
+
})) : ( /*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null));
|
|
113
113
|
};
|
|
114
114
|
var _default = exports["default"] = Wgfx;
|
|
115
115
|
//# sourceMappingURL=Wgfx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wgfx.js","names":["_react","_interopRequireDefault","require","_sumBy","_echartsForReact","_useSettings2","_vmNodata","e","__esModule","Wgfx","props","_useSettings","useSettings","chartColor","chartFontColor","_props$data","data","total","list","length","sumBy","o","count","map","ele","name","alarmTypeName","value","option","color","backgroundColor","tooltip","show","trigger","title","zlevel","text","top","left","textAlign","textStyle","fontSize","subtext","concat","subtextStyle","legend","orient","align","itemGap","itemWidth","itemHeight","formatter","find","item","pageIconColor","pageIconInactiveColor","pageTextStyle","series","type","radius","center","hoverAnimation","z","itemStyle","normal","borderWidth","borderColor","label","labelLine","React","createElement","ReactEcharts","notMerge","lazyUpdate","style","height","width","NoData","_default","exports"],"sources":["vtx-car-modal/components/BaseInfo/Wgfx.js"],"sourcesContent":["import React from 'react';\nimport sumBy from 'lodash/sumBy';\nimport ReactEcharts from 'echarts-for-react';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport NoData from '../../../vm-nodata';\nconst Wgfx = (props) => {\n const { chartColor, chartFontColor } = useSettings();\n const { data = [] } = props;\n let total = 0;\n let list = [];\n if ((data === null || data === void 0 ? void 0 : data.length) > 0) {\n total = sumBy(data, function (o) {\n return o.count;\n });\n list = data.map(ele => ({\n name: ele.alarmTypeName,\n value: ele.count,\n }));\n }\n let option = {\n color: chartColor,\n backgroundColor: 'transparent',\n tooltip: {\n show: true,\n trigger: 'item',\n },\n title: {\n zlevel: 0,\n text: '总数',\n top: '33%',\n left: '19%',\n textAlign: 'center',\n textStyle: {\n color: chartFontColor,\n fontSize: 14,\n },\n subtext: `${total || 0}`,\n subtextStyle: {\n color: chartFontColor,\n fontSize: 28,\n },\n },\n legend: {\n orient: 'vertical',\n left: '50%',\n top: 'middle',\n align: 'left',\n itemGap: 8,\n itemWidth: 10,\n itemHeight: 10,\n formatter: function (name) {\n const value = list.find((item) => item.name === name);\n if (value) {\n return `\\t\\t${name}\\t\\t${value.value}次\\t\\t`;\n }\n else {\n return '';\n }\n },\n textStyle: {\n fontSize: 14,\n color: chartFontColor,\n },\n pageIconColor: chartFontColor,\n pageIconInactiveColor: chartFontColor,\n pageTextStyle: {\n color: chartFontColor,\n },\n },\n series: [\n {\n type: 'pie',\n radius: ['55%', '75%'],\n center: ['20%', '40%'],\n hoverAnimation: true,\n z: 10,\n itemStyle: {\n normal: {\n borderWidth: 2,\n borderColor: '#003359',\n },\n },\n label: {\n show: false,\n },\n data: list,\n labelLine: {\n show: false,\n },\n },\n ],\n };\n return (data === null || data === void 0 ? void 0 : data.length) > 0 ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: { height: '100%', width: '100%' } })) : (React.createElement(NoData, null));\n};\nexport default Wgfx;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,gBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,a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AE,QAAQ;MACnBC,SAAS,EAAE;QACPX,KAAK,EAAEf,cAAc;QACrB2B,QAAQ,EAAE;MACd,CAAC;MACDC,OAAO,KAAAC,MAAA,CAAK1B,KAAK,IAAI,CAAC,CAAE;MACxB2B,YAAY,EAAE;QACVf,KAAK,EAAEf,cAAc;QACrB2B,QAAQ,EAAE;MACd;IACJ,CAAC;IACDI,MAAM,EAAE;MACJC,MAAM,EAAE,UAAU;MAClBR,IAAI,EAAE,KAAK;MACXD,GAAG,EAAE,QAAQ;MACbU,KAAK,EAAE,MAAM;MACbC,OAAO,EAAE,CAAC;MACVC,SAAS,EAAE,EAAE;MACbC,UAAU,EAAE,EAAE;MACdC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Wgfx.js","names":["_react","_interopRequireDefault","require","_sumBy","_echartsForReact","_useSettings2","_vmNodata","e","__esModule","Wgfx","props","_useSettings","useSettings","chartColor","chartFontColor","_props$data","data","total","list","length","sumBy","o","count","map","ele","name","alarmTypeName","value","option","color","backgroundColor","tooltip","show","trigger","title","zlevel","text","top","left","textAlign","textStyle","fontSize","subtext","concat","subtextStyle","legend","orient","align","itemGap","itemWidth","itemHeight","formatter","find","item","pageIconColor","pageIconInactiveColor","pageTextStyle","series","type","radius","center","hoverAnimation","z","itemStyle","normal","borderWidth","borderColor","label","labelLine","React","createElement","ReactEcharts","notMerge","lazyUpdate","style","height","width","NoData","_default","exports"],"sources":["vtx-car-modal/components/BaseInfo/Wgfx.js"],"sourcesContent":["import React from 'react';\nimport sumBy from 'lodash/sumBy';\nimport ReactEcharts from 'echarts-for-react';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport NoData from '../../../vm-nodata';\nconst Wgfx = (props) => {\n const { chartColor, chartFontColor } = useSettings();\n const { data = [] } = props;\n let total = 0;\n let list = [];\n if ((data === null || data === void 0 ? void 0 : data.length) > 0) {\n total = sumBy(data, function (o) {\n return o.count;\n });\n list = data.map(ele => ({\n name: ele.alarmTypeName,\n value: ele.count,\n }));\n }\n let option = {\n color: chartColor,\n backgroundColor: 'transparent',\n tooltip: {\n show: true,\n trigger: 'item',\n },\n title: {\n zlevel: 0,\n text: '总数',\n top: '33%',\n left: '19%',\n textAlign: 'center',\n textStyle: {\n color: chartFontColor,\n fontSize: 14,\n },\n subtext: `${total || 0}`,\n subtextStyle: {\n color: chartFontColor,\n fontSize: 28,\n },\n },\n legend: {\n orient: 'vertical',\n left: '50%',\n top: 'middle',\n align: 'left',\n itemGap: 8,\n itemWidth: 10,\n itemHeight: 10,\n formatter: function (name) {\n const value = list.find((item) => item.name === name);\n if (value) {\n return `\\t\\t${name}\\t\\t${value.value}次\\t\\t`;\n }\n else {\n return '';\n }\n },\n textStyle: {\n fontSize: 14,\n color: chartFontColor,\n },\n pageIconColor: chartFontColor,\n pageIconInactiveColor: chartFontColor,\n pageTextStyle: {\n color: chartFontColor,\n },\n },\n series: [\n {\n type: 'pie',\n radius: ['55%', '75%'],\n center: ['20%', '40%'],\n hoverAnimation: true,\n z: 10,\n itemStyle: {\n normal: {\n borderWidth: 2,\n borderColor: '#003359',\n },\n },\n label: {\n show: false,\n },\n data: list,\n labelLine: {\n show: false,\n },\n },\n ],\n };\n return (data === null || data === void 0 ? void 0 : data.length) > 0 ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: { height: '100%', width: '100%' } })) : (React.createElement(NoData, null));\n};\nexport default Wgfx;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,gBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAwC,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AACxC,IAAME,IAAI,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K,CAAC,GAAG,KAAK,CAAC,GAAGA,IAAI,CAACG,MAAM,IAAI,CAAC,kBAAIkD,iBAAK,CAACC,aAAa,CAACC,2BAAY,EAAE;IAAE3C,MAAM,EAAEA,MAAM;IAAE4C,QAAQ,EAAE,IAAI;IAAEC,UAAU,EAAE,IAAI;IAAEC,KAAK,EAAE;MAAEC,MAAM,EAAE,MAAM;MAAEC,KAAK,EAAE;IAAO;EAAE,CAAC,CAAC,mBAAKP,iBAAK,CAACC,aAAa,CAACO,oBAAM,EAAE,IAAI,CAAC,CAAC;AACpP,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cACatE,IAAI","ignoreList":[]}
|
|
@@ -123,7 +123,7 @@ var ZyfxCC = function ZyfxCC(props) {
|
|
|
123
123
|
}
|
|
124
124
|
}]
|
|
125
125
|
};
|
|
126
|
-
return (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.length) > 0 ? (/*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
|
|
126
|
+
return (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.length) > 0 ? ( /*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
|
|
127
127
|
option: option,
|
|
128
128
|
notMerge: true,
|
|
129
129
|
lazyUpdate: true,
|
|
@@ -131,7 +131,7 @@ var ZyfxCC = function ZyfxCC(props) {
|
|
|
131
131
|
height: '250px',
|
|
132
132
|
width: '100%'
|
|
133
133
|
}
|
|
134
|
-
})) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null));
|
|
134
|
+
})) : ( /*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null));
|
|
135
135
|
};
|
|
136
136
|
var _default = exports["default"] = ZyfxCC;
|
|
137
137
|
//# sourceMappingURL=ZyfxCC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZyfxCC.js","names":["_react","_interopRequireDefault","require","_moment","echarts","_interopRequireWildcard","_echartsForReact","_vmNodata","_useSettings2","_api","_lodash","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ZyfxCC","props","id","_useSettings","useSettings","chartFontColor","sDate","startDate","eDate","endDate","_BaseService$useWorkA","BaseService","useWorkAnaCC","moment","subtract","format","workAnaLjsyRes","option","tooltip","grid","left","right","bottom","containLabel","legend","align","itemGap","itemWidth","itemHeight","textStyle","color","data","xAxis","type","_","map","axisPointer","axisTick","show","axisLabel","yAxis","name","min","interval","nameTextStyle","splitNumber","splitLine","lineStyle","series","barWidth","length","item","labelName","value","labelValue","itemStyle","graphic","LinearGradient","offset","React","createElement","ReactEcharts","notMerge","lazyUpdate","style","height","width","NoData","_default","exports"],"sources":["vtx-car-modal/components/BaseInfo/ZyfxCC.js"],"sourcesContent":["import React from 'react';\nimport moment from 'moment';\nimport * as echarts from 'echarts';\nimport ReactEcharts from 'echarts-for-react';\nimport NoData from '../../../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { BaseService } from '../../api';\nimport _ from 'lodash';\nconst ZyfxCC = (props) => {\n const { id } = props;\n const { chartFontColor, startDate: sDate, endDate: eDate } = useSettings();\n const { workAnaLjsyRes } = BaseService.useWorkAnaCC(id, sDate\n ? sDate\n : moment()\n .subtract(1, 'M')\n .format('YYYY-MM-DD'), eDate ? eDate : moment().format('YYYY-MM-DD'), true);\n let option = {\n tooltip: {\n // trigger: 'axis',\n },\n grid: {\n left: '5%',\n right: '5%',\n bottom: 20,\n containLabel: true,\n },\n legend: {\n align: 'left',\n itemGap: 8,\n itemWidth: 10,\n itemHeight: 10,\n textStyle: {\n color: chartFontColor,\n },\n data: ['实际收集次数', '计划收集次数'],\n },\n xAxis: [\n {\n type: 'category',\n data: _.map(workAnaLjsyRes[0] || [], 'labelName'),\n axisPointer: {\n type: 'shadow',\n },\n axisTick: {\n show: false,\n },\n axisLabel: {\n color: chartFontColor,\n },\n },\n ],\n yAxis: [\n {\n type: 'value',\n name: '(次)',\n min: 0,\n interval: 100,\n nameTextStyle: {\n color: chartFontColor,\n },\n splitNumber: 5,\n axisTick: {\n show: false,\n },\n axisLabel: {\n color: chartFontColor,\n },\n splitLine: {\n lineStyle: {\n type: 'dashed',\n color: 'rgba(151,151,151,0.28)',\n },\n },\n },\n {\n show: false,\n type: 'value',\n name: '%',\n },\n ],\n series: [\n {\n name: '实际收集次数',\n type: 'bar',\n barWidth: 18,\n data: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.length) > 0\n ? (workAnaLjsyRes[0] || []).map((item) => ({\n name: item.labelName,\n value: item.labelValue,\n }))\n : [],\n itemStyle: {\n color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [\n {\n offset: 0,\n color: '#F5803C ',\n },\n {\n offset: 1,\n color: '#FFE290',\n },\n ]),\n },\n },\n {\n name: '计划收集次数',\n type: 'bar',\n barWidth: 18,\n data: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.length) > 0\n ? (workAnaLjsyRes[1] || []).map((item) => ({\n name: item.labelName,\n value: item.labelValue,\n }))\n : [],\n itemStyle: {\n color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [\n {\n offset: 0,\n color: '#1677FF',\n },\n {\n offset: 1,\n color: '#62FDF3',\n },\n ]),\n },\n },\n ],\n };\n return (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.length) > 0 ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: { height: '250px', width: '100%' } })) : (React.createElement(NoData, null));\n};\nexport default ZyfxCC;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,gB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,CAAC,CAAC,kBAAKP,iBAAK,CAACC,aAAa,CAACO,oBAAM,EAAE,IAAI,CAAC,CAAC;AACnR,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cACarE,MAAM","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ZyfxCC.js","names":["_react","_interopRequireDefault","require","_moment","echarts","_interopRequireWildcard","_echartsForReact","_vmNodata","_useSettings2","_api","_lodash","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ZyfxCC","props","id","_useSettings","useSettings","chartFontColor","sDate","startDate","eDate","endDate","_BaseService$useWorkA","BaseService","useWorkAnaCC","moment","subtract","format","workAnaLjsyRes","option","tooltip","grid","left","right","bottom","containLabel","legend","align","itemGap","itemWidth","itemHeight","textStyle","color","data","xAxis","type","_","map","axisPointer","axisTick","show","axisLabel","yAxis","name","min","interval","nameTextStyle","splitNumber","splitLine","lineStyle","series","barWidth","length","item","labelName","value","labelValue","itemStyle","graphic","LinearGradient","offset","React","createElement","ReactEcharts","notMerge","lazyUpdate","style","height","width","NoData","_default","exports"],"sources":["vtx-car-modal/components/BaseInfo/ZyfxCC.js"],"sourcesContent":["import React from 'react';\nimport moment from 'moment';\nimport * as echarts from 'echarts';\nimport ReactEcharts from 'echarts-for-react';\nimport NoData from '../../../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { BaseService } from '../../api';\nimport _ from 'lodash';\nconst ZyfxCC = (props) => {\n const { id } = props;\n const { chartFontColor, startDate: sDate, endDate: eDate } = useSettings();\n const { workAnaLjsyRes } = BaseService.useWorkAnaCC(id, sDate\n ? sDate\n : moment()\n .subtract(1, 'M')\n .format('YYYY-MM-DD'), eDate ? eDate : moment().format('YYYY-MM-DD'), true);\n let option = {\n tooltip: {\n // trigger: 'axis',\n },\n grid: {\n left: '5%',\n right: '5%',\n bottom: 20,\n containLabel: true,\n },\n legend: {\n align: 'left',\n itemGap: 8,\n itemWidth: 10,\n itemHeight: 10,\n textStyle: {\n color: chartFontColor,\n },\n data: ['实际收集次数', '计划收集次数'],\n },\n xAxis: [\n {\n type: 'category',\n data: _.map(workAnaLjsyRes[0] || [], 'labelName'),\n axisPointer: {\n type: 'shadow',\n },\n axisTick: {\n show: false,\n },\n axisLabel: {\n color: chartFontColor,\n },\n },\n ],\n yAxis: [\n {\n type: 'value',\n name: '(次)',\n min: 0,\n interval: 100,\n nameTextStyle: {\n color: chartFontColor,\n },\n splitNumber: 5,\n axisTick: {\n show: false,\n },\n axisLabel: {\n color: chartFontColor,\n },\n splitLine: {\n lineStyle: {\n type: 'dashed',\n color: 'rgba(151,151,151,0.28)',\n },\n },\n },\n {\n show: false,\n type: 'value',\n name: '%',\n },\n ],\n series: [\n {\n name: '实际收集次数',\n type: 'bar',\n barWidth: 18,\n data: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.length) > 0\n ? (workAnaLjsyRes[0] || []).map((item) => ({\n name: item.labelName,\n value: item.labelValue,\n }))\n : [],\n itemStyle: {\n color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [\n {\n offset: 0,\n color: '#F5803C ',\n },\n {\n offset: 1,\n color: '#FFE290',\n },\n ]),\n },\n },\n {\n name: '计划收集次数',\n type: 'bar',\n barWidth: 18,\n data: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.length) > 0\n ? (workAnaLjsyRes[1] || []).map((item) => ({\n name: item.labelName,\n value: item.labelValue,\n }))\n : [],\n itemStyle: {\n color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [\n {\n offset: 0,\n color: '#1677FF',\n },\n {\n offset: 1,\n color: '#62FDF3',\n },\n ]),\n },\n },\n ],\n };\n return (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.length) > 0 ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: {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AACkC,MAAM,IAAI,CAAC,kBAAIS,iBAAK,CAACC,aAAa,CAACC,2BAAY,EAAE;IAAE5C,MAAM,EAAEA,MAAM;IAAE6C,QAAQ,EAAE,IAAI;IAAEC,UAAU,EAAE,IAAI;IAAEC,KAAK,EAAE;MAAEC,MAAM,EAAE,OAAO;MAAEC,KAAK,EAAE;IAAO;EAAE,CAAC,CAAC,mBAAKP,iBAAK,CAACC,aAAa,CAACO,oBAAM,EAAE,IAAI,CAAC,CAAC;AACnR,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cACarE,MAAM","ignoreList":[]}
|
|
@@ -106,7 +106,7 @@ var ZyfxJXH = function ZyfxJXH(props) {
|
|
|
106
106
|
}
|
|
107
107
|
}]
|
|
108
108
|
};
|
|
109
|
-
return ((_a = workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.names) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (/*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
|
|
109
|
+
return ((_a = workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.names) === null || _a === void 0 ? void 0 : _a.length) > 0 ? ( /*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
|
|
110
110
|
option: option,
|
|
111
111
|
notMerge: true,
|
|
112
112
|
lazyUpdate: true,
|
|
@@ -114,7 +114,7 @@ var ZyfxJXH = function ZyfxJXH(props) {
|
|
|
114
114
|
height: '250px',
|
|
115
115
|
width: '100%'
|
|
116
116
|
}
|
|
117
|
-
})) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], {
|
|
117
|
+
})) : ( /*#__PURE__*/_react["default"].createElement(_vmNodata["default"], {
|
|
118
118
|
style: {
|
|
119
119
|
height: '250px',
|
|
120
120
|
width: '100%'
|