@ztocwst/rc-pro-materials 0.2.24 → 0.2.25

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.
@@ -23,6 +23,7 @@ var TableRenderer = function TableRenderer(props) {
23
23
  remember = props.remember,
24
24
  exporter = props.exporter,
25
25
  exportConfig = props.exportConfig,
26
+ confirmConfig = props.confirmConfig,
26
27
  dimJson = props.dimJson,
27
28
  indexJson = props.indexJson,
28
29
  actionJson = props.actionJson,
@@ -64,15 +65,17 @@ var TableRenderer = function TableRenderer(props) {
64
65
  return (dimTargetRef === null || dimTargetRef === void 0 ? void 0 : (_dimTargetRef$current = dimTargetRef.current) === null || _dimTargetRef$current === void 0 ? void 0 : _dimTargetRef$current.getDimTargetValues()) || {};
65
66
  };
66
67
  var buttons = [{
67
- name: '确认',
68
+ name: confirmConfig === null || confirmConfig === void 0 ? void 0 : confirmConfig.name,
68
69
  action: 'btn',
69
70
  props: {
70
71
  loading: loading,
71
72
  type: 'primary'
72
73
  },
73
74
  onClick: function onClick() {
75
+ var _confirmConfig$onClic;
74
76
  var option = getDimTargetValues();
75
77
  handleUpdateColumns(option);
78
+ confirmConfig === null || confirmConfig === void 0 ? void 0 : (_confirmConfig$onClic = confirmConfig.onClick) === null || _confirmConfig$onClic === void 0 ? void 0 : _confirmConfig$onClic.call(confirmConfig);
76
79
  onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
77
80
  }
78
81
  }, exporter ? {
@@ -155,27 +158,13 @@ var TableRenderer = function TableRenderer(props) {
155
158
  dimension: dimension
156
159
  }));
157
160
  };
158
- var handleUpdateColumns = /*#__PURE__*/function () {
159
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(option) {
160
- var _tableRef$current;
161
- var columns;
162
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
163
- while (1) switch (_context2.prev = _context2.next) {
164
- case 0:
165
- columns = handleColumns(_extends({}, option, {
166
- actionJson: actionJson
167
- }), expressions, linkPage, onLink);
168
- (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.updateColumns(columns);
169
- case 2:
170
- case "end":
171
- return _context2.stop();
172
- }
173
- }, _callee2);
174
- }));
175
- return function handleUpdateColumns(_x2) {
176
- return _ref3.apply(this, arguments);
177
- };
178
- }();
161
+ var handleUpdateColumns = function handleUpdateColumns(option) {
162
+ var _tableRef$current;
163
+ var columns = handleColumns(_extends({}, option, {
164
+ actionJson: actionJson
165
+ }), expressions, linkPage, onLink);
166
+ (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.updateColumns(columns);
167
+ };
179
168
  var getBigDataBody = function getBigDataBody(params) {
180
169
  if (params === void 0) {
181
170
  params = {};
@@ -296,57 +285,57 @@ var TableRenderer = function TableRenderer(props) {
296
285
 
297
286
  // 获取数据源
298
287
  var getDataSource = /*#__PURE__*/function () {
299
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(params) {
288
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(params) {
300
289
  var data, _yield$getReportData, success, _yield$getReportData$, result;
301
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
302
- while (1) switch (_context3.prev = _context3.next) {
290
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
291
+ while (1) switch (_context2.prev = _context2.next) {
303
292
  case 0:
304
293
  if (params === void 0) {
305
294
  params = {};
306
295
  }
307
296
  if (!loading) {
308
- _context3.next = 3;
297
+ _context2.next = 3;
309
298
  break;
310
299
  }
311
- return _context3.abrupt("return");
300
+ return _context2.abrupt("return");
312
301
  case 3:
313
- _context3.prev = 3;
302
+ _context2.prev = 3;
314
303
  data = getBigDataBody(params);
315
304
  setLoading(true);
316
- _context3.next = 8;
305
+ _context2.next = 8;
317
306
  return getReportData(rcProContext, data);
318
307
  case 8:
319
- _yield$getReportData = _context3.sent;
308
+ _yield$getReportData = _context2.sent;
320
309
  success = _yield$getReportData.success;
321
310
  _yield$getReportData$ = _yield$getReportData.result;
322
311
  result = _yield$getReportData$ === void 0 ? {} : _yield$getReportData$;
323
312
  setLoading(false);
324
- return _context3.abrupt("return", {
313
+ return _context2.abrupt("return", {
325
314
  success: success,
326
315
  result: result
327
316
  });
328
317
  case 16:
329
- _context3.prev = 16;
330
- _context3.t0 = _context3["catch"](3);
318
+ _context2.prev = 16;
319
+ _context2.t0 = _context2["catch"](3);
331
320
  setLoading(false);
332
- console.error(_context3.t0);
321
+ console.error(_context2.t0);
333
322
  case 20:
334
323
  case "end":
335
- return _context3.stop();
324
+ return _context2.stop();
336
325
  }
337
- }, _callee3, null, [[3, 16]]);
326
+ }, _callee2, null, [[3, 16]]);
338
327
  }));
339
- return function getDataSource(_x3) {
340
- return _ref4.apply(this, arguments);
328
+ return function getDataSource(_x2) {
329
+ return _ref3.apply(this, arguments);
341
330
  };
342
331
  }();
343
332
  var initial = /*#__PURE__*/function () {
344
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(params) {
333
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(params) {
345
334
  var result, dims, targets, option;
346
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
347
- while (1) switch (_context4.prev = _context4.next) {
335
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
336
+ while (1) switch (_context3.prev = _context3.next) {
348
337
  case 0:
349
- _context4.next = 2;
338
+ _context3.next = 2;
350
339
  return getDimTargetData(rcProContext, _extends({
351
340
  dataSetName: dataSetName
352
341
  }, params), {
@@ -354,7 +343,7 @@ var TableRenderer = function TableRenderer(props) {
354
343
  indexJson: indexJson
355
344
  });
356
345
  case 2:
357
- result = _context4.sent;
346
+ result = _context3.sent;
358
347
  if (result) {
359
348
  dims = result.dims, targets = result.targets;
360
349
  option = {
@@ -393,12 +382,12 @@ var TableRenderer = function TableRenderer(props) {
393
382
  }
394
383
  case 4:
395
384
  case "end":
396
- return _context4.stop();
385
+ return _context3.stop();
397
386
  }
398
- }, _callee4);
387
+ }, _callee3);
399
388
  }));
400
- return function initial(_x4) {
401
- return _ref5.apply(this, arguments);
389
+ return function initial(_x3) {
390
+ return _ref4.apply(this, arguments);
402
391
  };
403
392
  }();
404
393
  useEffect(function () {
@@ -428,8 +417,8 @@ var TableRenderer = function TableRenderer(props) {
428
417
  };
429
418
  useEffect(function () {
430
419
  if (currentKey) {
431
- var _ref6 = currentKey.split(separator) || [],
432
- curDataSetName = _ref6[0];
420
+ var _ref5 = currentKey.split(separator) || [],
421
+ curDataSetName = _ref5[0];
433
422
  if (curDataSetName === dataSetName) {
434
423
  onload();
435
424
  } else {
@@ -443,20 +432,20 @@ var TableRenderer = function TableRenderer(props) {
443
432
  };
444
433
  }, [currentKey, autoLoad]);
445
434
  var queryChart = /*#__PURE__*/function () {
446
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(value) {
435
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(value) {
447
436
  var _linkChartRef$current3;
448
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
449
- while (1) switch (_context6.prev = _context6.next) {
437
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
438
+ while (1) switch (_context5.prev = _context5.next) {
450
439
  case 0:
451
440
  if (isLink) {
452
441
  (_linkChartRef$current3 = linkChartRef.current) === null || _linkChartRef$current3 === void 0 ? void 0 : _linkChartRef$current3.queryChart(value);
453
442
  } else {
454
443
  queryCacheRef.current = value[dataSetName] || value;
455
- setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
444
+ setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
456
445
  var _tableRef$current2;
457
- var _getDimTargetValues4, _getDimTargetValues4$, indexSource, indexAmounted, target, _iterator4, _step4, cur, _ref9, success, _ref9$result, result, _result$data, _result$data$, data;
458
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
459
- while (1) switch (_context5.prev = _context5.next) {
446
+ var _getDimTargetValues4, _getDimTargetValues4$, indexSource, indexAmounted, target, _iterator4, _step4, cur, _ref8, success, _ref8$result, result, _result$data, _result$data$, data;
447
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
448
+ while (1) switch (_context4.prev = _context4.next) {
460
449
  case 0:
461
450
  (_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 ? void 0 : _tableRef$current2.refreshTable({
462
451
  current: 1
@@ -466,7 +455,7 @@ var TableRenderer = function TableRenderer(props) {
466
455
  return cur.amounted;
467
456
  });
468
457
  if (!(indexAmounted !== null && indexAmounted !== void 0 && indexAmounted.length)) {
469
- _context5.next = 16;
458
+ _context4.next = 16;
470
459
  break;
471
460
  }
472
461
  target = [];
@@ -476,42 +465,42 @@ var TableRenderer = function TableRenderer(props) {
476
465
  description: cur.name
477
466
  });
478
467
  }
479
- _context5.next = 8;
468
+ _context4.next = 8;
480
469
  return getDataSource({
481
470
  dim: [],
482
471
  target: target
483
472
  });
484
473
  case 8:
485
- _context5.t0 = _context5.sent;
486
- if (_context5.t0) {
487
- _context5.next = 11;
474
+ _context4.t0 = _context4.sent;
475
+ if (_context4.t0) {
476
+ _context4.next = 11;
488
477
  break;
489
478
  }
490
- _context5.t0 = {};
479
+ _context4.t0 = {};
491
480
  case 11:
492
- _ref9 = _context5.t0;
493
- success = _ref9.success;
494
- _ref9$result = _ref9.result;
495
- result = _ref9$result === void 0 ? {} : _ref9$result;
481
+ _ref8 = _context4.t0;
482
+ success = _ref8.success;
483
+ _ref8$result = _ref8.result;
484
+ result = _ref8$result === void 0 ? {} : _ref8$result;
496
485
  if (success) {
497
486
  _result$data = result === null || result === void 0 ? void 0 : result.data, _result$data$ = _result$data[0], data = _result$data$ === void 0 ? {} : _result$data$;
498
487
  amounted.current = data;
499
488
  }
500
489
  case 16:
501
490
  case "end":
502
- return _context5.stop();
491
+ return _context4.stop();
503
492
  }
504
- }, _callee5);
493
+ }, _callee4);
505
494
  })), 200);
506
495
  }
507
496
  case 1:
508
497
  case "end":
509
- return _context6.stop();
498
+ return _context5.stop();
510
499
  }
511
- }, _callee6);
500
+ }, _callee5);
512
501
  }));
513
- return function queryChart(_x5) {
514
- return _ref7.apply(this, arguments);
502
+ return function queryChart(_x4) {
503
+ return _ref6.apply(this, arguments);
515
504
  };
516
505
  }();
517
506
  useImperativeHandle(chartRef, function () {
@@ -63,8 +63,6 @@ export interface TypeZDataTableProps {
63
63
  refreshRate?: number;
64
64
  /** 记住勾选 */
65
65
  remember?: boolean;
66
- /** 导出 */
67
- exporter?: boolean;
68
66
  /** 操作列(表头)配置 */
69
67
  actionJson?: {
70
68
  /** 表头名称 */
@@ -80,6 +78,12 @@ export interface TypeZDataTableProps {
80
78
  /** 自定义渲染方法 */
81
79
  render?: (p: any) => React.ReactNode;
82
80
  };
81
+ confirmConfig?: {
82
+ name?: string;
83
+ onClick?: () => void;
84
+ };
85
+ /** 导出 */
86
+ exporter?: boolean;
83
87
  /** 导出配置 */
84
88
  exportConfig?: {
85
89
  name: string;
@@ -175,7 +175,7 @@ export var handleCondition = function handleCondition(value, handledValue, condi
175
175
  };
176
176
 
177
177
  // mock
178
- var token = 'scm:tenant:token:2:104:CCAB6974939D70D8418CBEC342EAE22D';
178
+ var token = 'scm:tenant:token:2:104:7c454641-c65c-4459-b5a3-d4be9fb16ffd';
179
179
 
180
180
  /** 获取维度指标 */
181
181
  export var getDimTarget = /*#__PURE__*/function () {
@@ -29,6 +29,9 @@ var ChartRenderer = function ChartRenderer(_ref) {
29
29
  (_chartRef$current$act3 = _chartRef.current[activeKey]) === null || _chartRef$current$act3 === void 0 ? void 0 : (_chartRef$current$act4 = _chartRef$current$act3.queryChart) === null || _chartRef$current$act4 === void 0 ? void 0 : _chartRef$current$act4.call(_chartRef$current$act3, values);
30
30
  }
31
31
  };
32
+ var getCurrentKey = function getCurrentKey() {
33
+ return activeKey;
34
+ };
32
35
  useEffect(function () {
33
36
  if (isObject && ! /*#__PURE__*/React.isValidElement(chartSetting)) {
34
37
  setActiveKey(chartSetting === null || chartSetting === void 0 ? void 0 : chartSetting.dataSetName);
@@ -49,7 +52,8 @@ var ChartRenderer = function ChartRenderer(_ref) {
49
52
  useImperativeHandle(chartRenderRef, function () {
50
53
  return {
51
54
  onLink: onLink,
52
- queryChart: queryChart
55
+ queryChart: queryChart,
56
+ getCurrentKey: getCurrentKey
53
57
  };
54
58
  });
55
59
 
@@ -58,6 +58,10 @@ var ZTemplatesDataCommon = /*#__PURE__*/React.forwardRef(function (props, ref) {
58
58
  return _ref2.apply(this, arguments);
59
59
  };
60
60
  }();
61
+ var getCurrentKey = function getCurrentKey() {
62
+ var _chartRenderRef$curre, _chartRenderRef$curre2;
63
+ return (_chartRenderRef$curre = chartRenderRef.current) === null || _chartRenderRef$curre === void 0 ? void 0 : (_chartRenderRef$curre2 = _chartRenderRef$curre.getCurrentKey) === null || _chartRenderRef$curre2 === void 0 ? void 0 : _chartRenderRef$curre2.call(_chartRenderRef$curre);
64
+ };
61
65
  var onConfirm = /*#__PURE__*/function () {
62
66
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
63
67
  var values;
@@ -87,19 +91,20 @@ var ZTemplatesDataCommon = /*#__PURE__*/React.forwardRef(function (props, ref) {
87
91
  };
88
92
  }();
89
93
  var onLink = function onLink(values) {
90
- var _chartRenderRef$curre, _chartRenderRef$curre2;
91
- return (_chartRenderRef$curre = chartRenderRef.current) === null || _chartRenderRef$curre === void 0 ? void 0 : (_chartRenderRef$curre2 = _chartRenderRef$curre.onLink) === null || _chartRenderRef$curre2 === void 0 ? void 0 : _chartRenderRef$curre2.call(_chartRenderRef$curre, values);
94
+ var _chartRenderRef$curre3, _chartRenderRef$curre4;
95
+ return (_chartRenderRef$curre3 = chartRenderRef.current) === null || _chartRenderRef$curre3 === void 0 ? void 0 : (_chartRenderRef$curre4 = _chartRenderRef$curre3.onLink) === null || _chartRenderRef$curre4 === void 0 ? void 0 : _chartRenderRef$curre4.call(_chartRenderRef$curre3, values);
92
96
  };
93
97
  useImperativeHandle(ref, function () {
94
98
  return {
95
99
  formRef: formRef,
96
100
  onLink: onLink,
97
101
  onQueryValues: onQueryValues,
98
- onQueryFormatValues: onQueryFormatValues
102
+ onQueryFormatValues: onQueryFormatValues,
103
+ getCurrentKey: getCurrentKey
99
104
  };
100
105
  });
101
106
  var formProps = processFormProps(querySetting);
102
- console.log("formProps", formProps);
107
+ // console.log(`formProps`, formProps);
103
108
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ProFormRender, _extends({}, formProps, {
104
109
  formRef: formRef,
105
110
  onFinish: /*#__PURE__*/function () {
package/es/style.js CHANGED
@@ -6,11 +6,11 @@ import 'antd/lib/config-provider/style';
6
6
  import 'antd/es/config-provider/style';
7
7
  import 'antd/lib/row/style';
8
8
  import 'antd/lib/col/style';
9
- import 'antd/lib/message/style';
10
- import 'antd/lib/tabs/style';
11
9
  import 'antd/lib/checkbox/style';
12
10
  import 'antd/lib/spin/style';
13
11
  import 'antd/lib/radio/style';
12
+ import 'antd/lib/message/style';
13
+ import 'antd/lib/tabs/style';
14
14
  import 'antd/lib/carousel/style';
15
15
  import 'antd/es/statistic/style';
16
16
  import 'antd/es/progress/style';
@@ -28,6 +28,7 @@ var TableRenderer = function TableRenderer(props) {
28
28
  remember = props.remember,
29
29
  exporter = props.exporter,
30
30
  exportConfig = props.exportConfig,
31
+ confirmConfig = props.confirmConfig,
31
32
  dimJson = props.dimJson,
32
33
  indexJson = props.indexJson,
33
34
  actionJson = props.actionJson,
@@ -69,15 +70,17 @@ var TableRenderer = function TableRenderer(props) {
69
70
  return (dimTargetRef === null || dimTargetRef === void 0 ? void 0 : (_dimTargetRef$current = dimTargetRef.current) === null || _dimTargetRef$current === void 0 ? void 0 : _dimTargetRef$current.getDimTargetValues()) || {};
70
71
  };
71
72
  var buttons = [{
72
- name: '确认',
73
+ name: confirmConfig === null || confirmConfig === void 0 ? void 0 : confirmConfig.name,
73
74
  action: 'btn',
74
75
  props: {
75
76
  loading: loading,
76
77
  type: 'primary'
77
78
  },
78
79
  onClick: function onClick() {
80
+ var _confirmConfig$onClic;
79
81
  var option = getDimTargetValues();
80
82
  handleUpdateColumns(option);
83
+ confirmConfig === null || confirmConfig === void 0 ? void 0 : (_confirmConfig$onClic = confirmConfig.onClick) === null || _confirmConfig$onClic === void 0 ? void 0 : _confirmConfig$onClic.call(confirmConfig);
81
84
  onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
82
85
  }
83
86
  }, exporter ? {
@@ -160,27 +163,13 @@ var TableRenderer = function TableRenderer(props) {
160
163
  dimension: dimension
161
164
  }));
162
165
  };
163
- var handleUpdateColumns = /*#__PURE__*/function () {
164
- var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(option) {
165
- var _tableRef$current;
166
- var columns;
167
- return _regenerator["default"].wrap(function _callee2$(_context2) {
168
- while (1) switch (_context2.prev = _context2.next) {
169
- case 0:
170
- columns = (0, _tableRenderer.handleColumns)((0, _extends2["default"])({}, option, {
171
- actionJson: actionJson
172
- }), expressions, linkPage, onLink);
173
- (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.updateColumns(columns);
174
- case 2:
175
- case "end":
176
- return _context2.stop();
177
- }
178
- }, _callee2);
179
- }));
180
- return function handleUpdateColumns(_x2) {
181
- return _ref3.apply(this, arguments);
182
- };
183
- }();
166
+ var handleUpdateColumns = function handleUpdateColumns(option) {
167
+ var _tableRef$current;
168
+ var columns = (0, _tableRenderer.handleColumns)((0, _extends2["default"])({}, option, {
169
+ actionJson: actionJson
170
+ }), expressions, linkPage, onLink);
171
+ (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.updateColumns(columns);
172
+ };
184
173
  var getBigDataBody = function getBigDataBody(params) {
185
174
  if (params === void 0) {
186
175
  params = {};
@@ -301,57 +290,57 @@ var TableRenderer = function TableRenderer(props) {
301
290
 
302
291
  // 获取数据源
303
292
  var getDataSource = /*#__PURE__*/function () {
304
- var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
293
+ var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
305
294
  var data, _yield$getReportData, success, _yield$getReportData$, result;
306
- return _regenerator["default"].wrap(function _callee3$(_context3) {
307
- while (1) switch (_context3.prev = _context3.next) {
295
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
296
+ while (1) switch (_context2.prev = _context2.next) {
308
297
  case 0:
309
298
  if (params === void 0) {
310
299
  params = {};
311
300
  }
312
301
  if (!loading) {
313
- _context3.next = 3;
302
+ _context2.next = 3;
314
303
  break;
315
304
  }
316
- return _context3.abrupt("return");
305
+ return _context2.abrupt("return");
317
306
  case 3:
318
- _context3.prev = 3;
307
+ _context2.prev = 3;
319
308
  data = getBigDataBody(params);
320
309
  setLoading(true);
321
- _context3.next = 8;
310
+ _context2.next = 8;
322
311
  return (0, _dataTable.getReportData)(rcProContext, data);
323
312
  case 8:
324
- _yield$getReportData = _context3.sent;
313
+ _yield$getReportData = _context2.sent;
325
314
  success = _yield$getReportData.success;
326
315
  _yield$getReportData$ = _yield$getReportData.result;
327
316
  result = _yield$getReportData$ === void 0 ? {} : _yield$getReportData$;
328
317
  setLoading(false);
329
- return _context3.abrupt("return", {
318
+ return _context2.abrupt("return", {
330
319
  success: success,
331
320
  result: result
332
321
  });
333
322
  case 16:
334
- _context3.prev = 16;
335
- _context3.t0 = _context3["catch"](3);
323
+ _context2.prev = 16;
324
+ _context2.t0 = _context2["catch"](3);
336
325
  setLoading(false);
337
- console.error(_context3.t0);
326
+ console.error(_context2.t0);
338
327
  case 20:
339
328
  case "end":
340
- return _context3.stop();
329
+ return _context2.stop();
341
330
  }
342
- }, _callee3, null, [[3, 16]]);
331
+ }, _callee2, null, [[3, 16]]);
343
332
  }));
344
- return function getDataSource(_x3) {
345
- return _ref4.apply(this, arguments);
333
+ return function getDataSource(_x2) {
334
+ return _ref3.apply(this, arguments);
346
335
  };
347
336
  }();
348
337
  var initial = /*#__PURE__*/function () {
349
- var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(params) {
338
+ var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
350
339
  var result, dims, targets, option;
351
- return _regenerator["default"].wrap(function _callee4$(_context4) {
352
- while (1) switch (_context4.prev = _context4.next) {
340
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
341
+ while (1) switch (_context3.prev = _context3.next) {
353
342
  case 0:
354
- _context4.next = 2;
343
+ _context3.next = 2;
355
344
  return (0, _tableRenderer.getDimTargetData)(rcProContext, (0, _extends2["default"])({
356
345
  dataSetName: dataSetName
357
346
  }, params), {
@@ -359,7 +348,7 @@ var TableRenderer = function TableRenderer(props) {
359
348
  indexJson: indexJson
360
349
  });
361
350
  case 2:
362
- result = _context4.sent;
351
+ result = _context3.sent;
363
352
  if (result) {
364
353
  dims = result.dims, targets = result.targets;
365
354
  option = {
@@ -398,12 +387,12 @@ var TableRenderer = function TableRenderer(props) {
398
387
  }
399
388
  case 4:
400
389
  case "end":
401
- return _context4.stop();
390
+ return _context3.stop();
402
391
  }
403
- }, _callee4);
392
+ }, _callee3);
404
393
  }));
405
- return function initial(_x4) {
406
- return _ref5.apply(this, arguments);
394
+ return function initial(_x3) {
395
+ return _ref4.apply(this, arguments);
407
396
  };
408
397
  }();
409
398
  (0, _react.useEffect)(function () {
@@ -433,8 +422,8 @@ var TableRenderer = function TableRenderer(props) {
433
422
  };
434
423
  (0, _react.useEffect)(function () {
435
424
  if (currentKey) {
436
- var _ref6 = currentKey.split(_dataTable.separator) || [],
437
- curDataSetName = _ref6[0];
425
+ var _ref5 = currentKey.split(_dataTable.separator) || [],
426
+ curDataSetName = _ref5[0];
438
427
  if (curDataSetName === dataSetName) {
439
428
  onload();
440
429
  } else {
@@ -448,20 +437,20 @@ var TableRenderer = function TableRenderer(props) {
448
437
  };
449
438
  }, [currentKey, autoLoad]);
450
439
  var queryChart = /*#__PURE__*/function () {
451
- var _ref7 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(value) {
440
+ var _ref6 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(value) {
452
441
  var _linkChartRef$current3;
453
- return _regenerator["default"].wrap(function _callee6$(_context6) {
454
- while (1) switch (_context6.prev = _context6.next) {
442
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
443
+ while (1) switch (_context5.prev = _context5.next) {
455
444
  case 0:
456
445
  if (isLink) {
457
446
  (_linkChartRef$current3 = linkChartRef.current) === null || _linkChartRef$current3 === void 0 ? void 0 : _linkChartRef$current3.queryChart(value);
458
447
  } else {
459
448
  queryCacheRef.current = value[dataSetName] || value;
460
- setTimeout( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
449
+ setTimeout( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
461
450
  var _tableRef$current2;
462
- var _getDimTargetValues4, _getDimTargetValues4$, indexSource, indexAmounted, target, _iterator4, _step4, cur, _ref9, success, _ref9$result, result, _result$data, _result$data$, data;
463
- return _regenerator["default"].wrap(function _callee5$(_context5) {
464
- while (1) switch (_context5.prev = _context5.next) {
451
+ var _getDimTargetValues4, _getDimTargetValues4$, indexSource, indexAmounted, target, _iterator4, _step4, cur, _ref8, success, _ref8$result, result, _result$data, _result$data$, data;
452
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
453
+ while (1) switch (_context4.prev = _context4.next) {
465
454
  case 0:
466
455
  (_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 ? void 0 : _tableRef$current2.refreshTable({
467
456
  current: 1
@@ -471,7 +460,7 @@ var TableRenderer = function TableRenderer(props) {
471
460
  return cur.amounted;
472
461
  });
473
462
  if (!(indexAmounted !== null && indexAmounted !== void 0 && indexAmounted.length)) {
474
- _context5.next = 16;
463
+ _context4.next = 16;
475
464
  break;
476
465
  }
477
466
  target = [];
@@ -481,42 +470,42 @@ var TableRenderer = function TableRenderer(props) {
481
470
  description: cur.name
482
471
  });
483
472
  }
484
- _context5.next = 8;
473
+ _context4.next = 8;
485
474
  return getDataSource({
486
475
  dim: [],
487
476
  target: target
488
477
  });
489
478
  case 8:
490
- _context5.t0 = _context5.sent;
491
- if (_context5.t0) {
492
- _context5.next = 11;
479
+ _context4.t0 = _context4.sent;
480
+ if (_context4.t0) {
481
+ _context4.next = 11;
493
482
  break;
494
483
  }
495
- _context5.t0 = {};
484
+ _context4.t0 = {};
496
485
  case 11:
497
- _ref9 = _context5.t0;
498
- success = _ref9.success;
499
- _ref9$result = _ref9.result;
500
- result = _ref9$result === void 0 ? {} : _ref9$result;
486
+ _ref8 = _context4.t0;
487
+ success = _ref8.success;
488
+ _ref8$result = _ref8.result;
489
+ result = _ref8$result === void 0 ? {} : _ref8$result;
501
490
  if (success) {
502
491
  _result$data = result === null || result === void 0 ? void 0 : result.data, _result$data$ = _result$data[0], data = _result$data$ === void 0 ? {} : _result$data$;
503
492
  amounted.current = data;
504
493
  }
505
494
  case 16:
506
495
  case "end":
507
- return _context5.stop();
496
+ return _context4.stop();
508
497
  }
509
- }, _callee5);
498
+ }, _callee4);
510
499
  })), 200);
511
500
  }
512
501
  case 1:
513
502
  case "end":
514
- return _context6.stop();
503
+ return _context5.stop();
515
504
  }
516
- }, _callee6);
505
+ }, _callee5);
517
506
  }));
518
- return function queryChart(_x5) {
519
- return _ref7.apply(this, arguments);
507
+ return function queryChart(_x4) {
508
+ return _ref6.apply(this, arguments);
520
509
  };
521
510
  }();
522
511
  (0, _react.useImperativeHandle)(chartRef, function () {