@ibiz-template/runtime 0.7.28-alpha.1 → 0.7.28
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/dist/index.esm.js +24 -23
- package/dist/index.system.min.js +1 -1
- package/out/command/app/app-func/app-func.d.ts.map +1 -1
- package/out/command/app/app-func/app-func.js +2 -3
- package/out/utils/bi-report-util/bi-report-util.d.ts +0 -10
- package/out/utils/bi-report-util/bi-report-util.d.ts.map +1 -1
- package/out/utils/bi-report-util/bi-report-util.js +24 -22
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -15216,6 +15216,9 @@ var BIReportUtil = class {
|
|
|
15216
15216
|
if (biReportUIModel.filter) {
|
|
15217
15217
|
propertyData.data.filter = biReportUIModel.filter;
|
|
15218
15218
|
}
|
|
15219
|
+
if (biReportUIModel.period) {
|
|
15220
|
+
propertyData.data.period = biReportUIModel.period;
|
|
15221
|
+
}
|
|
15219
15222
|
config.propertyData = propertyData;
|
|
15220
15223
|
return config;
|
|
15221
15224
|
}
|
|
@@ -15250,7 +15253,12 @@ var BIReportUtil = class {
|
|
|
15250
15253
|
reportUIModelObj = JSON.parse(reportUIModel);
|
|
15251
15254
|
config.selectChartType = reportUIModelObj.selectChartType;
|
|
15252
15255
|
propertyData.style = reportUIModelObj.style;
|
|
15253
|
-
|
|
15256
|
+
if (reportUIModelObj.filter) {
|
|
15257
|
+
propertyData.data.filter = reportUIModelObj.filter;
|
|
15258
|
+
}
|
|
15259
|
+
if (reportUIModelObj.period) {
|
|
15260
|
+
propertyData.data.period = reportUIModelObj.period;
|
|
15261
|
+
}
|
|
15254
15262
|
} else {
|
|
15255
15263
|
config.selectChartType = "NUMBER";
|
|
15256
15264
|
}
|
|
@@ -15325,15 +15333,21 @@ var BIReportUtil = class {
|
|
|
15325
15333
|
async translateDataToAppBIReport(arg) {
|
|
15326
15334
|
const { reportTag, selectChartType, selectCubeId, caption, data, style } = arg;
|
|
15327
15335
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
15336
|
+
const tempUIReportModel = {
|
|
15337
|
+
selectChartType,
|
|
15338
|
+
style
|
|
15339
|
+
};
|
|
15340
|
+
if (data.filter) {
|
|
15341
|
+
Object.assign(tempUIReportModel, { filter: data.filter });
|
|
15342
|
+
}
|
|
15343
|
+
if (data.period) {
|
|
15344
|
+
Object.assign(tempUIReportModel, { period: data.period });
|
|
15345
|
+
}
|
|
15328
15346
|
const targetData = {
|
|
15329
15347
|
pssysbireportitems: [],
|
|
15330
15348
|
pssysbischemeid: selectCubeId.split(".")[0],
|
|
15331
15349
|
pssysbicubeid: selectCubeId,
|
|
15332
|
-
bireportuimodel: JSON.stringify(
|
|
15333
|
-
selectChartType,
|
|
15334
|
-
style,
|
|
15335
|
-
filter: data == null ? void 0 : data.filter
|
|
15336
|
-
}),
|
|
15350
|
+
bireportuimodel: JSON.stringify(tempUIReportModel),
|
|
15337
15351
|
pssysappid: app.model.codeName,
|
|
15338
15352
|
bireporttag: reportTag,
|
|
15339
15353
|
pssysbireportname: caption,
|
|
@@ -15384,9 +15398,6 @@ var BIReportUtil = class {
|
|
|
15384
15398
|
*/
|
|
15385
15399
|
async mergeSpecialParams(type, sourceData, targetData) {
|
|
15386
15400
|
switch (type) {
|
|
15387
|
-
case "NUMBER":
|
|
15388
|
-
await this.mergeNumberSpecialParams(sourceData, targetData);
|
|
15389
|
-
break;
|
|
15390
15401
|
case "CROSSTABLE":
|
|
15391
15402
|
await this.mergeCrosstableSpecialParams(sourceData, targetData);
|
|
15392
15403
|
break;
|
|
@@ -15404,18 +15415,6 @@ var BIReportUtil = class {
|
|
|
15404
15415
|
break;
|
|
15405
15416
|
}
|
|
15406
15417
|
}
|
|
15407
|
-
/**
|
|
15408
|
-
* 处理数字特殊参数(同环比)
|
|
15409
|
-
*
|
|
15410
|
-
* @author tony001
|
|
15411
|
-
* @date 2024-07-05 10:07:35
|
|
15412
|
-
* @param {IData} sourceData
|
|
15413
|
-
* @param {IData} targetData
|
|
15414
|
-
* @return {*} {Promise<void>}
|
|
15415
|
-
*/
|
|
15416
|
-
async mergeNumberSpecialParams(sourceData, targetData) {
|
|
15417
|
-
console.log(sourceData, targetData);
|
|
15418
|
-
}
|
|
15419
15418
|
/**
|
|
15420
15419
|
* 处理交叉表特殊参数(维度列)
|
|
15421
15420
|
*
|
|
@@ -15835,8 +15834,10 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
15835
15834
|
* @param {IParams} [params]
|
|
15836
15835
|
*/
|
|
15837
15836
|
executeJavaScript(appFunc, context, params) {
|
|
15838
|
-
|
|
15839
|
-
|
|
15837
|
+
ScriptFactory.execScriptFn(
|
|
15838
|
+
{ context, params, data: {}, el: null, view: null },
|
|
15839
|
+
appFunc.jscode
|
|
15840
|
+
);
|
|
15840
15841
|
}
|
|
15841
15842
|
/**
|
|
15842
15843
|
* 自定义应用功能
|