@vtx/modals2 5.0.14 → 5.0.15
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/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-extra-tab/style/index.less +1 -1
- package/lib/_components/vm-factor/index.js +1 -1
- package/lib/_components/vm-factor-list/index.js +4 -1
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/style/index.less +4 -3
- package/lib/_components/vm-pie-charts/index.js +3 -0
- package/lib/_components/vm-table/index.js +4 -4
- package/lib/_components/vm-wrapper/style/index.less +1 -1
- package/lib/_util/iconSvgHtml.js +653 -224
- package/lib/index.js +4 -1
- package/lib/style/index.less +1 -6
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.js +28 -3
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-base-modal/index.js +2 -2
- package/lib/vtx-base-modal/style/index.less +3 -1
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/index.js +29 -29
- package/lib/vtx-cc-cp-modal/index.js +6 -6
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cc-unit-modal/index.js +6 -6
- package/lib/vtx-cp-modal/index.js +10 -14
- package/lib/vtx-default-modal/components/BaseInfo/index.less +1 -0
- package/lib/vtx-default-modal/index.js +3 -3
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-device-modal/index.js +5 -5
- package/lib/vtx-df-modal/index.js +5 -6
- package/lib/vtx-housing-estate-modal/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +20 -0
- package/lib/vtx-jzlj-gcxm-modal/components/index.js +2 -0
- package/lib/vtx-jzlj-gcxm-modal/index.js +77 -0
- package/lib/vtx-jzlj-gcxm-modal/style/index.js +1 -0
- package/lib/vtx-jzlj-gcxm-modal/style/index.less +1 -0
- package/lib/vtx-qyry-modal/index.js +6 -6
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/config.js +52 -52
- package/lib/vtx-restaurant-modal/index.js +6 -6
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-road-modal/index.js +3 -3
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +1 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.less +6 -0
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +1 -1
- package/lib/vtx-shxq-modal/index.js +2 -2
- package/lib/vtx-staff-modal/index.js +5 -9
- package/lib/vtx-tfd-modal/index.js +2 -2
- package/lib/vtx-wr-modal/components/Base/Ptss.js +71 -31
- package/lib/vtx-wr-modal/components/Base/assets/alert.png +0 -0
- package/lib/vtx-wr-modal/components/Base/index.js +15 -3
- package/lib/vtx-wr-modal/components/Base/index.less +14 -1
- package/lib/vtx-wr-modal/index.js +3 -1
- package/lib/vtx-zf-modal/components/Record/index.js +10 -2
- package/lib/vtx-zf-modal/index.js +1 -17
- package/lib/vtx-zzz-modal/style/index.js +1 -0
- package/package.json +1 -1
|
@@ -10,21 +10,17 @@ import { BaseService } from "./api";
|
|
|
10
10
|
import { AlarmInfo, Attendance, BaseInfo, Calendar, Equipment } from "./components";
|
|
11
11
|
import "./style";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
var TABS_BASE = '
|
|
14
|
-
var TABS_CALENDAR = '
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var TABS_EUQIPMENT = 'staff-equipment';
|
|
13
|
+
var TABS_BASE = 'base';
|
|
14
|
+
var TABS_CALENDAR = 'calendar';
|
|
15
|
+
var TABS_ALARM = 'alarm';
|
|
16
|
+
var TABS_ATTENDANCE = 'attendance';
|
|
17
|
+
var TABS_EUQIPMENT = 'equipment';
|
|
19
18
|
var tabs = [{
|
|
20
19
|
key: TABS_BASE,
|
|
21
20
|
title: '总览信息'
|
|
22
21
|
}, {
|
|
23
22
|
key: TABS_CALENDAR,
|
|
24
23
|
title: '作业日历'
|
|
25
|
-
}, {
|
|
26
|
-
key: TABS_DETAIL,
|
|
27
|
-
title: '详细信息'
|
|
28
24
|
}, {
|
|
29
25
|
key: TABS_ALARM,
|
|
30
26
|
title: '报警信息'
|
|
@@ -12,9 +12,9 @@ import { BaseInfo } from "./components";
|
|
|
12
12
|
import "./style";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
var TABS_BASE = 'base';
|
|
15
|
-
var TABS_CALENDAR = '
|
|
15
|
+
var TABS_CALENDAR = 'calendar';
|
|
16
16
|
var TABS_THROW = 'throw';
|
|
17
|
-
var TABS_ALARM = '
|
|
17
|
+
var TABS_ALARM = 'alarm';
|
|
18
18
|
var tabs = [{
|
|
19
19
|
key: TABS_BASE,
|
|
20
20
|
title: '总览信息'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
export default (function (props) {
|
|
3
|
-
var _gcDetail$pitTotalMal, _gcDetail$urinalNums, _gcDetail$squatNumMal, _gcDetail$seatNumMale, _gcDetail$manAccessib, _gcDetail$pitTotalFem, _gcDetail$squatNumFem, _gcDetail$seatNumFema, _gcDetail$womanAccess;
|
|
3
|
+
var _gcDetail$pitInuseMal, _gcDetail$pitTotalMal, _gcDetail$urinalNums, _gcDetail$squatNumMal, _gcDetail$seatNumMale, _gcDetail$manAccessib, _gcDetail$pitInuseFem, _gcDetail$pitTotalFem, _gcDetail$squatNumFem, _gcDetail$seatNumFema, _gcDetail$womanAccess;
|
|
4
4
|
var theme = props.theme,
|
|
5
5
|
gcDetail = props.gcDetail,
|
|
6
6
|
fields = props.fields;
|
|
@@ -56,24 +56,44 @@ export default (function (props) {
|
|
|
56
56
|
}), /*#__PURE__*/_jsx("div", {
|
|
57
57
|
children: "\u7537\u5395"
|
|
58
58
|
})]
|
|
59
|
-
}),
|
|
59
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
60
60
|
className: "wr-total-num",
|
|
61
|
-
children: [/*#__PURE__*/_jsxs(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
children: [gcDetail.hasDevice && /*#__PURE__*/_jsxs(_Fragment, {
|
|
62
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
63
|
+
style: {
|
|
64
|
+
display: 'flex',
|
|
65
|
+
alignItems: 'center'
|
|
66
|
+
},
|
|
67
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
68
|
+
className: "num-tip-blue"
|
|
69
|
+
}), "\u5360\u7528"]
|
|
70
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
71
|
+
className: "wr-num-total",
|
|
72
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
73
|
+
style: {
|
|
74
|
+
fontSize: '24px'
|
|
75
|
+
},
|
|
76
|
+
children: (_gcDetail$pitInuseMal = gcDetail.pitInuseMale) !== null && _gcDetail$pitInuseMal !== void 0 ? _gcDetail$pitInuseMal : '--'
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
79
|
+
}), showKeys.includes('manPitNum') && /*#__PURE__*/_jsxs(_Fragment, {
|
|
80
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
72
81
|
style: {
|
|
73
|
-
|
|
82
|
+
display: 'flex',
|
|
83
|
+
alignItems: 'center'
|
|
74
84
|
},
|
|
75
|
-
children: (
|
|
76
|
-
|
|
85
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
86
|
+
className: "num-tip-blue"
|
|
87
|
+
}), "\u5751\u4F4D\u603B\u6570"]
|
|
88
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
89
|
+
className: "wr-num-total",
|
|
90
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
91
|
+
style: {
|
|
92
|
+
fontSize: '24px'
|
|
93
|
+
},
|
|
94
|
+
children: (_gcDetail$pitTotalMal = gcDetail.pitTotalMale) !== null && _gcDetail$pitTotalMal !== void 0 ? _gcDetail$pitTotalMal : '--'
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
77
97
|
})]
|
|
78
98
|
})]
|
|
79
99
|
}), /*#__PURE__*/_jsxs("div", {
|
|
@@ -143,24 +163,44 @@ export default (function (props) {
|
|
|
143
163
|
}), /*#__PURE__*/_jsx("div", {
|
|
144
164
|
children: "\u5973\u5395"
|
|
145
165
|
})]
|
|
146
|
-
}),
|
|
166
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
147
167
|
className: "wr-total-num",
|
|
148
|
-
children: [/*#__PURE__*/_jsxs(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
168
|
+
children: [gcDetail.hasDevice && /*#__PURE__*/_jsxs(_Fragment, {
|
|
169
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
170
|
+
style: {
|
|
171
|
+
display: 'flex',
|
|
172
|
+
alignItems: 'center'
|
|
173
|
+
},
|
|
174
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
175
|
+
className: "num-tip-red"
|
|
176
|
+
}), "\u5360\u7528"]
|
|
177
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
178
|
+
className: "wr-num-total",
|
|
179
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
180
|
+
style: {
|
|
181
|
+
fontSize: '24px'
|
|
182
|
+
},
|
|
183
|
+
children: (_gcDetail$pitInuseFem = gcDetail.pitInuseFemale) !== null && _gcDetail$pitInuseFem !== void 0 ? _gcDetail$pitInuseFem : '--'
|
|
184
|
+
})
|
|
185
|
+
})]
|
|
186
|
+
}), showKeys.includes('womanPitNum') && /*#__PURE__*/_jsxs(_Fragment, {
|
|
187
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
159
188
|
style: {
|
|
160
|
-
|
|
189
|
+
display: 'flex',
|
|
190
|
+
alignItems: 'center'
|
|
161
191
|
},
|
|
162
|
-
children: (
|
|
163
|
-
|
|
192
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
193
|
+
className: "num-tip-red"
|
|
194
|
+
}), "\u5751\u4F4D\u603B\u6570"]
|
|
195
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
196
|
+
className: "wr-num-total",
|
|
197
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
198
|
+
style: {
|
|
199
|
+
fontSize: '24px'
|
|
200
|
+
},
|
|
201
|
+
children: (_gcDetail$pitTotalFem = gcDetail.pitTotalFemale) !== null && _gcDetail$pitTotalFem !== void 0 ? _gcDetail$pitTotalFem : '--'
|
|
202
|
+
})
|
|
203
|
+
})]
|
|
164
204
|
})]
|
|
165
205
|
})]
|
|
166
206
|
}), /*#__PURE__*/_jsxs("div", {
|
|
Binary file
|
|
@@ -12,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { request } from '@vtx/utils';
|
|
14
14
|
import { useSetState } from 'ahooks';
|
|
15
|
-
import { Tabs } from 'antd';
|
|
15
|
+
import { Alert, Tabs } from 'antd';
|
|
16
16
|
import dayjs from 'dayjs';
|
|
17
17
|
import { useEffect, useState } from 'react';
|
|
18
18
|
import { VmLineCharts, VmTable } from "../../../_components";
|
|
@@ -53,7 +53,8 @@ var getAlarmList = function getAlarmList(params) {
|
|
|
53
53
|
export default (function (props) {
|
|
54
54
|
var _monitorTypeList$filt;
|
|
55
55
|
var theme = props.theme,
|
|
56
|
-
id = props.id
|
|
56
|
+
id = props.id,
|
|
57
|
+
detail = props.detail;
|
|
57
58
|
var _useState = useState({}),
|
|
58
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
59
60
|
gcDetail = _useState2[0],
|
|
@@ -303,7 +304,18 @@ export default (function (props) {
|
|
|
303
304
|
}, [date, activeKey]);
|
|
304
305
|
return /*#__PURE__*/_jsxs("div", {
|
|
305
306
|
className: "wr-base-content",
|
|
306
|
-
children: [/*#__PURE__*/
|
|
307
|
+
children: [detail.fallDownAlarm && /*#__PURE__*/_jsx("div", {
|
|
308
|
+
className: "wr-base-alart",
|
|
309
|
+
children: /*#__PURE__*/_jsx(Alert, {
|
|
310
|
+
message: /*#__PURE__*/_jsxs("div", {
|
|
311
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
312
|
+
src: require("./assets/alert.png")
|
|
313
|
+
}), "\u2002 ", detail.fallDownAlarm]
|
|
314
|
+
}),
|
|
315
|
+
type: "warning",
|
|
316
|
+
closable: true
|
|
317
|
+
})
|
|
318
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
307
319
|
className: "wr-base-left",
|
|
308
320
|
children: [/*#__PURE__*/_jsx("div", {
|
|
309
321
|
className: "wr-base-title",
|
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
height: 100%;
|
|
4
4
|
display: flex;
|
|
5
5
|
justify-content: space-between;
|
|
6
|
+
position: relative;
|
|
7
|
+
.wr-base-alart {
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 50px;
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
.ant-alert-message {
|
|
16
|
+
color: #ffa100;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
6
19
|
.wr-base-title {
|
|
7
20
|
padding: 12px 16px;
|
|
8
21
|
font-size: 16px;
|
|
@@ -214,7 +227,7 @@
|
|
|
214
227
|
}
|
|
215
228
|
.wr-total-num {
|
|
216
229
|
display: flex;
|
|
217
|
-
gap:
|
|
230
|
+
gap: 8px;
|
|
218
231
|
align-items: center;
|
|
219
232
|
.num-tip-blue {
|
|
220
233
|
display: flex;
|
|
@@ -72,7 +72,9 @@ export default (function (props) {
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}, [id]);
|
|
75
|
-
var contentList = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '
|
|
75
|
+
var contentList = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'base', /*#__PURE__*/_jsx(Base, _objectSpread(_objectSpread({}, props), {}, {
|
|
76
|
+
detail: detail
|
|
77
|
+
}))), 'appraise', /*#__PURE__*/_jsx(Appraise, _objectSpread({}, props))), 'score', /*#__PURE__*/_jsx(Score, _objectSpread({}, props))), 'build', /*#__PURE__*/_jsx(Build, _objectSpread({}, props))), 'file', /*#__PURE__*/_jsx(File, _objectSpread({}, props)));
|
|
76
78
|
|
|
77
79
|
// 自定义页签可配置多个,
|
|
78
80
|
if (config !== null && config !== void 0 && config.length) {
|
|
@@ -67,13 +67,21 @@ export default (function (props) {
|
|
|
67
67
|
dataIndex: 'fromContent',
|
|
68
68
|
key: 'fromContent',
|
|
69
69
|
width: 110,
|
|
70
|
-
ellipsis: true
|
|
70
|
+
ellipsis: true,
|
|
71
|
+
render: function render(text) {
|
|
72
|
+
var value = (text || '').replaceAll(' ', '');
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
71
75
|
}, {
|
|
72
76
|
title: '修改后的值',
|
|
73
77
|
dataIndex: 'toContent',
|
|
74
78
|
key: 'toContent',
|
|
75
79
|
width: 110,
|
|
76
|
-
ellipsis: true
|
|
80
|
+
ellipsis: true,
|
|
81
|
+
render: function render(text) {
|
|
82
|
+
var value = (text || '').replaceAll(' ', '');
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
77
85
|
}, {
|
|
78
86
|
title: '修改人',
|
|
79
87
|
dataIndex: 'changeStaffName',
|
|
@@ -40,27 +40,11 @@ export default (function (props) {
|
|
|
40
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
41
41
|
detail = _useState2[0],
|
|
42
42
|
setDetail = _useState2[1];
|
|
43
|
-
var _useState3 = useState([
|
|
44
|
-
title: '基本信息',
|
|
45
|
-
key: 'zf-base'
|
|
46
|
-
}, {
|
|
47
|
-
title: '流程信息',
|
|
48
|
-
key: 'zf-process'
|
|
49
|
-
}, {
|
|
50
|
-
title: '附件信息',
|
|
51
|
-
key: 'zf-file'
|
|
52
|
-
}, {
|
|
53
|
-
title: '文书',
|
|
54
|
-
key: 'zf-document'
|
|
55
|
-
}, {
|
|
56
|
-
title: '修改记录',
|
|
57
|
-
key: 'zf-record'
|
|
58
|
-
}]),
|
|
43
|
+
var _useState3 = useState([]),
|
|
59
44
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
45
|
config = _useState4[0],
|
|
61
46
|
setConfig = _useState4[1];
|
|
62
47
|
useEffect(function () {
|
|
63
|
-
return;
|
|
64
48
|
getByCode({
|
|
65
49
|
code: 'zhzf'
|
|
66
50
|
}).then(function (res) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../vtx-df-modal/style/";
|