@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,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 维保类型分析
|
|
3
|
+
*/
|
|
4
|
+
import { sumBy } from 'lodash';
|
|
5
|
+
import { VmEmpty, VmPieCharts } from "../../_components";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
var RmType = function RmType(props) {
|
|
8
|
+
var data = props.data,
|
|
9
|
+
loading = props.loading;
|
|
10
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
11
|
+
className: "rm-type",
|
|
12
|
+
children: ["\u7EF4\u4FDD\u7C7B\u578B\u5206\u6790", /*#__PURE__*/_jsx("div", {
|
|
13
|
+
className: "rm-type-chart",
|
|
14
|
+
children: (data === null || data === void 0 ? void 0 : data.length) > 0 ? /*#__PURE__*/_jsx(VmPieCharts, {
|
|
15
|
+
dataList: data,
|
|
16
|
+
name: "\u7EF4\u4FDD\u7C7B\u578B",
|
|
17
|
+
title: "\u603B\u6570(\u6B21)",
|
|
18
|
+
total: sumBy(data, 'value'),
|
|
19
|
+
loading: loading,
|
|
20
|
+
unit: "\u6B21"
|
|
21
|
+
}) : /*#__PURE__*/_jsx(VmEmpty, {
|
|
22
|
+
type: "NO_CHART",
|
|
23
|
+
style: {
|
|
24
|
+
height: '100%',
|
|
25
|
+
marginLeft: '50%',
|
|
26
|
+
transform: 'translateX(-50%)'
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export default RmType;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { request } from '@vtx/utils';
|
|
2
|
+
import { useRequest } from 'ahooks';
|
|
3
|
+
var BaseService = {
|
|
4
|
+
useRepairMaintain: function useRepairMaintain(id, dateValue, endDate) {
|
|
5
|
+
// 汇总
|
|
6
|
+
var _useRequest = useRequest(function () {
|
|
7
|
+
return request.get('/cloud/jcss-reborn/maintainRecord/getMaintainRecordStatisticsByFacilityId', {
|
|
8
|
+
data: {
|
|
9
|
+
facilityId: id,
|
|
10
|
+
dateValue: dateValue
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}, {
|
|
14
|
+
refreshDeps: [id, dateValue]
|
|
15
|
+
}),
|
|
16
|
+
rmSummaryRes = _useRequest.data;
|
|
17
|
+
var rmSummary = (rmSummaryRes === null || rmSummaryRes === void 0 ? void 0 : rmSummaryRes.data) || {};
|
|
18
|
+
|
|
19
|
+
//维保类型
|
|
20
|
+
var _useRequest2 = useRequest(function () {
|
|
21
|
+
return request.get('/cloud/jcss-reborn/maintainRecord/maintainRecordStatisticsByType', {
|
|
22
|
+
data: {
|
|
23
|
+
facilityId: id,
|
|
24
|
+
dateValue: dateValue
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}, {
|
|
28
|
+
refreshDeps: [id, dateValue]
|
|
29
|
+
}),
|
|
30
|
+
rmTypeRes = _useRequest2.data;
|
|
31
|
+
var rmType = [];
|
|
32
|
+
if (Array.isArray(rmTypeRes === null || rmTypeRes === void 0 ? void 0 : rmTypeRes.data)) {
|
|
33
|
+
rmType = rmTypeRes.data.map(function (ele) {
|
|
34
|
+
return {
|
|
35
|
+
name: ele.typeName,
|
|
36
|
+
value: ele.count
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//月度趋势
|
|
42
|
+
var _useRequest3 = useRequest(function () {
|
|
43
|
+
return request.get('/cloud/jcss-reborn/maintainRecord/maintainRecordStatisticsByMonth', {
|
|
44
|
+
data: {
|
|
45
|
+
facilityId: id,
|
|
46
|
+
startDate: dateValue,
|
|
47
|
+
endDate: endDate
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}, {
|
|
51
|
+
refreshDeps: [id, dateValue, endDate]
|
|
52
|
+
}),
|
|
53
|
+
rmMonthTrendRes = _useRequest3.data,
|
|
54
|
+
loading = _useRequest3.loading;
|
|
55
|
+
var rmMonthTrend = (rmMonthTrendRes === null || rmMonthTrendRes === void 0 ? void 0 : rmMonthTrendRes.data) || {
|
|
56
|
+
legends: [],
|
|
57
|
+
names: [],
|
|
58
|
+
values: []
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
rmSummary: rmSummary,
|
|
62
|
+
rmType: rmType,
|
|
63
|
+
rmMonthTrend: rmMonthTrend,
|
|
64
|
+
loading: loading
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
useRmRecord: function useRmRecord(id, applyTimeBegin, applyTimeEnd, page, sort) {
|
|
68
|
+
var _useRequest4 = useRequest(function () {
|
|
69
|
+
return request.get('/cloud/jcss-reborn/maintainRecord/maintainAllPage', {
|
|
70
|
+
data: {
|
|
71
|
+
facilityIds: id,
|
|
72
|
+
applyTimeBegin: applyTimeBegin,
|
|
73
|
+
applyTimeEnd: applyTimeEnd,
|
|
74
|
+
page: page,
|
|
75
|
+
size: 10,
|
|
76
|
+
sort: sort
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}, {
|
|
80
|
+
refreshDeps: [id, applyTimeBegin, applyTimeEnd, page, sort]
|
|
81
|
+
}),
|
|
82
|
+
rmRecordRes = _useRequest4.data;
|
|
83
|
+
var rmRecord = (rmRecordRes === null || rmRecordRes === void 0 ? void 0 : rmRecordRes.data) || {
|
|
84
|
+
total: 0,
|
|
85
|
+
rows: []
|
|
86
|
+
};
|
|
87
|
+
return {
|
|
88
|
+
rmRecord: rmRecord
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export { BaseService };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 通用-维保信息
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { Col, Row } from 'antd';
|
|
6
|
+
import moment from 'moment';
|
|
7
|
+
import { VmWrapper } from "../../_components";
|
|
8
|
+
import { BaseService } from "./api";
|
|
9
|
+
import RmInfoSummary from "./RmInfoSummary";
|
|
10
|
+
import RmMonthTrend from "./RmMonthTrend";
|
|
11
|
+
import RmRecord from "./RmRecord";
|
|
12
|
+
import RmType from "./RmType";
|
|
13
|
+
import "./style";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
var RepaireMaintain = function RepaireMaintain(props) {
|
|
16
|
+
var id = props.id;
|
|
17
|
+
var date = moment().format('YYYY-MM-DD');
|
|
18
|
+
var _BaseService$useRepai = BaseService.useRepairMaintain(id, date, date),
|
|
19
|
+
rmSummary = _BaseService$useRepai.rmSummary,
|
|
20
|
+
rmType = _BaseService$useRepai.rmType,
|
|
21
|
+
rmMonthTrend = _BaseService$useRepai.rmMonthTrend,
|
|
22
|
+
loading = _BaseService$useRepai.loading;
|
|
23
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
24
|
+
className: "repair-maintain",
|
|
25
|
+
children: [/*#__PURE__*/_jsx(VmWrapper, {
|
|
26
|
+
title: "\u7EF4\u4FDD\u6C47\u603B\u5206\u6790",
|
|
27
|
+
children: /*#__PURE__*/_jsxs(Row, {
|
|
28
|
+
gutter: [12, 16],
|
|
29
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
30
|
+
span: 24,
|
|
31
|
+
children: /*#__PURE__*/_jsx(RmInfoSummary, {
|
|
32
|
+
data: rmSummary
|
|
33
|
+
})
|
|
34
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
35
|
+
span: 12,
|
|
36
|
+
children: /*#__PURE__*/_jsx(RmType, {
|
|
37
|
+
data: rmType,
|
|
38
|
+
loading: loading
|
|
39
|
+
})
|
|
40
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
41
|
+
span: 12,
|
|
42
|
+
children: /*#__PURE__*/_jsx(RmMonthTrend, {
|
|
43
|
+
data: rmMonthTrend,
|
|
44
|
+
loading: loading
|
|
45
|
+
})
|
|
46
|
+
})]
|
|
47
|
+
})
|
|
48
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
49
|
+
className: "rm-record",
|
|
50
|
+
children: /*#__PURE__*/_jsx(RmRecord, {
|
|
51
|
+
id: id
|
|
52
|
+
})
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
export default RepaireMaintain;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.repair-maintain {
|
|
2
|
+
color: var(--modal-title-color);
|
|
3
|
+
.rm-summary {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-evenly;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.rm-type {
|
|
10
|
+
&-chart {
|
|
11
|
+
height: 218px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rm-month-trend {
|
|
16
|
+
&-chart {
|
|
17
|
+
height: 218px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.rm-record {
|
|
22
|
+
min-height: 200px;
|
|
23
|
+
margin-top: 16px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -74,6 +74,9 @@ var VMTable = function VMTable(props) {
|
|
|
74
74
|
resizeObserver.observe(tableRef.current.parentElement, {
|
|
75
75
|
box: 'border-box'
|
|
76
76
|
});
|
|
77
|
+
resizeObserver.observe(tableRef.current, {
|
|
78
|
+
box: 'border-box'
|
|
79
|
+
});
|
|
77
80
|
}
|
|
78
81
|
return function () {
|
|
79
82
|
resizeObserver.disconnect();
|
|
@@ -170,10 +173,10 @@ var VMTable = function VMTable(props) {
|
|
|
170
173
|
});
|
|
171
174
|
};
|
|
172
175
|
|
|
173
|
-
/**
|
|
174
|
-
* 表格导出按钮
|
|
175
|
-
* @param props
|
|
176
|
-
* @returns
|
|
176
|
+
/**
|
|
177
|
+
* 表格导出按钮
|
|
178
|
+
* @param props
|
|
179
|
+
* @returns
|
|
177
180
|
*/
|
|
178
181
|
|
|
179
182
|
export var ExportBtn = function ExportBtn(props) {
|
|
@@ -167,6 +167,7 @@
|
|
|
167
167
|
white-space: nowrap;
|
|
168
168
|
// background-color: transparent;
|
|
169
169
|
border: none;
|
|
170
|
+
background: var(--table-bg) !important;
|
|
170
171
|
}
|
|
171
172
|
&:hover {
|
|
172
173
|
background-color: var(--scroll-bar-hover-bg);
|
|
@@ -177,8 +178,8 @@
|
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
&:nth-child(odd) {
|
|
180
|
-
td {
|
|
181
|
-
background-color: var(--table-row-bg-color);
|
|
181
|
+
td,td.ant-table-cell-fix-left {
|
|
182
|
+
background-color: var(--table-row-bg-color) !important;
|
|
182
183
|
// border-top: var(--table-row-border);
|
|
183
184
|
// border-bottom: var(--table-row-border);
|
|
184
185
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
padding: 0 8px;
|
|
6
6
|
font-family: Alibaba PuHuiTi 3, Alibaba PuHuiTi 30;
|
|
7
7
|
font-size: 12px;
|
|
8
|
+
white-space: nowrap;
|
|
8
9
|
display: flex;
|
|
9
10
|
align-items: center;
|
|
10
11
|
justify-content: center;
|
|
@@ -59,4 +60,13 @@
|
|
|
59
60
|
border: 1px solid #777777;
|
|
60
61
|
color: #777777;
|
|
61
62
|
}
|
|
63
|
+
&.black {
|
|
64
|
+
background: #F3F5F7;
|
|
65
|
+
color: #1F1F1F;
|
|
66
|
+
border: none;
|
|
67
|
+
&.dark {
|
|
68
|
+
background: #0B588E;
|
|
69
|
+
color: #FFFFFF;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
62
72
|
}
|
|
@@ -11,7 +11,8 @@ export default function VmWrapper(props) {
|
|
|
11
11
|
_props$time = props.time,
|
|
12
12
|
time = _props$time === void 0 ? '' : _props$time,
|
|
13
13
|
_props$border = props.border,
|
|
14
|
-
border = _props$border === void 0 ? true : _props$border
|
|
14
|
+
border = _props$border === void 0 ? true : _props$border,
|
|
15
|
+
extra = props.extra;
|
|
15
16
|
var prefix = 'vm-title-wrap';
|
|
16
17
|
return /*#__PURE__*/_jsxs("div", {
|
|
17
18
|
className: classnames("".concat(prefix, " ").concat(isDark ? 'dark' : ''), {
|
|
@@ -20,7 +21,7 @@ export default function VmWrapper(props) {
|
|
|
20
21
|
children: [/*#__PURE__*/_jsx("div", {
|
|
21
22
|
className: "".concat(prefix, "-title"),
|
|
22
23
|
children: title
|
|
23
|
-
}), time && /*#__PURE__*/_jsxs("div", {
|
|
24
|
+
}), extra ? extra : null, time && /*#__PURE__*/_jsxs("div", {
|
|
24
25
|
className: "".concat(prefix, "-time-wrap"),
|
|
25
26
|
children: [/*#__PURE__*/_jsx(ClockIcon, {
|
|
26
27
|
width: 16,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { HistoryPlayer } from '@vtx/player';
|
|
2
|
+
import { forwardRef, useRef } from 'react';
|
|
3
|
+
import VmEmpty from "../vm-empty";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
+
var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7
|
+
var channel = props.channel,
|
|
8
|
+
onClose = props.onClose;
|
|
9
|
+
var name = "".concat(channel === null || channel === void 0 ? void 0 : channel.deviceName, "-").concat(channel === null || channel === void 0 ? void 0 : channel.channelName);
|
|
10
|
+
var gridItemRef = useRef(null);
|
|
11
|
+
return /*#__PURE__*/_jsx("div", {
|
|
12
|
+
className: "vm-video-content-container",
|
|
13
|
+
ref: gridItemRef,
|
|
14
|
+
children: channel !== null && channel !== void 0 && channel.totalTimeUrl ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
15
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
16
|
+
className: "vm-video-content-container-header",
|
|
17
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
18
|
+
className: "title",
|
|
19
|
+
title: name,
|
|
20
|
+
children: name
|
|
21
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
22
|
+
className: "close",
|
|
23
|
+
onClick: onClose,
|
|
24
|
+
children: "x"
|
|
25
|
+
})]
|
|
26
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
27
|
+
className: "content",
|
|
28
|
+
children: /*#__PURE__*/_jsx(HistoryPlayer, {
|
|
29
|
+
ref: ref,
|
|
30
|
+
beenHasVideo: channel.beenHasVideo // 对讲
|
|
31
|
+
,
|
|
32
|
+
url: channel.totalTimeUrl,
|
|
33
|
+
type: channel === null || channel === void 0 ? void 0 : channel.player,
|
|
34
|
+
deviceIp: channel.deviceIp,
|
|
35
|
+
devicePort: channel.devicePort,
|
|
36
|
+
captureName: name,
|
|
37
|
+
deviceId: channel.deviceId,
|
|
38
|
+
channelId: channel.channelId,
|
|
39
|
+
channelNum: channel.channelNum,
|
|
40
|
+
enableAgent: channel.enableAgent,
|
|
41
|
+
deviceCode: channel.deviceCode,
|
|
42
|
+
streamType: channel.streamType,
|
|
43
|
+
info: channel.info,
|
|
44
|
+
onClose: onClose
|
|
45
|
+
})
|
|
46
|
+
})]
|
|
47
|
+
}) : /*#__PURE__*/_jsx(VmEmpty, {
|
|
48
|
+
type: "NO_VIDEO"
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
export default GridItem;
|
|
@@ -2,7 +2,7 @@ import { LivePlayer } from '@vtx/player';
|
|
|
2
2
|
import { forwardRef, useRef } from 'react';
|
|
3
3
|
import VmEmpty from "../vm-empty";
|
|
4
4
|
import "./index.less";
|
|
5
|
-
import { jsx as _jsx,
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
6
|
var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7
7
|
var channel = props.channel,
|
|
8
8
|
onClose = props.onClose;
|
|
@@ -12,13 +12,17 @@ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
12
12
|
className: "vm-video-content-container",
|
|
13
13
|
ref: gridItemRef,
|
|
14
14
|
children: channel !== null && channel !== void 0 && channel.url ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
15
|
-
children: [/*#__PURE__*/
|
|
15
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
16
16
|
className: "vm-video-content-container-header",
|
|
17
|
-
children: /*#__PURE__*/_jsx("span", {
|
|
17
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
18
18
|
className: "title",
|
|
19
19
|
title: name,
|
|
20
20
|
children: name
|
|
21
|
-
})
|
|
21
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
22
|
+
className: "close",
|
|
23
|
+
onClick: onClose,
|
|
24
|
+
children: "x"
|
|
25
|
+
})]
|
|
22
26
|
}), /*#__PURE__*/_jsx("div", {
|
|
23
27
|
className: "content",
|
|
24
28
|
children: /*#__PURE__*/_jsx(LivePlayer, {
|