@ztocwst/rc-pro-materials 0.1.32 → 0.1.34
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.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/dist/SCM_Comps.css +1 -1
- package/dist/SCM_Comps.js +2 -2
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-agg-block/index.less +10 -2
- package/es/components/z-agg-block/z-agg-block.js +1 -1
- package/es/components/z-pointer-block/z-pointer-block.js +4 -2
- package/es/components/z-templates-data-common/components/custom-renderer/index.js +20 -11
- package/es/components/z-templates-data-common/components/link-renderer/index.js +2 -2
- package/es/components/z-templates-data-common/components/link-renderer/index.less +6 -4
- package/es/components/z-templates-data-common/data-common.helper.js +42 -38
- package/es/style.js +2 -0
- package/lib/components/z-agg-block/index.less +10 -2
- package/lib/components/z-agg-block/z-agg-block.js +1 -1
- package/lib/components/z-pointer-block/z-pointer-block.js +4 -2
- package/lib/components/z-templates-data-common/components/custom-renderer/index.js +20 -11
- package/lib/components/z-templates-data-common/components/link-renderer/index.js +2 -2
- package/lib/components/z-templates-data-common/components/link-renderer/index.less +6 -4
- package/lib/components/z-templates-data-common/data-common.helper.js +42 -38
- package/lib/style.js +1 -0
- package/package.json +3 -3
|
@@ -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.34",
|
|
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.34/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.34/build/index.html",
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"registry": "https://registry.npmjs.org/",
|
|
94
94
|
"access": "public"
|