@vtx/modals2 5.0.18 → 5.0.20

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.
Files changed (137) hide show
  1. package/lib/_components/vm-empty/index.js +4 -1
  2. package/lib/_components/vm-empty/style/index.less +4 -0
  3. package/lib/_components/vm-filter/index.js +4 -2
  4. package/lib/_components/vm-pie-charts/index.js +8 -1
  5. package/lib/_components/vm-repair-maintain/RmRecord.js +3 -3
  6. package/lib/_components/vm-repair-maintain/index.js +2 -2
  7. package/lib/_components/vm-table/style/index.less +12 -4
  8. package/lib/_components/vm-theme-provider/index.js +3 -3
  9. package/lib/index.js +3 -1
  10. package/lib/vtx-area-modal/api.js +2 -2
  11. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -2
  12. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -2
  13. package/lib/vtx-area-modal/components/BaseInfo/index.js +2 -2
  14. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +2 -2
  15. package/lib/vtx-cp-modal/components/BaseInfo/index.js +2 -2
  16. package/lib/vtx-default-modal/index.js +0 -1
  17. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
  18. package/lib/vtx-df-modal/components/BaseInfo/index.js +6 -6
  19. package/lib/vtx-df-modal/components/Calendar/index.js +4 -4
  20. package/lib/vtx-df-modal/components/Metering/index.js +8 -8
  21. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -2
  22. package/lib/vtx-df-modal/components/WorkCondition/Table.js +3 -3
  23. package/lib/vtx-df-modal/components/WorkCondition/index.js +8 -8
  24. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +2 -2
  25. package/lib/vtx-jzlj-df-tpd-modal/api.js +212 -0
  26. package/lib/vtx-jzlj-df-tpd-modal/components/Base/index.js +24 -0
  27. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +96 -0
  28. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +341 -0
  29. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.less +57 -0
  30. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +208 -0
  31. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +378 -0
  32. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.less +65 -0
  33. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +88 -0
  34. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +104 -0
  35. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +86 -0
  36. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +92 -0
  37. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.less +65 -0
  38. package/lib/vtx-jzlj-df-tpd-modal/components/index.js +5 -0
  39. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_dark.png +0 -0
  40. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_light.png +0 -0
  41. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_dark.png +0 -0
  42. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_light.png +0 -0
  43. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_dark.png +0 -0
  44. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_light.png +0 -0
  45. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_dark.png +0 -0
  46. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_light.png +0 -0
  47. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  48. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  49. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  50. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  51. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_dark.png +0 -0
  52. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_light.png +0 -0
  53. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_dark.png +0 -0
  54. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_light.png +0 -0
  55. package/lib/vtx-jzlj-df-tpd-modal/index.js +117 -0
  56. package/lib/vtx-jzlj-df-tpd-modal/style/index.js +1 -0
  57. package/lib/vtx-jzlj-df-tpd-modal/style/index.less +1 -0
  58. package/lib/vtx-jzlj-gcxm-modal/api.js +294 -0
  59. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +276 -0
  60. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +185 -0
  61. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.less +34 -0
  62. package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +6 -3
  63. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +96 -0
  64. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +341 -0
  65. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.less +57 -0
  66. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +208 -0
  67. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +394 -0
  68. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.less +65 -0
  69. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +87 -0
  70. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +104 -0
  71. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +130 -0
  72. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +96 -0
  73. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.less +65 -0
  74. package/lib/vtx-jzlj-gcxm-modal/components/index.js +5 -1
  75. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_dark.png +0 -0
  76. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_light.png +0 -0
  77. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_dark.png +0 -0
  78. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_light.png +0 -0
  79. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_dark.png +0 -0
  80. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_light.png +0 -0
  81. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_dark.png +0 -0
  82. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_light.png +0 -0
  83. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  84. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  85. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  86. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  87. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_dark.png +0 -0
  88. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_light.png +0 -0
  89. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_dark.png +0 -0
  90. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_light.png +0 -0
  91. package/lib/vtx-jzlj-gcxm-modal/index.js +65 -24
  92. package/lib/vtx-jzlj-xnc-modal/api.js +212 -0
  93. package/lib/vtx-jzlj-xnc-modal/components/Base/index.js +23 -0
  94. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +96 -0
  95. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +341 -0
  96. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.less +57 -0
  97. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +208 -0
  98. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +378 -0
  99. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.less +65 -0
  100. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +88 -0
  101. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +104 -0
  102. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +116 -0
  103. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +103 -0
  104. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.less +65 -0
  105. package/lib/vtx-jzlj-xnc-modal/components/index.js +5 -0
  106. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_dark.png +0 -0
  107. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_light.png +0 -0
  108. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_dark.png +0 -0
  109. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_light.png +0 -0
  110. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_dark.png +0 -0
  111. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_light.png +0 -0
  112. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_dark.png +0 -0
  113. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_light.png +0 -0
  114. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  115. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  116. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  117. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  118. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_dark.png +0 -0
  119. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_light.png +0 -0
  120. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_dark.png +0 -0
  121. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_light.png +0 -0
  122. package/lib/vtx-jzlj-xnc-modal/index.js +114 -0
  123. package/lib/vtx-jzlj-xnc-modal/style/index.js +1 -0
  124. package/lib/vtx-jzlj-xnc-modal/style/index.less +1 -0
  125. package/lib/vtx-qyry-modal/api.js +1 -0
  126. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +2 -2
  127. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +5 -5
  128. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +4 -4
  129. package/lib/vtx-staff-modal/components/Attendance/Record.js +4 -4
  130. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +4 -4
  131. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +13 -4
  132. package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +2 -2
  133. package/lib/vtx-staff-modal/components/BaseInfo/index.js +5 -5
  134. package/lib/vtx-staff-modal/components/Calendar/index.js +1 -2
  135. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
  136. package/lib/vtx-tfd-modal/index.js +18 -2
  137. package/package.json +1 -1
@@ -0,0 +1,65 @@
1
+ .dispose {
2
+ width: 100%;
3
+ height: 100%;
4
+
5
+ &-flowMap {
6
+ height: calc(100% - 56px - 18px);
7
+ margin-top: 16px;
8
+ border-radius: 8px;
9
+
10
+ .ol-map-container {
11
+ border-radius: 8px;
12
+ }
13
+
14
+ .ol-viewport {
15
+ border-radius: 8px;
16
+ }
17
+ }
18
+
19
+ &-myTable {
20
+ height: calc(100% - 56px - 18px);
21
+ margin-top: 16px;
22
+
23
+ &-total {
24
+ height: 85px;
25
+
26
+ &-main {
27
+ width: 100%;
28
+ height: 100%;
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: space-between;
32
+ }
33
+ }
34
+
35
+ &-search {
36
+ height: 65px;
37
+ margin-top: 16px;
38
+
39
+ &-main {
40
+ width: 100%;
41
+ height: 100%;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: space-between;
45
+
46
+ &-left {
47
+ display: flex;
48
+ align-items: center;
49
+ gap: 16px;
50
+ }
51
+
52
+ &-right {
53
+ display: flex;
54
+ align-items: center;
55
+ gap: 8px;
56
+ }
57
+ }
58
+ }
59
+
60
+ &-main {
61
+ height: calc(100% - 85px - 65px - 16px - 16px);
62
+ margin-top: 16px;
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,88 @@
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 { VmEmpty, VmPieCharts, VmWrapper } from "../../../_components";
10
+ import useSettings from "../../../_hooks/useSettings";
11
+ import { overviewApis } from "../../api";
12
+ import "./index.less";
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ export default function CZZ() {
15
+ var _React$useContext = React.useContext(JzljDfTpdContext),
16
+ id = _React$useContext.id,
17
+ theme = _React$useContext.theme;
18
+ var _overviewApis$useCtl = overviewApis.useCtl(id),
19
+ data = _overviewApis$useCtl.data,
20
+ loading = _overviewApis$useCtl.loading;
21
+ var _data$garbageList = data.garbageList,
22
+ garbageList = _data$garbageList === void 0 ? [] : _data$garbageList,
23
+ _data$totalWeight = data.totalWeight,
24
+ totalWeight = _data$totalWeight === void 0 ? 0 : _data$totalWeight;
25
+ var dataList = garbageList.map(function (item) {
26
+ return _objectSpread(_objectSpread({}, item), {}, {
27
+ name: item.garbageTypeName,
28
+ value: item.weight
29
+ });
30
+ });
31
+ var _useSettings = useSettings(),
32
+ chartFontColor = _useSettings.chartFontColor,
33
+ isDark = _useSettings.isDark;
34
+ return /*#__PURE__*/_jsx("div", {
35
+ className: "df-tpd-overview-right-top-right ".concat(theme),
36
+ children: /*#__PURE__*/_jsx(VmWrapper, {
37
+ title: "\u63A5\u53D7\u91CF\u4FE1\u606F",
38
+ children: (dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0 ? /*#__PURE__*/_jsx(VmPieCharts, {
39
+ dataList: dataList,
40
+ name: "\u4ECA\u65E5\u63A5\u53D7\u91CF",
41
+ title: "\u4ECA\u65E5\u63A5\u53D7\u603B\u91CF",
42
+ subTitle: "(\u5428)",
43
+ total: totalWeight,
44
+ loading: loading,
45
+ unit: "\u5428",
46
+ innerRadius: ['50%', '70%'],
47
+ outerRadius: ['70%', '80%'],
48
+ legendConfig: {
49
+ right: 0,
50
+ textStyle: {
51
+ fontSize: 14,
52
+ color: chartFontColor,
53
+ rich: {
54
+ name: {
55
+ width: 70,
56
+ fontSize: 14
57
+ },
58
+ space: {
59
+ width: 0
60
+ },
61
+ number: {
62
+ width: 50,
63
+ align: 'right',
64
+ fontSize: 14,
65
+ color: chartFontColor
66
+ },
67
+ percent: {
68
+ width: 50,
69
+ align: 'right',
70
+ fontSize: 14,
71
+ color: isDark ? '#ffffff' : '#8C8C8C'
72
+ }
73
+ }
74
+ }
75
+ },
76
+ spaceLength: 0,
77
+ center: ['23%', 'center']
78
+ }) : /*#__PURE__*/_jsx(VmEmpty, {
79
+ type: "NO_CHART",
80
+ style: {
81
+ height: '100%',
82
+ marginLeft: '50%',
83
+ transform: 'translateX(-50%)'
84
+ }
85
+ })
86
+ })
87
+ });
88
+ }
@@ -0,0 +1,104 @@
1
+ import React from 'react';
2
+ import { JzljDfTpdContext } from "../..";
3
+ import { VmBarCharts, VmEmpty, VmFactorList, VmWrapper } from "../../../_components";
4
+ import useSettings from "../../../_hooks/useSettings";
5
+ import { overviewApis } from "../../api";
6
+ import "./index.less";
7
+ import overview_ctyl_pjrcc_dark from "../../imgs/overview_ctyl_pjrcc_dark.png";
8
+ import overview_ctyl_pjrcc_light from "../../imgs/overview_ctyl_pjrcc_light.png";
9
+ import overview_ctyl_pjryl_dark from "../../imgs/overview_ctyl_pjryl_dark.png";
10
+ import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ export default function CZZ() {
13
+ var _React$useContext = React.useContext(JzljDfTpdContext),
14
+ id = _React$useContext.id,
15
+ theme = _React$useContext.theme;
16
+ var _useSettings = useSettings(),
17
+ isDark = _useSettings.isDark;
18
+ var _overviewApis$useCtyl = overviewApis.useCtyl(id),
19
+ data = _overviewApis$useCtyl.data,
20
+ loading = _overviewApis$useCtyl.loading;
21
+ var _data$avgDayCount = data.avgDayCount,
22
+ avgDayCount = _data$avgDayCount === void 0 ? 0 : _data$avgDayCount,
23
+ _data$avgDayWeight = data.avgDayWeight,
24
+ avgDayWeight = _data$avgDayWeight === void 0 ? 0 : _data$avgDayWeight,
25
+ _data$histogramList = data.histogramList,
26
+ histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
27
+ var dataList_top = [{
28
+ name: '平均日运量',
29
+ unit: '吨',
30
+ value: avgDayWeight,
31
+ img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
32
+ fontType: 'blue',
33
+ unitStyle: {
34
+ fontSize: 14
35
+ },
36
+ style: {
37
+ flex: 1,
38
+ justifyContent: 'center'
39
+ }
40
+ }, {
41
+ name: '平均日车次',
42
+ unit: '次',
43
+ value: avgDayCount,
44
+ img: isDark ? overview_ctyl_pjrcc_dark : overview_ctyl_pjrcc_light,
45
+ fontType: 'blue',
46
+ unitStyle: {
47
+ fontSize: 14
48
+ },
49
+ style: {
50
+ flex: 1,
51
+ justifyContent: 'center'
52
+ }
53
+ }];
54
+ return /*#__PURE__*/_jsxs(VmWrapper, {
55
+ title: "7\u65E5\u5185\u8FDB\u571F\u8FD0\u91CF\u4FE1\u606F",
56
+ children: [/*#__PURE__*/_jsx(VmFactorList, {
57
+ list: dataList_top,
58
+ style: {
59
+ background: 'unset'
60
+ }
61
+ }), /*#__PURE__*/_jsx("div", {
62
+ style: {
63
+ height: 160
64
+ },
65
+ children: histogramList !== null && histogramList !== void 0 && histogramList.length ? /*#__PURE__*/_jsx(VmBarCharts, {
66
+ dataList: [{
67
+ name: '运量',
68
+ data: histogramList.map(function (item) {
69
+ return "\u2000".concat(item.weight);
70
+ }),
71
+ color: 'geekblue',
72
+ yAxisIndex: 1
73
+ }],
74
+ xAxis: histogramList.map(function (item) {
75
+ return item.date;
76
+ }),
77
+ yAxisList: [{
78
+ key: "\u2001",
79
+ unit: '次',
80
+ name: '(次)'
81
+ }, {
82
+ key: "\u2000",
83
+ unit: '吨',
84
+ name: '(吨)'
85
+ }],
86
+ lineList: [{
87
+ name: '车次',
88
+ data: histogramList.map(function (item) {
89
+ return "\u2001".concat(item.count);
90
+ }),
91
+ color: '#0FB964',
92
+ yAxisIndex: 0
93
+ }],
94
+ loading: loading,
95
+ barBorderRadius: [4, 4, 0, 0],
96
+ gridOptions: {
97
+ top: 30
98
+ }
99
+ }) : /*#__PURE__*/_jsx(VmEmpty, {
100
+ type: "NO_CHART"
101
+ })
102
+ })]
103
+ });
104
+ }
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ import Base from "./Base";
2
+ import Collection from "./Collection";
3
+ import Dispose from "./Dispose";
4
+ import Overview from "./Overview";
5
+ export { Base, Collection, Dispose, Overview };
@@ -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';