@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
|
@@ -10,46 +10,85 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
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
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
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import {
|
|
13
|
+
import { useSetState } from 'ahooks';
|
|
14
|
+
import { Button, Checkbox, Form, message, Radio } from 'antd';
|
|
15
|
+
import dayjs from 'dayjs';
|
|
14
16
|
import { cloneDeep } from 'lodash';
|
|
15
17
|
import { useEffect, useState } from 'react';
|
|
16
|
-
import { VmExtraTab } from '..';
|
|
18
|
+
import { VmExtraTab, VmWrapper } from '..';
|
|
17
19
|
import useSettings from "../../_hooks/useSettings";
|
|
18
|
-
import { getPreviewUrl } from "../../_service";
|
|
20
|
+
import { getBackUrl, getPreviewUrl } from "../../_service";
|
|
19
21
|
import { ChannelOfflineIcon, Rect1Icon, Rect4Icon, Rect9Icon, ShrinkIcon } from "../../_util/iconSvgHtml";
|
|
20
|
-
import { VMInput } from "../vm-filter";
|
|
22
|
+
import VmFilter, { VMDatePicker, VMInput } from "../vm-filter";
|
|
21
23
|
import { VmTabs } from "../vm-tabs";
|
|
24
|
+
import HistoryGrid from "./HistoryGrid";
|
|
22
25
|
import "./index.less";
|
|
23
26
|
import RealtimeGrid from "./RealtimeGrid";
|
|
24
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
28
|
var VmVideo = function VmVideo(_ref) {
|
|
26
|
-
var _checkedChannels$filt;
|
|
27
29
|
var _ref$channels = _ref.channels,
|
|
28
30
|
channels = _ref$channels === void 0 ? [] : _ref$channels;
|
|
29
31
|
var _useSettings = useSettings(),
|
|
30
32
|
isDark = _useSettings.isDark;
|
|
31
|
-
var
|
|
33
|
+
var _Form$useForm = Form.useForm(),
|
|
34
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
35
|
+
form = _Form$useForm2[0];
|
|
36
|
+
var _useState = useState('1'),
|
|
32
37
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var _useState3 = useState('
|
|
38
|
+
tabKey = _useState2[0],
|
|
39
|
+
setTabKey = _useState2[1];
|
|
40
|
+
var _useState3 = useState('4'),
|
|
36
41
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var _useState5 = useState(
|
|
42
|
+
mode = _useState4[0],
|
|
43
|
+
setMode = _useState4[1];
|
|
44
|
+
var _useState5 = useState([]),
|
|
40
45
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
checkedChannels = _useState6[0],
|
|
47
|
+
setCheckedChannels = _useState6[1];
|
|
48
|
+
var _useSetState = useSetState({
|
|
49
|
+
dateType: 'custom',
|
|
50
|
+
datePickerDisabled: true,
|
|
51
|
+
startTime: dayjs().format('YYYY-MM-DD 00:00:00'),
|
|
52
|
+
endTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
|
53
|
+
history: {}
|
|
54
|
+
}),
|
|
55
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
56
|
+
state = _useSetState2[0],
|
|
57
|
+
setState = _useSetState2[1];
|
|
58
|
+
var dateType = state.dateType,
|
|
59
|
+
datePickerDisabled = state.datePickerDisabled,
|
|
60
|
+
startTime = state.startTime,
|
|
61
|
+
endTime = state.endTime,
|
|
62
|
+
history = state.history;
|
|
51
63
|
useEffect(function () {
|
|
52
|
-
if (
|
|
64
|
+
if (dateType === 'custom') {
|
|
65
|
+
setState({
|
|
66
|
+
datePickerDisabled: false
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
setState({
|
|
70
|
+
datePickerDisabled: true
|
|
71
|
+
});
|
|
72
|
+
if (dateType === 'dayBeforeYesterday') {
|
|
73
|
+
setState({
|
|
74
|
+
startTime: dayjs().subtract(2, 'day').format('YYYY-MM-DD 00:00:00'),
|
|
75
|
+
endTime: dayjs().subtract(2, 'day').format('YYYY-MM-DD 23:59:59')
|
|
76
|
+
});
|
|
77
|
+
} else if (dateType === 'yesterday') {
|
|
78
|
+
setState({
|
|
79
|
+
startTime: dayjs().subtract(1, 'day').format('YYYY-MM-DD 00:00:00'),
|
|
80
|
+
endTime: dayjs().subtract(1, 'day').format('YYYY-MM-DD 23:59:59')
|
|
81
|
+
});
|
|
82
|
+
} else if (dateType === 'today') {
|
|
83
|
+
setState({
|
|
84
|
+
startTime: dayjs().format('YYYY-MM-DD 00:00:00'),
|
|
85
|
+
endTime: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}, [dateType]);
|
|
90
|
+
useEffect(function () {
|
|
91
|
+
if (channels !== null && channels !== void 0 && channels.length && tabKey === '1') {
|
|
53
92
|
var _channels$filter;
|
|
54
93
|
Promise.all(channels === null || channels === void 0 || (_channels$filter = channels.filter(function (ele, index) {
|
|
55
94
|
return index < 4;
|
|
@@ -65,99 +104,216 @@ var VmVideo = function VmVideo(_ref) {
|
|
|
65
104
|
});
|
|
66
105
|
}));
|
|
67
106
|
});
|
|
107
|
+
} else {}
|
|
108
|
+
if (tabKey === '2') {
|
|
109
|
+
var _channels$;
|
|
110
|
+
form.setFieldsValue({
|
|
111
|
+
channelNum: (_channels$ = channels[0]) === null || _channels$ === void 0 ? void 0 : _channels$.channelNum
|
|
112
|
+
});
|
|
68
113
|
}
|
|
69
|
-
}, [channels]);
|
|
114
|
+
}, [channels, tabKey]);
|
|
70
115
|
var getActiveModeFill = function getActiveModeFill(key) {
|
|
71
116
|
if (isDark) {
|
|
72
117
|
return mode === key ? '#fff' : '#009DFF';
|
|
73
118
|
}
|
|
74
119
|
return mode === key ? '#1677FF' : '#8C8C8C';
|
|
75
120
|
};
|
|
121
|
+
var onHistorySubmit = function onHistorySubmit(values) {
|
|
122
|
+
var channel = channels.find(function (ele) {
|
|
123
|
+
return ele.channelNum === values.channelNum;
|
|
124
|
+
});
|
|
125
|
+
getBackUrl({
|
|
126
|
+
beginTime: startTime,
|
|
127
|
+
endTime: endTime,
|
|
128
|
+
channelNum: values.channelNum,
|
|
129
|
+
deviceId: channel.videoDeviceId
|
|
130
|
+
}).then(function (res) {
|
|
131
|
+
var _res$data;
|
|
132
|
+
if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.totalTimeUrl)) {
|
|
133
|
+
message.info('未查询到视频!');
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
setState({
|
|
137
|
+
history: res === null || res === void 0 ? void 0 : res.data
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
76
141
|
return /*#__PURE__*/_jsxs("div", {
|
|
77
142
|
className: "vm-video ".concat(isDark ? 'dark' : ''),
|
|
78
|
-
children: [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return ele.channelName.indexOf(filterVal) > -1;
|
|
119
|
-
})) === null || _checkedChannels$filt === void 0 ? void 0 : _checkedChannels$filt.map(function (ele, index) {
|
|
120
|
-
var color = ele.checked ? isDark ? '#009DFF' : '#1677FF' : isDark ? '#fff' : '#595959';
|
|
121
|
-
return /*#__PURE__*/_jsx("div", {
|
|
122
|
-
className: "channels--item",
|
|
123
|
-
children: /*#__PURE__*/_jsxs(Checkbox, {
|
|
124
|
-
checked: ele.checked,
|
|
125
|
-
onChange: function onChange(e) {
|
|
126
|
-
var list = cloneDeep(checkedChannels);
|
|
127
|
-
if (e.target.checked) {
|
|
128
|
-
getPreviewUrl({
|
|
129
|
-
channelNum: ele.channelNum,
|
|
130
|
-
deviceId: ele.deviceId
|
|
131
|
-
}).then(function (res) {
|
|
132
|
-
list[index] = _objectSpread({
|
|
133
|
-
checked: true
|
|
134
|
-
}, res.data);
|
|
135
|
-
setCheckedChannels(list);
|
|
136
|
-
});
|
|
137
|
-
} else {
|
|
138
|
-
list[index].checked = false;
|
|
139
|
-
list[index].url = '';
|
|
140
|
-
list[index].player = '';
|
|
141
|
-
setCheckedChannels(list);
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
style: {
|
|
145
|
-
color: color
|
|
146
|
-
},
|
|
147
|
-
children: [/*#__PURE__*/_jsx(ChannelOfflineIcon, {
|
|
148
|
-
fill: color
|
|
149
|
-
}), ele.channelName]
|
|
143
|
+
children: [/*#__PURE__*/_jsx(_Fragment, {
|
|
144
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
145
|
+
className: "vm-video-left",
|
|
146
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
147
|
+
title: "\u67E5\u8BE2\u89C6\u9891",
|
|
148
|
+
children: [tabKey === '1' && /*#__PURE__*/_jsx("div", {
|
|
149
|
+
className: "vm-video-left-channels",
|
|
150
|
+
children: checkedChannels === null || checkedChannels === void 0 ? void 0 : checkedChannels.map(function (ele, index) {
|
|
151
|
+
var color = ele.checked ? isDark ? '#009DFF' : '#1677FF' : isDark ? '#fff' : '#595959';
|
|
152
|
+
return /*#__PURE__*/_jsx("div", {
|
|
153
|
+
className: "channels--item",
|
|
154
|
+
children: /*#__PURE__*/_jsxs(Checkbox, {
|
|
155
|
+
checked: ele.checked,
|
|
156
|
+
onChange: function onChange(e) {
|
|
157
|
+
var list = cloneDeep(checkedChannels);
|
|
158
|
+
if (e.target.checked) {
|
|
159
|
+
getPreviewUrl({
|
|
160
|
+
channelNum: ele.channelNum,
|
|
161
|
+
deviceId: ele.deviceId
|
|
162
|
+
}).then(function (res) {
|
|
163
|
+
list[index] = _objectSpread({
|
|
164
|
+
checked: true
|
|
165
|
+
}, res.data);
|
|
166
|
+
setCheckedChannels(list);
|
|
167
|
+
});
|
|
168
|
+
} else {
|
|
169
|
+
list[index].checked = false;
|
|
170
|
+
list[index].url = '';
|
|
171
|
+
list[index].player = '';
|
|
172
|
+
setCheckedChannels(list);
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
style: {
|
|
176
|
+
color: color
|
|
177
|
+
},
|
|
178
|
+
children: [/*#__PURE__*/_jsx(ChannelOfflineIcon, {
|
|
179
|
+
fill: color
|
|
180
|
+
}), ele.channelName]
|
|
181
|
+
})
|
|
182
|
+
}, index);
|
|
150
183
|
})
|
|
151
|
-
},
|
|
184
|
+
}), tabKey === '2' && /*#__PURE__*/_jsxs("div", {
|
|
185
|
+
className: "vm-video-history",
|
|
186
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
187
|
+
className: "form",
|
|
188
|
+
children: /*#__PURE__*/_jsxs(Form, {
|
|
189
|
+
form: form,
|
|
190
|
+
name: "history",
|
|
191
|
+
labelCol: {
|
|
192
|
+
span: 6
|
|
193
|
+
},
|
|
194
|
+
wrapperCol: {
|
|
195
|
+
span: 18
|
|
196
|
+
},
|
|
197
|
+
onFinish: onHistorySubmit,
|
|
198
|
+
requiredMark: false,
|
|
199
|
+
colon: true,
|
|
200
|
+
initialValues: {
|
|
201
|
+
beginTime: startTime ? dayjs(startTime) : dayjs().subtract(1, 'day').startOf('day'),
|
|
202
|
+
endTime: endTime ? dayjs(endTime) : dayjs().subtract(1, 'day').endOf('day')
|
|
203
|
+
},
|
|
204
|
+
autoComplete: "off",
|
|
205
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
|
206
|
+
label: "",
|
|
207
|
+
wrapperCol: {
|
|
208
|
+
span: 24
|
|
209
|
+
},
|
|
210
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
211
|
+
name: "radiogroup",
|
|
212
|
+
size: "small",
|
|
213
|
+
value: dateType,
|
|
214
|
+
onChange: function onChange(e) {
|
|
215
|
+
setState({
|
|
216
|
+
dateType: e.target.value
|
|
217
|
+
});
|
|
218
|
+
},
|
|
219
|
+
style: {
|
|
220
|
+
whiteSpace: 'nowrap'
|
|
221
|
+
},
|
|
222
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
223
|
+
value: "dayBeforeYesterday",
|
|
224
|
+
children: "\u524D\u65E5"
|
|
225
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
226
|
+
value: "yesterday",
|
|
227
|
+
children: "\u6628\u65E5"
|
|
228
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
229
|
+
value: "today",
|
|
230
|
+
children: "\u4ECA\u65E5"
|
|
231
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
232
|
+
value: "custom",
|
|
233
|
+
children: "\u81EA\u5B9A\u4E49"
|
|
234
|
+
})]
|
|
235
|
+
})
|
|
236
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
237
|
+
label: "\u5F00\u59CB\u65F6\u95F4",
|
|
238
|
+
name: "beginTime",
|
|
239
|
+
rules: [{
|
|
240
|
+
required: true,
|
|
241
|
+
message: '请输入开始时间'
|
|
242
|
+
}],
|
|
243
|
+
children: /*#__PURE__*/_jsx(VMDatePicker, {
|
|
244
|
+
style: {
|
|
245
|
+
width: 180
|
|
246
|
+
},
|
|
247
|
+
showTime: true,
|
|
248
|
+
disabled: datePickerDisabled,
|
|
249
|
+
dropdownClassName: "date-dark"
|
|
250
|
+
})
|
|
251
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
252
|
+
label: "\u7ED3\u675F\u65F6\u95F4",
|
|
253
|
+
name: "endTime",
|
|
254
|
+
rules: [{
|
|
255
|
+
required: true,
|
|
256
|
+
message: '请输入结束时间'
|
|
257
|
+
}],
|
|
258
|
+
children: /*#__PURE__*/_jsx(VMDatePicker, {
|
|
259
|
+
style: {
|
|
260
|
+
width: 180
|
|
261
|
+
},
|
|
262
|
+
showTime: true,
|
|
263
|
+
disabled: datePickerDisabled
|
|
264
|
+
})
|
|
265
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
266
|
+
label: "\u89C6\u9891\u901A\u9053",
|
|
267
|
+
name: "channelNum",
|
|
268
|
+
rules: [{
|
|
269
|
+
required: true,
|
|
270
|
+
message: '请选择视频通道'
|
|
271
|
+
}],
|
|
272
|
+
children: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
273
|
+
options: checkedChannels === null || checkedChannels === void 0 ? void 0 : checkedChannels.map(function (ele) {
|
|
274
|
+
return {
|
|
275
|
+
value: ele.channelNum,
|
|
276
|
+
label: ele.channelName
|
|
277
|
+
};
|
|
278
|
+
}),
|
|
279
|
+
style: {
|
|
280
|
+
width: 180
|
|
281
|
+
}
|
|
282
|
+
})
|
|
283
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
284
|
+
wrapperCol: {
|
|
285
|
+
span: 24
|
|
286
|
+
},
|
|
287
|
+
style: {
|
|
288
|
+
textAlign: 'center'
|
|
289
|
+
},
|
|
290
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
291
|
+
type: "primary",
|
|
292
|
+
htmlType: "submit",
|
|
293
|
+
className: "submit-button",
|
|
294
|
+
children: "\u67E5\u8BE2"
|
|
295
|
+
})
|
|
296
|
+
})]
|
|
297
|
+
})
|
|
298
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
299
|
+
className: "vm-video-history-row"
|
|
300
|
+
})]
|
|
301
|
+
})]
|
|
152
302
|
})
|
|
153
|
-
})
|
|
303
|
+
})
|
|
154
304
|
}), /*#__PURE__*/_jsxs("div", {
|
|
155
305
|
className: "vm-video-right",
|
|
156
306
|
children: [/*#__PURE__*/_jsx(VmTabs, {
|
|
157
307
|
defaultActiveKey: "1",
|
|
158
308
|
activeKey: tabKey,
|
|
159
309
|
onChange: function onChange(key) {
|
|
160
|
-
|
|
310
|
+
setTabKey(key);
|
|
311
|
+
if (key === '2') {
|
|
312
|
+
// extraTabRef.current?.setActiveKey(1)
|
|
313
|
+
setMode('1');
|
|
314
|
+
} else {
|
|
315
|
+
setMode('4');
|
|
316
|
+
}
|
|
161
317
|
},
|
|
162
318
|
items: [{
|
|
163
319
|
label: "\u5B9E\u65F6\u89C6\u9891",
|
|
@@ -166,7 +322,7 @@ var VmVideo = function VmVideo(_ref) {
|
|
|
166
322
|
label: "\u5386\u53F2\u89C6\u9891",
|
|
167
323
|
key: '2'
|
|
168
324
|
}],
|
|
169
|
-
tabBarExtraContent: /*#__PURE__*/_jsx(VmExtraTab, {
|
|
325
|
+
tabBarExtraContent: tabKey === '1' ? /*#__PURE__*/_jsx(VmExtraTab, {
|
|
170
326
|
style: {
|
|
171
327
|
width: '92px'
|
|
172
328
|
},
|
|
@@ -193,35 +349,65 @@ var VmVideo = function VmVideo(_ref) {
|
|
|
193
349
|
onChange: function onChange(key) {
|
|
194
350
|
setMode(key);
|
|
195
351
|
}
|
|
196
|
-
})
|
|
352
|
+
}) : /*#__PURE__*/_jsx(_Fragment, {})
|
|
197
353
|
}), /*#__PURE__*/_jsx("div", {
|
|
198
354
|
className: "vm-video-content _".concat(mode),
|
|
199
|
-
children: getGridItems(mode, checkedChannels === null || checkedChannels === void 0 ? void 0 : checkedChannels.filter(function (ele) {
|
|
200
|
-
return ele.
|
|
201
|
-
}))
|
|
355
|
+
children: tabKey === '1' ? getGridItems(mode, checkedChannels === null || checkedChannels === void 0 ? void 0 : checkedChannels.filter(function (ele) {
|
|
356
|
+
return ele.checked;
|
|
357
|
+
}), setCheckedChannels) : /*#__PURE__*/_jsx(HistoryGrid, {
|
|
358
|
+
channel: history
|
|
359
|
+
})
|
|
202
360
|
})]
|
|
203
361
|
})]
|
|
204
362
|
});
|
|
205
363
|
};
|
|
206
364
|
export default VmVideo;
|
|
207
|
-
var getGridItems = function getGridItems(latestGrid, channels) {
|
|
365
|
+
var getGridItems = function getGridItems(latestGrid, channels, setCheckedChannels) {
|
|
208
366
|
var items = [];
|
|
209
|
-
|
|
210
|
-
var element = /*#__PURE__*/_jsx(RealtimeGrid
|
|
211
|
-
// active={state.activeIndex === i}
|
|
212
|
-
, {
|
|
213
|
-
// onClick={() => setState({ activeIndex: i })}
|
|
367
|
+
var _loop = function _loop(i) {
|
|
368
|
+
var element = /*#__PURE__*/_jsx(RealtimeGrid, {
|
|
214
369
|
channel: channels[i] || {
|
|
215
370
|
channelNum: '',
|
|
216
371
|
channelId: ''
|
|
217
372
|
},
|
|
218
373
|
onClose: function onClose() {
|
|
219
|
-
|
|
374
|
+
var list = cloneDeep(channels);
|
|
375
|
+
list[i].checked = false;
|
|
376
|
+
list[i].url = '';
|
|
377
|
+
list[i].player = '';
|
|
378
|
+
setCheckedChannels(list);
|
|
220
379
|
},
|
|
221
380
|
scale: 1
|
|
222
381
|
// onScreenshot={onScreenshot}
|
|
223
382
|
}, i);
|
|
224
383
|
items.push(element);
|
|
384
|
+
};
|
|
385
|
+
for (var i = 0; i < Number(latestGrid); i++) {
|
|
386
|
+
_loop(i);
|
|
225
387
|
}
|
|
226
388
|
return items;
|
|
389
|
+
};
|
|
390
|
+
export var Filter = function Filter(isDark, isShrink, setFilterVal) {
|
|
391
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
392
|
+
className: "vm-video-left-filter",
|
|
393
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
394
|
+
className: "vm-video-left-filter-input",
|
|
395
|
+
children: /*#__PURE__*/_jsx(VMInput, {
|
|
396
|
+
onValChange: function onValChange(val) {
|
|
397
|
+
setFilterVal(val);
|
|
398
|
+
}
|
|
399
|
+
})
|
|
400
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
401
|
+
className: "vm-video-left-filter-btn",
|
|
402
|
+
onClick: function onClick() {
|
|
403
|
+
return setIsShrink(!isShrink);
|
|
404
|
+
},
|
|
405
|
+
children: /*#__PURE__*/_jsx(ShrinkIcon, {
|
|
406
|
+
fill: isDark ? '#009DFF' : '#595959',
|
|
407
|
+
style: {
|
|
408
|
+
transform: isShrink ? 'rotate(180deg)' : ''
|
|
409
|
+
}
|
|
410
|
+
})
|
|
411
|
+
})]
|
|
412
|
+
});
|
|
227
413
|
};
|
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
--wborder-color: #1064a7;
|
|
17
17
|
--check-bg: #009dff;
|
|
18
18
|
}
|
|
19
|
-
.vm-video-
|
|
19
|
+
.vm-video-history .ant-radio-wrapper {
|
|
20
|
+
color: var(--modal-title-color);
|
|
21
|
+
}
|
|
22
|
+
.vm-video-history .ant-form-item-label > label {
|
|
23
|
+
color: var(--modal-title-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
.vm-video-right {
|
|
21
27
|
background: var(--wbg-color);
|
|
22
28
|
border-radius: 8px;
|
|
@@ -161,6 +167,9 @@
|
|
|
161
167
|
}
|
|
162
168
|
|
|
163
169
|
.close {
|
|
170
|
+
color: white;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
font-size: 16px;
|
|
164
173
|
margin-left: auto;
|
|
165
174
|
}
|
|
166
175
|
}
|
|
@@ -11,7 +11,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
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
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { Tooltip } from 'antd';
|
|
14
|
-
import
|
|
14
|
+
import classnames from 'classnames';
|
|
15
|
+
import _, { isEmpty } from 'lodash';
|
|
15
16
|
import { useEffect, useState } from 'react';
|
|
16
17
|
import useSettings from "../../_hooks/useSettings";
|
|
17
18
|
import { ChartIcon, DateIcon, ListIcon } from "../../_util/iconSvgHtml";
|
|
@@ -26,8 +27,9 @@ export default function VmWrapper(props) {
|
|
|
26
27
|
var _useSettings = useSettings(),
|
|
27
28
|
isDark = _useSettings.isDark;
|
|
28
29
|
var _props$title = props.title,
|
|
29
|
-
title = _props$title === void 0 ? '
|
|
30
|
+
title = _props$title === void 0 ? '' : _props$title,
|
|
30
31
|
extra = props.extra,
|
|
32
|
+
extraLeft = props.extraLeft,
|
|
31
33
|
_props$extraStyle = props.extraStyle,
|
|
32
34
|
extraStyle = _props$extraStyle === void 0 ? {} : _props$extraStyle,
|
|
33
35
|
_props$needChange = props.needChange,
|
|
@@ -54,7 +56,14 @@ export default function VmWrapper(props) {
|
|
|
54
56
|
_props$showTitle = props.showTitle,
|
|
55
57
|
showTitle = _props$showTitle === void 0 ? true : _props$showTitle,
|
|
56
58
|
_props$showContent = props.showContent,
|
|
57
|
-
showContent = _props$showContent === void 0 ? true : _props$showContent
|
|
59
|
+
showContent = _props$showContent === void 0 ? true : _props$showContent,
|
|
60
|
+
_props$tabList = props.tabList,
|
|
61
|
+
tabList = _props$tabList === void 0 ? [] : _props$tabList,
|
|
62
|
+
_props$activeKey = props.activeKey,
|
|
63
|
+
activeKey = _props$activeKey === void 0 ? '' : _props$activeKey,
|
|
64
|
+
onChangeTab = props.onChangeTab,
|
|
65
|
+
_props$pickerProps = props.pickerProps,
|
|
66
|
+
pickerProps = _props$pickerProps === void 0 ? {} : _props$pickerProps;
|
|
58
67
|
var _useState = useState([]),
|
|
59
68
|
_useState2 = _slicedToArray(_useState, 2),
|
|
60
69
|
changeList = _useState2[0],
|
|
@@ -108,10 +117,23 @@ export default function VmWrapper(props) {
|
|
|
108
117
|
children: [showTitle && /*#__PURE__*/_jsxs("div", {
|
|
109
118
|
className: "div-wrapper-head",
|
|
110
119
|
style: _objectSpread({}, headerStyle),
|
|
111
|
-
children: [title
|
|
120
|
+
children: [isEmpty(tabList) ? title : /*#__PURE__*/_jsx("div", {
|
|
121
|
+
className: "div-wrapper-tabs-wrap",
|
|
122
|
+
children: tabList.map(function (item) {
|
|
123
|
+
return /*#__PURE__*/_jsx("div", {
|
|
124
|
+
className: classnames('div-wrapper-tabs-item', {
|
|
125
|
+
active: item.key === activeKey
|
|
126
|
+
}),
|
|
127
|
+
onClick: function onClick() {
|
|
128
|
+
return onChangeTab(item.key);
|
|
129
|
+
},
|
|
130
|
+
children: item.label
|
|
131
|
+
}, item.key);
|
|
132
|
+
})
|
|
133
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
112
134
|
className: "extra",
|
|
113
135
|
style: _objectSpread({}, extraStyle),
|
|
114
|
-
children: [needChange && /*#__PURE__*/_jsx("div", {
|
|
136
|
+
children: [extraLeft ? extraLeft : null, needChange && /*#__PURE__*/_jsx("div", {
|
|
115
137
|
className: "extra-type",
|
|
116
138
|
children: changeList.map(function (item) {
|
|
117
139
|
var Icon = item.icon;
|
|
@@ -130,27 +152,27 @@ export default function VmWrapper(props) {
|
|
|
130
152
|
})
|
|
131
153
|
}, item.key);
|
|
132
154
|
})
|
|
133
|
-
}), filterType === 'datePicker' ? /*#__PURE__*/_jsx(VMDatePicker, {
|
|
155
|
+
}), filterType === 'datePicker' ? /*#__PURE__*/_jsx(VMDatePicker, _objectSpread({
|
|
134
156
|
defaultValue: defaultValue,
|
|
135
157
|
value: dateValue,
|
|
136
158
|
onChange: props.filterChange,
|
|
137
159
|
disabledDate: disabledDate
|
|
138
|
-
}) : filterType === 'rangePicker' ? /*#__PURE__*/_jsx(VMRangePicker, {
|
|
160
|
+
}, pickerProps)) : filterType === 'rangePicker' ? /*#__PURE__*/_jsx(VMRangePicker, _objectSpread({
|
|
139
161
|
defaultValue: defaultValue || [],
|
|
140
162
|
value: dateValue || [],
|
|
141
163
|
onChange: props.filterChange,
|
|
142
164
|
disabledDate: disabledDate
|
|
143
|
-
}) : filterType === 'monthPicker' ? /*#__PURE__*/_jsx(VMMonthPicker, {
|
|
165
|
+
}, pickerProps)) : filterType === 'monthPicker' ? /*#__PURE__*/_jsx(VMMonthPicker, _objectSpread({
|
|
144
166
|
defaultValue: defaultValue,
|
|
145
167
|
value: dateValue,
|
|
146
168
|
onChange: props.filterChange,
|
|
147
169
|
disabledDate: disabledDate
|
|
148
|
-
}) : filterType === 'yearPicker' ? /*#__PURE__*/_jsx(VMYearPicker, {
|
|
170
|
+
}, pickerProps)) : filterType === 'yearPicker' ? /*#__PURE__*/_jsx(VMYearPicker, _objectSpread({
|
|
149
171
|
defaultValue: defaultValue,
|
|
150
172
|
value: dateValue,
|
|
151
173
|
onChange: props.filterChange,
|
|
152
174
|
disabledDate: disabledDate
|
|
153
|
-
}) : null, extra ? extra : null]
|
|
175
|
+
}, pickerProps)) : null, extra ? extra : null]
|
|
154
176
|
})]
|
|
155
177
|
}), showContent && /*#__PURE__*/_jsx("div", {
|
|
156
178
|
className: "div-wrapper-content",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
--wborder-color: #f1f0f0;
|
|
5
5
|
--wfilter-bg: #f5f5f5;
|
|
6
6
|
--wtype-bg: #fff;
|
|
7
|
+
--tab-active-color: #1677FF;
|
|
7
8
|
|
|
8
9
|
&.dark {
|
|
9
10
|
--wbg-color: rgba(0, 155, 233, 10%);
|
|
@@ -11,6 +12,33 @@
|
|
|
11
12
|
--wborder-color: #1064a7;
|
|
12
13
|
--wfilter-bg: #0b588e;
|
|
13
14
|
--wtype-bg: #0168b0;
|
|
15
|
+
--tab-active-color: #009DFF;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-tabs-wrap {
|
|
19
|
+
display: flex;
|
|
20
|
+
gap: 12px;
|
|
21
|
+
align-items: center;
|
|
22
|
+
color: var(--w-color);
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-tabs-item {
|
|
27
|
+
padding: 0 8px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
&.active {
|
|
30
|
+
color: var(--tab-active-color);
|
|
31
|
+
position: relative;
|
|
32
|
+
&:before {
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 2px;
|
|
37
|
+
background: var(--tab-active-color);
|
|
38
|
+
bottom: -12px;
|
|
39
|
+
left: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
14
42
|
}
|
|
15
43
|
|
|
16
44
|
width: 100%;
|
package/lib/_service/index.js
CHANGED
|
@@ -89,6 +89,11 @@ export var getPreviewUrl = function getPreviewUrl(params) {
|
|
|
89
89
|
data: params
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
+
export var getBackUrl = function getBackUrl(params) {
|
|
93
|
+
return request.get('/cloud/vis/base/cp/artemis/playbackUrl.smvc', {
|
|
94
|
+
data: params
|
|
95
|
+
});
|
|
96
|
+
};
|
|
92
97
|
export var execute = function execute(code, parameters) {
|
|
93
98
|
return request.post('/cloud/sjzt-reborn/api/v101/dataSet/execute', {
|
|
94
99
|
data: JSON.stringify({
|