@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,286 @@
|
|
|
1
|
+
import { Spin } from 'antd';
|
|
2
|
+
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
3
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
4
|
+
import { BaseService } from "../../api";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
var BaseInfo = function BaseInfo(props) {
|
|
8
|
+
var _useSettings = useSettings(),
|
|
9
|
+
isDark = _useSettings.isDark;
|
|
10
|
+
var mapCenter = props.mapCenter,
|
|
11
|
+
id = props.id;
|
|
12
|
+
var _BaseService$useBaseD = BaseService.useBaseDetail(id, 'wgs84'),
|
|
13
|
+
info = _BaseService$useBaseD.info,
|
|
14
|
+
baseInfo = _BaseService$useBaseD.baseInfo,
|
|
15
|
+
lngLats = _BaseService$useBaseD.lngLats,
|
|
16
|
+
mapPoints = _BaseService$useBaseD.mapPoints,
|
|
17
|
+
loading = _BaseService$useBaseD.loading;
|
|
18
|
+
var records = BaseService.useGetRecord(info === null || info === void 0 ? void 0 : info.orderNo);
|
|
19
|
+
var getStep = function getStep() {
|
|
20
|
+
if ((records === null || records === void 0 ? void 0 : records.length) < 2) {
|
|
21
|
+
return -1;
|
|
22
|
+
}
|
|
23
|
+
if (records[records.length - 1].processDetail) {
|
|
24
|
+
var obj = JSON.parse(records[records.length - 1].processDetail);
|
|
25
|
+
if (obj.processResult === 'Pass') {
|
|
26
|
+
return 2;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (records.find(function (v) {
|
|
30
|
+
return v.processType === 'Pf';
|
|
31
|
+
}) && records[records.length - 1].processType !== 'Pf') {
|
|
32
|
+
return 1;
|
|
33
|
+
}
|
|
34
|
+
if (records.find(function (v) {
|
|
35
|
+
return v.processType === 'Pf';
|
|
36
|
+
})) {
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
41
|
+
className: "zg-base",
|
|
42
|
+
children: [/*#__PURE__*/_jsx(Spin, {
|
|
43
|
+
spinning: loading,
|
|
44
|
+
className: "zg-base-spin"
|
|
45
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
46
|
+
className: "zg-base-left",
|
|
47
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
48
|
+
title: "\u4E8B\u4EF6\u63CF\u8FF0",
|
|
49
|
+
children: [/*#__PURE__*/_jsx(VmInfoCollection, {
|
|
50
|
+
data: baseInfo,
|
|
51
|
+
horizontal: true,
|
|
52
|
+
width: "50%",
|
|
53
|
+
gap: 12
|
|
54
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
55
|
+
className: "zg-base-map",
|
|
56
|
+
children: /*#__PURE__*/_jsx(VmMap, {
|
|
57
|
+
mapCenter: lngLats ? lngLats.split(',') : mapCenter,
|
|
58
|
+
newMapPoints: mapPoints,
|
|
59
|
+
address: info === null || info === void 0 ? void 0 : info.address
|
|
60
|
+
})
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
64
|
+
className: "zg-base-right",
|
|
65
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
66
|
+
title: "\u6574\u6539\u6D41\u7A0B",
|
|
67
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
68
|
+
className: "zg-base-process ".concat(isDark ? 'dark' : ''),
|
|
69
|
+
children: [{
|
|
70
|
+
title: '派发',
|
|
71
|
+
key: '1'
|
|
72
|
+
}, {
|
|
73
|
+
title: '处理',
|
|
74
|
+
key: '2'
|
|
75
|
+
}, {
|
|
76
|
+
title: '结束',
|
|
77
|
+
key: '3'
|
|
78
|
+
}].map(function (ele, index) {
|
|
79
|
+
var isDone = getStep() >= index;
|
|
80
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
81
|
+
className: "zg-base-process-item",
|
|
82
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
83
|
+
className: "zg-base-process-item-order ".concat(isDone ? 'active' : ''),
|
|
84
|
+
children: index + 1
|
|
85
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
86
|
+
className: "zg-base-process-item-title ".concat(isDone ? 'active' : ''),
|
|
87
|
+
children: ele.title
|
|
88
|
+
}), index < records.length && /*#__PURE__*/_jsx("div", {
|
|
89
|
+
className: "zg-base-process-line ".concat(isDone ? 'active' : '')
|
|
90
|
+
})]
|
|
91
|
+
}, ele.key);
|
|
92
|
+
})
|
|
93
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
94
|
+
className: "zg-p-list ".concat(isDark ? 'dark' : ''),
|
|
95
|
+
children: records === null || records === void 0 ? void 0 : records.map(function (ele, index) {
|
|
96
|
+
var isDone = getStep() + 1 >= index;
|
|
97
|
+
var detailObj = ele.processDetail ? JSON.parse(ele.processDetail) : {};
|
|
98
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
99
|
+
className: "zg-p-list-item",
|
|
100
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
101
|
+
className: "zg-p-list-item-head",
|
|
102
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
103
|
+
className: "zg-p-list-item-head-title",
|
|
104
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
105
|
+
src: require("../../imgs/dot".concat(isDone ? '_done' : '', ".png"))
|
|
106
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
107
|
+
children: ele.processTypeStr
|
|
108
|
+
})]
|
|
109
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
110
|
+
children: ele.processTimeStr
|
|
111
|
+
})]
|
|
112
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
113
|
+
className: "zg-p-list-item-content",
|
|
114
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
115
|
+
className: "zg-p-list-item-line",
|
|
116
|
+
style: index === records.length - 1 ? {
|
|
117
|
+
background: 'unset'
|
|
118
|
+
} : {}
|
|
119
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
120
|
+
children: [ele.processContent, /*#__PURE__*/_jsx("div", {
|
|
121
|
+
className: "zg-p-list-item-content-bg",
|
|
122
|
+
children: getBaseShow(ele.processType, detailObj)
|
|
123
|
+
})]
|
|
124
|
+
})]
|
|
125
|
+
})]
|
|
126
|
+
}, ele.key);
|
|
127
|
+
})
|
|
128
|
+
})]
|
|
129
|
+
})
|
|
130
|
+
})]
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
export default BaseInfo;
|
|
134
|
+
function getBaseShow(type, detailObj) {
|
|
135
|
+
var tempArr = [];
|
|
136
|
+
switch (type) {
|
|
137
|
+
case 'Xj':
|
|
138
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
139
|
+
data: [{
|
|
140
|
+
label: '问题照片',
|
|
141
|
+
key: 'photos',
|
|
142
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.photos,
|
|
143
|
+
componentType: 'IMAGE'
|
|
144
|
+
}],
|
|
145
|
+
horizontal: true,
|
|
146
|
+
width: "100%",
|
|
147
|
+
gap: 12
|
|
148
|
+
});
|
|
149
|
+
case 'Pf':
|
|
150
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
151
|
+
data: [{
|
|
152
|
+
label: '责任单位',
|
|
153
|
+
key: 'responsibleUnitName',
|
|
154
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.responsibleUnitName
|
|
155
|
+
}, {
|
|
156
|
+
label: '责任人',
|
|
157
|
+
key: 'responsibleStaffNames',
|
|
158
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.responsibleStaffNames
|
|
159
|
+
}, {
|
|
160
|
+
label: '整改时限',
|
|
161
|
+
key: 'reformTimeDay',
|
|
162
|
+
value: "".concat(detailObj.reformTimeDay || 0, "\u5929").concat(detailObj.reformTimeHour || 0, "\u5C0F\u65F6").concat(detailObj.reformTimeMin || 0, "\u5206")
|
|
163
|
+
}, {
|
|
164
|
+
label: '截止时间',
|
|
165
|
+
key: 'endDateTime',
|
|
166
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.endDateTime
|
|
167
|
+
}],
|
|
168
|
+
horizontal: true,
|
|
169
|
+
width: "100%",
|
|
170
|
+
gap: 12
|
|
171
|
+
});
|
|
172
|
+
case 'Sqyq':
|
|
173
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
174
|
+
data: [{
|
|
175
|
+
label: '原截止时间',
|
|
176
|
+
key: 'oldEndTime',
|
|
177
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.oldEndTime
|
|
178
|
+
}, {
|
|
179
|
+
label: '期望截止时间',
|
|
180
|
+
key: 'newEndTime',
|
|
181
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.newEndTime
|
|
182
|
+
}, {
|
|
183
|
+
label: '申请理由',
|
|
184
|
+
key: 'applyReason',
|
|
185
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.applyReason
|
|
186
|
+
}],
|
|
187
|
+
horizontal: true,
|
|
188
|
+
width: "100%",
|
|
189
|
+
gap: 12
|
|
190
|
+
});
|
|
191
|
+
case 'Cs':
|
|
192
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
193
|
+
data: [{
|
|
194
|
+
label: '结果',
|
|
195
|
+
key: 'processResult',
|
|
196
|
+
value: "".concat(detailObj.processResult === 'Accept' ? '接受整改' : detailObj.processResult === 'Reject' ? '拒绝整改' : detailObj.processResult)
|
|
197
|
+
}, {
|
|
198
|
+
label: '原因',
|
|
199
|
+
key: 'rejectReason',
|
|
200
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.rejectReason
|
|
201
|
+
}],
|
|
202
|
+
horizontal: true,
|
|
203
|
+
width: "100%",
|
|
204
|
+
gap: 12
|
|
205
|
+
});
|
|
206
|
+
break;
|
|
207
|
+
case 'Dzgtjfk':
|
|
208
|
+
case 'Tjfk':
|
|
209
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
210
|
+
data: [{
|
|
211
|
+
label: '反馈内容',
|
|
212
|
+
key: 'feedbackContent',
|
|
213
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.feedbackContent
|
|
214
|
+
}, {
|
|
215
|
+
label: '反馈附件',
|
|
216
|
+
key: 'photos',
|
|
217
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.photos,
|
|
218
|
+
componentType: 'IMAGE'
|
|
219
|
+
}],
|
|
220
|
+
horizontal: true,
|
|
221
|
+
width: "100%",
|
|
222
|
+
gap: 12
|
|
223
|
+
});
|
|
224
|
+
case 'Jjzgsh':
|
|
225
|
+
case 'Yqsh':
|
|
226
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
227
|
+
data: [{
|
|
228
|
+
label: '结果',
|
|
229
|
+
key: 'processResult',
|
|
230
|
+
value: detailObj.processResult === 'Fail' ? '不通过' : '通过'
|
|
231
|
+
}, {
|
|
232
|
+
label: '审批意见',
|
|
233
|
+
key: 'auditOpinion',
|
|
234
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.auditOpinion
|
|
235
|
+
}],
|
|
236
|
+
horizontal: true,
|
|
237
|
+
width: "100%",
|
|
238
|
+
gap: 12
|
|
239
|
+
});
|
|
240
|
+
case 'Jgsh':
|
|
241
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
242
|
+
data: [{
|
|
243
|
+
label: '结果',
|
|
244
|
+
key: 'processResult',
|
|
245
|
+
value: detailObj.processResult === 'Fail' ? '不通过' : '通过'
|
|
246
|
+
}, {
|
|
247
|
+
label: '审批意见',
|
|
248
|
+
key: 'auditOpinion',
|
|
249
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.auditOpinion
|
|
250
|
+
}, {
|
|
251
|
+
title: '附件',
|
|
252
|
+
key: 'photos',
|
|
253
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.photos,
|
|
254
|
+
componentType: 'IMAGE'
|
|
255
|
+
}],
|
|
256
|
+
horizontal: true,
|
|
257
|
+
width: "100%",
|
|
258
|
+
gap: 12
|
|
259
|
+
});
|
|
260
|
+
case 'Dzg':
|
|
261
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
262
|
+
data: [{
|
|
263
|
+
label: '第三方单位',
|
|
264
|
+
key: 'thirdResponsibleUnitName',
|
|
265
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.thirdResponsibleUnitName
|
|
266
|
+
}, {
|
|
267
|
+
label: '责任人',
|
|
268
|
+
key: 'thirdResponsibleStaffNames',
|
|
269
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.thirdResponsibleStaffNames
|
|
270
|
+
}, {
|
|
271
|
+
label: '整改时限',
|
|
272
|
+
key: 'reformTimeDay',
|
|
273
|
+
value: "".concat(detailObj.reformTimeDay || 0, "\u5929").concat(detailObj.reformTimeHour || 0, "\u5C0F\u65F6").concat(detailObj.reformTimeMin || 0, "\u5206")
|
|
274
|
+
}, {
|
|
275
|
+
label: '截止时间',
|
|
276
|
+
key: 'endDateTime',
|
|
277
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.endDateTime
|
|
278
|
+
}],
|
|
279
|
+
horizontal: true,
|
|
280
|
+
width: "100%",
|
|
281
|
+
gap: 12
|
|
282
|
+
});
|
|
283
|
+
default:
|
|
284
|
+
return /*#__PURE__*/_jsx(_Fragment, {});
|
|
285
|
+
}
|
|
286
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
.zg-base {
|
|
2
|
+
height: 660px;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
&-spin {
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 40%;
|
|
10
|
+
top: 30%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-map {
|
|
14
|
+
height: 240px;
|
|
15
|
+
}
|
|
16
|
+
&-left {
|
|
17
|
+
width: calc(100% - 416px);
|
|
18
|
+
}
|
|
19
|
+
&-right {
|
|
20
|
+
width: 400px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-process {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
|
|
27
|
+
--order-bg: #ecf0f5;
|
|
28
|
+
--order-active-bg: #1890ff;
|
|
29
|
+
--line-bg: #e8edf2;
|
|
30
|
+
--order-color: #898989;
|
|
31
|
+
--title-color: #898989;
|
|
32
|
+
|
|
33
|
+
&.dark {
|
|
34
|
+
--order-bg: #03629d;
|
|
35
|
+
--order-active-bg: #0099ff;
|
|
36
|
+
--line-bg: rgba(255, 255, 255, 0.2);
|
|
37
|
+
--order-color: #fff;
|
|
38
|
+
--title-color: rgba(255, 255, 255, 0.5);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-item {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
&-order {
|
|
46
|
+
width: 32px;
|
|
47
|
+
height: 32px;
|
|
48
|
+
line-height: 30px;
|
|
49
|
+
font-family: Roboto, Roboto;
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
color: var(--order-color);
|
|
52
|
+
text-align: center;
|
|
53
|
+
background: var(--order-bg);
|
|
54
|
+
border-radius: 32px;
|
|
55
|
+
&.active {
|
|
56
|
+
color: #fff;
|
|
57
|
+
background: var(--order-active-bg);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&-title {
|
|
61
|
+
font-family: Alibaba PuHuiTi 3, Alibaba PuHuiTi 30;
|
|
62
|
+
font-weight: normal;
|
|
63
|
+
font-size: 16px;
|
|
64
|
+
color: var(--title-color);
|
|
65
|
+
line-height: 24px;
|
|
66
|
+
&.active {
|
|
67
|
+
color: var(--modal-title-color);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&-line {
|
|
72
|
+
width: 44px;
|
|
73
|
+
height: 1px;
|
|
74
|
+
background: var(--line-bg);
|
|
75
|
+
margin: 0 8px;
|
|
76
|
+
|
|
77
|
+
&.active {
|
|
78
|
+
background: var(--order-active-bg);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.zg-p-list {
|
|
84
|
+
margin-top: 16px;
|
|
85
|
+
--content-bg: #f5f7fa;
|
|
86
|
+
--line-bg: #d3d4d8;
|
|
87
|
+
|
|
88
|
+
&.dark {
|
|
89
|
+
--content-bg: rgba(51, 166, 255, 0.1);
|
|
90
|
+
--line-bg: rgba(255, 255, 255, 0.2);
|
|
91
|
+
}
|
|
92
|
+
&-item {
|
|
93
|
+
width: 100%;
|
|
94
|
+
color: var(--modal-title-color);
|
|
95
|
+
&-head {
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
&-title {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 12px;
|
|
102
|
+
color: var(--blue-color);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
&-content {
|
|
106
|
+
display: flex;
|
|
107
|
+
justify-content: start;
|
|
108
|
+
gap: 16px;
|
|
109
|
+
padding: 8px 0 8px 8px;
|
|
110
|
+
&-bg {
|
|
111
|
+
width: 338px;
|
|
112
|
+
padding: 8px 12px;
|
|
113
|
+
background: var(--content-bg);
|
|
114
|
+
margin-top: 4px;
|
|
115
|
+
border-radius: 8px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
&-line {
|
|
119
|
+
width: 1px;
|
|
120
|
+
height: auto;
|
|
121
|
+
background: var(--line-bg);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BaseInfo } from "./BaseInfo";
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
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 _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; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
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); }
|
|
5
|
+
import VtxBaseModal from "../vtx-base-modal";
|
|
6
|
+
import { BaseInfo } from "./components";
|
|
7
|
+
import "./style";
|
|
8
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
+
var TABS_BASE = 'base';
|
|
10
|
+
var VtxZgModal = function VtxZgModal(props) {
|
|
11
|
+
var id = props.id,
|
|
12
|
+
title = props.title,
|
|
13
|
+
theme = props.theme,
|
|
14
|
+
source = props.source,
|
|
15
|
+
visible = props.visible,
|
|
16
|
+
onCancel = props.onCancel,
|
|
17
|
+
tabChose = props.tabChose;
|
|
18
|
+
var tabs = [{
|
|
19
|
+
key: TABS_BASE,
|
|
20
|
+
title: '总览信息'
|
|
21
|
+
}];
|
|
22
|
+
var contents = _defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
|
|
23
|
+
id: id
|
|
24
|
+
}));
|
|
25
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
26
|
+
children: visible && /*#__PURE__*/_jsx(VtxBaseModal, {
|
|
27
|
+
id: id,
|
|
28
|
+
type: "facility",
|
|
29
|
+
source: source,
|
|
30
|
+
title: title,
|
|
31
|
+
width: 1250,
|
|
32
|
+
top: 10,
|
|
33
|
+
theme: theme,
|
|
34
|
+
visible: visible,
|
|
35
|
+
onCancel: onCancel,
|
|
36
|
+
tabs: tabs,
|
|
37
|
+
tabChose: tabChose,
|
|
38
|
+
contents: contents
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
export default VtxZgModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index';
|
|
@@ -3,14 +3,14 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
4
|
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); }
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
+
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
7
|
+
import useGetChannels from "../_hooks/useGetChannels";
|
|
6
8
|
import { BaseInfo as DefaultBaseInfo } from "../vtx-default-modal/components";
|
|
7
9
|
import { BaseInfo, Calendar, Metering, WorkCondition } from "../vtx-df-modal/components";
|
|
8
10
|
// import Appraisal from '../vm-appraisal-info';
|
|
9
|
-
|
|
10
|
-
// import VmVideo from '../vm-video';
|
|
11
|
+
import VmVideo from "../_components/vm-video";
|
|
11
12
|
import { CommonService } from "../_service";
|
|
12
13
|
import { BaseService } from "../vtx-df-modal/api";
|
|
13
|
-
// import VideoService from '../vm-video/api';
|
|
14
14
|
import VmCustom from "../_components/vm-custom";
|
|
15
15
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
16
16
|
import VtxBaseModal from "../vtx-base-modal";
|
|
@@ -57,13 +57,9 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
57
57
|
detail = _CommonService$useLmD.detail;
|
|
58
58
|
var _BaseService$useRealt = BaseService.useRealtimeMonitor(info === null || info === void 0 ? void 0 : info.code),
|
|
59
59
|
realtimeMonitor = _BaseService$useRealt.realtimeMonitor;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// !!info?.typeCode,
|
|
63
|
-
// );
|
|
64
|
-
var channels = [];
|
|
60
|
+
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode)),
|
|
61
|
+
channels = _useGetChannels.channels;
|
|
65
62
|
// realtimeRes为空则无工况,beenWeigh为false则无计量
|
|
66
|
-
|
|
67
63
|
var tabsList = useMemo(function () {
|
|
68
64
|
var tabsList = tabsData;
|
|
69
65
|
if (!(detail !== null && detail !== void 0 && detail.beenWeigh)) {
|
|
@@ -82,7 +78,7 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
82
78
|
}
|
|
83
79
|
return tabsList;
|
|
84
80
|
}, [JSON.stringify(tabsData), JSON.stringify(channels), JSON.stringify(detail)]);
|
|
85
|
-
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, !(detail !== null && detail !== void 0 && detail.beenWeigh) && !(realtimeMonitor !== null && realtimeMonitor !== void 0 && realtimeMonitor.length) ? /*#__PURE__*/_jsx(DefaultBaseInfo, {
|
|
81
|
+
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, !(detail !== null && detail !== void 0 && detail.beenWeigh) && !(realtimeMonitor !== null && realtimeMonitor !== void 0 && realtimeMonitor.length) ? /*#__PURE__*/_jsx(DefaultBaseInfo, {
|
|
86
82
|
id: id,
|
|
87
83
|
info: info,
|
|
88
84
|
photos: photos,
|
|
@@ -101,6 +97,10 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
101
97
|
code: info === null || info === void 0 ? void 0 : info.code
|
|
102
98
|
})), TABS_Calendar, /*#__PURE__*/_jsx(Calendar, {
|
|
103
99
|
code: info === null || info === void 0 ? void 0 : info.code
|
|
100
|
+
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
101
|
+
id: id
|
|
102
|
+
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
103
|
+
channels: channels
|
|
104
104
|
}));
|
|
105
105
|
// 自定义页签可配置多个,
|
|
106
106
|
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|