@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.
Files changed (111) 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-table/style/index.less +12 -4
  6. package/lib/index.js +3 -1
  7. package/lib/vtx-default-modal/index.js +0 -1
  8. package/lib/vtx-jzlj-df-tpd-modal/api.js +212 -0
  9. package/lib/vtx-jzlj-df-tpd-modal/components/Base/index.js +24 -0
  10. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +96 -0
  11. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +341 -0
  12. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.less +57 -0
  13. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +208 -0
  14. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +378 -0
  15. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.less +65 -0
  16. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +88 -0
  17. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +104 -0
  18. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +86 -0
  19. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +92 -0
  20. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.less +65 -0
  21. package/lib/vtx-jzlj-df-tpd-modal/components/index.js +5 -0
  22. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_dark.png +0 -0
  23. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_light.png +0 -0
  24. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_dark.png +0 -0
  25. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_light.png +0 -0
  26. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_dark.png +0 -0
  27. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_light.png +0 -0
  28. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_dark.png +0 -0
  29. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_light.png +0 -0
  30. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  31. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  32. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  33. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  34. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_dark.png +0 -0
  35. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_light.png +0 -0
  36. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_dark.png +0 -0
  37. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_light.png +0 -0
  38. package/lib/vtx-jzlj-df-tpd-modal/index.js +117 -0
  39. package/lib/vtx-jzlj-df-tpd-modal/style/index.js +1 -0
  40. package/lib/vtx-jzlj-df-tpd-modal/style/index.less +1 -0
  41. package/lib/vtx-jzlj-gcxm-modal/api.js +294 -0
  42. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +276 -0
  43. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +185 -0
  44. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.less +34 -0
  45. package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +6 -3
  46. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +96 -0
  47. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +341 -0
  48. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.less +57 -0
  49. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +208 -0
  50. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +394 -0
  51. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.less +65 -0
  52. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +87 -0
  53. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +104 -0
  54. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +130 -0
  55. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +96 -0
  56. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.less +65 -0
  57. package/lib/vtx-jzlj-gcxm-modal/components/index.js +5 -1
  58. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_dark.png +0 -0
  59. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_light.png +0 -0
  60. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_dark.png +0 -0
  61. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_light.png +0 -0
  62. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_dark.png +0 -0
  63. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_light.png +0 -0
  64. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_dark.png +0 -0
  65. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_light.png +0 -0
  66. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  67. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  68. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  69. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  70. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_dark.png +0 -0
  71. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_light.png +0 -0
  72. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_dark.png +0 -0
  73. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_light.png +0 -0
  74. package/lib/vtx-jzlj-gcxm-modal/index.js +65 -24
  75. package/lib/vtx-jzlj-xnc-modal/api.js +212 -0
  76. package/lib/vtx-jzlj-xnc-modal/components/Base/index.js +23 -0
  77. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +96 -0
  78. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +341 -0
  79. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.less +57 -0
  80. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +208 -0
  81. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +378 -0
  82. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.less +65 -0
  83. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +88 -0
  84. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +104 -0
  85. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +116 -0
  86. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +103 -0
  87. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.less +65 -0
  88. package/lib/vtx-jzlj-xnc-modal/components/index.js +5 -0
  89. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_dark.png +0 -0
  90. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_light.png +0 -0
  91. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_dark.png +0 -0
  92. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_light.png +0 -0
  93. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_dark.png +0 -0
  94. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_light.png +0 -0
  95. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_dark.png +0 -0
  96. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_light.png +0 -0
  97. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  98. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  99. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  100. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  101. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_dark.png +0 -0
  102. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_light.png +0 -0
  103. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_dark.png +0 -0
  104. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_light.png +0 -0
  105. package/lib/vtx-jzlj-xnc-modal/index.js +114 -0
  106. package/lib/vtx-jzlj-xnc-modal/style/index.js +1 -0
  107. package/lib/vtx-jzlj-xnc-modal/style/index.less +1 -0
  108. package/lib/vtx-qyry-modal/api.js +1 -0
  109. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +11 -2
  110. package/lib/vtx-tfd-modal/index.js +18 -2
  111. package/package.json +1 -1
@@ -0,0 +1,294 @@
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
+ var _excluded = ["startingPointId", "page", "size"],
3
+ _excluded2 = ["startingPointId"],
4
+ _excluded3 = ["startingPointId", "stepThreeOperateTimeLeft", "stepThreeOperateTimeRight", "page", "size"],
5
+ _excluded4 = ["startingPointId", "stepThreeOperateTimeLeft", "stepThreeOperateTimeRight"];
6
+ 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; }
7
+ 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; }
8
+ 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; }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ 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); }
11
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
12
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
+ import { getVtxToken, request } from '@vtx/utils';
14
+ import { useRequest } from 'ahooks';
15
+ import dayjs from 'dayjs';
16
+ var overviewApis = {
17
+ useInfo: function useInfo(id) {
18
+ var _useRequest = useRequest(function () {
19
+ return request.get('/cloud/jcss-reborn/facility/get', {
20
+ data: {
21
+ id: id,
22
+ coordType: 'wgs84'
23
+ }
24
+ });
25
+ }, {
26
+ ready: !!id,
27
+ refreshDeps: [id]
28
+ }),
29
+ data = _useRequest.data;
30
+ return {
31
+ info: (data === null || data === void 0 ? void 0 : data.data) || {}
32
+ };
33
+ },
34
+ // 处置证信息
35
+ useCzz: function useCzz(id) {
36
+ var _useRequest2 = useRequest(function () {
37
+ return request.get('/cloud/jzlj/web/api/gis/real/time/jcssCzzInfo', {
38
+ data: {
39
+ id: id,
40
+ startEndType: 'START'
41
+ }
42
+ });
43
+ }),
44
+ data = _useRequest2.data;
45
+ return {
46
+ data: (data === null || data === void 0 ? void 0 : data.data) || {}
47
+ };
48
+ },
49
+ // 出土量分析
50
+ useCtl: function useCtl(id) {
51
+ var _useRequest3 = useRequest(function () {
52
+ return request.get('/cloud/jzlj/web/api/gis/real/time/jcssOrderCzzSummary', {
53
+ data: {
54
+ id: id,
55
+ startEndType: 'START',
56
+ startDate: dayjs().format('YYYY-MM-DD'),
57
+ endDate: dayjs().format('YYYY-MM-DD')
58
+ }
59
+ });
60
+ }),
61
+ data = _useRequest3.data,
62
+ loading = _useRequest3.loading;
63
+ return {
64
+ data: (data === null || data === void 0 ? void 0 : data.data) || {},
65
+ loading: loading
66
+ };
67
+ },
68
+ // 出土运量
69
+ useCtyl: function useCtyl(id) {
70
+ var _useRequest4 = useRequest(function () {
71
+ return request.get('/cloud/jzlj/web/api/gis/real/time/jcssOrderAnalyse', {
72
+ data: {
73
+ id: id,
74
+ startEndType: 'START',
75
+ startDate: dayjs().subtract(6, 'day').format('YYYY-MM-DD'),
76
+ endDate: dayjs().format('YYYY-MM-DD')
77
+ }
78
+ });
79
+ }),
80
+ data = _useRequest4.data,
81
+ loading = _useRequest4.loading;
82
+ return {
83
+ data: (data === null || data === void 0 ? void 0 : data.data) || {},
84
+ loading: loading
85
+ };
86
+ }
87
+ };
88
+ var disposeApis = {
89
+ page: function page(_ref) {
90
+ var startingPointId = _ref.startingPointId,
91
+ _page = _ref.page,
92
+ size = _ref.size,
93
+ restParams = _objectWithoutProperties(_ref, _excluded);
94
+ return request.get("/cloud/jzlj/web/api/disposal/certificate/info/page", {
95
+ data: _objectSpread({
96
+ page: _page,
97
+ size: size,
98
+ startingPointId: startingPointId
99
+ }, restParams)
100
+ });
101
+ },
102
+ list: function list(_ref2) {
103
+ var startingPointId = _ref2.startingPointId,
104
+ restParams = _objectWithoutProperties(_ref2, _excluded2);
105
+ return request.get("/cloud/jzlj/web/api/disposal/certificate/info/list", {
106
+ data: _objectSpread({
107
+ startingPointId: startingPointId,
108
+ coordinateType: 'wgs84'
109
+ }, restParams)
110
+ });
111
+ }
112
+ };
113
+
114
+ // 联单
115
+ var collectionApis = {
116
+ page: function page(_ref3) {
117
+ var startingPointId = _ref3.startingPointId,
118
+ stepThreeOperateTimeLeft = _ref3.stepThreeOperateTimeLeft,
119
+ stepThreeOperateTimeRight = _ref3.stepThreeOperateTimeRight,
120
+ _page2 = _ref3.page,
121
+ size = _ref3.size,
122
+ restParams = _objectWithoutProperties(_ref3, _excluded3);
123
+ return request.get("/cloud/jzlj/web/api/car/transport/joint/order/record/page", {
124
+ data: _objectSpread({
125
+ page: _page2,
126
+ size: size,
127
+ startingPointId: startingPointId,
128
+ stepThreeOperateTimeLeft: stepThreeOperateTimeLeft,
129
+ stepThreeOperateTimeRight: stepThreeOperateTimeRight
130
+ }, restParams)
131
+ });
132
+ },
133
+ // 统计
134
+ total: function total(_ref4) {
135
+ var startingPointId = _ref4.startingPointId,
136
+ stepThreeOperateTimeLeft = _ref4.stepThreeOperateTimeLeft,
137
+ stepThreeOperateTimeRight = _ref4.stepThreeOperateTimeRight,
138
+ restParams = _objectWithoutProperties(_ref4, _excluded4);
139
+ return request.get("/cloud/jzlj/web/api/gis/real/time/jcssJzJointOrderSummaryStatistics", {
140
+ data: _objectSpread({
141
+ startingPointId: startingPointId,
142
+ stepThreeOperateTimeLeft: stepThreeOperateTimeLeft,
143
+ stepThreeOperateTimeRight: stepThreeOperateTimeRight
144
+ }, restParams)
145
+ });
146
+ },
147
+ // 图表
148
+ jcssOrderAnalyse: function jcssOrderAnalyse(_ref5) {
149
+ var startingPointId = _ref5.startingPointId,
150
+ startDate = _ref5.startDate,
151
+ endDate = _ref5.endDate;
152
+ return request.get("/cloud/jzlj/web/api/gis/real/time/jcssOrderAnalyse", {
153
+ data: {
154
+ id: startingPointId,
155
+ startDate: startDate,
156
+ endDate: endDate,
157
+ startEndType: 'START'
158
+ }
159
+ });
160
+ }
161
+ };
162
+
163
+ // 报警
164
+ var alarmApis = {
165
+ // 饼图
166
+ usePie: function usePie(_ref6) {
167
+ var id = _ref6.id,
168
+ startDate = _ref6.startDate,
169
+ endDate = _ref6.endDate,
170
+ alarmType = _ref6.alarmType;
171
+ var _useRequest5 = useRequest(function () {
172
+ return request.get("/cloud/jzlj/web/api/gis/real/time/jcssOrderAlarmPieChart", {
173
+ data: {
174
+ id: id,
175
+ startDate: startDate,
176
+ endDate: endDate,
177
+ alarmType: alarmType
178
+ }
179
+ });
180
+ }, {
181
+ refreshDeps: [id, startDate, endDate, alarmType]
182
+ }),
183
+ pieRes = _useRequest5.data;
184
+ return {
185
+ pieData: pieRes === null || pieRes === void 0 ? void 0 : pieRes.data
186
+ };
187
+ },
188
+ // 折线图
189
+ useLine: function useLine(_ref7) {
190
+ var id = _ref7.id,
191
+ startDate = _ref7.startDate,
192
+ endDate = _ref7.endDate,
193
+ alarmType = _ref7.alarmType;
194
+ var _useRequest6 = useRequest(function () {
195
+ return request.get("/cloud/jzlj/web/api/gis/real/time/jcssOrderAlarmAnalyse", {
196
+ data: {
197
+ id: id,
198
+ startDate: startDate,
199
+ endDate: endDate,
200
+ alarmType: alarmType,
201
+ startEndType: 'START'
202
+ }
203
+ });
204
+ }, {
205
+ refreshDeps: [id, startDate, endDate, alarmType]
206
+ }),
207
+ lineRes = _useRequest6.data;
208
+ return {
209
+ lineData: lineRes === null || lineRes === void 0 ? void 0 : lineRes.data
210
+ };
211
+ },
212
+ page_tccs: function page_tccs(_ref8) {
213
+ var id = _ref8.id,
214
+ startTime = _ref8.startTime,
215
+ endTime = _ref8.endTime,
216
+ page = _ref8.page,
217
+ size = _ref8.size;
218
+ return request.get("/cloud/jzlj/web/api/car/parking/timeout/alarm/job/page", {
219
+ data: {
220
+ page: page,
221
+ size: size,
222
+ startingPointId: id,
223
+ alarmTimeLeft: startTime,
224
+ alarmTimeRight: endTime
225
+ }
226
+ });
227
+ },
228
+ page_lxpl: function page_lxpl(_ref9) {
229
+ var id = _ref9.id,
230
+ startTime = _ref9.startTime,
231
+ endTime = _ref9.endTime,
232
+ page = _ref9.page,
233
+ size = _ref9.size;
234
+ return request.get("/cloud/jzlj/web/api/car/route/deviation/alarm/job/page", {
235
+ data: {
236
+ page: page,
237
+ size: size,
238
+ startingPointId: id,
239
+ alarmTimeLeft: startTime,
240
+ alarmTimeRight: endTime
241
+ }
242
+ });
243
+ },
244
+ page_ylyc: function page_ylyc(_ref10) {
245
+ var id = _ref10.id,
246
+ startTime = _ref10.startTime,
247
+ endTime = _ref10.endTime,
248
+ page = _ref10.page,
249
+ size = _ref10.size;
250
+ return request.get("/cloud/jzlj/web/api/car/transport/alarm/job/page", {
251
+ data: {
252
+ page: page,
253
+ size: size,
254
+ ysqdId: id,
255
+ createTimeLeft: startTime,
256
+ createTimeRight: endTime
257
+ }
258
+ });
259
+ }
260
+ };
261
+ export { alarmApis, collectionApis, disposeApis, overviewApis };
262
+
263
+ // 建筑垃圾枚举
264
+ export var fetchJzljEnum = function fetchJzljEnum(enumName) {
265
+ var _useRequest7 = useRequest(function () {
266
+ return request.get("/cloud/jzlj/common/loadEnumValue", {
267
+ data: {
268
+ enumName: enumName
269
+ }
270
+ });
271
+ }, {
272
+ refreshDeps: [enumName]
273
+ }),
274
+ _useRequest7$data = _useRequest7.data,
275
+ data = _useRequest7$data === void 0 ? {} : _useRequest7$data;
276
+ return (data === null || data === void 0 ? void 0 : data.data) || [];
277
+ };
278
+ export var getByParamTypeCode = function getByParamTypeCode(paramTypeCode) {
279
+ var _useRequest8 = useRequest(function () {
280
+ return request.get("/cloud/management/rest/np/param/getByParamTypeCode", {
281
+ data: {
282
+ parameters: JSON.stringify({
283
+ paramTypeCode: paramTypeCode,
284
+ tenantId: getVtxToken('tenantId')
285
+ })
286
+ }
287
+ });
288
+ }, {
289
+ refreshDeps: [paramTypeCode]
290
+ }),
291
+ _useRequest8$data = _useRequest8.data,
292
+ data = _useRequest8$data === void 0 ? {} : _useRequest8$data;
293
+ return (data === null || data === void 0 ? void 0 : data.data) || [];
294
+ };
@@ -0,0 +1,276 @@
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 } from 'ahooks';
14
+ import dayjs from 'dayjs';
15
+ import { useEffect, useState } from 'react';
16
+ import { VmFilter, VmTable, VmWrapper } from "../../../_components";
17
+ import { alarmApis } from "../../api";
18
+ import { jsx as _jsx } from "react/jsx-runtime";
19
+ export default function Bottom(_ref) {
20
+ var id = _ref.id,
21
+ alarmTypeList = _ref.alarmTypeList,
22
+ alarmType = _ref.alarmType,
23
+ startDate = _ref.startDate,
24
+ endDate = _ref.endDate,
25
+ setIframeModalInfo = _ref.setIframeModalInfo;
26
+ var _useState = useState(alarmType),
27
+ _useState2 = _slicedToArray(_useState, 2),
28
+ tabKey = _useState2[0],
29
+ setTabKey = _useState2[1];
30
+ useEffect(function () {
31
+ if (alarmType === 'all') {
32
+ setTabKey('parkingTimeout');
33
+ } else {
34
+ setTabKey(alarmType);
35
+ }
36
+ }, [alarmType]);
37
+ useEffect(function () {
38
+ submit();
39
+ }, [tabKey, startDate, endDate]);
40
+ var columns_tccs = [['运输单位', 'transportUnitName', {
41
+ width: 150,
42
+ ellipsis: true
43
+ }], ['行政区划', 'divisionName', {
44
+ width: 150
45
+ }], ['报警开始时间', 'alarmStartTime', {
46
+ width: 180
47
+ }], ['报警结束时间', 'alarmEndTime', {
48
+ width: 180
49
+ }], ['停车时长', 'parkingDurationStr', {
50
+ width: 180
51
+ }], ['处置状态', 'processStatusChs', {
52
+ width: 100,
53
+ render: function render(text, record) {
54
+ return text ? /*#__PURE__*/_jsx("span", {
55
+ style: {
56
+ color: record !== null && record !== void 0 && record.processStatus ? '#52c41a' : '#f5222d'
57
+ },
58
+ children: text
59
+ }) : '-';
60
+ }
61
+ }], ['处置结果', 'processResultChs', {
62
+ width: 120,
63
+ render: function render(text, record) {
64
+ return text ? /*#__PURE__*/_jsx("span", {
65
+ style: {
66
+ color: (record === null || record === void 0 ? void 0 : record.processResult) == 'yx' ? '#52c41a' : '#f5222d'
67
+ },
68
+ children: text
69
+ }) : '-';
70
+ }
71
+ }], ['操作', 'action', {
72
+ width: 60,
73
+ fixed: 'right',
74
+ render: function render(_text, record) {
75
+ return /*#__PURE__*/_jsx("a", {
76
+ onClick: function onClick() {
77
+ setIframeModalInfo({
78
+ visible: true,
79
+ title: '停车超时',
80
+ src: "/jzlj/#/intelligentWarmAnalysis?activeKey=OverTime&id=".concat(record.id, "&carId=").concat(record.carId, "&startTime=").concat(record.alarmStartTime, "&endTime=").concat(record.alarmEndTime)
81
+ });
82
+ },
83
+ children: "\u67E5\u770B"
84
+ });
85
+ }
86
+ }]];
87
+ var columns_lxpl = [['行政区划', 'divisionName', {
88
+ width: 150
89
+ }], ['运输起点', 'startingPointName', {
90
+ width: 150,
91
+ ellipsis: true
92
+ }], ['运输终点', 'endingPointName', {
93
+ width: 150,
94
+ ellipsis: true
95
+ }], ['报警开始时间', 'alarmStartTime', {
96
+ width: 180
97
+ }], ['报警结束时间', 'alarmEndTime', {
98
+ width: 180
99
+ }], ['处置状态', 'processStatusChs', {
100
+ width: 150,
101
+ render: function render(text, record) {
102
+ return text ? /*#__PURE__*/_jsx("span", {
103
+ style: {
104
+ color: record !== null && record !== void 0 && record.processStatus ? '#52c41a' : '#f5222d'
105
+ },
106
+ children: text
107
+ }) : '-';
108
+ }
109
+ }], ['处置结果', 'processResultChs', {
110
+ width: 150,
111
+ render: function render(text, record) {
112
+ return text ? /*#__PURE__*/_jsx("span", {
113
+ style: {
114
+ color: (record === null || record === void 0 ? void 0 : record.processResult) == 'yx' ? '#52c41a' : '#f5222d'
115
+ },
116
+ children: text
117
+ }) : '-';
118
+ }
119
+ }], ['操作', 'action', {
120
+ width: 60,
121
+ fixed: 'right',
122
+ render: function render(_text, record) {
123
+ return /*#__PURE__*/_jsx("a", {
124
+ onClick: function onClick() {
125
+ setIframeModalInfo({
126
+ visible: true,
127
+ title: '路线偏移',
128
+ src: "/jzlj/#/intelligentWarmAnalysis?activeKey=RouteDeviation&id=".concat(record.id, "&carId=").concat(record.carId, "&startTime=").concat(record.alarmStartTime, "&endTime=").concat(record.alarmEndTime)
129
+ });
130
+ },
131
+ children: "\u67E5\u770B"
132
+ });
133
+ }
134
+ }]];
135
+ var columns_ylyc = [['运输单位', 'transportUnitName', {
136
+ width: 180,
137
+ ellipsis: true
138
+ }], ['行政区划', 'divisionName', {
139
+ width: 150
140
+ }], ['运输起点', 'ysqdName', {
141
+ width: 180,
142
+ ellipsis: true
143
+ }], ['运输终点', 'yszdName', {
144
+ width: 180,
145
+ ellipsis: true
146
+ }], ['建筑垃圾类别', 'rubbishTypeChs', {
147
+ width: 150
148
+ }], ['核准有效期', 'effectiveDateRange', {
149
+ width: 200
150
+ }], ['报警生成时间', 'createTime', {
151
+ width: 200
152
+ }], ['核准量(吨)', 'declareTransportWeight', {
153
+ width: 130,
154
+ align: 'right',
155
+ sorter: true
156
+ }], ['实际运量(吨)', 'actualTransportWeight', {
157
+ width: 130,
158
+ align: 'right',
159
+ sorter: true
160
+ }], ['偏差比', 'offsetStr', {
161
+ width: 180,
162
+ align: 'right',
163
+ sorter: true,
164
+ render: function render(text, record) {
165
+ return text ? /*#__PURE__*/_jsx("span", {
166
+ style: {
167
+ color: record.offset > 0 ? '#52c41a' : '#f5222d'
168
+ },
169
+ children: text
170
+ }) : '-';
171
+ }
172
+ }], ['处置状态', 'processStatusChs', {
173
+ width: 150,
174
+ render: function render(text, record) {
175
+ return text ? /*#__PURE__*/_jsx("span", {
176
+ style: {
177
+ color: record !== null && record !== void 0 && record.processStatus ? '#52c41a' : '#f5222d'
178
+ },
179
+ children: text
180
+ }) : '-';
181
+ }
182
+ }], ['处置结果', 'processResultChs', {
183
+ width: 150,
184
+ render: function render(text, record) {
185
+ return text ? /*#__PURE__*/_jsx("span", {
186
+ style: {
187
+ color: (record === null || record === void 0 ? void 0 : record.processResult) == 'yx' ? '#52c41a' : '#f5222d'
188
+ },
189
+ children: text
190
+ }) : '-';
191
+ }
192
+ }], ['操作', 'action', {
193
+ width: 60,
194
+ fixed: 'right',
195
+ render: function render(_text, record) {
196
+ return /*#__PURE__*/_jsx("a", {
197
+ onClick: function onClick() {
198
+ setIframeModalInfo({
199
+ visible: true,
200
+ title: '运量异常',
201
+ src: "/jzlj/#/intelligentWarmAnalysis?activeKey=TransparentAlarm&id=".concat(record.id, "&carId=").concat(record.carId, "&startTime=").concat(record.alarmStartTime, "&endTime=").concat(record.alarmEndTime)
202
+ });
203
+ },
204
+ children: "\u67E5\u770B"
205
+ });
206
+ }
207
+ }]];
208
+ var columns = (tabKey === 'parkingTimeout' ? columns_tccs : tabKey === 'routeDeviation' ? columns_lxpl : tabKey === 'transportAbnormal' ? columns_ylyc : columns_tccs).map(function (item) {
209
+ return _objectSpread({
210
+ title: item[0],
211
+ dataIndex: item[1],
212
+ key: item[1]
213
+ }, item[2]);
214
+ });
215
+ var getTableData = function getTableData(_ref2) {
216
+ var current = _ref2.current,
217
+ pageSize = _ref2.pageSize;
218
+ var method = tabKey === 'parkingTimeout' ? alarmApis.page_tccs : tabKey === 'routeDeviation' ? alarmApis.page_lxpl : tabKey === 'transportAbnormal' ? alarmApis.page_ylyc : alarmApis.page_tccs;
219
+ if (!method) {
220
+ return {
221
+ total: 0,
222
+ list: []
223
+ };
224
+ }
225
+ return method({
226
+ id: id,
227
+ startTime: dayjs(startDate).format('YYYY-MM-DD 00:00:00'),
228
+ endTime: dayjs(endDate).format('YYYY-MM-DD 23:59:59'),
229
+ page: current - 1,
230
+ // size: pageSize,
231
+ size: 9999
232
+ }).then(function (res) {
233
+ var _res$data, _res$data2;
234
+ return {
235
+ total: (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.total) || 0,
236
+ list: (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.rows) || []
237
+ };
238
+ });
239
+ };
240
+ var _useAntdTable = useAntdTable(getTableData, {
241
+ defaultPageSize: 10
242
+ }),
243
+ tableProps = _useAntdTable.tableProps,
244
+ search = _useAntdTable.search;
245
+ var submit = search.submit,
246
+ reset = search.reset;
247
+ var myTableProps = _objectSpread(_objectSpread({}, tableProps), {}, {
248
+ rowKey: 'id',
249
+ columns: columns,
250
+ indexFixed: true,
251
+ pagination: false
252
+ });
253
+ return /*#__PURE__*/_jsx(VmWrapper, {
254
+ title: "\u62A5\u8B66\u660E\u7EC6",
255
+ extraLeft: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
256
+ options: alarmTypeList.filter(function (item) {
257
+ return item.value !== 'all';
258
+ }).map(function (item) {
259
+ return {
260
+ value: item.value,
261
+ label: item.text
262
+ };
263
+ }),
264
+ style: {
265
+ width: 120
266
+ },
267
+ placeholder: "\u62A5\u8B66\u7C7B\u578B",
268
+ value: tabKey,
269
+ allowClear: false,
270
+ onChange: function onChange(val) {
271
+ setTabKey(val);
272
+ }
273
+ }),
274
+ children: /*#__PURE__*/_jsx(VmTable, _objectSpread({}, myTableProps))
275
+ });
276
+ }