@vtx/modals2 5.0.17 → 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.
Files changed (113) hide show
  1. package/lib/_components/vm-bar-charts/index.js +5 -2
  2. package/lib/_components/vm-empty/index.js +4 -1
  3. package/lib/_components/vm-empty/style/index.less +4 -0
  4. package/lib/_components/vm-filter/index.js +4 -2
  5. package/lib/_components/vm-pie-charts/index.js +8 -1
  6. package/lib/_components/vm-table/style/index.less +12 -4
  7. package/lib/index.js +3 -1
  8. package/lib/vtx-default-modal/components/BaseInfo/index.less +1 -1
  9. package/lib/vtx-default-modal/index.js +0 -1
  10. package/lib/vtx-jzlj-df-tpd-modal/api.js +212 -0
  11. package/lib/vtx-jzlj-df-tpd-modal/components/Base/index.js +24 -0
  12. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +96 -0
  13. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +341 -0
  14. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.less +57 -0
  15. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +208 -0
  16. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +378 -0
  17. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.less +65 -0
  18. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +88 -0
  19. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +104 -0
  20. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +86 -0
  21. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +92 -0
  22. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.less +65 -0
  23. package/lib/vtx-jzlj-df-tpd-modal/components/index.js +5 -0
  24. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_dark.png +0 -0
  25. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_light.png +0 -0
  26. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_dark.png +0 -0
  27. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_light.png +0 -0
  28. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_dark.png +0 -0
  29. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_light.png +0 -0
  30. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_dark.png +0 -0
  31. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_light.png +0 -0
  32. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  33. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  34. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  35. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  36. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_dark.png +0 -0
  37. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_light.png +0 -0
  38. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_dark.png +0 -0
  39. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_light.png +0 -0
  40. package/lib/vtx-jzlj-df-tpd-modal/index.js +117 -0
  41. package/lib/vtx-jzlj-df-tpd-modal/style/index.js +1 -0
  42. package/lib/vtx-jzlj-df-tpd-modal/style/index.less +1 -0
  43. package/lib/vtx-jzlj-gcxm-modal/api.js +294 -0
  44. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +276 -0
  45. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +185 -0
  46. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.less +34 -0
  47. package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +6 -3
  48. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +96 -0
  49. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +341 -0
  50. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.less +57 -0
  51. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +208 -0
  52. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +394 -0
  53. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.less +65 -0
  54. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +87 -0
  55. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +104 -0
  56. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +130 -0
  57. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +96 -0
  58. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.less +65 -0
  59. package/lib/vtx-jzlj-gcxm-modal/components/index.js +5 -1
  60. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_dark.png +0 -0
  61. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_light.png +0 -0
  62. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_dark.png +0 -0
  63. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_light.png +0 -0
  64. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_dark.png +0 -0
  65. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_light.png +0 -0
  66. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_dark.png +0 -0
  67. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_light.png +0 -0
  68. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  69. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  70. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  71. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  72. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_dark.png +0 -0
  73. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_light.png +0 -0
  74. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_dark.png +0 -0
  75. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_light.png +0 -0
  76. package/lib/vtx-jzlj-gcxm-modal/index.js +65 -24
  77. package/lib/vtx-jzlj-xnc-modal/api.js +212 -0
  78. package/lib/vtx-jzlj-xnc-modal/components/Base/index.js +23 -0
  79. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +96 -0
  80. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +341 -0
  81. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.less +57 -0
  82. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +208 -0
  83. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +378 -0
  84. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.less +65 -0
  85. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +88 -0
  86. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +104 -0
  87. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +116 -0
  88. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +103 -0
  89. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.less +65 -0
  90. package/lib/vtx-jzlj-xnc-modal/components/index.js +5 -0
  91. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_dark.png +0 -0
  92. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_light.png +0 -0
  93. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_dark.png +0 -0
  94. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_light.png +0 -0
  95. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_dark.png +0 -0
  96. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_light.png +0 -0
  97. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_dark.png +0 -0
  98. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_light.png +0 -0
  99. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  100. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  101. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  102. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  103. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_dark.png +0 -0
  104. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_light.png +0 -0
  105. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_dark.png +0 -0
  106. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_light.png +0 -0
  107. package/lib/vtx-jzlj-xnc-modal/index.js +114 -0
  108. package/lib/vtx-jzlj-xnc-modal/style/index.js +1 -0
  109. package/lib/vtx-jzlj-xnc-modal/style/index.less +1 -0
  110. package/lib/vtx-qyry-modal/api.js +1 -0
  111. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +11 -2
  112. package/lib/vtx-tfd-modal/index.js +18 -2
  113. package/package.json +1 -1
@@ -0,0 +1,378 @@
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 { useAntdTable, useSetState } from 'ahooks';
14
+ import { Button } from 'antd';
15
+ import React from 'react';
16
+ import { JzljDfTpdContext } from "../..";
17
+ import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
18
+ import useSettings from "../../../_hooks/useSettings";
19
+ import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis } from "../../api";
20
+ import FlowMap from "./FlowMap";
21
+ import "./index.less";
22
+ import dispose_czz_dark from "../../imgs/dispose_czz_dark.png";
23
+ import dispose_czz_light from "../../imgs/dispose_czz_light.png";
24
+ import dispose_syl_dark from "../../imgs/dispose_syl_dark.png";
25
+ import dispose_syl_light from "../../imgs/dispose_syl_light.png";
26
+ import dispose_zyyl_dark from "../../imgs/dispose_zyyl_dark.png";
27
+ import dispose_zyyl_light from "../../imgs/dispose_zyyl_light.png";
28
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
29
+ export default function Dispose() {
30
+ var _React$useContext = React.useContext(JzljDfTpdContext),
31
+ id = _React$useContext.id,
32
+ theme = _React$useContext.theme,
33
+ _React$useContext$inf = _React$useContext.info,
34
+ info = _React$useContext$inf === void 0 ? {} : _React$useContext$inf,
35
+ setIframeModalInfo = _React$useContext.setIframeModalInfo;
36
+ var _useSettings = useSettings(),
37
+ isDark = _useSettings.isDark;
38
+ var _useSetState = useSetState({
39
+ activeKey: 'chart',
40
+ transportUnitName: undefined,
41
+ endingPointName: undefined,
42
+ effectiveStatusCode: undefined,
43
+ garbageTypeCode: undefined,
44
+ flowData: []
45
+ }),
46
+ _useSetState2 = _slicedToArray(_useSetState, 2),
47
+ state = _useSetState2[0],
48
+ setState = _useSetState2[1];
49
+ var activeKey = state.activeKey,
50
+ transportUnitName = state.transportUnitName,
51
+ endingPointName = state.endingPointName,
52
+ effectiveStatusCode = state.effectiveStatusCode,
53
+ garbageTypeCode = state.garbageTypeCode,
54
+ flowData = state.flowData;
55
+ var effectiveStatusList = fetchJzljEnum('EffectiveStatusEnum');
56
+ var garbageTypeList = getByParamTypeCode('param_jzlj_disposal_garbage_type');
57
+ var columns = [['运输单位', 'transportUnitName', {
58
+ width: 160,
59
+ ellipsis: true
60
+ }], ['运输起点', 'startingPointName', {
61
+ width: 160,
62
+ ellipsis: true
63
+ }], ['运输垃圾类型', 'garbageTypeName', {
64
+ width: 100
65
+ }], ['运输量(吨)', 'transportWeight', {
66
+ width: 80,
67
+ align: 'right'
68
+ }], ['申报有效期', 'effectiveDate', {
69
+ width: 150
70
+ }], ['运输车辆(辆)', 'effectiveCarCount', {
71
+ width: 100,
72
+ align: 'right'
73
+ }], ['生效状态', 'effectiveStatusName', {
74
+ width: 100,
75
+ render: function render(text, record) {
76
+ var colorMap = {
77
+ wsx: 'yellow',
78
+ sxz: 'green',
79
+ ysx: 'red',
80
+ yzz: 'gray'
81
+ };
82
+ var color = colorMap[record.effectiveStatusCode] || 'yellow';
83
+ return /*#__PURE__*/_jsx(VmTag, {
84
+ title: text,
85
+ type: color
86
+ });
87
+ }
88
+ }], ['操作', 'action', {
89
+ width: 60,
90
+ render: function render(_, record) {
91
+ return /*#__PURE__*/_jsx("a", {
92
+ onClick: function onClick() {
93
+ setIframeModalInfo({
94
+ visible: true,
95
+ title: '处置证信息',
96
+ src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id)
97
+ });
98
+ },
99
+ children: "\u67E5\u770B"
100
+ });
101
+ }
102
+ }]].map(function (item) {
103
+ return _objectSpread({
104
+ title: item[0],
105
+ dataIndex: item[1],
106
+ key: item[1]
107
+ }, item[2]);
108
+ });
109
+ var getTableData = function getTableData(_ref) {
110
+ var current = _ref.current,
111
+ pageSize = _ref.pageSize;
112
+ var formData = {
113
+ transportUnitName: transportUnitName,
114
+ startingPointName: endingPointName,
115
+ effectiveStatusCode: effectiveStatusCode,
116
+ garbageTypeCode: garbageTypeCode
117
+ };
118
+ disposeApis.list(_objectSpread(_objectSpread({}, formData), {}, {
119
+ startingPointId: id
120
+ })).then(function (res) {
121
+ setState({
122
+ flowData: (res === null || res === void 0 ? void 0 : res.data) || []
123
+ });
124
+ });
125
+ return disposeApis.page(_objectSpread(_objectSpread({}, formData), {}, {
126
+ startingPointId: id,
127
+ page: current - 1,
128
+ size: pageSize
129
+ })).then(function (res) {
130
+ var _res$data, _res$data2;
131
+ return {
132
+ total: (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.total) || 0,
133
+ list: (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.rows) || []
134
+ };
135
+ });
136
+ };
137
+ var _useAntdTable = useAntdTable(getTableData, {
138
+ defaultPageSize: 10
139
+ }),
140
+ tableProps = _useAntdTable.tableProps,
141
+ search = _useAntdTable.search;
142
+ var submit = search.submit,
143
+ reset = search.reset;
144
+ var myReset = function myReset() {
145
+ setState({
146
+ transportUnitName: undefined,
147
+ endingPointName: undefined,
148
+ effectiveStatusCode: undefined,
149
+ garbageTypeCode: undefined
150
+ });
151
+ reset();
152
+ };
153
+ var myTableProps = _objectSpread(_objectSpread({}, tableProps), {}, {
154
+ rowKey: 'id',
155
+ columns: columns
156
+ });
157
+ var _overviewApis$useCzz = overviewApis.useCzz(id),
158
+ _overviewApis$useCzz$ = _overviewApis$useCzz.data,
159
+ totalData = _overviewApis$useCzz$ === void 0 ? {} : _overviewApis$useCzz$;
160
+ var _overviewApis$useCtl = overviewApis.useCtl(id),
161
+ _overviewApis$useCtl$ = _overviewApis$useCtl.data,
162
+ ctlData = _overviewApis$useCtl$ === void 0 ? {} : _overviewApis$useCtl$;
163
+ var _totalData$totalCzzCo = totalData.totalCzzCount,
164
+ totalCzzCount = _totalData$totalCzzCo === void 0 ? 0 : _totalData$totalCzzCo,
165
+ _totalData$yysWeight = totalData.yysWeight,
166
+ yysWeight = _totalData$yysWeight === void 0 ? 0 : _totalData$yysWeight,
167
+ _totalData$syWeight = totalData.syWeight,
168
+ syWeight = _totalData$syWeight === void 0 ? 0 : _totalData$syWeight;
169
+ var _ctlData$totalWeight = ctlData.totalWeight,
170
+ totalWeight = _ctlData$totalWeight === void 0 ? 0 : _ctlData$totalWeight;
171
+ var totalList = [{
172
+ name: '处置证数量',
173
+ unit: '单',
174
+ value: totalCzzCount,
175
+ unitStyle: {
176
+ fontSize: 14
177
+ },
178
+ style: {
179
+ flex: 1,
180
+ justifyContent: 'center',
181
+ alignItems: 'center'
182
+ },
183
+ img: isDark ? dispose_czz_dark : dispose_czz_light,
184
+ fontType: 'blue'
185
+ }, {
186
+ name: '总已运量',
187
+ unit: '吨',
188
+ value: yysWeight,
189
+ unitStyle: {
190
+ fontSize: 14
191
+ },
192
+ style: {
193
+ flex: 1,
194
+ justifyContent: 'center',
195
+ alignItems: 'center'
196
+ },
197
+ img: isDark ? dispose_zyyl_dark : dispose_zyyl_light,
198
+ fontType: 'purple'
199
+ }, {
200
+ name: '剩余量',
201
+ unit: '吨',
202
+ value: syWeight,
203
+ unitStyle: {
204
+ fontSize: 14
205
+ },
206
+ style: {
207
+ flex: 1,
208
+ justifyContent: 'center',
209
+ alignItems: 'center'
210
+ },
211
+ img: isDark ? dispose_syl_dark : dispose_syl_light,
212
+ fontType: 'yellow'
213
+ }];
214
+ var searchList = [{
215
+ title: '运输单位',
216
+ weight: 1,
217
+ dom: /*#__PURE__*/_jsx(VmFilter.VMInput, {
218
+ style: {
219
+ width: 120
220
+ },
221
+ value: transportUnitName,
222
+ onValChange: function onValChange(val) {
223
+ setState({
224
+ transportUnitName: val
225
+ });
226
+ }
227
+ })
228
+ }, {
229
+ title: '运输起点',
230
+ weight: 1,
231
+ dom: /*#__PURE__*/_jsx(VmFilter.VMInput, {
232
+ style: {
233
+ width: 120
234
+ },
235
+ value: endingPointName,
236
+ onValChange: function onValChange(val) {
237
+ setState({
238
+ endingPointName: val
239
+ });
240
+ }
241
+ })
242
+ }, {
243
+ title: '生效状态',
244
+ weight: 1,
245
+ dom: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
246
+ options: effectiveStatusList.map(function (item) {
247
+ return {
248
+ value: item.value,
249
+ label: item.text
250
+ };
251
+ }),
252
+ style: {
253
+ width: 120
254
+ },
255
+ placeholder: "\u8BF7\u9009\u62E9",
256
+ value: effectiveStatusCode,
257
+ allowClear: true,
258
+ onChange: function onChange(val) {
259
+ setState({
260
+ effectiveStatusCode: val
261
+ });
262
+ }
263
+ })
264
+ }, {
265
+ title: '运输垃圾类型',
266
+ weight: 1,
267
+ dom: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
268
+ options: garbageTypeList.map(function (item) {
269
+ return {
270
+ value: item.parmCode,
271
+ label: item.parmName
272
+ };
273
+ }),
274
+ style: {
275
+ width: 120
276
+ },
277
+ placeholder: "\u8BF7\u9009\u62E9",
278
+ value: garbageTypeCode,
279
+ onChange: function onChange(val) {
280
+ setState({
281
+ garbageTypeCode: val
282
+ });
283
+ }
284
+ })
285
+ }];
286
+ return /*#__PURE__*/_jsxs("div", {
287
+ className: "dispose",
288
+ children: [/*#__PURE__*/_jsx("div", {
289
+ children: /*#__PURE__*/_jsx(VmWrapper, {
290
+ showContent: false,
291
+ needChange: true,
292
+ headerStyle: {
293
+ height: '56px',
294
+ padding: 0,
295
+ borderBottom: 'unset'
296
+ },
297
+ extraStyle: {
298
+ left: '16px',
299
+ right: 'unset',
300
+ top: '50%',
301
+ transform: 'translateY(-50%)'
302
+ },
303
+ activeKey: activeKey,
304
+ onChange: function onChange(key) {
305
+ return setState({
306
+ activeKey: key
307
+ });
308
+ }
309
+ })
310
+ }), /*#__PURE__*/_jsx(_Fragment, {
311
+ children: activeKey === 'chart' ? /*#__PURE__*/_jsx(FlowMap, {
312
+ flowData: flowData,
313
+ info: info
314
+ }) : /*#__PURE__*/_jsxs("div", {
315
+ className: "dispose-myTable",
316
+ children: [/*#__PURE__*/_jsx("div", {
317
+ className: "dispose-myTable-total",
318
+ children: /*#__PURE__*/_jsx(VmWrapper, {
319
+ showTitle: false,
320
+ contentStyle: {
321
+ padding: 0
322
+ },
323
+ children: /*#__PURE__*/_jsx(VmFactorList, {
324
+ list: totalList,
325
+ style: {
326
+ background: 'unset',
327
+ height: '100%'
328
+ }
329
+ })
330
+ })
331
+ }), /*#__PURE__*/_jsx("div", {
332
+ className: "dispose-myTable-search",
333
+ children: /*#__PURE__*/_jsx(VmWrapper, {
334
+ showTitle: false,
335
+ children: /*#__PURE__*/_jsxs("div", {
336
+ className: "dispose-myTable-search-main",
337
+ children: [/*#__PURE__*/_jsx("div", {
338
+ className: "dispose-myTable-search-main-left",
339
+ children: searchList.map(function (item) {
340
+ return /*#__PURE__*/_jsxs("span", {
341
+ style: {
342
+ display: 'flex',
343
+ alignItems: 'center'
344
+ },
345
+ children: [/*#__PURE__*/_jsx("span", {
346
+ style: {
347
+ marginRight: 8
348
+ },
349
+ children: item.title
350
+ }), /*#__PURE__*/_jsx("span", {
351
+ children: item.dom
352
+ })]
353
+ }, item.title);
354
+ })
355
+ }), /*#__PURE__*/_jsxs("div", {
356
+ className: "dispose-myTable-search-main-right",
357
+ children: [/*#__PURE__*/_jsx(Button, {
358
+ type: "primary",
359
+ onClick: submit,
360
+ children: "\u67E5\u8BE2"
361
+ }), /*#__PURE__*/_jsx(Button, {
362
+ onClick: myReset,
363
+ children: "\u91CD\u7F6E"
364
+ })]
365
+ })]
366
+ })
367
+ })
368
+ }), /*#__PURE__*/_jsx("div", {
369
+ className: "dispose-myTable-main",
370
+ children: /*#__PURE__*/_jsx(VmWrapper, {
371
+ showTitle: false,
372
+ children: /*#__PURE__*/_jsx(VmTable, _objectSpread({}, myTableProps))
373
+ })
374
+ })]
375
+ })
376
+ })]
377
+ });
378
+ }
@@ -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
+ }