@vtx/modals2 5.0.2 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/index.js +21 -0
- package/lib/_components/vm-bar-charts/index.js +181 -0
- package/lib/_components/vm-calendar/index.js +117 -0
- package/lib/_components/vm-calendar/style/index.js +1 -0
- package/lib/_components/vm-calendar/style/index.less +139 -0
- package/lib/_components/vm-card-statistics/index.js +33 -0
- package/lib/_components/vm-card-statistics/index.less +27 -0
- package/lib/_components/vm-custom/index.js +25 -0
- package/lib/_components/vm-custom/style/index.js +1 -0
- package/lib/_components/vm-custom/style/index.less +20 -0
- package/lib/_components/vm-empty/assets/no_chart.png +0 -0
- package/lib/_components/vm-empty/assets/no_data.png +0 -0
- package/lib/_components/vm-empty/assets/no_data_2.png +0 -0
- package/lib/_components/vm-empty/assets/no_news.png +0 -0
- package/lib/_components/vm-empty/assets/no_permission.png +0 -0
- package/lib/_components/vm-empty/assets/no_picture.png +0 -0
- package/lib/_components/vm-empty/assets/no_result.png +0 -0
- package/lib/_components/vm-empty/assets/no_video.png +0 -0
- package/lib/_components/vm-empty/assets/page_error.png +0 -0
- package/lib/_components/vm-empty/index.js +83 -0
- package/lib/_components/vm-empty/style/index.js +1 -0
- package/lib/_components/vm-empty/style/index.less +22 -0
- package/lib/_components/vm-extra-tab/index.js +44 -0
- package/lib/_components/vm-extra-tab/style/index.js +2 -0
- package/lib/_components/vm-extra-tab/style/index.less +43 -0
- package/lib/_components/vm-factor/index.js +85 -0
- package/lib/_components/vm-factor/style/index.js +2 -0
- package/lib/_components/vm-factor/style/index.less +42 -0
- package/lib/_components/vm-factor-list/index.js +29 -0
- package/lib/_components/vm-factor-list/index.less +11 -0
- package/lib/_components/vm-filter/index.js +148 -0
- package/lib/_components/vm-filter/style/index.js +1 -0
- package/lib/_components/vm-filter/style/index.less +237 -0
- package/lib/_components/vm-iframe-modal/index.js +43 -0
- package/lib/_components/vm-iframe-modal/index.less +9 -0
- package/lib/_components/vm-info-collection/index.js +185 -0
- package/lib/_components/vm-info-collection/style/index.js +1 -0
- package/lib/_components/vm-info-collection/style/index.less +45 -0
- package/lib/_components/vm-line-charts/index.js +151 -0
- package/lib/_components/vm-map/index.js +277 -0
- package/lib/_components/vm-map/index.less +46 -0
- package/lib/_components/vm-pie-charts/index.js +174 -0
- package/lib/_components/vm-pie-charts/index.less +26 -0
- package/lib/_components/vm-progress/index.js +83 -0
- package/lib/_components/vm-progress/style/index.js +1 -0
- package/lib/_components/vm-progress/style/index.less +28 -0
- package/lib/_components/vm-table/index.js +223 -0
- package/lib/_components/vm-table/style/index.js +1 -0
- package/lib/_components/vm-table/style/index.less +242 -0
- package/lib/_components/vm-tabs/index.js +27 -0
- package/lib/_components/vm-tabs/style/index.js +1 -0
- package/lib/_components/vm-tabs/style/index.less +22 -0
- package/lib/_components/vm-tag/index.js +25 -0
- package/lib/_components/vm-tag/style/index.js +1 -0
- package/lib/_components/vm-tag/style/index.less +62 -0
- package/lib/_components/vm-theme-provider/index.js +18 -0
- package/lib/_components/vm-title/index.js +34 -0
- package/lib/_components/vm-title/style/index.js +1 -0
- package/lib/_components/vm-title/style/index.less +53 -0
- package/lib/_components/vm-tooltip/index.js +15 -0
- package/lib/_components/vm-tooltip/style/index.js +2 -0
- package/lib/_components/vm-tooltip/style/index.less +7 -0
- package/lib/_components/vm-video/RealtimeGrid.js +48 -0
- package/lib/_components/vm-video/index.js +227 -0
- package/lib/_components/vm-video/index.less +168 -0
- package/lib/_components/vm-wrapper/imgs/chart.svg +6 -0
- package/lib/_components/vm-wrapper/imgs/list.svg +8 -0
- package/lib/_components/vm-wrapper/index.js +161 -0
- package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +127 -0
- package/lib/_components/vm-wrapper/style/index.js +1 -0
- package/lib/_components/vm-wrapper/style/index.less +81 -0
- package/lib/_hooks/useGetChannels.js +19 -0
- package/lib/_hooks/useGetConfig.js +52 -0
- package/lib/_hooks/useSettings.js +31 -0
- package/lib/_imgs/block_alarm.png +0 -0
- package/lib/_imgs/block_normal.png +0 -0
- package/lib/_service/index.js +99 -0
- package/lib/_util/http.js +277 -0
- package/lib/_util/iconSvgHtml.js +1303 -0
- package/lib/_util/index.js +203 -0
- package/lib/index.js +12 -0
- package/lib/resources/jessibuca/decoder.js +3839 -0
- package/lib/resources/jessibuca/decoder.wasm +0 -0
- package/lib/resources/jessibuca/jessibuca.js +5350 -0
- package/lib/style/index.less +262 -0
- package/lib/vtx-area-modal/api.js +165 -0
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +103 -0
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +108 -0
- package/lib/vtx-area-modal/components/BaseInfo/index.js +161 -0
- package/lib/vtx-area-modal/components/BaseInfo/index.less +133 -0
- package/lib/vtx-area-modal/components/index.js +2 -0
- package/lib/vtx-area-modal/imgs/onlinePerson.png +0 -0
- package/lib/vtx-area-modal/imgs/onlinePerson_dark.png +0 -0
- package/lib/vtx-area-modal/imgs/schdulePerson.png +0 -0
- package/lib/vtx-area-modal/imgs/schdulePerson_dark.png +0 -0
- package/lib/vtx-area-modal/imgs/todayOnline.png +0 -0
- package/lib/vtx-area-modal/imgs/todayOnline_dark.png +0 -0
- package/lib/vtx-area-modal/imgs/todayWork.png +0 -0
- package/lib/vtx-area-modal/imgs/todayWorkRate.png +0 -0
- package/lib/vtx-area-modal/imgs/todayWorkRate_dark.png +0 -0
- package/lib/vtx-area-modal/imgs/todayWork_dark.png +0 -0
- package/lib/vtx-area-modal/index.js +51 -0
- package/lib/vtx-area-modal/style/index.js +1 -0
- package/lib/vtx-area-modal/style/index.less +1 -0
- package/lib/vtx-base-modal/Header/assets/dark_star.png +0 -0
- package/lib/vtx-base-modal/Header/assets/light_star.png +0 -0
- package/lib/vtx-base-modal/Header/index.js +149 -0
- package/lib/vtx-base-modal/Header/index.less +98 -0
- package/lib/vtx-base-modal/Tabs/index.js +83 -0
- package/lib/vtx-base-modal/Tabs/index.less +31 -0
- package/lib/vtx-base-modal/index.js +202 -0
- package/lib/vtx-base-modal/service.js +39 -0
- package/lib/vtx-base-modal/style/index.js +1 -0
- package/lib/vtx-base-modal/style/index.less +78 -0
- package/lib/vtx-car-modal/api.js +1019 -0
- package/lib/vtx-car-modal/components/Info/index.js +110 -0
- package/lib/vtx-car-modal/components/Info/index.less +6 -0
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +111 -0
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +77 -0
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +69 -0
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +179 -0
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.less +24 -0
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +187 -0
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +200 -0
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.less +13 -0
- package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +395 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +237 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +139 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +69 -0
- package/lib/vtx-car-modal/content/Cc/index.js +12 -0
- package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +160 -0
- package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +76 -0
- package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +71 -0
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +191 -0
- package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +173 -0
- package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +92 -0
- package/lib/vtx-car-modal/content/Common/Maintenance/index.js +137 -0
- package/lib/vtx-car-modal/content/Common/Maintenance/index.less +16 -0
- package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +94 -0
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +151 -0
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -0
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +231 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +196 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -0
- package/lib/vtx-car-modal/content/Common/index.js +18 -0
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +122 -0
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +79 -0
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +71 -0
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +161 -0
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +307 -0
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +327 -0
- package/lib/vtx-car-modal/content/JXH/index.js +10 -0
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +105 -0
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +78 -0
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +71 -0
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +358 -0
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.less +24 -0
- package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +405 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +128 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +139 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +69 -0
- package/lib/vtx-car-modal/content/Ljsy/index.js +10 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +205 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.less +24 -0
- package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +193 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +122 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +109 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +69 -0
- package/lib/vtx-car-modal/content/Ljzy/index.js +8 -0
- package/lib/vtx-car-modal/content/index.js +6 -0
- package/lib/vtx-car-modal/imgs/calendar/alarm.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/blue_duration.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/blue_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/car_num.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/cyan_duration.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_alarm.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_car_num.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_duration.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_green_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_jcl.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_point.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/duration.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/green_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/jcl.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/point.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_point.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_trash.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_trash_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_unplanned_point.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_weight.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_weight_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_ws_point.png +0 -0
- package/lib/vtx-car-modal/imgs/dark_ys_point.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/car_num.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_car_num.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_duration.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_jcl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_oil.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_percent.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_point.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_run.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_speed.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_trash.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_water.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_weight.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dark_ys_point.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/duration.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jcl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/oil.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/percent.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/point.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/run.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/speed.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/trash.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/water.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/weight.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ys_point.png +0 -0
- package/lib/vtx-car-modal/imgs/point.png +0 -0
- package/lib/vtx-car-modal/imgs/trash.png +0 -0
- package/lib/vtx-car-modal/imgs/trash_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/unplanned_point.png +0 -0
- package/lib/vtx-car-modal/imgs/warn.png +0 -0
- package/lib/vtx-car-modal/imgs/weight.png +0 -0
- package/lib/vtx-car-modal/imgs/weight_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/ws_point.png +0 -0
- package/lib/vtx-car-modal/imgs/ys_point.png +0 -0
- package/lib/vtx-car-modal/index.js +258 -0
- package/lib/vtx-car-modal/style/index.js +3 -0
- package/lib/vtx-car-modal/style/index.less +35 -0
- package/lib/vtx-cp-modal/api.js +357 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +172 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +39 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +84 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/index.js +41 -0
- package/lib/vtx-cp-modal/components/AlarmInfo/index.less +34 -0
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +116 -0
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +72 -0
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +154 -0
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +96 -0
- package/lib/vtx-cp-modal/components/BaseInfo/index.less +140 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +200 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +35 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +84 -0
- package/lib/vtx-cp-modal/components/ExeceptionInfo/index.js +41 -0
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +62 -0
- package/lib/vtx-cp-modal/components/SyInfo/index.js +306 -0
- package/lib/vtx-cp-modal/components/SyInfo/index.less +18 -0
- package/lib/vtx-cp-modal/components/index.js +5 -0
- package/lib/vtx-cp-modal/imgs/alarm.png +0 -0
- package/lib/vtx-cp-modal/imgs/allRate.png +0 -0
- package/lib/vtx-cp-modal/imgs/allRate_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/bucket.png +0 -0
- package/lib/vtx-cp-modal/imgs/bucket_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/collect.png +0 -0
- package/lib/vtx-cp-modal/imgs/collect_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/corner_cy.png +0 -0
- package/lib/vtx-cp-modal/imgs/corner_khs.png +0 -0
- package/lib/vtx-cp-modal/imgs/corner_qt.png +0 -0
- package/lib/vtx-cp-modal/imgs/corner_yh.png +0 -0
- package/lib/vtx-cp-modal/imgs/cy.png +0 -0
- package/lib/vtx-cp-modal/imgs/default.png +0 -0
- package/lib/vtx-cp-modal/imgs/jhsj.png +0 -0
- package/lib/vtx-cp-modal/imgs/jhsj_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/khs.png +0 -0
- package/lib/vtx-cp-modal/imgs/plan.png +0 -0
- package/lib/vtx-cp-modal/imgs/plan_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/qt.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjl.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjl_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjsj.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjsj_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjts.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjts_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjzl.png +0 -0
- package/lib/vtx-cp-modal/imgs/sjzl_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/track.png +0 -0
- package/lib/vtx-cp-modal/imgs/weight.png +0 -0
- package/lib/vtx-cp-modal/imgs/weight_dark.png +0 -0
- package/lib/vtx-cp-modal/imgs/yh.png +0 -0
- package/lib/vtx-cp-modal/index.js +121 -0
- package/lib/vtx-cp-modal/style/index.js +3 -0
- package/lib/vtx-cp-modal/style/index.less +1 -0
- package/lib/vtx-default-modal/api.js +170 -0
- package/lib/vtx-default-modal/components/BaseInfo/index.js +109 -0
- package/lib/vtx-default-modal/components/BaseInfo/index.less +26 -0
- package/lib/vtx-default-modal/components/index.js +2 -0
- package/lib/vtx-default-modal/index.js +126 -0
- package/lib/vtx-default-modal/style/index.js +4 -0
- package/lib/vtx-default-modal/style/index.less +1 -0
- package/lib/vtx-df-modal/api.js +267 -0
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +62 -0
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +96 -0
- package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +43 -0
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +146 -0
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +47 -0
- package/lib/vtx-df-modal/components/BaseInfo/index.js +140 -0
- package/lib/vtx-df-modal/components/BaseInfo/index.less +161 -0
- package/lib/vtx-df-modal/components/Calendar/index.js +142 -0
- package/lib/vtx-df-modal/components/Calendar/index.less +81 -0
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +65 -0
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +77 -0
- package/lib/vtx-df-modal/components/Metering/List.js +125 -0
- package/lib/vtx-df-modal/components/Metering/index.js +187 -0
- package/lib/vtx-df-modal/components/Metering/index.less +68 -0
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +179 -0
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +84 -0
- package/lib/vtx-df-modal/components/WorkCondition/index.js +167 -0
- package/lib/vtx-df-modal/components/WorkCondition/index.less +113 -0
- package/lib/vtx-df-modal/components/index.js +5 -0
- package/lib/vtx-df-modal/imgs/alarm.png +0 -0
- package/lib/vtx-df-modal/imgs/alarm_light.png +0 -0
- package/lib/vtx-df-modal/imgs/c_car.png +0 -0
- package/lib/vtx-df-modal/imgs/c_jcl.png +0 -0
- package/lib/vtx-df-modal/imgs/down.png +0 -0
- package/lib/vtx-df-modal/imgs/jccc.png +0 -0
- package/lib/vtx-df-modal/imgs/jccc_dark.png +0 -0
- package/lib/vtx-df-modal/imgs/jcl.png +0 -0
- package/lib/vtx-df-modal/imgs/jcl_dark.png +0 -0
- package/lib/vtx-df-modal/imgs/normal.png +0 -0
- package/lib/vtx-df-modal/imgs/normal_light.png +0 -0
- package/lib/vtx-df-modal/imgs/rjjcl.svg +55 -0
- package/lib/vtx-df-modal/imgs/rjjcl_dark.svg +94 -0
- package/lib/vtx-df-modal/imgs/situation_parent.png +0 -0
- package/lib/vtx-df-modal/imgs/situation_parent_bg.png +0 -0
- package/lib/vtx-df-modal/imgs/sjnl.svg +39 -0
- package/lib/vtx-df-modal/imgs/sjnl_dark.svg +78 -0
- package/lib/vtx-df-modal/imgs/tab_more.png +0 -0
- package/lib/vtx-df-modal/imgs/tab_more_light.png +0 -0
- package/lib/vtx-df-modal/imgs/up.png +0 -0
- package/lib/vtx-df-modal/imgs/zjccc.svg +44 -0
- package/lib/vtx-df-modal/imgs/zjccc_dark.svg +84 -0
- package/lib/vtx-df-modal/imgs/zjcl.svg +55 -0
- package/lib/vtx-df-modal/imgs/zjcl_dark.svg +94 -0
- package/lib/vtx-df-modal/index.js +135 -0
- package/lib/vtx-df-modal/style/index.js +4 -0
- package/lib/vtx-df-modal/style/index.less +1 -0
- package/lib/vtx-qyry-modal/api.js +129 -0
- package/lib/vtx-qyry-modal/index.js +119 -0
- package/lib/vtx-qyry-modal/style/index.js +1 -0
- package/lib/vtx-road-modal/api.js +219 -0
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +48 -0
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +322 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.js +91 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -0
- package/lib/vtx-road-modal/components/Calendar/index.js +155 -0
- package/lib/vtx-road-modal/components/Statistical/index.js +244 -0
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -0
- package/lib/vtx-road-modal/components/index.js +4 -0
- package/lib/vtx-road-modal/imgs/calendar/dark_green_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/calendar/dark_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/calendar/green_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/calendar/mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/dark_real.png +0 -0
- package/lib/vtx-road-modal/imgs/dark_valid.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/dark_over_rate.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/dark_plan_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/dark_valid_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/over_rate.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/plan_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/factor/valid_mileage.png +0 -0
- package/lib/vtx-road-modal/imgs/real.png +0 -0
- package/lib/vtx-road-modal/imgs/valid.png +0 -0
- package/lib/vtx-road-modal/index.js +102 -0
- package/lib/vtx-road-modal/style/index.js +3 -0
- package/lib/vtx-road-modal/style/index.less +26 -0
- package/lib/vtx-shxq-modal/api.js +337 -0
- package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +115 -0
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +148 -0
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.less +10 -0
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +190 -0
- package/lib/vtx-shxq-modal/components/BaseInfo/index.less +25 -0
- package/lib/vtx-shxq-modal/components/Tfd/index.js +133 -0
- package/lib/vtx-shxq-modal/components/Tfd/index.less +59 -0
- package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +64 -0
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +72 -0
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +158 -0
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.less +24 -0
- package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +133 -0
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +165 -0
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.less +10 -0
- package/lib/vtx-shxq-modal/components/index.js +6 -0
- package/lib/vtx-shxq-modal/imgs/cy.png +0 -0
- package/lib/vtx-shxq-modal/imgs/khs.png +0 -0
- package/lib/vtx-shxq-modal/imgs/ljht.png +0 -0
- package/lib/vtx-shxq-modal/imgs/ljht_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/qt.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_cy_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_khs_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_qt_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_total.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_total_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/tf_yh_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/twtf.png +0 -0
- package/lib/vtx-shxq-modal/imgs/twtf_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wgzs.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wgzs_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wpd.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wpd_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wstf.png +0 -0
- package/lib/vtx-shxq-modal/imgs/wstf_dark.png +0 -0
- package/lib/vtx-shxq-modal/imgs/yh.png +0 -0
- package/lib/vtx-shxq-modal/index.js +108 -0
- package/lib/vtx-shxq-modal/style/index.js +1 -0
- package/lib/vtx-staff-modal/api.js +427 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +67 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +111 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +95 -0
- package/lib/vtx-staff-modal/components/AlarmInfo/index.less +9 -0
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +58 -0
- package/lib/vtx-staff-modal/components/Attendance/Record.js +154 -0
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +129 -0
- package/lib/vtx-staff-modal/components/Attendance/index.js +49 -0
- package/lib/vtx-staff-modal/components/Attendance/index.less +38 -0
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +115 -0
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +42 -0
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +48 -0
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +183 -0
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +94 -0
- package/lib/vtx-staff-modal/components/Calendar/index.js +237 -0
- package/lib/vtx-staff-modal/components/Calendar/index.less +82 -0
- package/lib/vtx-staff-modal/components/Equipment/index.js +147 -0
- package/lib/vtx-staff-modal/components/Equipment/index.less +29 -0
- package/lib/vtx-staff-modal/components/index.js +6 -0
- package/lib/vtx-staff-modal/imgs/all_time.png +0 -0
- package/lib/vtx-staff-modal/imgs/all_time_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/avg.png +0 -0
- package/lib/vtx-staff-modal/imgs/avg_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/mileage.png +0 -0
- package/lib/vtx-staff-modal/imgs/mileage_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/online.png +0 -0
- package/lib/vtx-staff-modal/imgs/online_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_alarm.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_alarm_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_level.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_level_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_over.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_over_dark.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_sum.png +0 -0
- package/lib/vtx-staff-modal/imgs/time_sum_dark.png +0 -0
- package/lib/vtx-staff-modal/index.js +116 -0
- package/lib/vtx-staff-modal/style/index.js +5 -0
- package/lib/vtx-staff-modal/style/index.less +1 -0
- package/lib/vtx-tfd-modal/api.js +119 -0
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +96 -0
- package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +43 -0
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +211 -0
- package/lib/vtx-tfd-modal/components/BaseInfo/index.less +85 -0
- package/lib/vtx-tfd-modal/components/index.js +2 -0
- package/lib/vtx-tfd-modal/imgs/dzc.png +0 -0
- package/lib/vtx-tfd-modal/imgs/dzc_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/dzc_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/dzc_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/fdj.png +0 -0
- package/lib/vtx-tfd-modal/imgs/fdj_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/fdj_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/fdj_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/hjtfl.png +0 -0
- package/lib/vtx-tfd-modal/imgs/hjtfl_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/jfdhj.png +0 -0
- package/lib/vtx-tfd-modal/imgs/jfdhj_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/jfdhj_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/jfdhj_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/khsl.png +0 -0
- package/lib/vtx-tfd-modal/imgs/khsl_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/sxt.png +0 -0
- package/lib/vtx-tfd-modal/imgs/sxt_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/sxt_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/sxt_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/xdb.png +0 -0
- package/lib/vtx-tfd-modal/imgs/xdb_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/xdb_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/xdb_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/zntfj.png +0 -0
- package/lib/vtx-tfd-modal/imgs/zntfj_light.png +0 -0
- package/lib/vtx-tfd-modal/imgs/zntfj_light_online.png +0 -0
- package/lib/vtx-tfd-modal/imgs/zntfj_online.png +0 -0
- package/lib/vtx-tfd-modal/index.js +106 -0
- package/lib/vtx-tfd-modal/style/index.js +1 -0
- package/lib/vtx-zzz-modal/index.js +135 -0
- package/package.json +4 -4
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
/**
|
|
14
|
+
* 考核信息-列表
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { useSetState } from 'ahooks';
|
|
18
|
+
import { VmTable } from "../../../_components";
|
|
19
|
+
import { MeteringService } from "../../api";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
var List = function List(props) {
|
|
22
|
+
var code = props.code,
|
|
23
|
+
startDate = props.startDate,
|
|
24
|
+
endDate = props.endDate;
|
|
25
|
+
var _useSetState = useSetState({
|
|
26
|
+
pagination: {
|
|
27
|
+
current: 1,
|
|
28
|
+
pageSize: 10,
|
|
29
|
+
total: 0
|
|
30
|
+
}
|
|
31
|
+
}),
|
|
32
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
33
|
+
state = _useSetState2[0],
|
|
34
|
+
setState = _useSetState2[1];
|
|
35
|
+
var pagination = state.pagination;
|
|
36
|
+
var _MeteringService$useR = MeteringService.useRecord(code, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59"), pagination.current),
|
|
37
|
+
records = _MeteringService$useR.records;
|
|
38
|
+
var _MeteringService$useS = MeteringService.useSummary(code, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59")),
|
|
39
|
+
summary = _MeteringService$useS.summary;
|
|
40
|
+
var columns = [{
|
|
41
|
+
title: '车牌号',
|
|
42
|
+
dataIndex: 'carNo',
|
|
43
|
+
key: 'carNo'
|
|
44
|
+
}, {
|
|
45
|
+
title: '货物名称',
|
|
46
|
+
dataIndex: 'productName',
|
|
47
|
+
key: 'productName',
|
|
48
|
+
width: 150,
|
|
49
|
+
ellipsis: true
|
|
50
|
+
}, {
|
|
51
|
+
title: '发货单位',
|
|
52
|
+
dataIndex: 'sourceUnit',
|
|
53
|
+
key: 'sourceUnit',
|
|
54
|
+
width: 200,
|
|
55
|
+
ellipsis: true
|
|
56
|
+
}, {
|
|
57
|
+
title: '区域',
|
|
58
|
+
dataIndex: 'area',
|
|
59
|
+
key: 'area'
|
|
60
|
+
}, {
|
|
61
|
+
title: '毛重(吨)',
|
|
62
|
+
dataIndex: 'grossWeight',
|
|
63
|
+
key: 'grossWeight',
|
|
64
|
+
align: 'right',
|
|
65
|
+
render: function render(text) {
|
|
66
|
+
return /*#__PURE__*/_jsx("span", {
|
|
67
|
+
className: "grossWeight-color",
|
|
68
|
+
children: text
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
title: '皮重(吨)',
|
|
73
|
+
dataIndex: 'tareWeight',
|
|
74
|
+
key: 'tareWeight',
|
|
75
|
+
align: 'right',
|
|
76
|
+
render: function render(text) {
|
|
77
|
+
return /*#__PURE__*/_jsx("span", {
|
|
78
|
+
className: "tareWeight-color",
|
|
79
|
+
children: text
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
title: '净重(吨)',
|
|
84
|
+
dataIndex: 'netWeight',
|
|
85
|
+
key: 'netWeight',
|
|
86
|
+
align: 'right',
|
|
87
|
+
render: function render(text) {
|
|
88
|
+
return /*#__PURE__*/_jsx("span", {
|
|
89
|
+
className: "netWeight-color",
|
|
90
|
+
children: text
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}, {
|
|
94
|
+
title: '称重时间',
|
|
95
|
+
dataIndex: 'grossTimeStr',
|
|
96
|
+
key: 'grossTimeStr',
|
|
97
|
+
width: 150
|
|
98
|
+
}];
|
|
99
|
+
var pageChange = function pageChange(page) {
|
|
100
|
+
setState({
|
|
101
|
+
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
102
|
+
current: page
|
|
103
|
+
})
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
var tableProps = {
|
|
107
|
+
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
108
|
+
total: records.total,
|
|
109
|
+
defaultPageSize: 10,
|
|
110
|
+
onChange: pageChange
|
|
111
|
+
}),
|
|
112
|
+
height: 384,
|
|
113
|
+
dataSource: records.rows
|
|
114
|
+
};
|
|
115
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
116
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
117
|
+
className: "df-appraisal-content-list-static",
|
|
118
|
+
children: ["\u6C47\u603B(\u6BDB\u91CD:", (summary === null || summary === void 0 ? void 0 : summary.grossWeightTotal) || 0, "\u5428\uFF0C\u76AE\u91CD:", (summary === null || summary === void 0 ? void 0 : summary.tareWeightTotal) || 0, "\u5428\uFF0C\u51C0\u91CD:", (summary === null || summary === void 0 ? void 0 : summary.netWeightTotal) || 0, "\u5428\uFF0C\u8F66\u6B21:", (summary === null || summary === void 0 ? void 0 : summary.count) || 0, ")"]
|
|
119
|
+
}), /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
120
|
+
columns: columns,
|
|
121
|
+
rowKey: "id"
|
|
122
|
+
}, tableProps))]
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
export default List;
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
/**
|
|
14
|
+
* 终端-计量信息
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { useSetState } from 'ahooks';
|
|
18
|
+
import { Col, Row } from 'antd';
|
|
19
|
+
import moment from 'moment';
|
|
20
|
+
import { VmFactor, VmProgress, VmWrapper } from "../../../_components";
|
|
21
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
22
|
+
import { CommonService } from "../../../_service";
|
|
23
|
+
import { BaseService } from "../../api";
|
|
24
|
+
import ChartJccc from "./ChartJccc";
|
|
25
|
+
import ChartJcqs from "./ChartJcqs";
|
|
26
|
+
import "./index.less";
|
|
27
|
+
import List from "./List";
|
|
28
|
+
import rjjclIcon from "../../imgs/rjjcl.svg";
|
|
29
|
+
import sjnlIcon from "../../imgs/sjnl.svg";
|
|
30
|
+
import zjcccIcon from "../../imgs/zjccc.svg";
|
|
31
|
+
import zjclIcon from "../../imgs/zjcl.svg";
|
|
32
|
+
import rjjclDark from "../../imgs/rjjcl_dark.svg";
|
|
33
|
+
import sjnlDark from "../../imgs/sjnl_dark.svg";
|
|
34
|
+
import zjcccDark from "../../imgs/zjccc_dark.svg";
|
|
35
|
+
import zjclDark from "../../imgs/zjcl_dark.svg";
|
|
36
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
37
|
+
var Metering = function Metering(props) {
|
|
38
|
+
var id = props.id;
|
|
39
|
+
var _useSettings = useSettings(),
|
|
40
|
+
isDark = _useSettings.isDark,
|
|
41
|
+
sDate = _useSettings.startDate,
|
|
42
|
+
eDate = _useSettings.endDate;
|
|
43
|
+
var _useSetState = useSetState({
|
|
44
|
+
startDate: sDate ? sDate : moment().subtract(30, 'days').format('YYYY-MM-DD'),
|
|
45
|
+
endDate: eDate ? eDate : moment().format('YYYY-MM-DD'),
|
|
46
|
+
tabKey: '1'
|
|
47
|
+
}),
|
|
48
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
49
|
+
state = _useSetState2[0],
|
|
50
|
+
setState = _useSetState2[1];
|
|
51
|
+
var startDate = state.startDate,
|
|
52
|
+
endDate = state.endDate,
|
|
53
|
+
tabKey = state.tabKey;
|
|
54
|
+
var _CommonService$useBas = CommonService.useBaseInfo(id),
|
|
55
|
+
code = _CommonService$useBas.code;
|
|
56
|
+
var _BaseService$useTrend = BaseService.useTrendInfo(code, startDate, endDate),
|
|
57
|
+
trendRes = _BaseService$useTrend.trendRes;
|
|
58
|
+
var _BaseService$useSitua = BaseService.useSituationSummary(code, startDate, endDate),
|
|
59
|
+
situationRes = _BaseService$useSitua.situationRes;
|
|
60
|
+
var handleDateChange = function handleDateChange(start, end) {
|
|
61
|
+
setState({
|
|
62
|
+
startDate: start,
|
|
63
|
+
endDate: end
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
var disabledDate = function disabledDate(current) {
|
|
67
|
+
var sdate = moment(startDate);
|
|
68
|
+
var eDate = moment(endDate);
|
|
69
|
+
var tooLate = sdate && current.diff(sdate, 'month') > 2;
|
|
70
|
+
var tooEarly = eDate && eDate.diff(current, 'month') > 2;
|
|
71
|
+
return !!tooEarly || !!tooLate;
|
|
72
|
+
};
|
|
73
|
+
var rate = ((situationRes === null || situationRes === void 0 ? void 0 : situationRes.dailyInWeight) || 0) / ((situationRes === null || situationRes === void 0 ? void 0 : situationRes.handleAbility) || 1) * 100;
|
|
74
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
75
|
+
className: "metering",
|
|
76
|
+
children: [/*#__PURE__*/_jsx(Row, {
|
|
77
|
+
gutter: [16, 16],
|
|
78
|
+
children: /*#__PURE__*/_jsx(Col, {
|
|
79
|
+
span: 24,
|
|
80
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
81
|
+
title: "\u8FDB\u573A\u6C47\u603B\u5206\u6790",
|
|
82
|
+
onChange: function onChange(key) {
|
|
83
|
+
setState({
|
|
84
|
+
tabKey: key
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
needChange: true,
|
|
88
|
+
dateValue: [moment(startDate), moment(endDate)],
|
|
89
|
+
disabledDate: disabledDate,
|
|
90
|
+
filterType: "rangePicker",
|
|
91
|
+
defaultValue: [moment().subtract(1, 'M'), moment()],
|
|
92
|
+
filterChange: function filterChange(dates) {
|
|
93
|
+
return dates && handleDateChange(moment(dates[0]).format('YYYY-MM-DD'), moment(dates[1]).format('YYYY-MM-DD'));
|
|
94
|
+
},
|
|
95
|
+
children: [tabKey === 'chart' && /*#__PURE__*/_jsxs("div", {
|
|
96
|
+
className: "metering-content-main",
|
|
97
|
+
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
98
|
+
name: "\u603B\u8FDB\u573A\u91CF",
|
|
99
|
+
unit: "\u5428",
|
|
100
|
+
fontType: "blue",
|
|
101
|
+
value: (situationRes === null || situationRes === void 0 ? void 0 : situationRes.inWeight) || 0,
|
|
102
|
+
img: isDark ? zjclDark : zjclIcon
|
|
103
|
+
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
104
|
+
img: isDark ? zjcccDark : zjcccIcon,
|
|
105
|
+
name: "\u603B\u8FDB\u573A\u8F66\u6B21",
|
|
106
|
+
fontType: "green",
|
|
107
|
+
value: (situationRes === null || situationRes === void 0 ? void 0 : situationRes.carNum) || 0,
|
|
108
|
+
unit: "\u6B21"
|
|
109
|
+
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
110
|
+
img: isDark ? rjjclDark : rjjclIcon,
|
|
111
|
+
name: "\u65E5\u5747\u8FDB\u573A\u91CF",
|
|
112
|
+
fontType: "cyan",
|
|
113
|
+
value: (situationRes === null || situationRes === void 0 ? void 0 : situationRes.dailyInWeight) || 0,
|
|
114
|
+
unit: "\u5428"
|
|
115
|
+
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
116
|
+
img: isDark ? sjnlDark : sjnlIcon,
|
|
117
|
+
name: "\u8BBE\u8BA1\u80FD\u529B",
|
|
118
|
+
fontType: "yellow",
|
|
119
|
+
value: (situationRes === null || situationRes === void 0 ? void 0 : situationRes.handleAbility) || 0,
|
|
120
|
+
unit: "\u5428/\u65E5"
|
|
121
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
122
|
+
className: "metering-content-main-avg",
|
|
123
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
124
|
+
className: "metering-content-main-avg-line"
|
|
125
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
126
|
+
className: "metering-content-main-avg-item",
|
|
127
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
128
|
+
children: "\u65E5\u5747\u8D1F\u8377"
|
|
129
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
130
|
+
className: "metering-content-main-avg-value",
|
|
131
|
+
children: [rate === null || rate === void 0 ? void 0 : rate.toFixed(2), /*#__PURE__*/_jsx("span", {
|
|
132
|
+
children: "%"
|
|
133
|
+
})]
|
|
134
|
+
})]
|
|
135
|
+
}), /*#__PURE__*/_jsx(VmProgress.Line, {
|
|
136
|
+
rate: rate
|
|
137
|
+
})]
|
|
138
|
+
})]
|
|
139
|
+
}), tabKey === 'list' && /*#__PURE__*/_jsx(List, {
|
|
140
|
+
code: code,
|
|
141
|
+
startDate: startDate,
|
|
142
|
+
endDate: endDate
|
|
143
|
+
})]
|
|
144
|
+
})
|
|
145
|
+
})
|
|
146
|
+
}), tabKey === 'chart' && /*#__PURE__*/_jsx("div", {
|
|
147
|
+
className: "metering-content-charts",
|
|
148
|
+
children: /*#__PURE__*/_jsxs(Row, {
|
|
149
|
+
gutter: [10, 10],
|
|
150
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
151
|
+
span: 12,
|
|
152
|
+
children: /*#__PURE__*/_jsx(ChartJcqs, _objectSpread({}, trendRes))
|
|
153
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
154
|
+
span: 12,
|
|
155
|
+
children: /*#__PURE__*/_jsx(ChartJccc, {
|
|
156
|
+
code: code,
|
|
157
|
+
startDate: startDate,
|
|
158
|
+
endDate: endDate
|
|
159
|
+
})
|
|
160
|
+
})]
|
|
161
|
+
})
|
|
162
|
+
})]
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
export var MainItem = function MainItem(props) {
|
|
166
|
+
var src = props.src,
|
|
167
|
+
name = props.name,
|
|
168
|
+
value = props.value,
|
|
169
|
+
unit = props.unit;
|
|
170
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
171
|
+
className: "metering-content-main-item",
|
|
172
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
173
|
+
src: src
|
|
174
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
175
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
176
|
+
className: "metering-content-main-item--name",
|
|
177
|
+
children: name
|
|
178
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
179
|
+
className: "metering-content-main-item--value",
|
|
180
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
181
|
+
children: value
|
|
182
|
+
}), unit]
|
|
183
|
+
})]
|
|
184
|
+
})]
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
export default Metering;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.metering {
|
|
2
|
+
&-content {
|
|
3
|
+
&-main {
|
|
4
|
+
padding: 16px;
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-content: center;
|
|
9
|
+
|
|
10
|
+
&-avg {
|
|
11
|
+
width: 280px;
|
|
12
|
+
position: relative;
|
|
13
|
+
padding-left: 16px;
|
|
14
|
+
&-line {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
background-color: var(--bg-border-color2);
|
|
19
|
+
z-index: 1;
|
|
20
|
+
}
|
|
21
|
+
&-item {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
align-items: center;
|
|
25
|
+
color: var(--img-text-color);
|
|
26
|
+
}
|
|
27
|
+
&-value {
|
|
28
|
+
font-family: D-DIN Exp-DINExp, D-DIN Exp-DINExp;
|
|
29
|
+
background: var(--info-b-color);
|
|
30
|
+
font-size: 20px;
|
|
31
|
+
background-clip: text;
|
|
32
|
+
-webkit-text-fill-color: transparent;
|
|
33
|
+
span {
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-charts {
|
|
41
|
+
margin-top: 12px;
|
|
42
|
+
|
|
43
|
+
&-desc {
|
|
44
|
+
padding: 8px;
|
|
45
|
+
background: rgba(255, 135, 70, 0.1);
|
|
46
|
+
border-radius: 8px;
|
|
47
|
+
margin: 12px 0;
|
|
48
|
+
color: #ff8746;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.df-appraisal-content-list-static {
|
|
56
|
+
color: var(--modal-title-color);
|
|
57
|
+
margin-bottom: 12px;
|
|
58
|
+
}
|
|
59
|
+
.grossWeight-color {
|
|
60
|
+
color: var(--list-cell-active1);
|
|
61
|
+
}
|
|
62
|
+
.tareWeight-color {
|
|
63
|
+
color: var(--list-cell-active2);
|
|
64
|
+
}
|
|
65
|
+
.netWeight-color {
|
|
66
|
+
color: var(--list-cell-active3);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { useSetState } from 'ahooks';
|
|
8
|
+
import * as echarts from 'echarts';
|
|
9
|
+
import ReactEcharts from 'echarts-for-react';
|
|
10
|
+
import moment from 'moment';
|
|
11
|
+
import { useEffect } from 'react';
|
|
12
|
+
import { VmEmpty, VmFilter } from "../../../_components";
|
|
13
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
14
|
+
import { BaseService } from "../../api";
|
|
15
|
+
import "./index.less";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
function Jczbqs(props) {
|
|
18
|
+
var _timeSumData$extraDat2, _timeSumData$extraDat3, _timeSumData$values;
|
|
19
|
+
var _useSettings = useSettings(),
|
|
20
|
+
chartFontColor = _useSettings.chartFontColor,
|
|
21
|
+
isDark = _useSettings.isDark;
|
|
22
|
+
var deviceId = props.deviceId,
|
|
23
|
+
deviceName = props.deviceName,
|
|
24
|
+
realtimeRes = props.realtimeRes,
|
|
25
|
+
startDate = props.startDate,
|
|
26
|
+
endDate = props.endDate;
|
|
27
|
+
var _useSetState = useSetState({
|
|
28
|
+
value: ''
|
|
29
|
+
}),
|
|
30
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
31
|
+
state = _useSetState2[0],
|
|
32
|
+
setState = _useSetState2[1];
|
|
33
|
+
var value = state.value;
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
var _realtimeRes$;
|
|
36
|
+
setState({
|
|
37
|
+
value: realtimeRes === null || realtimeRes === void 0 || (_realtimeRes$ = realtimeRes[0]) === null || _realtimeRes$ === void 0 ? void 0 : _realtimeRes$.monitorItemCode
|
|
38
|
+
});
|
|
39
|
+
}, [realtimeRes]);
|
|
40
|
+
var _BaseService$useJczbq = BaseService.useJczbqsfx(value, deviceId, moment(startDate).format('YYYY-MM-DD 00:00:00'), moment(endDate).format('YYYY-MM-DD 23:59:59')),
|
|
41
|
+
timeSumData = _BaseService$useJczbq.timeSumData;
|
|
42
|
+
var option = {
|
|
43
|
+
color: ['#1890FF'],
|
|
44
|
+
tooltip: {
|
|
45
|
+
trigger: 'axis',
|
|
46
|
+
formatter: function formatter(params) {
|
|
47
|
+
var _timeSumData$extraDat;
|
|
48
|
+
return params[0].name + '<br/>' + params[0].seriesName + ': ' + params[0].value + (timeSumData === null || timeSumData === void 0 || (_timeSumData$extraDat = timeSumData.extraData) === null || _timeSumData$extraDat === void 0 || (_timeSumData$extraDat = _timeSumData$extraDat[0]) === null || _timeSumData$extraDat === void 0 ? void 0 : _timeSumData$extraDat.unit) || '';
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
legend: {
|
|
52
|
+
show: false
|
|
53
|
+
},
|
|
54
|
+
grid: {
|
|
55
|
+
top: 28,
|
|
56
|
+
left: 56,
|
|
57
|
+
right: 42,
|
|
58
|
+
bottom: 32,
|
|
59
|
+
containLabel: true
|
|
60
|
+
},
|
|
61
|
+
xAxis: {
|
|
62
|
+
type: 'category',
|
|
63
|
+
boundaryGap: false,
|
|
64
|
+
axisTick: {
|
|
65
|
+
show: false
|
|
66
|
+
},
|
|
67
|
+
axisLabel: {
|
|
68
|
+
color: isDark ? '#fff' : chartFontColor
|
|
69
|
+
},
|
|
70
|
+
data: (timeSumData === null || timeSumData === void 0 ? void 0 : timeSumData.names) || []
|
|
71
|
+
},
|
|
72
|
+
yAxis: {
|
|
73
|
+
name: (timeSumData === null || timeSumData === void 0 || (_timeSumData$extraDat2 = timeSumData.extraData) === null || _timeSumData$extraDat2 === void 0 || (_timeSumData$extraDat2 = _timeSumData$extraDat2[0]) === null || _timeSumData$extraDat2 === void 0 ? void 0 : _timeSumData$extraDat2.unit) || '',
|
|
74
|
+
type: 'value',
|
|
75
|
+
axisTick: {
|
|
76
|
+
show: false
|
|
77
|
+
},
|
|
78
|
+
min: 0,
|
|
79
|
+
nameTextStyle: {
|
|
80
|
+
//y轴上方单位的颜色
|
|
81
|
+
color: isDark ? '#fff' : chartFontColor
|
|
82
|
+
},
|
|
83
|
+
axisLabel: {
|
|
84
|
+
color: isDark ? '#fff' : chartFontColor
|
|
85
|
+
},
|
|
86
|
+
splitLine: {
|
|
87
|
+
lineStyle: {
|
|
88
|
+
type: 'dashed',
|
|
89
|
+
color: 'rgba(151,151,151,0.28)'
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
series: [{
|
|
94
|
+
name: timeSumData === null || timeSumData === void 0 || (_timeSumData$extraDat3 = timeSumData.extraData) === null || _timeSumData$extraDat3 === void 0 || (_timeSumData$extraDat3 = _timeSumData$extraDat3[0]) === null || _timeSumData$extraDat3 === void 0 ? void 0 : _timeSumData$extraDat3.monitorItemName,
|
|
95
|
+
type: 'line',
|
|
96
|
+
data: timeSumData !== null && timeSumData !== void 0 && timeSumData.values ? timeSumData.values[0] : [],
|
|
97
|
+
smooth: true,
|
|
98
|
+
areaStyle: {
|
|
99
|
+
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
|
|
100
|
+
offset: 0,
|
|
101
|
+
color: isDark ? 'rgba(0,157,255,0.1)' : 'rgba(22, 119, 255, 0.10)'
|
|
102
|
+
}, {
|
|
103
|
+
offset: 0.5,
|
|
104
|
+
color: isDark ? 'rgba(0,157,255,0.3)' : 'rgba(22, 119, 255, 0.30)'
|
|
105
|
+
}, {
|
|
106
|
+
offset: 1,
|
|
107
|
+
color: isDark ? 'rgba(0,157,255,0.75)' : 'rgba(22, 119, 255, 0.75)'
|
|
108
|
+
}])
|
|
109
|
+
}
|
|
110
|
+
}],
|
|
111
|
+
dataZoom: [{
|
|
112
|
+
// 这个dataZoom组件,默认控制x轴。
|
|
113
|
+
type: 'slider',
|
|
114
|
+
// 这个 dataZoom 组件是 slider 型 dataZoom 组件
|
|
115
|
+
start: 0,
|
|
116
|
+
// 左边在 10% 的位置。
|
|
117
|
+
end: 100,
|
|
118
|
+
// 右边在 60% 的位置。
|
|
119
|
+
borderColor: isDark ? 'rgba(0, 157, 255, 0.5)' : 'rgba(22, 119, 255, 0.5)',
|
|
120
|
+
handleSize: '150%',
|
|
121
|
+
height: 16,
|
|
122
|
+
handleStyle: {
|
|
123
|
+
color: '#fff',
|
|
124
|
+
shadowBlur: 3,
|
|
125
|
+
shadowColor: 'rgba(0, 0, 0, 0.4)',
|
|
126
|
+
shadowOffsetX: 2,
|
|
127
|
+
shadowOffsetY: 2
|
|
128
|
+
},
|
|
129
|
+
showDataShadow: false,
|
|
130
|
+
showDetail: false,
|
|
131
|
+
backgroundColor: isDark ? 'rgba(0, 157, 255, 0.5)' : 'rgba(22, 119, 255, 0.2)',
|
|
132
|
+
bottom: 10
|
|
133
|
+
}]
|
|
134
|
+
};
|
|
135
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
136
|
+
className: "df-condition-trend",
|
|
137
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
138
|
+
className: "df-condition-trend-head",
|
|
139
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
140
|
+
children: deviceName || ''
|
|
141
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
142
|
+
value: value,
|
|
143
|
+
onChange: function onChange(val) {
|
|
144
|
+
setState({
|
|
145
|
+
value: val
|
|
146
|
+
});
|
|
147
|
+
},
|
|
148
|
+
options: realtimeRes === null || realtimeRes === void 0 ? void 0 : realtimeRes.map(function (item) {
|
|
149
|
+
return {
|
|
150
|
+
value: item.monitorItemCode,
|
|
151
|
+
label: item.monitorItemName
|
|
152
|
+
};
|
|
153
|
+
}),
|
|
154
|
+
style: {
|
|
155
|
+
width: 150
|
|
156
|
+
},
|
|
157
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
158
|
+
allowClear: false
|
|
159
|
+
})]
|
|
160
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
161
|
+
style: {
|
|
162
|
+
height: 414,
|
|
163
|
+
width: '100%'
|
|
164
|
+
},
|
|
165
|
+
children: timeSumData !== null && timeSumData !== void 0 && (_timeSumData$values = timeSumData.values) !== null && _timeSumData$values !== void 0 && _timeSumData$values.length ? /*#__PURE__*/_jsx(ReactEcharts, {
|
|
166
|
+
option: option,
|
|
167
|
+
notMerge: true,
|
|
168
|
+
lazyUpdate: true,
|
|
169
|
+
style: {
|
|
170
|
+
height: '100%',
|
|
171
|
+
width: '100%'
|
|
172
|
+
}
|
|
173
|
+
}) : /*#__PURE__*/_jsx(VmEmpty, {
|
|
174
|
+
type: "NO_CHART"
|
|
175
|
+
})
|
|
176
|
+
})]
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
export default Jczbqs;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
+
/**
|
|
14
|
+
* 计量-工况信息
|
|
15
|
+
*/
|
|
16
|
+
import moment from 'moment';
|
|
17
|
+
import { VmTable } from "../../../_components";
|
|
18
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
19
|
+
import { BaseService } from "../../api";
|
|
20
|
+
import "./index.less";
|
|
21
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
var WorkCondition = function WorkCondition(props) {
|
|
23
|
+
var _realtimeRes$map, _timeSumData$names, _timeSumData$extraDat;
|
|
24
|
+
var _useSettings = useSettings(),
|
|
25
|
+
tabPosition = _useSettings.tabPosition;
|
|
26
|
+
var startDate = props.startDate,
|
|
27
|
+
endDate = props.endDate,
|
|
28
|
+
deviceId = props.deviceId;
|
|
29
|
+
var _BaseService$useRealt = BaseService.useRealtime(deviceId),
|
|
30
|
+
realtimeRes = _BaseService$useRealt.realtimeRes;
|
|
31
|
+
var _BaseService$useJczbq = BaseService.useJczbqsfx(realtimeRes === null || realtimeRes === void 0 || (_realtimeRes$map = realtimeRes.map(function (ele) {
|
|
32
|
+
return ele.monitorItemCode;
|
|
33
|
+
})) === null || _realtimeRes$map === void 0 ? void 0 : _realtimeRes$map.join(','), deviceId, moment(startDate).format('YYYY-MM-DD 00:00:00'), moment(endDate).format('YYYY-MM-DD 23:59:59')),
|
|
34
|
+
timeSumData = _BaseService$useJczbq.timeSumData;
|
|
35
|
+
var data = [];
|
|
36
|
+
if (!(timeSumData !== null && timeSumData !== void 0 && timeSumData.names) || (timeSumData === null || timeSumData === void 0 || (_timeSumData$names = timeSumData.names) === null || _timeSumData$names === void 0 ? void 0 : _timeSumData$names.length) < 1) {
|
|
37
|
+
data = [];
|
|
38
|
+
} else {
|
|
39
|
+
var extraData = timeSumData.extraData,
|
|
40
|
+
names = timeSumData.names,
|
|
41
|
+
values = timeSumData.values;
|
|
42
|
+
names.forEach(function (name, index) {
|
|
43
|
+
var obj = {};
|
|
44
|
+
extraData === null || extraData === void 0 || extraData.forEach(function (item, idx) {
|
|
45
|
+
obj[item.monitorItemName] = values[idx][index];
|
|
46
|
+
});
|
|
47
|
+
data.push(_objectSpread({
|
|
48
|
+
time: name
|
|
49
|
+
}, obj));
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
var columns = [].concat(_toConsumableArray((timeSumData === null || timeSumData === void 0 || (_timeSumData$extraDat = timeSumData.extraData) === null || _timeSumData$extraDat === void 0 ? void 0 : _timeSumData$extraDat.map(function (ele) {
|
|
53
|
+
return {
|
|
54
|
+
title: ele.unit ? "".concat(ele.monitorItemName, "(").concat(ele.unit, ")") : "".concat(ele.monitorItemName),
|
|
55
|
+
dataIndex: ele.monitorItemName,
|
|
56
|
+
key: ele.monitorItemName,
|
|
57
|
+
render: function render(text) {
|
|
58
|
+
return text || '-';
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
})) || []), [{
|
|
62
|
+
title: '数据采集时间',
|
|
63
|
+
dataIndex: 'time',
|
|
64
|
+
key: 'time',
|
|
65
|
+
sorter: function sorter(a, b) {
|
|
66
|
+
return moment(a.time).valueOf() - moment(b.time).valueOf();
|
|
67
|
+
},
|
|
68
|
+
render: function render(text) {
|
|
69
|
+
return text || '-';
|
|
70
|
+
}
|
|
71
|
+
}]);
|
|
72
|
+
var tableProps = {
|
|
73
|
+
height: tabPosition === 'top' ? 424 : 462,
|
|
74
|
+
paganitation: false,
|
|
75
|
+
dataSource: data || []
|
|
76
|
+
};
|
|
77
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
78
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
79
|
+
columns: columns,
|
|
80
|
+
rowKey: "time"
|
|
81
|
+
}, tableProps))
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
export default WorkCondition;
|