@vtx/modals2 5.0.3 → 5.0.5
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 +4 -3
- package/lib/_components/vm-bar-charts/index.js +10 -6
- package/lib/_components/vm-calendar/style/index.less +4 -7
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-extra-tab/style/index.less +6 -3
- package/lib/_components/vm-factor/index.js +10 -5
- package/lib/_components/vm-factor/style/index.less +5 -1
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/style/index.less +2 -1
- package/lib/_components/vm-info-collection/index.js +2 -2
- package/lib/_components/vm-line-charts/index.js +1 -1
- package/lib/_components/vm-map/index.js +5 -5
- package/lib/_components/vm-pie-charts/index.js +9 -5
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +46 -0
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +44 -0
- package/lib/_components/vm-repair-maintain/RmRecord.js +157 -0
- package/lib/_components/vm-repair-maintain/RmType.js +32 -0
- package/lib/_components/vm-repair-maintain/api.js +92 -0
- package/lib/_components/vm-repair-maintain/imgs/amount.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/amount_light.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count_light.png +0 -0
- package/lib/_components/vm-repair-maintain/index.js +56 -0
- package/lib/_components/vm-repair-maintain/style/index.js +1 -0
- package/lib/_components/vm-repair-maintain/style/index.less +25 -0
- package/lib/_components/vm-table/index.js +7 -4
- package/lib/_components/vm-table/style/index.less +3 -2
- package/lib/_components/vm-tag/style/index.less +10 -0
- package/lib/_components/vm-title/index.js +3 -2
- package/lib/_components/vm-video/HistoryGrid.js +52 -0
- package/lib/_components/vm-video/RealtimeGrid.js +8 -4
- package/lib/_components/vm-video/index.js +298 -112
- package/lib/_components/vm-video/index.less +10 -1
- package/lib/_components/vm-wrapper/index.js +32 -10
- package/lib/_components/vm-wrapper/style/index.less +28 -0
- package/lib/_service/index.js +5 -0
- package/lib/_util/index.js +0 -5
- package/lib/index.js +7 -2
- package/lib/style/index.less +2 -6
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -1
- package/lib/vtx-base-modal/Header/index.js +3 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-base-modal/index.js +11 -5
- package/lib/vtx-car-modal/api.js +4 -3
- package/lib/vtx-car-modal/components/Info/index.js +2 -1
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +5 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +9 -3
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +134 -103
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +210 -161
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +39 -16
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
- package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
- package/lib/vtx-car-modal/content/index.js +2 -1
- package/lib/vtx-car-modal/imgs/butter.png +0 -0
- package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/track.png +0 -0
- package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/water.png +0 -0
- package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +24 -4
- package/lib/vtx-cc-cp-modal/api.js +381 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +120 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +103 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +75 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +58 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +142 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +63 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +16 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +168 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +118 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +111 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +3 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +46 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +81 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +78 -0
- package/lib/vtx-cc-cp-modal/components/index.js +7 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/index.js +119 -0
- package/lib/vtx-cc-cp-modal/style/index.js +1 -0
- package/lib/vtx-cc-cp-modal/style/index.less +13 -0
- package/lib/vtx-cc-unit-modal/api.js +361 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +69 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +66 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +60 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +91 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +118 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -0
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +129 -0
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +95 -0
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +126 -0
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +149 -0
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +127 -0
- package/lib/vtx-cc-unit-modal/components/index.js +7 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/index.js +137 -0
- package/lib/vtx-cc-unit-modal/style/index.js +1 -0
- package/lib/vtx-cc-unit-modal/style/index.less +14 -0
- package/lib/vtx-cp-modal/api.js +3 -3
- package/lib/vtx-cp-modal/index.js +4 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.js +3 -2
- package/lib/vtx-default-modal/index.js +10 -8
- package/lib/vtx-device-modal/api.js +531 -0
- package/lib/vtx-device-modal/components/BaseInfo/index.js +140 -0
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +279 -0
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +610 -0
- package/lib/vtx-device-modal/components/DataAnalysis/TabsList.js +23 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +24 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -0
- package/lib/vtx-device-modal/components/index.js +3 -0
- package/lib/vtx-device-modal/config.js +21 -0
- package/lib/vtx-device-modal/imgs/current.png +0 -0
- package/lib/vtx-device-modal/imgs/current_dark.png +0 -0
- package/lib/vtx-device-modal/imgs/history.png +0 -0
- package/lib/vtx-device-modal/imgs/history_dark.png +0 -0
- package/lib/vtx-device-modal/index.js +96 -0
- package/lib/vtx-device-modal/style/index.js +1 -0
- package/lib/vtx-device-modal/style/index.less +1 -0
- package/lib/vtx-df-modal/index.js +11 -11
- package/lib/vtx-housing-estate-modal/api.js +559 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
- package/lib/vtx-housing-estate-modal/components/index.js +5 -0
- package/lib/vtx-housing-estate-modal/config.js +77 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
- package/lib/vtx-housing-estate-modal/index.js +108 -0
- package/lib/vtx-housing-estate-modal/style/index.js +4 -0
- package/lib/vtx-housing-estate-modal/style/index.less +1 -0
- package/lib/vtx-kh-modal/api2.js +178 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +197 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +101 -0
- package/lib/vtx-kh-modal/components/Record/index.js +204 -0
- package/lib/vtx-kh-modal/components/Record/index.less +7 -0
- package/lib/vtx-kh-modal/components/index.js +3 -0
- package/lib/vtx-kh-modal/imgs/count.png +0 -0
- package/lib/vtx-kh-modal/imgs/count_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/score.png +0 -0
- package/lib/vtx-kh-modal/imgs/score_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract_light.png +0 -0
- package/lib/vtx-kh-modal/index.js +46 -0
- package/lib/vtx-kh-modal/style/index.js +4 -0
- package/lib/vtx-kh-modal/style/index.less +1 -0
- package/lib/vtx-restaurant-modal/api.js +297 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +47 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +31 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +36 -0
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +41 -0
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +69 -0
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +64 -0
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +68 -0
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +87 -0
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +61 -0
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +60 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.js +74 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +171 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-restaurant-modal/components/Collection/index.js +86 -0
- package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +111 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +299 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +198 -0
- package/lib/vtx-restaurant-modal/components/index.js +7 -0
- package/lib/vtx-restaurant-modal/config.js +283 -0
- package/lib/vtx-restaurant-modal/imgs/csl.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/csl_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-restaurant-modal/index.js +168 -0
- package/lib/vtx-restaurant-modal/style/index.js +1 -0
- package/lib/vtx-restaurant-modal/style/index.less +13 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -218
- package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +4 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +0 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +4 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +20 -6
- package/lib/vtx-staff-modal/index.js +4 -1
- package/lib/vtx-tfd-modal/api.js +22 -27
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +100 -59
- package/lib/vtx-tfd-modal/components/BaseInfo/index.less +5 -0
- package/lib/vtx-zg-modal/api.js +107 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +286 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +124 -0
- package/lib/vtx-zg-modal/components/index.js +1 -0
- package/lib/vtx-zg-modal/imgs/dot.png +0 -0
- package/lib/vtx-zg-modal/imgs/dot_done.png +0 -0
- package/lib/vtx-zg-modal/index.js +42 -0
- package/lib/vtx-zg-modal/style/index.js +3 -0
- package/lib/vtx-zg-modal/style/index.less +1 -0
- package/lib/vtx-zzz-modal/index.js +10 -10
- package/package.json +1 -1
- package/lib/resources/jessibuca/decoder.js +0 -3839
- package/lib/resources/jessibuca/decoder.wasm +0 -0
- package/lib/resources/jessibuca/jessibuca.js +0 -5350
- package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
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."); }
|
|
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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import ReactEcharts from 'echarts-for-react';
|
|
8
|
+
import groupBy from 'lodash/groupBy';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
var xAxis = _toConsumableArray(new Array(24)).map(function (_, index) {
|
|
11
|
+
return add0(index);
|
|
12
|
+
});
|
|
13
|
+
function add0(num) {
|
|
14
|
+
return num >= 10 ? num.toString() : "0".concat(num);
|
|
15
|
+
}
|
|
16
|
+
function transferData(data) {
|
|
17
|
+
var chartData = [];
|
|
18
|
+
var dataGroupByDate = groupBy(data, 'date');
|
|
19
|
+
var count = 0;
|
|
20
|
+
// eslint-disable-next-line guard-for-in
|
|
21
|
+
for (var key in dataGroupByDate) {
|
|
22
|
+
dataGroupByDate[key].forEach(function (item, index) {
|
|
23
|
+
chartData.push([index, count, item.value]);
|
|
24
|
+
});
|
|
25
|
+
count++;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
yAxis: Object.keys(dataGroupByDate).map(function (item) {
|
|
29
|
+
return item.substring(5);
|
|
30
|
+
}),
|
|
31
|
+
chartData: chartData
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
var getGaugeOption = function getGaugeOption(_ref) {
|
|
35
|
+
var _ref$data = _ref.data,
|
|
36
|
+
data = _ref$data === void 0 ? [] : _ref$data;
|
|
37
|
+
var _transferData = transferData(data),
|
|
38
|
+
yAxis = _transferData.yAxis,
|
|
39
|
+
chartData = _transferData.chartData;
|
|
40
|
+
var max = Math.max.apply(Math, _toConsumableArray(chartData.map(function (item) {
|
|
41
|
+
return item[2];
|
|
42
|
+
})));
|
|
43
|
+
if (!(chartData !== null && chartData !== void 0 && chartData.length)) return {};
|
|
44
|
+
return {
|
|
45
|
+
tooltip: {
|
|
46
|
+
position: 'top',
|
|
47
|
+
formatter: function formatter(params) {
|
|
48
|
+
var value = params.value,
|
|
49
|
+
marker = params.marker;
|
|
50
|
+
var date = yAxis[value[1]];
|
|
51
|
+
var hour = "".concat(add0(value[0]), ":00-").concat(add0(value[0] + 1), ":00");
|
|
52
|
+
return "<div>".concat(date, " ").concat(hour, "</div><div>").concat(marker, " \u6295\u653E\u6B21\u6570\uFF1A").concat(value[2], "\u6B21</div>");
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
grid: {
|
|
56
|
+
top: 50,
|
|
57
|
+
bottom: 0,
|
|
58
|
+
right: 0,
|
|
59
|
+
left: 0,
|
|
60
|
+
containLabel: true
|
|
61
|
+
},
|
|
62
|
+
xAxis: {
|
|
63
|
+
type: 'category',
|
|
64
|
+
data: xAxis,
|
|
65
|
+
splitArea: {
|
|
66
|
+
show: true
|
|
67
|
+
},
|
|
68
|
+
axisLabel: {
|
|
69
|
+
interval: 0,
|
|
70
|
+
color: '#fff'
|
|
71
|
+
},
|
|
72
|
+
axisTick: {
|
|
73
|
+
show: false
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
yAxis: {
|
|
77
|
+
type: 'category',
|
|
78
|
+
data: yAxis,
|
|
79
|
+
splitArea: {
|
|
80
|
+
show: true
|
|
81
|
+
},
|
|
82
|
+
axisLabel: {
|
|
83
|
+
color: '#fff',
|
|
84
|
+
interval: 0
|
|
85
|
+
},
|
|
86
|
+
axisTick: {
|
|
87
|
+
show: false
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
visualMap: {
|
|
91
|
+
// type: 'piecewise',
|
|
92
|
+
min: 0,
|
|
93
|
+
max: max,
|
|
94
|
+
calculable: true,
|
|
95
|
+
orient: 'horizontal',
|
|
96
|
+
left: 'center',
|
|
97
|
+
top: 0,
|
|
98
|
+
inRange: {
|
|
99
|
+
color: ['rgba(34,154,239,0.5)', '#1CC10D', '#009DFF', '#FF9500', '#F5222D']
|
|
100
|
+
},
|
|
101
|
+
textStyle: {
|
|
102
|
+
color: '#fff'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
series: [{
|
|
106
|
+
name: '24h分布',
|
|
107
|
+
type: 'heatmap',
|
|
108
|
+
data: chartData,
|
|
109
|
+
label: {
|
|
110
|
+
show: true
|
|
111
|
+
},
|
|
112
|
+
emphasis: {
|
|
113
|
+
itemStyle: {
|
|
114
|
+
shadowBlur: 10,
|
|
115
|
+
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}]
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
var Distribute = function Distribute(props) {
|
|
122
|
+
return /*#__PURE__*/_jsx(ReactEcharts, {
|
|
123
|
+
option: getGaugeOption(props),
|
|
124
|
+
style: {
|
|
125
|
+
height: '100%'
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
export default Distribute;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 { message } from 'antd';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import { useState } from 'react';
|
|
10
|
+
import { VmFilter, VmTitle } from "../../../_components";
|
|
11
|
+
import { alarmService } from "../../api";
|
|
12
|
+
import Distribute from "./Distribute";
|
|
13
|
+
import "./index.less";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
var FSCSFB = function FSCSFB(_ref) {
|
|
16
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
17
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
18
|
+
id = _ref.id;
|
|
19
|
+
var _useState = useState([dayjs().subtract(6, 'days'), dayjs()]),
|
|
20
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21
|
+
times = _useState2[0],
|
|
22
|
+
setTimes = _useState2[1];
|
|
23
|
+
var sumByHour = alarmService.useAiAlarmGroupByTypeAndHourOneWeek({
|
|
24
|
+
housingEstateId: id,
|
|
25
|
+
beginTime: times[0].format('YYYY-MM-DD 00:00:00'),
|
|
26
|
+
endTime: times[1].format('YYYY-MM-DD 23:59:59'),
|
|
27
|
+
businessPackage: 'LANDING'
|
|
28
|
+
});
|
|
29
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
30
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
31
|
+
className: "".concat(classPrefix, "-row"),
|
|
32
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
33
|
+
title: "\u843D\u5730\u5305\u53D1\u751F\u6B21\u6570\u4E00\u5468\u5206\u5E03",
|
|
34
|
+
border: false
|
|
35
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMRangePicker, {
|
|
36
|
+
value: times,
|
|
37
|
+
onChange: function onChange(date) {
|
|
38
|
+
if (date[1].diff(date[0], 'd') > 7) {
|
|
39
|
+
message.warning('时间跨度不能超过7天');
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
setTimes(date);
|
|
43
|
+
}
|
|
44
|
+
})]
|
|
45
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
46
|
+
style: {
|
|
47
|
+
height: '300px'
|
|
48
|
+
},
|
|
49
|
+
children: /*#__PURE__*/_jsx(Distribute, {
|
|
50
|
+
data: (sumByHour === null || sumByHour === void 0 ? void 0 : sumByHour.filter(function (item) {
|
|
51
|
+
return item.date;
|
|
52
|
+
}).map(function (item) {
|
|
53
|
+
var _split = (item.date || '').split(' '),
|
|
54
|
+
_split2 = _slicedToArray(_split, 2),
|
|
55
|
+
date = _split2[0],
|
|
56
|
+
hour = _split2[1];
|
|
57
|
+
return {
|
|
58
|
+
date: date,
|
|
59
|
+
hour: hour,
|
|
60
|
+
value: item.throwCount || 0
|
|
61
|
+
};
|
|
62
|
+
})) || []
|
|
63
|
+
})
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
export default FSCSFB;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 dayjs from 'dayjs';
|
|
8
|
+
import { sumBy } from 'lodash';
|
|
9
|
+
import { useState } from 'react';
|
|
10
|
+
import { VmFilter, VmPieCharts, VmTitle } from "../../../_components";
|
|
11
|
+
import { overViewService } from "../../api";
|
|
12
|
+
import "./index.less";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var FSSD = function FSSD(_ref) {
|
|
15
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
16
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
17
|
+
id = _ref.id;
|
|
18
|
+
var _useState = useState(dayjs()),
|
|
19
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
20
|
+
times = _useState2[0],
|
|
21
|
+
setTimes = _useState2[1];
|
|
22
|
+
|
|
23
|
+
// 事件类型分布
|
|
24
|
+
var alarmByTypeData = overViewService.useAlarmSumByType({
|
|
25
|
+
housingEstateId: id,
|
|
26
|
+
businessPackage: 'LANDING',
|
|
27
|
+
beginTime: times.format('YYYY-MM-DD 00:00:00'),
|
|
28
|
+
endTime: times.format('YYYY-MM-DD 23:59:59')
|
|
29
|
+
});
|
|
30
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
31
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
32
|
+
className: "".concat(classPrefix, "-row"),
|
|
33
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
34
|
+
title: "\u843D\u5730\u5305\u53D1\u751F\u65F6\u6BB5\u5BF9\u6BD4",
|
|
35
|
+
border: false
|
|
36
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMDatePicker, {
|
|
37
|
+
value: times,
|
|
38
|
+
onChange: function onChange(value) {
|
|
39
|
+
return setTimes(value);
|
|
40
|
+
}
|
|
41
|
+
})]
|
|
42
|
+
}), /*#__PURE__*/_jsx(VmPieCharts, {
|
|
43
|
+
dataList: (alarmByTypeData === null || alarmByTypeData === void 0 ? void 0 : alarmByTypeData.map(function (ele) {
|
|
44
|
+
return {
|
|
45
|
+
name: ele.alarmTypeName || '-',
|
|
46
|
+
value: ele.count || 0,
|
|
47
|
+
day: ele.day || ''
|
|
48
|
+
};
|
|
49
|
+
})) || [],
|
|
50
|
+
title: "\u603B\u6570(\u6B21)",
|
|
51
|
+
total: sumBy(alarmByTypeData, 'count'),
|
|
52
|
+
name: "\u843D\u5730\u5305\u53D1\u751F\u65F6\u6BB5"
|
|
53
|
+
// loading={loading}
|
|
54
|
+
,
|
|
55
|
+
unit: "\u6B21",
|
|
56
|
+
height: 150,
|
|
57
|
+
legendConfig: {
|
|
58
|
+
right: '12%'
|
|
59
|
+
},
|
|
60
|
+
innerRadius: ['65%', '85%'],
|
|
61
|
+
outerRadius: ['85%', '95%']
|
|
62
|
+
})]
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
export default FSSD;
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
import { message } from 'antd';
|
|
14
|
+
import dayjs from 'dayjs';
|
|
15
|
+
import { useState } from 'react';
|
|
16
|
+
import { VmFilter, VmLineCharts, VmTitle } from "../../../_components";
|
|
17
|
+
import { overViewService } from "../../api";
|
|
18
|
+
import { transferLineData } from "../OverView/RightBottom";
|
|
19
|
+
import "./index.less";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
var FSCSFB = function FSCSFB(_ref) {
|
|
22
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
23
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
24
|
+
id = _ref.id;
|
|
25
|
+
var _useState = useState([dayjs().subtract(6, 'days'), dayjs()]),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
times = _useState2[0],
|
|
28
|
+
setTimes = _useState2[1];
|
|
29
|
+
var alarmByDateData = overViewService.useAlarmSumByDate({
|
|
30
|
+
housingEstateId: id,
|
|
31
|
+
businessPackage: 'LANDING',
|
|
32
|
+
beginTime: times[0].format('YYYY-MM-DD 00:00:00'),
|
|
33
|
+
endTime: times[1].format('YYYY-MM-DD 23:59:59')
|
|
34
|
+
});
|
|
35
|
+
var data = transferLineData(alarmByDateData === null || alarmByDateData === void 0 ? void 0 : alarmByDateData.map(function (ele) {
|
|
36
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
37
|
+
name: ele.alarmTypeName
|
|
38
|
+
});
|
|
39
|
+
}));
|
|
40
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
41
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
42
|
+
className: "".concat(classPrefix, "-row"),
|
|
43
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
44
|
+
title: "\u843D\u5730\u5305\u53D1\u751F\u6B21\u6570\u4E00\u5468\u5206\u5E03",
|
|
45
|
+
border: false
|
|
46
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMRangePicker, {
|
|
47
|
+
value: times,
|
|
48
|
+
onChange: function onChange(date) {
|
|
49
|
+
if (date[1].diff(date[0], 'd') > 7) {
|
|
50
|
+
message.warning('时间跨度不能超过7天');
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
setTimes(date);
|
|
54
|
+
}
|
|
55
|
+
})]
|
|
56
|
+
}), /*#__PURE__*/_jsx(VmLineCharts, {
|
|
57
|
+
xAxis: (data === null || data === void 0 ? void 0 : data.xAxis) || [],
|
|
58
|
+
dataList: data === null || data === void 0 ? void 0 : data.dataList,
|
|
59
|
+
height: "300px",
|
|
60
|
+
unit: "\u6B21",
|
|
61
|
+
legendOption: {
|
|
62
|
+
top: 18
|
|
63
|
+
}
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
export default FSCSFB;
|
|
@@ -0,0 +1,109 @@
|
|
|
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 { Progress } from 'antd';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import { useState } from 'react';
|
|
10
|
+
import { VmFilter, VmTag, VmTitle } from "../../../_components";
|
|
11
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
12
|
+
import { overViewService } from "../../api";
|
|
13
|
+
import { getPercent } from "../OverView/RightBottom";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
var GDCLXL = function GDCLXL(_ref) {
|
|
17
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
18
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
19
|
+
id = _ref.id;
|
|
20
|
+
var _useSettings = useSettings(),
|
|
21
|
+
isDark = _useSettings.isDark;
|
|
22
|
+
var _useState = useState(dayjs()),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
date = _useState2[0],
|
|
25
|
+
setDate = _useState2[1];
|
|
26
|
+
// 工单处理效率
|
|
27
|
+
var efficiencyData = overViewService.useResolveEfficiency({
|
|
28
|
+
housingEstateId: id,
|
|
29
|
+
businessPackage: 'LANDING',
|
|
30
|
+
beginTime: date.format('YYYY-MM-DD 00:00:00'),
|
|
31
|
+
endTime: date.format('YYYY-MM-DD 23:59:59')
|
|
32
|
+
});
|
|
33
|
+
var strokeColor = {
|
|
34
|
+
alarm: {
|
|
35
|
+
'0%': '#FF575F',
|
|
36
|
+
'100%': '#F5222D'
|
|
37
|
+
},
|
|
38
|
+
normal: {
|
|
39
|
+
'0%': '#02E574',
|
|
40
|
+
'100%': '#0FB964'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
44
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
45
|
+
className: "".concat(classPrefix, "-row"),
|
|
46
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
47
|
+
title: "\u5DE5\u5355\u5904\u7406\u6548\u7387",
|
|
48
|
+
border: false
|
|
49
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMDatePicker, {
|
|
50
|
+
value: date,
|
|
51
|
+
onChange: function onChange(value) {
|
|
52
|
+
return setDate(value);
|
|
53
|
+
}
|
|
54
|
+
})]
|
|
55
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
56
|
+
className: "".concat(classPrefix, "-progress"),
|
|
57
|
+
children: [{
|
|
58
|
+
name: 'AI 工单关闭率',
|
|
59
|
+
value: getPercent(efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.closeRate),
|
|
60
|
+
avg: getPercent(efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.closeRateAverage),
|
|
61
|
+
unit: '%'
|
|
62
|
+
}, {
|
|
63
|
+
name: 'AI 工单处理时长',
|
|
64
|
+
value: ((efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.resolveMinute) || 0) / ((efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.resolveMinuteAverage) || 1),
|
|
65
|
+
avg: (efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.resolveMinuteAverage) || 0,
|
|
66
|
+
unit: '分'
|
|
67
|
+
}, {
|
|
68
|
+
name: 'AI 工单及时关闭率',
|
|
69
|
+
value: getPercent(efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.closeInTimeRate),
|
|
70
|
+
avg: getPercent(efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.closeInTimeRateAverage),
|
|
71
|
+
unit: '%'
|
|
72
|
+
}].map(function (ele, index) {
|
|
73
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
74
|
+
className: "".concat(classPrefix, "-progress-item"),
|
|
75
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
76
|
+
children: ele.name
|
|
77
|
+
}), /*#__PURE__*/_jsx(Progress, {
|
|
78
|
+
type: "dashboard",
|
|
79
|
+
percent: ele.value,
|
|
80
|
+
width: 120,
|
|
81
|
+
strokeWidth: 10,
|
|
82
|
+
gapDegree: 180,
|
|
83
|
+
strokeLinecap: "butt",
|
|
84
|
+
strokeColor: strokeColor[ele.value > ele.avg ? 'alarm' : 'normal'],
|
|
85
|
+
trailColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
|
|
86
|
+
showInfo: false
|
|
87
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
88
|
+
className: "".concat(classPrefix, "-progress-desc"),
|
|
89
|
+
children: ["\u5747\u503C", ele.avg, ele.unit, /*#__PURE__*/_jsxs("div", {
|
|
90
|
+
className: ele.value < ele.avg ? 'white_red' : 'white_green',
|
|
91
|
+
style: {
|
|
92
|
+
fontSize: 16
|
|
93
|
+
},
|
|
94
|
+
children: [ele.value, ele.unit]
|
|
95
|
+
}), /*#__PURE__*/_jsx(VmTag, {
|
|
96
|
+
type: ele.value < ele.avg ? 'red' : 'green',
|
|
97
|
+
title: "".concat(ele.value < ele.avg ? '差' : '优', "\u4E8E\u5747\u503C"),
|
|
98
|
+
style: {
|
|
99
|
+
border: 'unset',
|
|
100
|
+
marginTop: 12
|
|
101
|
+
}
|
|
102
|
+
})]
|
|
103
|
+
})]
|
|
104
|
+
}, index);
|
|
105
|
+
})
|
|
106
|
+
})]
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
export default GDCLXL;
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { Col, Row, Select } from 'antd';
|
|
8
|
+
import { useState } from 'react';
|
|
9
|
+
import { VmWrapper } from "../../../_components";
|
|
10
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
11
|
+
import { alarmService } from "../../api";
|
|
12
|
+
import FSCSFB from "./FSCSFB";
|
|
13
|
+
import FSSD from "./FSSD";
|
|
14
|
+
import GDCLXL from "./GDCLXL";
|
|
15
|
+
import FSYZQS from "./FSYZQS";
|
|
16
|
+
import "./index.less";
|
|
17
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
var Option = Select.Option;
|
|
19
|
+
var WGXW = function WGXW(_ref) {
|
|
20
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
21
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
22
|
+
id = _ref.id,
|
|
23
|
+
_ref$throwPoints = _ref.throwPoints,
|
|
24
|
+
throwPoints = _ref$throwPoints === void 0 ? [] : _ref$throwPoints,
|
|
25
|
+
serviceList = _ref.serviceList;
|
|
26
|
+
var prefix = "".concat(classPrefix, "-alarm");
|
|
27
|
+
var _useState = useState('LANDING'),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
tab = _useState2[0],
|
|
30
|
+
setTab = _useState2[1];
|
|
31
|
+
var _useSettings = useSettings(),
|
|
32
|
+
isDark = _useSettings.isDark;
|
|
33
|
+
var tabs = alarmService.useGetTabs({
|
|
34
|
+
housingEstateId: id
|
|
35
|
+
}) || [];
|
|
36
|
+
var onTabChange = function onTabChange(tab) {
|
|
37
|
+
setTab(tab);
|
|
38
|
+
};
|
|
39
|
+
var blackRank = alarmService.useBlackRank({
|
|
40
|
+
thisAreaId: id,
|
|
41
|
+
businessPackage: tab,
|
|
42
|
+
areaDimension: 'COMMUNITY'
|
|
43
|
+
});
|
|
44
|
+
return /*#__PURE__*/_jsx("div", {
|
|
45
|
+
className: prefix,
|
|
46
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
47
|
+
tabList: tabs === null || tabs === void 0 ? void 0 : tabs.filter(function (ele) {
|
|
48
|
+
return ['LANDING', 'CHUYU_QUALITY', 'OVERFLOW'].includes(ele);
|
|
49
|
+
}).reverse().map(function (ele) {
|
|
50
|
+
return {
|
|
51
|
+
label: {
|
|
52
|
+
LANDING: '落地包分析',
|
|
53
|
+
CHUYU_QUALITY: '分类质量分析',
|
|
54
|
+
OVERFLOW: '满溢分析'
|
|
55
|
+
}[ele],
|
|
56
|
+
key: ele
|
|
57
|
+
};
|
|
58
|
+
}),
|
|
59
|
+
activeKey: tab,
|
|
60
|
+
onChangeTab: onTabChange,
|
|
61
|
+
extra: /*#__PURE__*/_jsx("div", {
|
|
62
|
+
className: "".concat(prefix, "-rank ").concat(isDark ? 'dark' : ''),
|
|
63
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
64
|
+
className: "rankText",
|
|
65
|
+
children: ["\u9ED1\u699C\u6392\u540D ", "".concat((blackRank === null || blackRank === void 0 ? void 0 : blackRank.ranking) || 0, "/").concat((blackRank === null || blackRank === void 0 ? void 0 : blackRank.total) || 0)]
|
|
66
|
+
})
|
|
67
|
+
}),
|
|
68
|
+
children: /*#__PURE__*/_jsxs(Row, {
|
|
69
|
+
gutter: [128, 24],
|
|
70
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
71
|
+
span: 12,
|
|
72
|
+
children: /*#__PURE__*/_jsx(GDCLXL, {
|
|
73
|
+
classPrefix: prefix,
|
|
74
|
+
id: id
|
|
75
|
+
})
|
|
76
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
77
|
+
span: 12,
|
|
78
|
+
children: /*#__PURE__*/_jsx(FSSD, {
|
|
79
|
+
classPrefix: prefix,
|
|
80
|
+
id: id
|
|
81
|
+
})
|
|
82
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
83
|
+
span: 12,
|
|
84
|
+
children: /*#__PURE__*/_jsx(FSCSFB, {
|
|
85
|
+
classPrefix: prefix,
|
|
86
|
+
id: id
|
|
87
|
+
})
|
|
88
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
89
|
+
span: 12,
|
|
90
|
+
children: /*#__PURE__*/_jsx(FSYZQS, {
|
|
91
|
+
classPrefix: prefix,
|
|
92
|
+
id: id
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
export default WGXW;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@import '../../style/index';
|
|
2
|
+
.@{prefix-cls}-alarm {
|
|
3
|
+
&-row {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
&-rank {
|
|
9
|
+
width: 156px;
|
|
10
|
+
font-family: PingFang SC, PingFang SC;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
text-align: center;
|
|
14
|
+
background: url('../../imgs/rank_light.png') 100% 100% no-repeat;
|
|
15
|
+
.rankText {
|
|
16
|
+
background: linear-gradient(180deg, #969696 0%, #343434 100%);
|
|
17
|
+
background-clip: text;
|
|
18
|
+
-webkit-text-fill-color: transparent;
|
|
19
|
+
}
|
|
20
|
+
&.dark {
|
|
21
|
+
background: url('../../imgs/rank.png') 100% 100% no-repeat;
|
|
22
|
+
.rankText {
|
|
23
|
+
background: linear-gradient(180deg, #f0f0f0 0%, #777777 100%);
|
|
24
|
+
background-clip: text;
|
|
25
|
+
-webkit-text-fill-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-progress {
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
align-items: center;
|
|
34
|
+
margin-top: 12px;
|
|
35
|
+
&-item {
|
|
36
|
+
height: 146px;
|
|
37
|
+
overflow-y: hidden;
|
|
38
|
+
position: relative;
|
|
39
|
+
|
|
40
|
+
> div:first-child {
|
|
41
|
+
padding-bottom: 4px;
|
|
42
|
+
text-align: center;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
&-desc {
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: 50%;
|
|
48
|
+
bottom: 8px;
|
|
49
|
+
transform: translateX(-50%);
|
|
50
|
+
text-align: center;
|
|
51
|
+
color: #9b9fa8;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|