@vtx/modals2 5.0.10 → 5.0.12
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/vtx-base-modal/index.js +2 -1
- package/lib/vtx-car-modal/api.js +7 -0
- package/lib/vtx-car-modal/components/Info/index.js +5 -2
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +3 -3
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +20 -12
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +28 -7
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +12 -8
- package/lib/vtx-cp-modal/components/BaseInfo/index.less +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +0 -1
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +0 -1
- package/lib/vtx-shxq-modal/index.js +1 -3
- package/lib/vtx-tfd-modal/index.js +1 -1
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +3 -1
- package/lib/vtx-wr-modal/style/index.js +1 -0
- package/package.json +1 -1
|
@@ -46,7 +46,8 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
46
46
|
width = props.width,
|
|
47
47
|
_props$iframeUrl = props.iframeUrl,
|
|
48
48
|
iframeUrl = _props$iframeUrl === void 0 ? '' : _props$iframeUrl,
|
|
49
|
-
modalShow = props.modalShow
|
|
49
|
+
_props$modalShow = props.modalShow,
|
|
50
|
+
modalShow = _props$modalShow === void 0 ? true : _props$modalShow;
|
|
50
51
|
var _useState = useState(''),
|
|
51
52
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52
53
|
currentTabKey = _useState2[0],
|
package/lib/vtx-car-modal/api.js
CHANGED
|
@@ -1012,6 +1012,13 @@ export var MaintenanceService = {
|
|
|
1012
1012
|
};
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
|
+
|
|
1016
|
+
// 无人车实时信息
|
|
1017
|
+
export var unmannedRealByCarId = function unmannedRealByCarId(body) {
|
|
1018
|
+
return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/kanban/unmannedRealByCarId"), {
|
|
1019
|
+
body: body
|
|
1020
|
+
});
|
|
1021
|
+
};
|
|
1015
1022
|
export var carIdentityMap = new Map([['innerCode', '自编号'], ['carCode', '车牌号'], ['originalDeviceCode', '原始设备编码'], ['carClassName', '车辆类别'], ['carGradeName', '车辆种类'], ['emissionStageName', '排放阶段'], ['licensePlateColorName', '车牌颜色'], ['drivingLicenseCode', '行驶证编号'], ['useUnitName', '使用单位'], ['belongUnitName', '所属单位'], ['manageStaffName', '责任人'], ['divisionName', '行政区划'], ['backupManageStaffName', '后备责任人'], ['contact', '联系人'], ['contactWay', '联系方式'], ['carBrand', '车辆品牌'], ['carType', '车辆型号'], ['procurementDate', '购置时间'], ['useYears', '使用年限'], ['procurementAmt', '购置金额(元)'], ['life', '使用年限(年)'], ['scrapDate', '报废时间'], ['depreciationVal', '已折旧金额(元)'], ['reDepreciationVal', '剩余折旧金额(元)'], ['invoiceCode', '发票编号'], ['certificateCode', '证书编号'], ['certificateKeeper', '证书保管人'], ['identifyCode', '车辆识别代号'], ['engineCode', '发动机号'], ['purchaseApprovalCode', '采购审批单号'], ['orderIndex', '排序号'], ['workTypeName', '作业类型'], ['carStateStr', '生命周期'], ['bidSectionName', '所属标段'], ['photoIds', '车辆照片'],
|
|
1016
1023
|
// ['qrCode', '车辆二维码'],
|
|
1017
1024
|
['photoTwoIds', '图片']]);
|
|
@@ -29,7 +29,8 @@ var Info = function Info() {
|
|
|
29
29
|
var _useContext = useContext(CarContext),
|
|
30
30
|
info = _useContext.info,
|
|
31
31
|
detail = _useContext.detail,
|
|
32
|
-
showFields = _useContext.showFields
|
|
32
|
+
showFields = _useContext.showFields,
|
|
33
|
+
id = _useContext.id;
|
|
33
34
|
var showFieldsMap = keyBy(showFields, 'dataKey') || {};
|
|
34
35
|
var _useSettings = useSettings(),
|
|
35
36
|
isDark = _useSettings.isDark;
|
|
@@ -94,7 +95,9 @@ var Info = function Info() {
|
|
|
94
95
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
95
96
|
title: '实时信息',
|
|
96
97
|
time: info === null || info === void 0 ? void 0 : info.equipmentTime
|
|
97
|
-
}), (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.Monitor, {
|
|
98
|
+
}), (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.Monitor, {
|
|
99
|
+
carId: id
|
|
100
|
+
}) : /*#__PURE__*/_jsx(VmFactorList, {
|
|
98
101
|
list: list
|
|
99
102
|
}), /*#__PURE__*/_jsx("div", {
|
|
100
103
|
className: 'vm-car-map-wrap',
|
|
@@ -49,7 +49,8 @@ var BaseInfo = function BaseInfo() {
|
|
|
49
49
|
return current && current > dayjs().endOf('day');
|
|
50
50
|
},
|
|
51
51
|
children: (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.WorkInfo, {
|
|
52
|
-
|
|
52
|
+
id: id,
|
|
53
|
+
date: date
|
|
53
54
|
}) : /*#__PURE__*/_jsx(BaseWork, {
|
|
54
55
|
id: id,
|
|
55
56
|
date: date
|
|
@@ -250,14 +250,14 @@ var WorkRecord = function WorkRecord() {
|
|
|
250
250
|
}
|
|
251
251
|
})
|
|
252
252
|
}), /*#__PURE__*/_jsxs(Col, {
|
|
253
|
-
children: [(info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned'
|
|
254
|
-
name: '
|
|
253
|
+
children: [(info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(VmFactor, {
|
|
254
|
+
name: '计划作业里程',
|
|
255
255
|
unit: 'km',
|
|
256
256
|
type: 'sm',
|
|
257
257
|
value: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.planMileage) || 0,
|
|
258
258
|
fontType: 'blue',
|
|
259
259
|
img: isDark ? require("../../../imgs/track_dark.png") : require("../../../imgs/track.png")
|
|
260
|
-
})
|
|
260
|
+
}) : /*#__PURE__*/_jsx(VmFactor, {
|
|
261
261
|
name: '行驶里程',
|
|
262
262
|
unit: 'km',
|
|
263
263
|
type: 'sm',
|
|
@@ -11,7 +11,10 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
11
11
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
12
|
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; }
|
|
13
13
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
|
14
|
+
import { JxhService } from "../../../api";
|
|
14
15
|
import { Space, Tooltip } from 'antd';
|
|
16
|
+
import dayjs from 'dayjs';
|
|
17
|
+
import { keyBy } from 'lodash';
|
|
15
18
|
import { VmBarCharts, VmCalendar, VmCalendarInner, VmCalendarPercent, VmTable } from "../../../../_components";
|
|
16
19
|
import useSettings from "../../../../_hooks/useSettings";
|
|
17
20
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -32,23 +35,28 @@ export default function (_ref) {
|
|
|
32
35
|
var _useSettings = useSettings(),
|
|
33
36
|
isDark = _useSettings.isDark,
|
|
34
37
|
chartFontColor = _useSettings.chartFontColor;
|
|
38
|
+
var _JxhService$useCarWor = JxhService.useCarWorkDailyReport(id, month.startOf('M').format('YYYY-MM-DD'), month.endOf('M').format('YYYY-MM-DD')),
|
|
39
|
+
_JxhService$useCarWor2 = _JxhService$useCarWor.dailyData,
|
|
40
|
+
dailyData = _JxhService$useCarWor2 === void 0 ? [] : _JxhService$useCarWor2,
|
|
41
|
+
loading = _JxhService$useCarWor.loading;
|
|
42
|
+
var keyByDate = keyBy(dailyData || [], 'workDate');
|
|
43
|
+
console.log(keyByDate);
|
|
35
44
|
var dateCellRender = function dateCellRender(value) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
//
|
|
42
|
-
var
|
|
43
|
-
var color = getRateColor(percent);
|
|
45
|
+
var date = dayjs(value).format('YYYY-MM-DD');
|
|
46
|
+
var item = keyByDate[date];
|
|
47
|
+
if (!item) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
// let percent = 50;
|
|
51
|
+
var color = getRateColor(item.percent);
|
|
44
52
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
45
53
|
children: [/*#__PURE__*/_jsx(VmCalendarPercent, {
|
|
46
|
-
percent: percent,
|
|
54
|
+
percent: item.percent,
|
|
47
55
|
color: color
|
|
48
56
|
}), /*#__PURE__*/_jsx(VmCalendarInner, {
|
|
49
57
|
type: "blue",
|
|
50
58
|
img: isDark ? track_dark : track,
|
|
51
|
-
value: "0/0
|
|
59
|
+
value: "".concat((item === null || item === void 0 ? void 0 : item.workMileage) || 0, "/").concat((item === null || item === void 0 ? void 0 : item.driveMileage) || 0),
|
|
52
60
|
style: {
|
|
53
61
|
width: '139px',
|
|
54
62
|
justifyContent: 'space-between',
|
|
@@ -57,7 +65,7 @@ export default function (_ref) {
|
|
|
57
65
|
}), /*#__PURE__*/_jsx(VmCalendarInner, {
|
|
58
66
|
type: "yellow",
|
|
59
67
|
img: isDark ? butter_dark : butter,
|
|
60
|
-
value: 0,
|
|
68
|
+
value: (item === null || item === void 0 ? void 0 : item.electricityExpendTotal) || 0,
|
|
61
69
|
style: {
|
|
62
70
|
width: '139px',
|
|
63
71
|
justifyContent: 'space-between',
|
|
@@ -66,7 +74,7 @@ export default function (_ref) {
|
|
|
66
74
|
}), /*#__PURE__*/_jsx(VmCalendarInner, {
|
|
67
75
|
type: "green",
|
|
68
76
|
img: isDark ? water_dark : water,
|
|
69
|
-
value: 0,
|
|
77
|
+
value: (item === null || item === void 0 ? void 0 : item.waterExpendTotal) || 0,
|
|
70
78
|
style: {
|
|
71
79
|
width: '139px',
|
|
72
80
|
justifyContent: 'space-between'
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { unmannedRealByCarId } from "../../../api";
|
|
1
8
|
import { Col, Row, Space } from 'antd';
|
|
9
|
+
import { useEffect, useState } from 'react';
|
|
2
10
|
import { VmProgress } from "../../../..//_components";
|
|
3
11
|
import useSettings from "../../../../_hooks/useSettings";
|
|
4
12
|
import butter from "../../../imgs/butter.png";
|
|
@@ -8,10 +16,23 @@ import water_dark from "../../../imgs/water_dark.png";
|
|
|
8
16
|
import "./index.less";
|
|
9
17
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
18
|
function Monitor(_ref) {
|
|
11
|
-
var
|
|
12
|
-
carInfo = _ref$carInfo === void 0 ? {} : _ref$carInfo;
|
|
19
|
+
var carId = _ref.carId;
|
|
13
20
|
var _useSettings = useSettings(),
|
|
14
21
|
isDark = _useSettings.isDark;
|
|
22
|
+
var _useState = useState({}),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
detail = _useState2[0],
|
|
25
|
+
setDetail = _useState2[1];
|
|
26
|
+
useEffect(function () {
|
|
27
|
+
if (carId) unmannedRealByCarId({
|
|
28
|
+
carId: carId,
|
|
29
|
+
mainDevice: true
|
|
30
|
+
}).then(function (res) {
|
|
31
|
+
if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
|
|
32
|
+
setDetail((res === null || res === void 0 ? void 0 : res.data) || {});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}, [carId]);
|
|
15
36
|
return /*#__PURE__*/_jsx("div", {
|
|
16
37
|
className: "unmaned_factor_bg",
|
|
17
38
|
children: /*#__PURE__*/_jsxs(Row, {
|
|
@@ -20,8 +41,8 @@ function Monitor(_ref) {
|
|
|
20
41
|
children: /*#__PURE__*/_jsx(Item, {
|
|
21
42
|
icon: isDark ? butter_dark : butter,
|
|
22
43
|
unit: "%",
|
|
23
|
-
value:
|
|
24
|
-
rate:
|
|
44
|
+
value: (detail === null || detail === void 0 ? void 0 : detail.surplusElectricity) || 0,
|
|
45
|
+
rate: (detail === null || detail === void 0 ? void 0 : detail.surplusElectricity) || 0,
|
|
25
46
|
strokeColor: ['#FFA700', '#FFC637']
|
|
26
47
|
})
|
|
27
48
|
}), /*#__PURE__*/_jsx(Col, {
|
|
@@ -29,7 +50,7 @@ function Monitor(_ref) {
|
|
|
29
50
|
children: /*#__PURE__*/_jsxs("div", {
|
|
30
51
|
className: "unmaned_factor_simple",
|
|
31
52
|
children: [/*#__PURE__*/_jsx("div", {
|
|
32
|
-
children:
|
|
53
|
+
children: (detail === null || detail === void 0 ? void 0 : detail.mileage) || 0
|
|
33
54
|
}), /*#__PURE__*/_jsx("div", {
|
|
34
55
|
className: "unit",
|
|
35
56
|
children: '今日行驶(km)'
|
|
@@ -40,8 +61,8 @@ function Monitor(_ref) {
|
|
|
40
61
|
children: /*#__PURE__*/_jsx(Item, {
|
|
41
62
|
icon: isDark ? water_dark : water,
|
|
42
63
|
unit: "L",
|
|
43
|
-
value:
|
|
44
|
-
rate:
|
|
64
|
+
value: (detail === null || detail === void 0 ? void 0 : detail.surplusWater) || 0,
|
|
65
|
+
rate: (detail === null || detail === void 0 ? void 0 : detail.surplusWater) || 0,
|
|
45
66
|
strokeColor: ['#00CF5D', '#04EC6C']
|
|
46
67
|
})
|
|
47
68
|
})]
|
|
@@ -4,48 +4,52 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { JxhService } from "../../../api";
|
|
7
8
|
import { Col, Row } from 'antd';
|
|
9
|
+
import dayjs from 'dayjs';
|
|
8
10
|
import { VmFactor, VmProgress } from "../../../../_components";
|
|
9
11
|
import useSettings from "../../../../_hooks/useSettings";
|
|
10
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
13
|
export default function (props) {
|
|
12
|
-
var info = props.info;
|
|
13
14
|
var _useSettings = useSettings(),
|
|
14
15
|
isDark = _useSettings.isDark;
|
|
16
|
+
var _JxhService$useWorkSu = JxhService.useWorkSummaryJxh(props.id, dayjs(props.date).format('YYYY-MM-DD'), dayjs(props.date).format('YYYY-MM-DD')),
|
|
17
|
+
workSummaryJxhRes = _JxhService$useWorkSu.workSummaryJxhRes,
|
|
18
|
+
loading = _JxhService$useWorkSu.loading;
|
|
15
19
|
var data = [{
|
|
16
20
|
name: '规划里程',
|
|
17
21
|
unit: 'km',
|
|
18
|
-
value:
|
|
22
|
+
value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.planMileage,
|
|
19
23
|
img: isDark ? require("../../../imgs/track_dark.png") : require("../../../imgs/track.png"),
|
|
20
24
|
fontType: 'blue'
|
|
21
25
|
}, {
|
|
22
26
|
name: '运行时长',
|
|
23
27
|
unit: '',
|
|
24
|
-
value:
|
|
28
|
+
value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.runDuration,
|
|
25
29
|
img: isDark ? require("../../../imgs/clock_dark.png") : require("../../../imgs/clock.png"),
|
|
26
30
|
fontType: 'blue'
|
|
27
31
|
}, {
|
|
28
32
|
name: '总电耗',
|
|
29
33
|
unit: 'kwh',
|
|
30
|
-
value:
|
|
34
|
+
value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.electricityExpendTotal,
|
|
31
35
|
img: isDark ? require("../../../imgs/butter_dark.png") : require("../../../imgs/butter.png"),
|
|
32
36
|
fontType: 'yellow'
|
|
33
37
|
}, {
|
|
34
38
|
name: '核算作业里程',
|
|
35
39
|
unit: 'km',
|
|
36
|
-
value:
|
|
40
|
+
value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workMileage,
|
|
37
41
|
img: isDark ? require("../../../imgs/track_green_dark.png") : require("../../../imgs/track_green.png"),
|
|
38
42
|
fontType: 'green'
|
|
39
43
|
}, {
|
|
40
44
|
name: '作业时长',
|
|
41
45
|
unit: '',
|
|
42
|
-
value:
|
|
46
|
+
value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workDuration,
|
|
43
47
|
img: isDark ? require("../../../imgs/clock_green_dark.png") : require("../../../imgs/clock_green.png"),
|
|
44
48
|
fontType: 'green'
|
|
45
49
|
}, {
|
|
46
50
|
name: '总水耗',
|
|
47
51
|
unit: 'L',
|
|
48
|
-
value:
|
|
52
|
+
value: workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.waterExpendTotal,
|
|
49
53
|
img: isDark ? require("../../../imgs/water_dark.png") : require("../../../imgs/water.png"),
|
|
50
54
|
fontType: 'green'
|
|
51
55
|
}];
|
|
@@ -59,7 +63,7 @@ export default function (props) {
|
|
|
59
63
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
60
64
|
flex: '112px',
|
|
61
65
|
children: /*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
62
|
-
rate: (
|
|
66
|
+
rate: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workRate) || 0,
|
|
63
67
|
name: '完成率',
|
|
64
68
|
strokeColor: isDark ? {
|
|
65
69
|
'0%': '#009DFF',
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
var TABS_BASE = 'base';
|
|
14
14
|
var TABS_CALENDAR = 'calender';
|
|
15
15
|
var TABS_THROW = 'throw';
|
|
16
|
-
var TABS_ALARM = 'alarm';
|
|
16
|
+
var TABS_ALARM = 'shxq-alarm';
|
|
17
17
|
var TABS_TFD = 'tfd';
|
|
18
18
|
var tabs = [{
|
|
19
19
|
key: TABS_BASE,
|
|
@@ -36,7 +36,6 @@ var VtxShxqModal = function VtxShxqModal(props) {
|
|
|
36
36
|
title = props.title,
|
|
37
37
|
subTitle = props.subTitle,
|
|
38
38
|
theme = props.theme,
|
|
39
|
-
source = props.source,
|
|
40
39
|
visible = props.visible,
|
|
41
40
|
onCancel = props.onCancel,
|
|
42
41
|
_props$top = props.top,
|
|
@@ -95,7 +94,6 @@ var VtxShxqModal = function VtxShxqModal(props) {
|
|
|
95
94
|
title: title,
|
|
96
95
|
subTitle: subTitle,
|
|
97
96
|
visible: visible,
|
|
98
|
-
source: source,
|
|
99
97
|
theme: theme,
|
|
100
98
|
onCancel: onCancel,
|
|
101
99
|
frameParams: frameParams,
|
|
@@ -11,6 +11,7 @@ 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 { VtxImage } from '@vtx/components';
|
|
14
|
+
import '@vtx/components/lib/vtx-image/style/index';
|
|
14
15
|
import { getVtxToken, request } from '@vtx/utils';
|
|
15
16
|
import { useEffect, useState } from 'react';
|
|
16
17
|
import { VmEmpty } from "../../../_components";
|
|
@@ -122,11 +123,12 @@ export default (function (props) {
|
|
|
122
123
|
children: [/*#__PURE__*/_jsx("div", {
|
|
123
124
|
className: "wr-base-img",
|
|
124
125
|
children: imgList.length ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
|
|
125
|
-
children: imgList.map(function (item) {
|
|
126
|
+
children: imgList.map(function (item, index) {
|
|
126
127
|
return /*#__PURE__*/_jsx(VtxImage, {
|
|
127
128
|
src: item.url,
|
|
128
129
|
alt: item.name,
|
|
129
130
|
style: {
|
|
131
|
+
display: index === 0 ? 'block' : 'none',
|
|
130
132
|
width: '100%',
|
|
131
133
|
height: '100%'
|
|
132
134
|
}
|