@vtx/modals2 5.0.18 → 5.0.19
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-empty/index.js +4 -1
- package/lib/_components/vm-empty/style/index.less +4 -0
- package/lib/_components/vm-filter/index.js +4 -2
- package/lib/_components/vm-pie-charts/index.js +8 -1
- package/lib/_components/vm-table/style/index.less +12 -4
- package/lib/index.js +3 -1
- package/lib/vtx-default-modal/index.js +0 -1
- package/lib/vtx-jzlj-df-tpd-modal/api.js +212 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Base/index.js +24 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +378 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +88 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +86 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +92 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/index.js +5 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/index.js +117 -0
- package/lib/vtx-jzlj-df-tpd-modal/style/index.js +1 -0
- package/lib/vtx-jzlj-df-tpd-modal/style/index.less +1 -0
- package/lib/vtx-jzlj-gcxm-modal/api.js +294 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +276 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +185 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.less +34 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +6 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +394 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +87 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +130 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +96 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-gcxm-modal/components/index.js +5 -1
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/index.js +65 -24
- package/lib/vtx-jzlj-xnc-modal/api.js +212 -0
- package/lib/vtx-jzlj-xnc-modal/components/Base/index.js +23 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +378 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +88 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +116 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +103 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-xnc-modal/components/index.js +5 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/index.js +114 -0
- package/lib/vtx-jzlj-xnc-modal/style/index.js +1 -0
- package/lib/vtx-jzlj-xnc-modal/style/index.less +1 -0
- package/lib/vtx-qyry-modal/api.js +1 -0
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +11 -2
- package/lib/vtx-tfd-modal/index.js +18 -2
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JzljDfTpdContext } from "../..";
|
|
3
|
+
import { VmFactorList, VmWrapper } from "../../../_components";
|
|
4
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
5
|
+
import { overviewApis } from "../../api";
|
|
6
|
+
import "./index.less";
|
|
7
|
+
import overview_czz_zl_dark from "../../imgs/overview_czz_zl_dark.png";
|
|
8
|
+
import overview_czz_zs_light from "../../imgs/overview_czz_zs_light.png";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export default function CZZ() {
|
|
11
|
+
var _React$useContext = React.useContext(JzljDfTpdContext),
|
|
12
|
+
id = _React$useContext.id,
|
|
13
|
+
theme = _React$useContext.theme;
|
|
14
|
+
var _useSettings = useSettings(),
|
|
15
|
+
isDark = _useSettings.isDark;
|
|
16
|
+
var _overviewApis$useCzz = overviewApis.useCzz(id),
|
|
17
|
+
data = _overviewApis$useCzz.data;
|
|
18
|
+
var _data$totalCzzCount = data.totalCzzCount,
|
|
19
|
+
totalCzzCount = _data$totalCzzCount === void 0 ? 0 : _data$totalCzzCount,
|
|
20
|
+
_data$sxzCzzCount = data.sxzCzzCount,
|
|
21
|
+
sxzCzzCount = _data$sxzCzzCount === void 0 ? 0 : _data$sxzCzzCount,
|
|
22
|
+
_data$baWeight = data.baWeight,
|
|
23
|
+
baWeight = _data$baWeight === void 0 ? 0 : _data$baWeight,
|
|
24
|
+
_data$yysWeight = data.yysWeight,
|
|
25
|
+
yysWeight = _data$yysWeight === void 0 ? 0 : _data$yysWeight,
|
|
26
|
+
_data$syWeight = data.syWeight,
|
|
27
|
+
syWeight = _data$syWeight === void 0 ? 0 : _data$syWeight;
|
|
28
|
+
var dataList_top = [{
|
|
29
|
+
name: '生效中处置证数量',
|
|
30
|
+
unit: '单',
|
|
31
|
+
value: totalCzzCount,
|
|
32
|
+
img: isDark ? overview_czz_zl_dark : overview_czz_zs_light,
|
|
33
|
+
fontType: 'blue',
|
|
34
|
+
unitStyle: {
|
|
35
|
+
fontSize: 14
|
|
36
|
+
}
|
|
37
|
+
}];
|
|
38
|
+
var dataList_yssy = [{
|
|
39
|
+
name: '已运量',
|
|
40
|
+
unit: '吨',
|
|
41
|
+
value: yysWeight,
|
|
42
|
+
unitStyle: {
|
|
43
|
+
fontSize: 14
|
|
44
|
+
},
|
|
45
|
+
style: {
|
|
46
|
+
flex: 1,
|
|
47
|
+
justifyContent: 'center',
|
|
48
|
+
textAlign: 'center'
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
name: '剩余量',
|
|
52
|
+
unit: '吨',
|
|
53
|
+
value: syWeight,
|
|
54
|
+
unitStyle: {
|
|
55
|
+
fontSize: 14
|
|
56
|
+
},
|
|
57
|
+
style: {
|
|
58
|
+
flex: 1,
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
textAlign: 'center'
|
|
61
|
+
}
|
|
62
|
+
}];
|
|
63
|
+
return /*#__PURE__*/_jsx("div", {
|
|
64
|
+
className: "df-tpd-overview-right-top-left ".concat(theme),
|
|
65
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
66
|
+
title: "\u5904\u7F6E\u8BC1\u4FE1\u606F",
|
|
67
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
68
|
+
className: "df-tpd-overview-right-top-left-czz",
|
|
69
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
70
|
+
className: "df-tpd-overview-right-top-left-czz-top",
|
|
71
|
+
children: /*#__PURE__*/_jsx(VmFactorList, {
|
|
72
|
+
list: dataList_top,
|
|
73
|
+
style: {
|
|
74
|
+
justifyContent: 'center'
|
|
75
|
+
}
|
|
76
|
+
})
|
|
77
|
+
}), /*#__PURE__*/_jsx(VmFactorList, {
|
|
78
|
+
list: dataList_yssy,
|
|
79
|
+
style: {
|
|
80
|
+
background: 'unset'
|
|
81
|
+
}
|
|
82
|
+
})]
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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 React from 'react';
|
|
8
|
+
import { JzljDfTpdContext } from "../..";
|
|
9
|
+
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
10
|
+
import { overviewApis } from "../../api";
|
|
11
|
+
import CTL from "./CTL";
|
|
12
|
+
import CTYL from "./CTYL";
|
|
13
|
+
import CZZ from "./CZZ";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export default function Overview() {
|
|
17
|
+
var _React$useContext = React.useContext(JzljDfTpdContext),
|
|
18
|
+
id = _React$useContext.id,
|
|
19
|
+
theme = _React$useContext.theme,
|
|
20
|
+
_React$useContext$inf = _React$useContext.info,
|
|
21
|
+
info = _React$useContext$inf === void 0 ? {} : _React$useContext$inf;
|
|
22
|
+
var name = info.name,
|
|
23
|
+
address = info.address,
|
|
24
|
+
facilityClassName = info.facilityClassName,
|
|
25
|
+
divisionName = info.divisionName,
|
|
26
|
+
geometryInfo = info.geometryInfo;
|
|
27
|
+
var _overviewApis$useJcss = overviewApis.useJcssBubble(id),
|
|
28
|
+
jcssBubbleData = _overviewApis$useJcss.jcssBubbleData;
|
|
29
|
+
var infoData = [{
|
|
30
|
+
label: '名称',
|
|
31
|
+
value: name
|
|
32
|
+
}, {
|
|
33
|
+
label: '类别',
|
|
34
|
+
value: facilityClassName
|
|
35
|
+
}, {
|
|
36
|
+
label: '地址',
|
|
37
|
+
value: address
|
|
38
|
+
}];
|
|
39
|
+
for (var key in jcssBubbleData === null || jcssBubbleData === void 0 ? void 0 : jcssBubbleData.otherWeight) {
|
|
40
|
+
infoData.push({
|
|
41
|
+
label: key,
|
|
42
|
+
key: key,
|
|
43
|
+
value: jcssBubbleData === null || jcssBubbleData === void 0 ? void 0 : jcssBubbleData.otherWeight[key]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
var _ref = geometryInfo || {},
|
|
47
|
+
type = _ref.type,
|
|
48
|
+
lngLats = _ref.lngLats;
|
|
49
|
+
var mapProps = {
|
|
50
|
+
geometryType: type,
|
|
51
|
+
address: address
|
|
52
|
+
};
|
|
53
|
+
if (type === 'point' && lngLats) {
|
|
54
|
+
var _lngLats$split, _lngLats$split2;
|
|
55
|
+
mapProps.mapPoints = [{
|
|
56
|
+
id: id,
|
|
57
|
+
lng: lngLats === null || lngLats === void 0 || (_lngLats$split = lngLats.split(',')) === null || _lngLats$split === void 0 ? void 0 : _lngLats$split[0],
|
|
58
|
+
lat: lngLats === null || lngLats === void 0 || (_lngLats$split2 = lngLats.split(',')) === null || _lngLats$split2 === void 0 ? void 0 : _lngLats$split2[1]
|
|
59
|
+
}];
|
|
60
|
+
}
|
|
61
|
+
if (type === 'polygon' && lngLats) {
|
|
62
|
+
mapProps.mapPolygons = [{
|
|
63
|
+
id: id,
|
|
64
|
+
rings: lngLats
|
|
65
|
+
}];
|
|
66
|
+
}
|
|
67
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
68
|
+
className: "df-tpd-overview",
|
|
69
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
70
|
+
className: "df-tpd-overview-left",
|
|
71
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
72
|
+
title: "\u57FA\u672C\u4FE1\u606F",
|
|
73
|
+
children: [/*#__PURE__*/_jsx(VmInfoCollection, {
|
|
74
|
+
width: '100%',
|
|
75
|
+
data: infoData
|
|
76
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
77
|
+
className: "df-tpd-overview-left-map ".concat(theme),
|
|
78
|
+
children: /*#__PURE__*/_jsx(VmMap, _objectSpread({}, mapProps))
|
|
79
|
+
})]
|
|
80
|
+
})
|
|
81
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
82
|
+
className: "df-tpd-overview-right",
|
|
83
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
84
|
+
className: "df-tpd-overview-right-top",
|
|
85
|
+
children: [/*#__PURE__*/_jsx(CZZ, {}), /*#__PURE__*/_jsx(CTL, {})]
|
|
86
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
87
|
+
className: "df-tpd-overview-right-bottom",
|
|
88
|
+
children: /*#__PURE__*/_jsx(CTYL, {})
|
|
89
|
+
})]
|
|
90
|
+
})]
|
|
91
|
+
});
|
|
92
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.df-tpd-overview {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: 16px;
|
|
6
|
+
|
|
7
|
+
.df-tpd-overview-left {
|
|
8
|
+
width: 30%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
|
|
11
|
+
&-map {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 300px;
|
|
14
|
+
padding-top: 16px;
|
|
15
|
+
margin-top: 8px;
|
|
16
|
+
border-top: 1px solid #e5e8ef;
|
|
17
|
+
|
|
18
|
+
&.blue,
|
|
19
|
+
.dark {
|
|
20
|
+
border-top: 1px solid rgba(47, 172, 255, 0.2);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.df-tpd-overview-right {
|
|
26
|
+
width: 70%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 16px;
|
|
31
|
+
|
|
32
|
+
&-top {
|
|
33
|
+
display: flex;
|
|
34
|
+
gap: 16px;
|
|
35
|
+
height: 45%;
|
|
36
|
+
|
|
37
|
+
&-left {
|
|
38
|
+
width: 50%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
|
|
41
|
+
&-czz {
|
|
42
|
+
height: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 38px;
|
|
46
|
+
|
|
47
|
+
&-top {
|
|
48
|
+
.vm-factor-lg-value_normal {
|
|
49
|
+
color: #1677ff;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-right {
|
|
56
|
+
width: 50%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-bottom {
|
|
62
|
+
height: 55%;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,117 @@
|
|
|
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
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
|
+
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
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useSetState } from 'ahooks';
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import { VmIframeModal } from "../_components";
|
|
16
|
+
import VmCustom from "../_components/vm-custom";
|
|
17
|
+
import useGetConfig from "../_hooks/useGetConfig";
|
|
18
|
+
import VtxBaseModal from "../vtx-base-modal";
|
|
19
|
+
import { overviewApis } from "./api";
|
|
20
|
+
import { Base, Collection, Dispose, Overview } from "./components";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
export var JzljDfTpdContext = /*#__PURE__*/React.createContext({
|
|
23
|
+
id: ''
|
|
24
|
+
});
|
|
25
|
+
var Provider = JzljDfTpdContext.Provider;
|
|
26
|
+
export default function VtxJzljDfTpdModal(props) {
|
|
27
|
+
var id = props.id,
|
|
28
|
+
_props$visible = props.visible,
|
|
29
|
+
visible = _props$visible === void 0 ? false : _props$visible,
|
|
30
|
+
onCancel = props.onCancel,
|
|
31
|
+
_props$theme = props.theme,
|
|
32
|
+
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
33
|
+
title = props.title,
|
|
34
|
+
_props$tabChose = props.tabChose,
|
|
35
|
+
tabChose = _props$tabChose === void 0 ? '' : _props$tabChose,
|
|
36
|
+
_props$jcssCode = props.jcssCode,
|
|
37
|
+
jcssCode = _props$jcssCode === void 0 ? '' : _props$jcssCode;
|
|
38
|
+
var _useSetState = useSetState({
|
|
39
|
+
src: '',
|
|
40
|
+
visible: false,
|
|
41
|
+
title: ''
|
|
42
|
+
}),
|
|
43
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
44
|
+
iframeModalInfo = _useSetState2[0],
|
|
45
|
+
setIframeModalInfo = _useSetState2[1];
|
|
46
|
+
var _overviewApis$useInfo = overviewApis.useInfo(id),
|
|
47
|
+
_overviewApis$useInfo2 = _overviewApis$useInfo.info,
|
|
48
|
+
info = _overviewApis$useInfo2 === void 0 ? {} : _overviewApis$useInfo2;
|
|
49
|
+
var store = {
|
|
50
|
+
theme: theme,
|
|
51
|
+
id: id,
|
|
52
|
+
info: info,
|
|
53
|
+
jcssCode: jcssCode,
|
|
54
|
+
setIframeModalInfo: setIframeModalInfo
|
|
55
|
+
};
|
|
56
|
+
var tabs_init = [{
|
|
57
|
+
key: 'jzlj-df-tpd-base',
|
|
58
|
+
title: '总览信息',
|
|
59
|
+
dom: /*#__PURE__*/_jsx(Overview, {})
|
|
60
|
+
}, {
|
|
61
|
+
key: 'jzlj-df-tpd-jbxx',
|
|
62
|
+
title: '基本信息',
|
|
63
|
+
dom: /*#__PURE__*/_jsx(Base, {})
|
|
64
|
+
}, {
|
|
65
|
+
key: 'jzlj-df-tpd-dispose',
|
|
66
|
+
title: '处置证信息',
|
|
67
|
+
dom: /*#__PURE__*/_jsx(Dispose, {})
|
|
68
|
+
}, {
|
|
69
|
+
key: 'jzlj-df-tpd-collection',
|
|
70
|
+
title: '联单信息',
|
|
71
|
+
dom: /*#__PURE__*/_jsx(Collection, {})
|
|
72
|
+
}];
|
|
73
|
+
var tabs = tabs_init.map(function (ele) {
|
|
74
|
+
return {
|
|
75
|
+
key: ele.key,
|
|
76
|
+
title: ele.title
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
var contents = {};
|
|
80
|
+
tabs_init.forEach(function (ele) {
|
|
81
|
+
contents[ele.key] = (ele === null || ele === void 0 ? void 0 : ele.dom) || '';
|
|
82
|
+
});
|
|
83
|
+
var _useGetConfig = useGetConfig('jzlj-df-tpd', tabs),
|
|
84
|
+
tabsData = _useGetConfig.tabsData;
|
|
85
|
+
// 自定义页签可配置多个,
|
|
86
|
+
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
87
|
+
tabsData.forEach(function (ele) {
|
|
88
|
+
if (ele.url) {
|
|
89
|
+
contents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
90
|
+
id: id,
|
|
91
|
+
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
97
|
+
children: /*#__PURE__*/_jsxs(Provider, {
|
|
98
|
+
value: store,
|
|
99
|
+
children: [/*#__PURE__*/_jsx(VtxBaseModal, {
|
|
100
|
+
title: title,
|
|
101
|
+
theme: theme,
|
|
102
|
+
visible: visible,
|
|
103
|
+
onCancel: onCancel,
|
|
104
|
+
tabs: tabsData,
|
|
105
|
+
tabChose: tabChose,
|
|
106
|
+
contents: contents
|
|
107
|
+
}), /*#__PURE__*/_jsx(VmIframeModal, _objectSpread(_objectSpread({}, iframeModalInfo), {}, {
|
|
108
|
+
theme: theme,
|
|
109
|
+
onCancel: function onCancel() {
|
|
110
|
+
return setIframeModalInfo({
|
|
111
|
+
visible: false
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}))]
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index';
|