@vtx/modals2 5.0.3 → 5.0.4
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 +1 -1
- package/lib/_components/vm-calendar/style/index.less +4 -7
- package/lib/_components/vm-card-statistics/index.less +27 -27
- 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 +7 -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 +9 -0
- package/lib/_components/vm-title/index.js +3 -2
- package/lib/_components/vm-wrapper/index.js +32 -10
- package/lib/_components/vm-wrapper/style/index.less +28 -0
- 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.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-base-modal/index.js +5 -2
- package/lib/vtx-car-modal/api.js +4 -3
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- 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 +5 -1
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +7 -6
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +20 -12
- 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/index.js +16 -2
- 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/index.js +10 -7
- 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 +611 -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 -9
- 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/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/ThrowRecord/index.js +4 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +6 -2
- package/lib/vtx-tfd-modal/api.js +22 -27
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +107 -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 +287 -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/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
|
@@ -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) {
|
package/package.json
CHANGED
|
Binary file
|