@ztocwst/rc-pro-materials 0.1.32 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/designer.html +4 -4
- package/build/lowcode/index.html +4 -4
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/dist/SCM_Comps.js +2 -2
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-templates-data-common/components/custom-renderer/index.js +20 -11
- package/es/components/z-templates-data-common/data-common.helper.js +42 -38
- package/es/style.js +1 -0
- package/lib/components/z-templates-data-common/components/custom-renderer/index.js +20 -11
- package/lib/components/z-templates-data-common/data-common.helper.js +42 -38
- package/lib/style.js +1 -0
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _Spin from "antd/es/spin";
|
|
1
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
@@ -26,8 +27,11 @@ var CustomRenderer = function CustomRenderer(props) {
|
|
|
26
27
|
result = _useState[0],
|
|
27
28
|
setResult = _useState[1];
|
|
28
29
|
var _useState2 = useState(false),
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
loading = _useState2[0],
|
|
31
|
+
setLoading = _useState2[1];
|
|
32
|
+
var _useState3 = useState(false),
|
|
33
|
+
isLink = _useState3[0],
|
|
34
|
+
setIsLink = _useState3[1];
|
|
31
35
|
var linkChartRef = useRef();
|
|
32
36
|
var timer = null;
|
|
33
37
|
var onLink = function onLink(values) {
|
|
@@ -62,25 +66,28 @@ var CustomRenderer = function CustomRenderer(props) {
|
|
|
62
66
|
queryParams: queryParams,
|
|
63
67
|
dataSetName: dataSetName
|
|
64
68
|
};
|
|
65
|
-
|
|
69
|
+
setLoading(true);
|
|
70
|
+
_context.next = 9;
|
|
66
71
|
return getReportData(rcProContext, formatter ? formatter === null || formatter === void 0 ? void 0 : formatter(data) : data);
|
|
67
|
-
case
|
|
72
|
+
case 9:
|
|
68
73
|
res = _context.sent;
|
|
74
|
+
setLoading(false);
|
|
69
75
|
if (res !== null && res !== void 0 && res.success) {
|
|
70
76
|
setResult(res === null || res === void 0 ? void 0 : res.result);
|
|
71
77
|
}
|
|
72
|
-
_context.next =
|
|
78
|
+
_context.next = 19;
|
|
73
79
|
break;
|
|
74
|
-
case
|
|
75
|
-
_context.prev =
|
|
80
|
+
case 14:
|
|
81
|
+
_context.prev = 14;
|
|
76
82
|
_context.t0 = _context["catch"](1);
|
|
83
|
+
setLoading(false);
|
|
77
84
|
setResult(null);
|
|
78
85
|
console.error(_context.t0);
|
|
79
|
-
case
|
|
86
|
+
case 19:
|
|
80
87
|
case "end":
|
|
81
88
|
return _context.stop();
|
|
82
89
|
}
|
|
83
|
-
}, _callee, null, [[1,
|
|
90
|
+
}, _callee, null, [[1, 14]]);
|
|
84
91
|
}));
|
|
85
92
|
return function getDataSource(_x) {
|
|
86
93
|
return _ref2.apply(this, arguments);
|
|
@@ -141,11 +148,13 @@ var CustomRenderer = function CustomRenderer(props) {
|
|
|
141
148
|
queryChart: queryChart
|
|
142
149
|
};
|
|
143
150
|
});
|
|
144
|
-
return /*#__PURE__*/React.createElement(
|
|
151
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
145
152
|
style: {
|
|
146
153
|
display: !isLink ? 'block' : 'none'
|
|
147
154
|
}
|
|
148
|
-
},
|
|
155
|
+
}, /*#__PURE__*/React.createElement(_Spin, {
|
|
156
|
+
spinning: loading
|
|
157
|
+
}, (_props$child = props.child) === null || _props$child === void 0 ? void 0 : _props$child.call(props, result))), /*#__PURE__*/React.createElement("div", {
|
|
149
158
|
style: {
|
|
150
159
|
display: isLink ? 'block' : 'none'
|
|
151
160
|
}
|
|
@@ -162,30 +162,32 @@ var token = 'scm:tenant:token:2:104:177217352666D386AA01E5AF6293727D';
|
|
|
162
162
|
/** 获取维度指标 */
|
|
163
163
|
export var getDimTarget = /*#__PURE__*/function () {
|
|
164
164
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(rcProContext, params) {
|
|
165
|
-
var
|
|
165
|
+
var _data_env_mapping$env;
|
|
166
|
+
var _ref2, materialsRequest, env, data_env_mapping, __env, res, _res;
|
|
166
167
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
167
168
|
while (1) switch (_context.prev = _context.next) {
|
|
168
169
|
case 0:
|
|
169
|
-
_ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, env = _ref2.env
|
|
170
|
+
_ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, env = _ref2.env, data_env_mapping = _ref2.data_env_mapping;
|
|
171
|
+
__env = (_data_env_mapping$env = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env !== void 0 ? _data_env_mapping$env : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
|
|
170
172
|
if (!materialsRequest) {
|
|
171
|
-
_context.next =
|
|
173
|
+
_context.next = 7;
|
|
172
174
|
break;
|
|
173
175
|
}
|
|
174
|
-
_context.next =
|
|
176
|
+
_context.next = 5;
|
|
175
177
|
return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
|
|
176
178
|
method: 'POST',
|
|
177
179
|
data: {
|
|
178
|
-
bigDataBody: _extends({
|
|
179
|
-
env:
|
|
180
|
-
}, params)
|
|
180
|
+
bigDataBody: _extends({}, __env ? {
|
|
181
|
+
env: __env
|
|
182
|
+
} : {}, params)
|
|
181
183
|
}
|
|
182
184
|
});
|
|
183
|
-
case
|
|
185
|
+
case 5:
|
|
184
186
|
res = _context.sent;
|
|
185
187
|
return _context.abrupt("return", res);
|
|
186
|
-
case
|
|
187
|
-
_context.prev =
|
|
188
|
-
_context.next =
|
|
188
|
+
case 7:
|
|
189
|
+
_context.prev = 7;
|
|
190
|
+
_context.next = 10;
|
|
189
191
|
return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
|
|
190
192
|
method: 'POST',
|
|
191
193
|
body: JSON.stringify({
|
|
@@ -198,21 +200,21 @@ export var getDimTarget = /*#__PURE__*/function () {
|
|
|
198
200
|
token: token
|
|
199
201
|
}
|
|
200
202
|
});
|
|
201
|
-
case
|
|
203
|
+
case 10:
|
|
202
204
|
_res = _context.sent;
|
|
203
|
-
_context.next =
|
|
205
|
+
_context.next = 13;
|
|
204
206
|
return _res.json();
|
|
205
|
-
case
|
|
207
|
+
case 13:
|
|
206
208
|
return _context.abrupt("return", _context.sent);
|
|
207
|
-
case
|
|
208
|
-
_context.prev =
|
|
209
|
-
_context.t0 = _context["catch"](
|
|
209
|
+
case 16:
|
|
210
|
+
_context.prev = 16;
|
|
211
|
+
_context.t0 = _context["catch"](7);
|
|
210
212
|
return _context.abrupt("return", {});
|
|
211
|
-
case
|
|
213
|
+
case 19:
|
|
212
214
|
case "end":
|
|
213
215
|
return _context.stop();
|
|
214
216
|
}
|
|
215
|
-
}, _callee, null, [[
|
|
217
|
+
}, _callee, null, [[7, 16]]);
|
|
216
218
|
}));
|
|
217
219
|
return function getDimTarget(_x, _x2) {
|
|
218
220
|
return _ref.apply(this, arguments);
|
|
@@ -222,30 +224,32 @@ export var getDimTarget = /*#__PURE__*/function () {
|
|
|
222
224
|
/** 获取报表数据 */
|
|
223
225
|
export var getReportData = /*#__PURE__*/function () {
|
|
224
226
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(rcProContext, params) {
|
|
225
|
-
var
|
|
227
|
+
var _data_env_mapping$env2;
|
|
228
|
+
var _ref4, materialsRequest, env, data_env_mapping, __env, res, _res2;
|
|
226
229
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
227
230
|
while (1) switch (_context2.prev = _context2.next) {
|
|
228
231
|
case 0:
|
|
229
|
-
_ref4 = rcProContext || {}, materialsRequest = _ref4.materialsRequest, env = _ref4.env
|
|
232
|
+
_ref4 = rcProContext || {}, materialsRequest = _ref4.materialsRequest, env = _ref4.env, data_env_mapping = _ref4.data_env_mapping;
|
|
233
|
+
__env = (_data_env_mapping$env2 = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env2 !== void 0 ? _data_env_mapping$env2 : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
|
|
230
234
|
if (!materialsRequest) {
|
|
231
|
-
_context2.next =
|
|
235
|
+
_context2.next = 7;
|
|
232
236
|
break;
|
|
233
237
|
}
|
|
234
|
-
_context2.next =
|
|
238
|
+
_context2.next = 5;
|
|
235
239
|
return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/" + params.dataSetName, {
|
|
236
240
|
method: 'POST',
|
|
237
241
|
data: {
|
|
238
|
-
bigDataBody: _extends({
|
|
239
|
-
env:
|
|
240
|
-
}, params)
|
|
242
|
+
bigDataBody: _extends({}, __env ? {
|
|
243
|
+
env: __env
|
|
244
|
+
} : {}, params)
|
|
241
245
|
}
|
|
242
246
|
});
|
|
243
|
-
case
|
|
247
|
+
case 5:
|
|
244
248
|
res = _context2.sent;
|
|
245
249
|
return _context2.abrupt("return", res);
|
|
246
|
-
case
|
|
247
|
-
_context2.prev =
|
|
248
|
-
_context2.next =
|
|
250
|
+
case 7:
|
|
251
|
+
_context2.prev = 7;
|
|
252
|
+
_context2.next = 10;
|
|
249
253
|
return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/" + params.dataSetName, {
|
|
250
254
|
method: 'POST',
|
|
251
255
|
body: JSON.stringify({
|
|
@@ -258,21 +262,21 @@ export var getReportData = /*#__PURE__*/function () {
|
|
|
258
262
|
token: token
|
|
259
263
|
}
|
|
260
264
|
});
|
|
261
|
-
case
|
|
265
|
+
case 10:
|
|
262
266
|
_res2 = _context2.sent;
|
|
263
|
-
_context2.next =
|
|
267
|
+
_context2.next = 13;
|
|
264
268
|
return _res2.json();
|
|
265
|
-
case
|
|
269
|
+
case 13:
|
|
266
270
|
return _context2.abrupt("return", _context2.sent);
|
|
267
|
-
case
|
|
268
|
-
_context2.prev =
|
|
269
|
-
_context2.t0 = _context2["catch"](
|
|
271
|
+
case 16:
|
|
272
|
+
_context2.prev = 16;
|
|
273
|
+
_context2.t0 = _context2["catch"](7);
|
|
270
274
|
return _context2.abrupt("return", {});
|
|
271
|
-
case
|
|
275
|
+
case 19:
|
|
272
276
|
case "end":
|
|
273
277
|
return _context2.stop();
|
|
274
278
|
}
|
|
275
|
-
}, _callee2, null, [[
|
|
279
|
+
}, _callee2, null, [[7, 16]]);
|
|
276
280
|
}));
|
|
277
281
|
return function getReportData(_x3, _x4) {
|
|
278
282
|
return _ref3.apply(this, arguments);
|
package/es/style.js
CHANGED
|
@@ -4,6 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
7
|
+
var _spin = _interopRequireDefault(require("antd/lib/spin"));
|
|
7
8
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _react = require("react");
|
|
@@ -31,8 +32,11 @@ var CustomRenderer = function CustomRenderer(props) {
|
|
|
31
32
|
result = _useState[0],
|
|
32
33
|
setResult = _useState[1];
|
|
33
34
|
var _useState2 = (0, _react.useState)(false),
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
loading = _useState2[0],
|
|
36
|
+
setLoading = _useState2[1];
|
|
37
|
+
var _useState3 = (0, _react.useState)(false),
|
|
38
|
+
isLink = _useState3[0],
|
|
39
|
+
setIsLink = _useState3[1];
|
|
36
40
|
var linkChartRef = (0, _react.useRef)();
|
|
37
41
|
var timer = null;
|
|
38
42
|
var onLink = function onLink(values) {
|
|
@@ -67,25 +71,28 @@ var CustomRenderer = function CustomRenderer(props) {
|
|
|
67
71
|
queryParams: queryParams,
|
|
68
72
|
dataSetName: dataSetName
|
|
69
73
|
};
|
|
70
|
-
|
|
74
|
+
setLoading(true);
|
|
75
|
+
_context.next = 9;
|
|
71
76
|
return (0, _dataCommon.getReportData)(rcProContext, formatter ? formatter === null || formatter === void 0 ? void 0 : formatter(data) : data);
|
|
72
|
-
case
|
|
77
|
+
case 9:
|
|
73
78
|
res = _context.sent;
|
|
79
|
+
setLoading(false);
|
|
74
80
|
if (res !== null && res !== void 0 && res.success) {
|
|
75
81
|
setResult(res === null || res === void 0 ? void 0 : res.result);
|
|
76
82
|
}
|
|
77
|
-
_context.next =
|
|
83
|
+
_context.next = 19;
|
|
78
84
|
break;
|
|
79
|
-
case
|
|
80
|
-
_context.prev =
|
|
85
|
+
case 14:
|
|
86
|
+
_context.prev = 14;
|
|
81
87
|
_context.t0 = _context["catch"](1);
|
|
88
|
+
setLoading(false);
|
|
82
89
|
setResult(null);
|
|
83
90
|
console.error(_context.t0);
|
|
84
|
-
case
|
|
91
|
+
case 19:
|
|
85
92
|
case "end":
|
|
86
93
|
return _context.stop();
|
|
87
94
|
}
|
|
88
|
-
}, _callee, null, [[1,
|
|
95
|
+
}, _callee, null, [[1, 14]]);
|
|
89
96
|
}));
|
|
90
97
|
return function getDataSource(_x) {
|
|
91
98
|
return _ref2.apply(this, arguments);
|
|
@@ -146,11 +153,13 @@ var CustomRenderer = function CustomRenderer(props) {
|
|
|
146
153
|
queryChart: queryChart
|
|
147
154
|
};
|
|
148
155
|
});
|
|
149
|
-
return /*#__PURE__*/React.createElement(
|
|
156
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
150
157
|
style: {
|
|
151
158
|
display: !isLink ? 'block' : 'none'
|
|
152
159
|
}
|
|
153
|
-
},
|
|
160
|
+
}, /*#__PURE__*/React.createElement(_spin["default"], {
|
|
161
|
+
spinning: loading
|
|
162
|
+
}, (_props$child = props.child) === null || _props$child === void 0 ? void 0 : _props$child.call(props, result))), /*#__PURE__*/React.createElement("div", {
|
|
154
163
|
style: {
|
|
155
164
|
display: isLink ? 'block' : 'none'
|
|
156
165
|
}
|
|
@@ -177,30 +177,32 @@ var token = 'scm:tenant:token:2:104:177217352666D386AA01E5AF6293727D';
|
|
|
177
177
|
/** 获取维度指标 */
|
|
178
178
|
var getDimTarget = /*#__PURE__*/function () {
|
|
179
179
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(rcProContext, params) {
|
|
180
|
-
var
|
|
180
|
+
var _data_env_mapping$env;
|
|
181
|
+
var _ref2, materialsRequest, env, data_env_mapping, __env, res, _res;
|
|
181
182
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
182
183
|
while (1) switch (_context.prev = _context.next) {
|
|
183
184
|
case 0:
|
|
184
|
-
_ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, env = _ref2.env
|
|
185
|
+
_ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, env = _ref2.env, data_env_mapping = _ref2.data_env_mapping;
|
|
186
|
+
__env = (_data_env_mapping$env = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env !== void 0 ? _data_env_mapping$env : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
|
|
185
187
|
if (!materialsRequest) {
|
|
186
|
-
_context.next =
|
|
188
|
+
_context.next = 7;
|
|
187
189
|
break;
|
|
188
190
|
}
|
|
189
|
-
_context.next =
|
|
191
|
+
_context.next = 5;
|
|
190
192
|
return (0, _rcProRequest["default"])(rcProContext, "/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
|
|
191
193
|
method: 'POST',
|
|
192
194
|
data: {
|
|
193
|
-
bigDataBody: (0, _extends2["default"])({
|
|
194
|
-
env:
|
|
195
|
-
}, params)
|
|
195
|
+
bigDataBody: (0, _extends2["default"])({}, __env ? {
|
|
196
|
+
env: __env
|
|
197
|
+
} : {}, params)
|
|
196
198
|
}
|
|
197
199
|
});
|
|
198
|
-
case
|
|
200
|
+
case 5:
|
|
199
201
|
res = _context.sent;
|
|
200
202
|
return _context.abrupt("return", res);
|
|
201
|
-
case
|
|
202
|
-
_context.prev =
|
|
203
|
-
_context.next =
|
|
203
|
+
case 7:
|
|
204
|
+
_context.prev = 7;
|
|
205
|
+
_context.next = 10;
|
|
204
206
|
return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
|
|
205
207
|
method: 'POST',
|
|
206
208
|
body: JSON.stringify({
|
|
@@ -213,21 +215,21 @@ var getDimTarget = /*#__PURE__*/function () {
|
|
|
213
215
|
token: token
|
|
214
216
|
}
|
|
215
217
|
});
|
|
216
|
-
case
|
|
218
|
+
case 10:
|
|
217
219
|
_res = _context.sent;
|
|
218
|
-
_context.next =
|
|
220
|
+
_context.next = 13;
|
|
219
221
|
return _res.json();
|
|
220
|
-
case
|
|
222
|
+
case 13:
|
|
221
223
|
return _context.abrupt("return", _context.sent);
|
|
222
|
-
case
|
|
223
|
-
_context.prev =
|
|
224
|
-
_context.t0 = _context["catch"](
|
|
224
|
+
case 16:
|
|
225
|
+
_context.prev = 16;
|
|
226
|
+
_context.t0 = _context["catch"](7);
|
|
225
227
|
return _context.abrupt("return", {});
|
|
226
|
-
case
|
|
228
|
+
case 19:
|
|
227
229
|
case "end":
|
|
228
230
|
return _context.stop();
|
|
229
231
|
}
|
|
230
|
-
}, _callee, null, [[
|
|
232
|
+
}, _callee, null, [[7, 16]]);
|
|
231
233
|
}));
|
|
232
234
|
return function getDimTarget(_x, _x2) {
|
|
233
235
|
return _ref.apply(this, arguments);
|
|
@@ -238,30 +240,32 @@ var getDimTarget = /*#__PURE__*/function () {
|
|
|
238
240
|
exports.getDimTarget = getDimTarget;
|
|
239
241
|
var getReportData = /*#__PURE__*/function () {
|
|
240
242
|
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(rcProContext, params) {
|
|
241
|
-
var
|
|
243
|
+
var _data_env_mapping$env2;
|
|
244
|
+
var _ref4, materialsRequest, env, data_env_mapping, __env, res, _res2;
|
|
242
245
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
243
246
|
while (1) switch (_context2.prev = _context2.next) {
|
|
244
247
|
case 0:
|
|
245
|
-
_ref4 = rcProContext || {}, materialsRequest = _ref4.materialsRequest, env = _ref4.env
|
|
248
|
+
_ref4 = rcProContext || {}, materialsRequest = _ref4.materialsRequest, env = _ref4.env, data_env_mapping = _ref4.data_env_mapping;
|
|
249
|
+
__env = (_data_env_mapping$env2 = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env2 !== void 0 ? _data_env_mapping$env2 : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
|
|
246
250
|
if (!materialsRequest) {
|
|
247
|
-
_context2.next =
|
|
251
|
+
_context2.next = 7;
|
|
248
252
|
break;
|
|
249
253
|
}
|
|
250
|
-
_context2.next =
|
|
254
|
+
_context2.next = 5;
|
|
251
255
|
return (0, _rcProRequest["default"])(rcProContext, "/data/forward/v1/bigdata/report/" + params.dataSetName, {
|
|
252
256
|
method: 'POST',
|
|
253
257
|
data: {
|
|
254
|
-
bigDataBody: (0, _extends2["default"])({
|
|
255
|
-
env:
|
|
256
|
-
}, params)
|
|
258
|
+
bigDataBody: (0, _extends2["default"])({}, __env ? {
|
|
259
|
+
env: __env
|
|
260
|
+
} : {}, params)
|
|
257
261
|
}
|
|
258
262
|
});
|
|
259
|
-
case
|
|
263
|
+
case 5:
|
|
260
264
|
res = _context2.sent;
|
|
261
265
|
return _context2.abrupt("return", res);
|
|
262
|
-
case
|
|
263
|
-
_context2.prev =
|
|
264
|
-
_context2.next =
|
|
266
|
+
case 7:
|
|
267
|
+
_context2.prev = 7;
|
|
268
|
+
_context2.next = 10;
|
|
265
269
|
return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/" + params.dataSetName, {
|
|
266
270
|
method: 'POST',
|
|
267
271
|
body: JSON.stringify({
|
|
@@ -274,21 +278,21 @@ var getReportData = /*#__PURE__*/function () {
|
|
|
274
278
|
token: token
|
|
275
279
|
}
|
|
276
280
|
});
|
|
277
|
-
case
|
|
281
|
+
case 10:
|
|
278
282
|
_res2 = _context2.sent;
|
|
279
|
-
_context2.next =
|
|
283
|
+
_context2.next = 13;
|
|
280
284
|
return _res2.json();
|
|
281
|
-
case
|
|
285
|
+
case 13:
|
|
282
286
|
return _context2.abrupt("return", _context2.sent);
|
|
283
|
-
case
|
|
284
|
-
_context2.prev =
|
|
285
|
-
_context2.t0 = _context2["catch"](
|
|
287
|
+
case 16:
|
|
288
|
+
_context2.prev = 16;
|
|
289
|
+
_context2.t0 = _context2["catch"](7);
|
|
286
290
|
return _context2.abrupt("return", {});
|
|
287
|
-
case
|
|
291
|
+
case 19:
|
|
288
292
|
case "end":
|
|
289
293
|
return _context2.stop();
|
|
290
294
|
}
|
|
291
|
-
}, _callee2, null, [[
|
|
295
|
+
}, _callee2, null, [[7, 16]]);
|
|
292
296
|
}));
|
|
293
297
|
return function getReportData(_x3, _x4) {
|
|
294
298
|
return _ref3.apply(this, arguments);
|
package/lib/style.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ztocwst/rc-pro-materials",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
4
4
|
"description": "@ztocwst/rc-pro-materials",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"componentConfig": {
|
|
88
88
|
"isComponentLibrary": true,
|
|
89
|
-
"materialSchema": "https://npm.onmicrosoft.cn/@ztocwst/rc-pro-materials@0.1.
|
|
89
|
+
"materialSchema": "https://npm.onmicrosoft.cn/@ztocwst/rc-pro-materials@0.1.33/build/lowcode/assets-prod.json"
|
|
90
90
|
},
|
|
91
|
-
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
91
|
+
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.33/build/index.html",
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"registry": "https://registry.npmjs.org/",
|
|
94
94
|
"access": "public"
|