@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
package/lib/_components/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as VmBarCharts } from "./vm-bar-charts";
|
|
2
2
|
export { default as VmCalendar, VmCalendarInner, VmCalendarPercent } from "./vm-calendar";
|
|
3
3
|
export { default as VmCardStatistics } from "./vm-card-statistics";
|
|
4
|
+
export { default as VmCustom } from "./vm-custom";
|
|
4
5
|
export { default as VmEmpty } from "./vm-empty";
|
|
5
6
|
export { default as VmExtraTab } from "./vm-extra-tab";
|
|
6
7
|
export { default as VmFactor } from "./vm-factor";
|
|
@@ -12,10 +13,10 @@ export { default as VmLineCharts } from "./vm-line-charts";
|
|
|
12
13
|
export { default as VmMap } from "./vm-map";
|
|
13
14
|
export { default as VmPieCharts } from "./vm-pie-charts";
|
|
14
15
|
export { default as VmProgress } from "./vm-progress";
|
|
16
|
+
export { default as VmRepairMaintain } from "./vm-repair-maintain";
|
|
15
17
|
export { default as VmTable } from "./vm-table";
|
|
18
|
+
export { default as VmTabs } from "./vm-tabs";
|
|
16
19
|
export { default as VmTag } from "./vm-tag";
|
|
17
20
|
export { default as VmTitle } from "./vm-title";
|
|
18
21
|
export { default as VmVideo } from "./vm-video";
|
|
19
|
-
export { default as VmWrapper } from "./vm-wrapper";
|
|
20
|
-
export { default as VmCustom } from "./vm-custom";
|
|
21
|
-
export { default as VmTabs } from "./vm-tabs";
|
|
22
|
+
export { default as VmWrapper } from "./vm-wrapper";
|
|
@@ -31,7 +31,11 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
31
31
|
_ref$showLegend = _ref.showLegend,
|
|
32
32
|
showLegend = _ref$showLegend === void 0 ? true : _ref$showLegend,
|
|
33
33
|
_ref$gridOptions = _ref.gridOptions,
|
|
34
|
-
gridOptions = _ref$gridOptions === void 0 ? {} : _ref$gridOptions
|
|
34
|
+
gridOptions = _ref$gridOptions === void 0 ? {} : _ref$gridOptions,
|
|
35
|
+
_ref$otherProps = _ref.otherProps,
|
|
36
|
+
otherProps = _ref$otherProps === void 0 ? {} : _ref$otherProps,
|
|
37
|
+
_ref$tooltipProps = _ref.tooltipProps,
|
|
38
|
+
tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps;
|
|
35
39
|
var lineColors = ['#1FB64D'];
|
|
36
40
|
var _useSettings = useSettings(),
|
|
37
41
|
chartFontColor = _useSettings.chartFontColor,
|
|
@@ -50,8 +54,8 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
50
54
|
green: green,
|
|
51
55
|
blue: blue
|
|
52
56
|
};
|
|
53
|
-
var option = {
|
|
54
|
-
tooltip: {
|
|
57
|
+
var option = _objectSpread({
|
|
58
|
+
tooltip: _objectSpread({
|
|
55
59
|
trigger: 'axis',
|
|
56
60
|
valueFormatter: function valueFormatter(value) {
|
|
57
61
|
var _findUnit;
|
|
@@ -68,7 +72,7 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
68
72
|
var leftSize = point[0] - size.contentSize[0];
|
|
69
73
|
return [point[0] + size.contentSize[0] > size.viewSize[0] ? leftSize < 0 ? '35%' : leftSize : point[0], '0%'];
|
|
70
74
|
}
|
|
71
|
-
},
|
|
75
|
+
}, tooltipProps),
|
|
72
76
|
legend: {
|
|
73
77
|
right: 'center',
|
|
74
78
|
itemGap: 8,
|
|
@@ -104,7 +108,7 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
104
108
|
return {
|
|
105
109
|
type: 'value',
|
|
106
110
|
name: item.name,
|
|
107
|
-
min: 0,
|
|
111
|
+
// min: 0,
|
|
108
112
|
nameTextStyle: {
|
|
109
113
|
color: chartFontColor,
|
|
110
114
|
padding: index === 0 ? [0, 30, 0, 0] : [0, 0, 0, 30]
|
|
@@ -160,7 +164,7 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
160
164
|
smooth: true
|
|
161
165
|
}, item);
|
|
162
166
|
})))
|
|
163
|
-
};
|
|
167
|
+
}, otherProps);
|
|
164
168
|
return loading ? /*#__PURE__*/_jsx(Row, {
|
|
165
169
|
style: {
|
|
166
170
|
height: height
|
|
@@ -34,26 +34,23 @@
|
|
|
34
34
|
border-top: 2px solid var(--vm-calendar-cell-active-border-color) !important;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.ant-picker-cell .ant-picker-cell-in-view .ant-picker-cell-today
|
|
38
|
-
|
|
39
|
-
border-top: 2px solid var(--vm-calendar-cell-active-border-color) !important;
|
|
37
|
+
.ant-picker-cell .ant-picker-cell-in-view .ant-picker-cell-today {
|
|
38
|
+
border-top: none !important;
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
.ant-picker-cell .ant-picker-cell-in-view .ant-picker-cell-selected {
|
|
43
|
-
border-top:
|
|
42
|
+
border-top: none !important;
|
|
44
43
|
background: var(--vm-calendar-bg-color) !important;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
.ant-picker-calendar-full
|
|
48
47
|
.ant-picker-panel
|
|
49
|
-
.ant-picker-cell-selected
|
|
50
48
|
.ant-picker-calendar-date-today {
|
|
51
49
|
color: var(--vm-calendar-cell-active-border-color);
|
|
52
50
|
border-top: 2px solid var(--vm-calendar-cell-active-border-color) !important;
|
|
53
51
|
}
|
|
54
52
|
|
|
55
|
-
.ant-picker-calendar-date-today
|
|
56
|
-
.ant-picker-cell-selected {
|
|
53
|
+
.ant-picker-calendar-date-today {
|
|
57
54
|
background: transparent !important;
|
|
58
55
|
border-top: 2px solid var(--vm-calendar-cell-active-border-color) !important;
|
|
59
56
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
.vm-car-statistics {
|
|
2
|
-
width: 208px;
|
|
3
|
-
height: 84px;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
padding: 20px;
|
|
8
|
-
background-size: 100% 100%;
|
|
9
|
-
&-label {
|
|
10
|
-
color: var(--img-text-color);
|
|
11
|
-
}
|
|
12
|
-
&-value, &-unit {
|
|
13
|
-
color: #1f1f1f;
|
|
14
|
-
}
|
|
15
|
-
&.vm-car-statistics-dark {
|
|
16
|
-
.vm-car-statistics-value,.vm-car-statistics-unit {
|
|
17
|
-
background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
|
|
18
|
-
background-clip: text;
|
|
19
|
-
-webkit-text-fill-color: transparent;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
&-value {
|
|
23
|
-
font-size: 20px;
|
|
24
|
-
font-weight: bold;
|
|
25
|
-
margin-right: 4px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
.vm-car-statistics {
|
|
2
|
+
width: 208px;
|
|
3
|
+
height: 84px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
padding: 20px;
|
|
8
|
+
background-size: 100% 100%;
|
|
9
|
+
&-label {
|
|
10
|
+
color: var(--img-text-color);
|
|
11
|
+
}
|
|
12
|
+
&-value, &-unit {
|
|
13
|
+
color: #1f1f1f;
|
|
14
|
+
}
|
|
15
|
+
&.vm-car-statistics-dark {
|
|
16
|
+
.vm-car-statistics-value,.vm-car-statistics-unit {
|
|
17
|
+
background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
|
|
18
|
+
background-clip: text;
|
|
19
|
+
-webkit-text-fill-color: transparent;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&-value {
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
font-weight: bold;
|
|
25
|
+
margin-right: 4px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -12,15 +12,19 @@
|
|
|
12
12
|
--shadow-color: rgba(0, 126, 255, 0.2);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
height:
|
|
16
|
-
line-height:
|
|
15
|
+
height: 32px;
|
|
16
|
+
line-height: 31px;
|
|
17
17
|
display: flex;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
align-items: center;
|
|
20
20
|
font-size: 14px;
|
|
21
21
|
background: var(--bg);
|
|
22
22
|
border-radius: 6px;
|
|
23
|
+
padding: 2px;
|
|
23
24
|
&-item {
|
|
25
|
+
height: 28px;
|
|
26
|
+
width: 28px;
|
|
27
|
+
text-align: center;
|
|
24
28
|
&:first-child {
|
|
25
29
|
border-top-left-radius: 6px;
|
|
26
30
|
border-bottom-left-radius: 6px;
|
|
@@ -32,7 +36,6 @@
|
|
|
32
36
|
padding: 0 5px;
|
|
33
37
|
cursor: pointer;
|
|
34
38
|
color: var(--color);
|
|
35
|
-
box-shadow: 0px 0px 2px 0px var(--shadow-color);
|
|
36
39
|
&.active {
|
|
37
40
|
border-radius: 6px;
|
|
38
41
|
color: var(--active-color);
|
|
@@ -21,6 +21,8 @@ export default function VmFactor(_ref) {
|
|
|
21
21
|
compareValue = _ref.compareValue,
|
|
22
22
|
_ref$compareName = _ref.compareName,
|
|
23
23
|
compareName = _ref$compareName === void 0 ? '与昨日比' : _ref$compareName,
|
|
24
|
+
_ref$compareUnit = _ref.compareUnit,
|
|
25
|
+
compareUnit = _ref$compareUnit === void 0 ? '' : _ref$compareUnit,
|
|
24
26
|
_ref$isError = _ref.isError,
|
|
25
27
|
isError = _ref$isError === void 0 ? false : _ref$isError,
|
|
26
28
|
_ref$unitStyle = _ref.unitStyle,
|
|
@@ -73,11 +75,14 @@ export default function VmFactor(_ref) {
|
|
|
73
75
|
}), compare && /*#__PURE__*/_jsxs("div", {
|
|
74
76
|
className: "".concat(prefix, "-compare"),
|
|
75
77
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
76
|
-
children: [compareName, "\xA0\xA0", Math.abs(compareValue), unit]
|
|
77
|
-
}),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
children: [compareName, "\xA0\xA0", Math.abs(compareValue), compareUnit || unit]
|
|
79
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
80
|
+
className: "".concat(prefix, "-compare-unit"),
|
|
81
|
+
children: [compareValue < 0 && /*#__PURE__*/_jsx(DownIcon, {
|
|
82
|
+
fill: '#f5222d'
|
|
83
|
+
}), compareValue > 0 && /*#__PURE__*/_jsx(UpIcon, {
|
|
84
|
+
fill: '#0fb964'
|
|
85
|
+
})]
|
|
81
86
|
})]
|
|
82
87
|
})]
|
|
83
88
|
})]
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
color: var(--sub-text-color);
|
|
18
|
+
gap: 2px;
|
|
19
|
+
&-unit {
|
|
20
|
+
transform: translateY(2px);
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
&-value_normal {
|
|
20
24
|
font-size: 14px;
|
|
@@ -31,7 +35,7 @@
|
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
&-value_normal-error {
|
|
34
|
-
color: #
|
|
38
|
+
color: #f5222d;
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
.vm-factor-sm {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.vm-factor-list-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
padding: 12px 16px;
|
|
4
|
-
height: 68px;
|
|
5
|
-
background: #F3F8FF;
|
|
6
|
-
border-radius: 8px;
|
|
7
|
-
gap: 26px;
|
|
8
|
-
&.dark {
|
|
9
|
-
background: rgba(0,136,240,0.15);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
.vm-factor-list-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 12px 16px;
|
|
4
|
+
height: 68px;
|
|
5
|
+
background: #F3F8FF;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
gap: 26px;
|
|
8
|
+
&.dark {
|
|
9
|
+
background: rgba(0,136,240,0.15);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--color: #fff;
|
|
55
55
|
--bg-color: #0b588e;
|
|
56
56
|
--hover-color: #018aff;
|
|
57
|
-
--border-color: #
|
|
57
|
+
--border-color: #0b6baf;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.ant-select-selector {
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
.ant-select-selection-placeholder {
|
|
66
66
|
color: var(--color);
|
|
67
67
|
}
|
|
68
|
+
|
|
68
69
|
&:hover {
|
|
69
70
|
.ant-select-selector {
|
|
70
71
|
border: 1px solid var(--hover-color) !important;
|
|
@@ -38,7 +38,7 @@ function InfoCollection(props) {
|
|
|
38
38
|
padding: padding !== null && padding !== void 0 ? padding : 'unset'
|
|
39
39
|
}),
|
|
40
40
|
children: data.map(function (item) {
|
|
41
|
-
var _item$value;
|
|
41
|
+
var _item$key, _item$value;
|
|
42
42
|
var style = {};
|
|
43
43
|
if (item !== null && item !== void 0 && item.color) style.color = item.color;
|
|
44
44
|
return /*#__PURE__*/_jsxs("div", {
|
|
@@ -47,7 +47,7 @@ function InfoCollection(props) {
|
|
|
47
47
|
marginRight: horizontal ? 0 : 12,
|
|
48
48
|
marginBottom: gap,
|
|
49
49
|
alignItems: isValueCenter ? 'center' : 'unset',
|
|
50
|
-
width: item.isAddress || ['address', 'divisionName', 'accUnitName', 'manageUnitName', 'description', 'panoramaLinkAddress'].includes(item.key) || item.key.indexOf('hoto') > -1 || ['MAP', 'GD_ENTRANCE'].includes(item.componentType || '') ? '100%' : item.width || width
|
|
50
|
+
width: item.isAddress || ['address', 'divisionName', 'accUnitName', 'manageUnitName', 'description', 'panoramaLinkAddress'].includes(item.key) || ((_item$key = item.key) === null || _item$key === void 0 ? void 0 : _item$key.indexOf('hoto')) > -1 || ['MAP', 'GD_ENTRANCE'].includes(item.componentType || '') ? '100%' : item.width || width
|
|
51
51
|
},
|
|
52
52
|
children: [/*#__PURE__*/_jsx("div", {
|
|
53
53
|
className: "info-label-b",
|
|
@@ -34,11 +34,11 @@ var LineCharts = function LineCharts(_ref) {
|
|
|
34
34
|
tooltipOption = _ref$tooltipOption === void 0 ? {} : _ref$tooltipOption,
|
|
35
35
|
_ref$legendOption = _ref.legendOption,
|
|
36
36
|
legendOption = _ref$legendOption === void 0 ? {} : _ref$legendOption;
|
|
37
|
-
var lineColors = ['#438EF7', '#40AAF3', '#62C4F9', '#20BB70', '#1DD27B', '#49E6A2', '#F2953A', '#FAAB59', '#F9C665', '#8A7FEE'];
|
|
38
37
|
var _useSettings = useSettings(),
|
|
39
38
|
chartFontColor = _useSettings.chartFontColor,
|
|
40
39
|
chartLineColor = _useSettings.chartLineColor,
|
|
41
40
|
theme = _useSettings.theme;
|
|
41
|
+
var lineColors = ['#438EF7', '#53CB74', '#FABB43', '#FF8746', '#31C5E9', '#7DDF9F', '#B894F9', '#FC4F66', '#5D75FF'];
|
|
42
42
|
var option = {
|
|
43
43
|
tooltip: _objectSpread({
|
|
44
44
|
trigger: 'axis',
|
|
@@ -59,7 +59,7 @@ export default function VmOlMap(_ref) {
|
|
|
59
59
|
function formatData(arr, type) {
|
|
60
60
|
var data = [],
|
|
61
61
|
style = {},
|
|
62
|
-
coordType =
|
|
62
|
+
coordType = 'wgs84';
|
|
63
63
|
arr.forEach(function (item) {
|
|
64
64
|
if (type === 'polygon' || type === 'polyline') {
|
|
65
65
|
data.push(_objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -140,10 +140,10 @@ export default function VmOlMap(_ref) {
|
|
|
140
140
|
if (mapRef.current && ((mapPoints === null || mapPoints === void 0 ? void 0 : mapPoints.length) > 0 || (mapPolygons === null || mapPolygons === void 0 ? void 0 : mapPolygons.length) > 0)) {
|
|
141
141
|
var _mapRef$current, _polygons$data, _points$data;
|
|
142
142
|
(_mapRef$current = mapRef.current) === null || _mapRef$current === void 0 || _mapRef$current.fitView({
|
|
143
|
-
geometryInfo: (((_polygons$data = polygons.data) === null || _polygons$data === void 0 ? void 0 : _polygons$data[0]) || ((_points$data = points.data) === null || _points$data === void 0 ? void 0 : _points$data[0])).geometryInfo
|
|
143
|
+
geometryInfo: ((polygons === null || polygons === void 0 || (_polygons$data = polygons.data) === null || _polygons$data === void 0 ? void 0 : _polygons$data[0]) || (points === null || points === void 0 || (_points$data = points.data) === null || _points$data === void 0 ? void 0 : _points$data[0])).geometryInfo
|
|
144
144
|
}, {
|
|
145
145
|
maxZoom: 16,
|
|
146
|
-
padding: [
|
|
146
|
+
padding: [10, 10, 10, 10]
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -163,8 +163,8 @@ export default function VmOlMap(_ref) {
|
|
|
163
163
|
}, [JSON.stringify(mapPoints), JSON.stringify(mapPolygons), JSON.stringify(newMapPoints)]);
|
|
164
164
|
|
|
165
165
|
// 自定义图层逻辑
|
|
166
|
-
/**
|
|
167
|
-
* 需要引入ol.js和olScreen.js
|
|
166
|
+
/**
|
|
167
|
+
* 需要引入ol.js和olScreen.js
|
|
168
168
|
*/
|
|
169
169
|
var layers = [];
|
|
170
170
|
mapInfo === null || mapInfo === void 0 || (_mapInfo$olProps = mapInfo.olProps) === null || _mapInfo$olProps === void 0 || _mapInfo$olProps.olCoverage.forEach(function (item) {
|
|
@@ -24,12 +24,16 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
24
24
|
height = _ref$height === void 0 ? '100%' : _ref$height,
|
|
25
25
|
_ref$legendConfig = _ref.legendConfig,
|
|
26
26
|
legendConfig = _ref$legendConfig === void 0 ? {} : _ref$legendConfig,
|
|
27
|
+
_ref$spaceLength = _ref.spaceLength,
|
|
28
|
+
spaceLength = _ref$spaceLength === void 0 ? 20 : _ref$spaceLength,
|
|
27
29
|
_ref$nameLength = _ref.nameLength,
|
|
28
30
|
nameLength = _ref$nameLength === void 0 ? 6 : _ref$nameLength,
|
|
29
31
|
_ref$innerRadius = _ref.innerRadius,
|
|
30
32
|
innerRadius = _ref$innerRadius === void 0 ? ['30%', '45%'] : _ref$innerRadius,
|
|
31
33
|
_ref$outerRadius = _ref.outerRadius,
|
|
32
|
-
outerRadius = _ref$outerRadius === void 0 ? ['45%', '50%'] : _ref$outerRadius
|
|
34
|
+
outerRadius = _ref$outerRadius === void 0 ? ['45%', '50%'] : _ref$outerRadius,
|
|
35
|
+
_ref$center = _ref.center,
|
|
36
|
+
center = _ref$center === void 0 ? null : _ref$center;
|
|
33
37
|
var _useSettings = useSettings(),
|
|
34
38
|
chartFontColor = _useSettings.chartFontColor,
|
|
35
39
|
isDark = _useSettings.isDark;
|
|
@@ -65,7 +69,7 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
65
69
|
fontSize: 14
|
|
66
70
|
},
|
|
67
71
|
space: {
|
|
68
|
-
width:
|
|
72
|
+
width: spaceLength
|
|
69
73
|
},
|
|
70
74
|
number: {
|
|
71
75
|
width: 50,
|
|
@@ -93,7 +97,7 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
93
97
|
var info = dataList[index] || {};
|
|
94
98
|
var value = info.value;
|
|
95
99
|
var percent = getPercentValue(_.map(dataList, 'value'), index, 2);
|
|
96
|
-
return "{name|".concat(name.slice(0, nameLength)).concat(name.length > nameLength ? '...' : '', "}{number|").concat(value || 0).concat(unit || '', "}{percent|").concat(percent, "%}");
|
|
100
|
+
return "{name|".concat(name.slice(0, nameLength)).concat(name.length > nameLength ? '...' : '', "}{number|").concat(value || 0).concat(unit || '', "}{space|}{percent|").concat(percent, "%}");
|
|
97
101
|
},
|
|
98
102
|
tooltip: {
|
|
99
103
|
show: true
|
|
@@ -103,7 +107,7 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
103
107
|
name: name,
|
|
104
108
|
type: 'pie',
|
|
105
109
|
radius: innerRadius,
|
|
106
|
-
center: ['25%', '50%'],
|
|
110
|
+
center: center || ['25%', '50%'],
|
|
107
111
|
labelLine: {
|
|
108
112
|
show: false // 去除从圆心指向数据块的线条
|
|
109
113
|
},
|
|
@@ -129,7 +133,7 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
129
133
|
label: {
|
|
130
134
|
show: false
|
|
131
135
|
},
|
|
132
|
-
center: ['25%', '50%'],
|
|
136
|
+
center: center || ['25%', '50%'],
|
|
133
137
|
data: dataList.map(function (item, index) {
|
|
134
138
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
135
139
|
itemStyle: {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 维保信息汇总
|
|
3
|
+
*/
|
|
4
|
+
import useSettings from "../../_hooks/useSettings";
|
|
5
|
+
import amount from "./imgs/amount.png";
|
|
6
|
+
import count from "./imgs/count.png";
|
|
7
|
+
import VmFactor from "../vm-factor";
|
|
8
|
+
import amountLight from "./imgs/amount_light.png";
|
|
9
|
+
import countLight from "./imgs/count_light.png";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
var RmInfoSummary = function RmInfoSummary(props) {
|
|
12
|
+
var data = props.data;
|
|
13
|
+
var _useSettings = useSettings(),
|
|
14
|
+
isDark = _useSettings.isDark;
|
|
15
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
16
|
+
className: "rm-summary",
|
|
17
|
+
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
18
|
+
name: "\u5E74\u5EA6\u7EF4\u4FDD\u603B\u6B21\u6570",
|
|
19
|
+
value: (data === null || data === void 0 ? void 0 : data.thisYearCount) || 0,
|
|
20
|
+
img: isDark ? count : countLight,
|
|
21
|
+
fontType: "blue",
|
|
22
|
+
unit: "\u6B21",
|
|
23
|
+
unitStyle: {
|
|
24
|
+
fontSize: 14
|
|
25
|
+
},
|
|
26
|
+
compare: true,
|
|
27
|
+
compareName: "\u5E74\u540C\u6BD4",
|
|
28
|
+
compareValue: data === null || data === void 0 ? void 0 : data.thisYearOnLastYearCount,
|
|
29
|
+
compareUnit: "%"
|
|
30
|
+
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
31
|
+
name: "\u5E74\u5EA6\u7EF4\u4FDD\u603B\u91D1\u989D",
|
|
32
|
+
value: (data === null || data === void 0 ? void 0 : data.thisYearFee) || 0,
|
|
33
|
+
img: isDark ? amount : amountLight,
|
|
34
|
+
fontType: "yellow",
|
|
35
|
+
unit: "\u5143",
|
|
36
|
+
unitStyle: {
|
|
37
|
+
fontSize: 14
|
|
38
|
+
},
|
|
39
|
+
compare: true,
|
|
40
|
+
compareName: "\u5E74\u540C\u6BD4",
|
|
41
|
+
compareValue: data === null || data === void 0 ? void 0 : data.thisYearOnLastYearFee,
|
|
42
|
+
compareUnit: "%"
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export default RmInfoSummary;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
8
|
+
* 月度趋势分析
|
|
9
|
+
*/
|
|
10
|
+
import { VmEmpty, VmLineCharts } from "../../_components";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var RmMonthTrend = function RmMonthTrend(_ref) {
|
|
13
|
+
var data = _ref.data;
|
|
14
|
+
var legends = data.legends,
|
|
15
|
+
names = data.names,
|
|
16
|
+
values = data.values,
|
|
17
|
+
loading = data.loading;
|
|
18
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
19
|
+
className: "rm-month-trend",
|
|
20
|
+
children: ["\u6708\u5EA6\u8D8B\u52BF\u5206\u6790", /*#__PURE__*/_jsx("div", {
|
|
21
|
+
className: "rm-month-trend-chart",
|
|
22
|
+
children: values !== null && values !== void 0 && values.length ? /*#__PURE__*/_jsx(VmLineCharts, {
|
|
23
|
+
xAxis: names,
|
|
24
|
+
dataList: values === null || values === void 0 ? void 0 : values.map(function (ele, index) {
|
|
25
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
26
|
+
name: legends[index],
|
|
27
|
+
data: ele
|
|
28
|
+
});
|
|
29
|
+
}),
|
|
30
|
+
unit: "\u6B21",
|
|
31
|
+
loading: loading,
|
|
32
|
+
legendOption: {
|
|
33
|
+
width: '95%'
|
|
34
|
+
},
|
|
35
|
+
gridOption: {
|
|
36
|
+
top: 36
|
|
37
|
+
}
|
|
38
|
+
}) : /*#__PURE__*/_jsx(VmEmpty, {
|
|
39
|
+
type: "NO_CHART"
|
|
40
|
+
})
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
export default RmMonthTrend;
|
|
@@ -0,0 +1,157 @@
|
|
|
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
|
+
import { useSetState } from 'ahooks';
|
|
17
|
+
import moment from 'moment';
|
|
18
|
+
import { VmTable, VmWrapper } from "../../_components";
|
|
19
|
+
import { BaseService } from "./api";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
export default function RmRecord(props) {
|
|
22
|
+
var id = props.id;
|
|
23
|
+
var _useSetState = useSetState({
|
|
24
|
+
pagination: {
|
|
25
|
+
current: 1,
|
|
26
|
+
pageSize: 10,
|
|
27
|
+
total: 0
|
|
28
|
+
},
|
|
29
|
+
sorter: ''
|
|
30
|
+
}),
|
|
31
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
32
|
+
state = _useSetState2[0],
|
|
33
|
+
setState = _useSetState2[1];
|
|
34
|
+
var pagination = state.pagination,
|
|
35
|
+
sorter = state.sorter;
|
|
36
|
+
var startDate = moment().startOf('y').format('YYYY-MM-DD HH:mm:ss');
|
|
37
|
+
var endDate = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
38
|
+
var _BaseService$useRmRec = BaseService.useRmRecord(id, startDate, endDate, pagination.current - 1, sorter),
|
|
39
|
+
rmRecord = _BaseService$useRmRec.rmRecord;
|
|
40
|
+
var getColor = function getColor(code) {
|
|
41
|
+
var color = '#B4B4B4';
|
|
42
|
+
switch (code) {
|
|
43
|
+
case 'AUDIT_PASSED':
|
|
44
|
+
color = '#1FEFA9';
|
|
45
|
+
break;
|
|
46
|
+
case 'AUDIT_FAILED':
|
|
47
|
+
color = '#FF6A65';
|
|
48
|
+
break;
|
|
49
|
+
case 'TO_BE_AUDITED':
|
|
50
|
+
color = '#FF6A65';
|
|
51
|
+
break;
|
|
52
|
+
case 'REVOKED':
|
|
53
|
+
color = '#FA69FF';
|
|
54
|
+
break;
|
|
55
|
+
case 'AUDITING':
|
|
56
|
+
color = '#FFBD1E';
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
return color;
|
|
62
|
+
};
|
|
63
|
+
var columns = [{
|
|
64
|
+
title: '工单编号',
|
|
65
|
+
dataIndex: 'workOrderNo',
|
|
66
|
+
key: 'workOrderNo',
|
|
67
|
+
width: 120,
|
|
68
|
+
ellipsis: true
|
|
69
|
+
}, {
|
|
70
|
+
title: '维保类型',
|
|
71
|
+
dataIndex: 'maintainTypeName',
|
|
72
|
+
key: 'maintainTypeName',
|
|
73
|
+
width: 120,
|
|
74
|
+
ellipsis: true
|
|
75
|
+
}, {
|
|
76
|
+
title: '申请金额',
|
|
77
|
+
dataIndex: 'fee',
|
|
78
|
+
key: 'fee',
|
|
79
|
+
width: 100,
|
|
80
|
+
sorter: true,
|
|
81
|
+
render: function render(text) {
|
|
82
|
+
return /*#__PURE__*/_jsx("span", {
|
|
83
|
+
style: {
|
|
84
|
+
color: '#FF7272'
|
|
85
|
+
},
|
|
86
|
+
children: text
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
title: '申请人',
|
|
91
|
+
dataIndex: 'applyUserName',
|
|
92
|
+
key: 'applyUserName',
|
|
93
|
+
width: 100
|
|
94
|
+
}, {
|
|
95
|
+
title: '申请时间',
|
|
96
|
+
dataIndex: 'applyTime',
|
|
97
|
+
key: 'applyTime',
|
|
98
|
+
width: 150,
|
|
99
|
+
sorter: true
|
|
100
|
+
}, {
|
|
101
|
+
title: '维保状态',
|
|
102
|
+
dataIndex: 'auditStatusDesc',
|
|
103
|
+
key: 'auditStatusDesc',
|
|
104
|
+
width: 120,
|
|
105
|
+
render: function render(text, record) {
|
|
106
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
107
|
+
style: {
|
|
108
|
+
color: getColor(record.auditStatus)
|
|
109
|
+
},
|
|
110
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
111
|
+
style: {
|
|
112
|
+
display: 'inline-block',
|
|
113
|
+
width: '8px',
|
|
114
|
+
height: '8px',
|
|
115
|
+
borderRadius: '50%',
|
|
116
|
+
marginRight: '6px',
|
|
117
|
+
background: getColor(record.auditStatus)
|
|
118
|
+
}
|
|
119
|
+
}), text]
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
title: '维保时间',
|
|
124
|
+
dataIndex: 'lastAuditTime',
|
|
125
|
+
key: 'lastAuditTime',
|
|
126
|
+
width: 150,
|
|
127
|
+
sorter: true
|
|
128
|
+
}];
|
|
129
|
+
var handleTableChange = function handleTableChange(sorter) {
|
|
130
|
+
setState({
|
|
131
|
+
sorter: "".concat(sorter.columnKey || 'applyTime', ",").concat(sorter.order === 'ascend' ? 'ASC' : 'DESC')
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
var pageChange = function pageChange(page) {
|
|
135
|
+
setState({
|
|
136
|
+
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
137
|
+
current: page
|
|
138
|
+
})
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
var tableProps = {
|
|
142
|
+
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
143
|
+
total: rmRecord.total,
|
|
144
|
+
defaultPageSize: 10,
|
|
145
|
+
onChange: pageChange
|
|
146
|
+
}),
|
|
147
|
+
handleTableChange: handleTableChange,
|
|
148
|
+
height: 180,
|
|
149
|
+
dataSource: rmRecord.rows
|
|
150
|
+
};
|
|
151
|
+
return /*#__PURE__*/_jsx(VmWrapper, {
|
|
152
|
+
title: "\u7EF4\u4FDD\u8BB0\u5F55",
|
|
153
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
154
|
+
columns: columns
|
|
155
|
+
}, tableProps))
|
|
156
|
+
});
|
|
157
|
+
}
|