@ibiz-template/runtime 0.7.27 → 0.7.28-alpha.1
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 +366 -129
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/control/control.controller.d.ts.map +1 -1
- package/out/controller/common/control/control.controller.js +2 -0
- package/out/controller/common/editor/editor.controller.d.ts +8 -0
- package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
- package/out/controller/common/editor/editor.controller.js +18 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +2 -0
- package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/chart-options-generator.js +9 -3
- package/out/controller/control/dashboard/custom-dashboard.controller.js +1 -1
- package/out/controller/control/dashboard/dashboard.controller.d.ts +0 -8
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +29 -20
- package/out/controller/control/grid/grid/grid.controller.d.ts +8 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +17 -3
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +18 -6
- package/out/controller/control/report-panel/report-panel.controller.d.ts +1 -9
- package/out/controller/control/report-panel/report-panel.controller.d.ts.map +1 -1
- package/out/controller/control/report-panel/report-panel.controller.js +0 -25
- package/out/controller/control/search-bar/search-bar.controller.d.ts +8 -0
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +11 -1
- package/out/controller/control/toolbar/toolbar.controllerr.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controllerr.js +13 -0
- package/out/controller/utils/jsonschema/entity.d.ts +1 -1
- package/out/controller/utils/jsonschema/entity.d.ts.map +1 -1
- package/out/controller/utils/jsonschema/entity.js +7 -2
- package/out/interface/controller/controller/control/i-report-panel.controller.d.ts +0 -9
- package/out/interface/controller/controller/control/i-report-panel.controller.d.ts.map +1 -1
- package/out/interface/controller/event/common/i-component.event.d.ts +20 -0
- package/out/interface/controller/event/common/i-component.event.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts +10 -0
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +45 -0
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +3 -1
- package/out/utils/bi-report-util/bi-report-util.d.ts +57 -0
- package/out/utils/bi-report-util/bi-report-util.d.ts.map +1 -1
- package/out/utils/bi-report-util/bi-report-util.js +173 -55
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -15108,12 +15108,18 @@ var BIReportUtil = class {
|
|
|
15108
15108
|
);
|
|
15109
15109
|
if (res.data) {
|
|
15110
15110
|
config = await this.translateDEReportToConfig(res.data);
|
|
15111
|
+
if (data.srfreporttag) {
|
|
15112
|
+
config.reportTag = data.srfreporttag;
|
|
15113
|
+
}
|
|
15114
|
+
if (data.srfbischematag) {
|
|
15115
|
+
config.selectedSchemeId = data.srfbischematag;
|
|
15116
|
+
}
|
|
15111
15117
|
}
|
|
15112
15118
|
} catch (error) {
|
|
15113
15119
|
throw new RuntimeError25(error.message);
|
|
15114
15120
|
}
|
|
15115
15121
|
} else if (data.mode === "UI") {
|
|
15116
|
-
config = data.reportPanel.
|
|
15122
|
+
config = this.translateReportPanelToConfig(data.reportPanel.model);
|
|
15117
15123
|
}
|
|
15118
15124
|
const modal = ibiz.overlay.createModal(
|
|
15119
15125
|
"iBizBIReportDesign",
|
|
@@ -15153,7 +15159,6 @@ var BIReportUtil = class {
|
|
|
15153
15159
|
config.selectCubeId = data.pssysbicubeid;
|
|
15154
15160
|
config.selectedSchemeId = data.pssysbischemeid;
|
|
15155
15161
|
const biReportItems = {};
|
|
15156
|
-
const extendDimension = (biReportUIModel == null ? void 0 : biReportUIModel.extendDimension) || [];
|
|
15157
15162
|
if (data.pssysbireportitems && data.pssysbireportitems.length > 0) {
|
|
15158
15163
|
data.pssysbireportitems.forEach((item) => {
|
|
15159
15164
|
var _a, _b;
|
|
@@ -15166,33 +15171,35 @@ var BIReportUtil = class {
|
|
|
15166
15171
|
pssysbicubemeasureid: item.pssysbicubemeasureid,
|
|
15167
15172
|
pssysbicubeid: item.pssysbicubeid,
|
|
15168
15173
|
codename: (_a = item.pssysbicubemeasureid) == null ? void 0 : _a.split(".").pop(),
|
|
15169
|
-
pssysbicubemeasurename: item.pssysbicubemeasurename
|
|
15174
|
+
pssysbicubemeasurename: item.pssysbicubemeasurename,
|
|
15175
|
+
birepitemparams: item.birepitemparams
|
|
15170
15176
|
});
|
|
15171
15177
|
}
|
|
15172
15178
|
if (item.birepitemtype === "DIMENSION") {
|
|
15173
|
-
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
|
|
15177
|
-
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
|
|
15182
|
-
|
|
15183
|
-
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
|
|
15187
|
-
|
|
15179
|
+
const tempDimension = {
|
|
15180
|
+
pssysbischemeid: item.pssysbischemeid,
|
|
15181
|
+
pssysbicubedimensionid: item.pssysbicubedimensionid,
|
|
15182
|
+
pssysbicubeid: item.pssysbicubeid,
|
|
15183
|
+
codename: (_b = item.pssysbicubedimensionid) == null ? void 0 : _b.split(".").pop(),
|
|
15184
|
+
pssysbicubedimensionname: item.pssysbicubedimensionname,
|
|
15185
|
+
placement: item.placement,
|
|
15186
|
+
birepitemparams: item.birepitemparams
|
|
15187
|
+
};
|
|
15188
|
+
if (item.placement === "COLHEADER") {
|
|
15189
|
+
if (!biReportItems.dimension_col) {
|
|
15190
|
+
biReportItems.dimension_col = [];
|
|
15191
|
+
}
|
|
15192
|
+
biReportItems.dimension_col.push(tempDimension);
|
|
15193
|
+
} else if (biReportUIModel && biReportUIModel.group && biReportUIModel.group.indexof(item.pssysbicubedimensionid) !== -1) {
|
|
15194
|
+
if (!biReportItems.group) {
|
|
15195
|
+
biReportItems.group = [];
|
|
15196
|
+
}
|
|
15197
|
+
biReportItems.group.push(tempDimension);
|
|
15188
15198
|
} else {
|
|
15189
|
-
biReportItems.dimension
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
codename,
|
|
15194
|
-
pssysbicubedimensionname: item.pssysbicubedimensionname
|
|
15195
|
-
});
|
|
15199
|
+
if (!biReportItems.dimension) {
|
|
15200
|
+
biReportItems.dimension = [];
|
|
15201
|
+
}
|
|
15202
|
+
biReportItems.dimension.push(tempDimension);
|
|
15196
15203
|
}
|
|
15197
15204
|
}
|
|
15198
15205
|
});
|
|
@@ -15221,6 +15228,7 @@ var BIReportUtil = class {
|
|
|
15221
15228
|
*/
|
|
15222
15229
|
async translateReportPanelToConfig(model) {
|
|
15223
15230
|
const config = {};
|
|
15231
|
+
let reportUIModelObj = {};
|
|
15224
15232
|
const biReportDatas = {};
|
|
15225
15233
|
const { appDEReport } = model;
|
|
15226
15234
|
const propertyData = {
|
|
@@ -15238,15 +15246,11 @@ var BIReportUtil = class {
|
|
|
15238
15246
|
} = appDEReport.appBIReport;
|
|
15239
15247
|
propertyData.caption = name;
|
|
15240
15248
|
config.selectCubeId = "".concat(tempAppBISchemeId, ".").concat(appBICubeId);
|
|
15241
|
-
let extendDimension = [];
|
|
15242
15249
|
if (reportUIModel) {
|
|
15243
|
-
|
|
15250
|
+
reportUIModelObj = JSON.parse(reportUIModel);
|
|
15244
15251
|
config.selectChartType = reportUIModelObj.selectChartType;
|
|
15245
15252
|
propertyData.style = reportUIModelObj.style;
|
|
15246
15253
|
propertyData.data.filter = reportUIModelObj.filter;
|
|
15247
|
-
if (reportUIModelObj.extendDimension) {
|
|
15248
|
-
extendDimension = reportUIModelObj.extendDimension;
|
|
15249
|
-
}
|
|
15250
15254
|
} else {
|
|
15251
15255
|
config.selectChartType = "NUMBER";
|
|
15252
15256
|
}
|
|
@@ -15260,7 +15264,8 @@ var BIReportUtil = class {
|
|
|
15260
15264
|
pssysbicubemeasureid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId, ".").concat(measure.measureTag),
|
|
15261
15265
|
pssysbicubemeasurename: measure.measureName,
|
|
15262
15266
|
pssysbicubeid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId),
|
|
15263
|
-
codename: measure.measureTag
|
|
15267
|
+
codename: measure.measureTag,
|
|
15268
|
+
birepitemparams: measure.birepitemparams
|
|
15264
15269
|
});
|
|
15265
15270
|
});
|
|
15266
15271
|
}
|
|
@@ -15269,27 +15274,34 @@ var BIReportUtil = class {
|
|
|
15269
15274
|
if (!biReportDatas.dimension) {
|
|
15270
15275
|
biReportDatas.dimension = [];
|
|
15271
15276
|
}
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15277
|
+
const tempDimension = {
|
|
15278
|
+
pssysbischemeid: tempAppBISchemeId,
|
|
15279
|
+
pssysbicubedimensionid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId, ".").concat(dimension.dimensionTag),
|
|
15280
|
+
pssysbicubedimensionname: dimension.dimensionName,
|
|
15281
|
+
pssysbicubeid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId),
|
|
15282
|
+
codename: dimension.dimensionTag,
|
|
15283
|
+
pscodelistid: dimension.appCodeListId,
|
|
15284
|
+
placement: dimension.placement,
|
|
15285
|
+
birepitemparams: dimension.birepitemparams
|
|
15286
|
+
};
|
|
15287
|
+
biReportDatas.dimension.push();
|
|
15288
|
+
if (dimension.placement === "COLHEADER") {
|
|
15289
|
+
if (!biReportDatas.dimension_col) {
|
|
15290
|
+
biReportDatas.dimension_col = [];
|
|
15291
|
+
}
|
|
15292
|
+
biReportDatas.dimension_col.push(tempDimension);
|
|
15293
|
+
} else if (reportUIModelObj && reportUIModelObj.group && reportUIModelObj.group.indexof(
|
|
15294
|
+
"".concat(tempAppBISchemeId, ".").concat(appBICubeId, ".").concat(dimension.dimensionTag)
|
|
15295
|
+
) !== -1) {
|
|
15296
|
+
if (!biReportDatas.group) {
|
|
15297
|
+
biReportDatas.group = [];
|
|
15298
|
+
}
|
|
15299
|
+
biReportDatas.group.push(tempDimension);
|
|
15284
15300
|
} else {
|
|
15285
|
-
biReportDatas.dimension
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
pssysbicubeid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId),
|
|
15290
|
-
codename: dimension.dimensionTag,
|
|
15291
|
-
pscodelistid: dimension.appCodeListId
|
|
15292
|
-
});
|
|
15301
|
+
if (!biReportDatas.dimension) {
|
|
15302
|
+
biReportDatas.dimension = [];
|
|
15303
|
+
}
|
|
15304
|
+
biReportDatas.dimension.push(tempDimension);
|
|
15293
15305
|
}
|
|
15294
15306
|
});
|
|
15295
15307
|
}
|
|
@@ -15336,6 +15348,7 @@ var BIReportUtil = class {
|
|
|
15336
15348
|
pssysbicubeid: measure.pssysbicubeid,
|
|
15337
15349
|
pssysbicubename: measure.pssysbicubename,
|
|
15338
15350
|
pssysbicubemeasurename: measure.pssysbicubemeasurename,
|
|
15351
|
+
birepitemparams: measure.birepitemparams,
|
|
15339
15352
|
validflag: 1
|
|
15340
15353
|
};
|
|
15341
15354
|
targetData.pssysbireportitems.push(tempMeasure);
|
|
@@ -15350,15 +15363,73 @@ var BIReportUtil = class {
|
|
|
15350
15363
|
pssysbicubeid: dimension.pssysbicubeid,
|
|
15351
15364
|
pssysbicubename: dimension.pssysbicubename,
|
|
15352
15365
|
pssysbicubedimensionname: dimension.pssysbicubedimensionname,
|
|
15366
|
+
birepitemparams: dimension.birepitemparams,
|
|
15353
15367
|
validflag: 1
|
|
15354
15368
|
};
|
|
15355
15369
|
targetData.pssysbireportitems.push(tempDimension);
|
|
15356
15370
|
});
|
|
15357
15371
|
}
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15372
|
+
await this.mergeSpecialParams(selectChartType, arg, targetData);
|
|
15373
|
+
return targetData;
|
|
15374
|
+
}
|
|
15375
|
+
/**
|
|
15376
|
+
* 合入特殊参数
|
|
15377
|
+
*
|
|
15378
|
+
* @author tony001
|
|
15379
|
+
* @date 2024-07-05 09:07:02
|
|
15380
|
+
* @param {string} type
|
|
15381
|
+
* @param {IData} sourceData
|
|
15382
|
+
* @param {IData} targetData
|
|
15383
|
+
* @return {*} {Promise<void>}
|
|
15384
|
+
*/
|
|
15385
|
+
async mergeSpecialParams(type, sourceData, targetData) {
|
|
15386
|
+
switch (type) {
|
|
15387
|
+
case "NUMBER":
|
|
15388
|
+
await this.mergeNumberSpecialParams(sourceData, targetData);
|
|
15389
|
+
break;
|
|
15390
|
+
case "CROSSTABLE":
|
|
15391
|
+
await this.mergeCrosstableSpecialParams(sourceData, targetData);
|
|
15392
|
+
break;
|
|
15393
|
+
case "MULTI_SERIES_COL":
|
|
15394
|
+
case "STACK_COL":
|
|
15395
|
+
case "ZONE_COL":
|
|
15396
|
+
case "MULTI_SERIES_BAR":
|
|
15397
|
+
case "STACK_BAR":
|
|
15398
|
+
case "MULTI_SERIES_LINE":
|
|
15399
|
+
case "ZONE_LINE":
|
|
15400
|
+
case "AREA":
|
|
15401
|
+
await this.mergeGroupParams(sourceData, targetData);
|
|
15402
|
+
break;
|
|
15403
|
+
default:
|
|
15404
|
+
break;
|
|
15405
|
+
}
|
|
15406
|
+
}
|
|
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
|
+
/**
|
|
15420
|
+
* 处理交叉表特殊参数(维度列)
|
|
15421
|
+
*
|
|
15422
|
+
* @author tony001
|
|
15423
|
+
* @date 2024-07-05 10:07:56
|
|
15424
|
+
* @param {IData} sourceData
|
|
15425
|
+
* @param {IData} targetData
|
|
15426
|
+
* @return {*} {Promise<void>}
|
|
15427
|
+
*/
|
|
15428
|
+
async mergeCrosstableSpecialParams(sourceData, targetData) {
|
|
15429
|
+
var _a;
|
|
15430
|
+
const { data } = sourceData;
|
|
15431
|
+
if (data && ((_a = data.dimension_col) == null ? void 0 : _a.length) > 0) {
|
|
15432
|
+
data.dimension_col.forEach((dimension) => {
|
|
15362
15433
|
const tempDimension = {
|
|
15363
15434
|
birepitemtype: "DIMENSION",
|
|
15364
15435
|
pssysbischemeid: dimension.pssysbischemeid,
|
|
@@ -15366,17 +15437,44 @@ var BIReportUtil = class {
|
|
|
15366
15437
|
pssysbicubeid: dimension.pssysbicubeid,
|
|
15367
15438
|
pssysbicubename: dimension.pssysbicubename,
|
|
15368
15439
|
pssysbicubedimensionname: dimension.pssysbicubedimensionname,
|
|
15440
|
+
placement: "COLHEADER",
|
|
15369
15441
|
validflag: 1
|
|
15370
15442
|
};
|
|
15371
15443
|
targetData.pssysbireportitems.push(tempDimension);
|
|
15372
15444
|
});
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15445
|
+
}
|
|
15446
|
+
}
|
|
15447
|
+
/**
|
|
15448
|
+
* 处理分组特殊参数(添加维度数据并将标识存到ui报表模型的group字段中)
|
|
15449
|
+
*
|
|
15450
|
+
* @author tony001
|
|
15451
|
+
* @date 2024-07-05 10:07:05
|
|
15452
|
+
* @param {IData} sourceData
|
|
15453
|
+
* @param {IData} targetData
|
|
15454
|
+
* @return {*} {Promise<void>}
|
|
15455
|
+
*/
|
|
15456
|
+
async mergeGroupParams(sourceData, targetData) {
|
|
15457
|
+
var _a;
|
|
15458
|
+
const { data } = sourceData;
|
|
15459
|
+
if (data && ((_a = data.group) == null ? void 0 : _a.length) > 0) {
|
|
15460
|
+
const groupNames = [];
|
|
15461
|
+
data.group.forEach((groupItem) => {
|
|
15462
|
+
const tempDimension = {
|
|
15463
|
+
birepitemtype: "DIMENSION",
|
|
15464
|
+
pssysbischemeid: groupItem.pssysbischemeid,
|
|
15465
|
+
pssysbicubedimensionid: groupItem.pssysbicubedimensionid,
|
|
15466
|
+
pssysbicubeid: groupItem.pssysbicubeid,
|
|
15467
|
+
pssysbicubename: groupItem.pssysbicubename,
|
|
15468
|
+
pssysbicubedimensionname: groupItem.pssysbicubedimensionname,
|
|
15469
|
+
validflag: 1
|
|
15470
|
+
};
|
|
15471
|
+
targetData.pssysbireportitems.push(tempDimension);
|
|
15472
|
+
groupNames.push(groupItem.pssysbicubedimensionid);
|
|
15377
15473
|
});
|
|
15474
|
+
const biReportUIModel = JSON.parse(targetData.bireportuimodel);
|
|
15475
|
+
biReportUIModel.group = groupNames;
|
|
15476
|
+
targetData.bireportuimodel = JSON.stringify(biReportUIModel);
|
|
15378
15477
|
}
|
|
15379
|
-
return targetData;
|
|
15380
15478
|
}
|
|
15381
15479
|
};
|
|
15382
15480
|
|
|
@@ -17410,12 +17508,16 @@ async function fetchImportSchemas(opts) {
|
|
|
17410
17508
|
}
|
|
17411
17509
|
|
|
17412
17510
|
// src/controller/utils/jsonschema/entity.ts
|
|
17413
|
-
|
|
17511
|
+
import qs3 from "qs";
|
|
17512
|
+
async function getEntitySchema(entityId, context, params = {}) {
|
|
17513
|
+
const strParams = qs3.stringify(params);
|
|
17414
17514
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
17415
17515
|
const entity = await ibiz.hub.getAppDataEntity(entityId, context.srfappid);
|
|
17416
17516
|
let url = "/jsonschema/".concat(entity.name);
|
|
17417
17517
|
if (entity.dynaSysMode === 0 && ibiz.appData) {
|
|
17418
|
-
url += "?dynamodeltag=".concat(ibiz.appData.dynamodeltag);
|
|
17518
|
+
url += "?dynamodeltag=".concat(ibiz.appData.dynamodeltag).concat(strParams ? "&".concat(strParams) : "");
|
|
17519
|
+
} else {
|
|
17520
|
+
url += "".concat(strParams ? "?".concat(strParams) : "");
|
|
17419
17521
|
}
|
|
17420
17522
|
const res = await app.net.get(url);
|
|
17421
17523
|
return res.data;
|
|
@@ -18127,6 +18229,7 @@ var ViewController = class extends BaseController {
|
|
|
18127
18229
|
*/
|
|
18128
18230
|
onActivated() {
|
|
18129
18231
|
this.state.activated = true;
|
|
18232
|
+
this._evt.emit("onActivated", void 0);
|
|
18130
18233
|
ibiz.log.debug(
|
|
18131
18234
|
ibiz.i18n.t("runtime.controller.common.view.viewActivation", {
|
|
18132
18235
|
name: this.model.name,
|
|
@@ -18141,6 +18244,7 @@ var ViewController = class extends BaseController {
|
|
|
18141
18244
|
* @date 2023-07-12 17:07:06
|
|
18142
18245
|
*/
|
|
18143
18246
|
onDeactivated() {
|
|
18247
|
+
this._evt.emit("onDeactivated", void 0);
|
|
18144
18248
|
this.state.activated = false;
|
|
18145
18249
|
ibiz.log.debug(
|
|
18146
18250
|
ibiz.i18n.t("runtime.controller.common.view.viewPause", {
|
|
@@ -18677,6 +18781,24 @@ var EditorController = class {
|
|
|
18677
18781
|
get dataType() {
|
|
18678
18782
|
return this.parent.dataType;
|
|
18679
18783
|
}
|
|
18784
|
+
/**
|
|
18785
|
+
* 触发值变更模式
|
|
18786
|
+
*
|
|
18787
|
+
* @readonly
|
|
18788
|
+
* @type {string}
|
|
18789
|
+
* @memberof EditorController
|
|
18790
|
+
*/
|
|
18791
|
+
get triggerMode() {
|
|
18792
|
+
if (this.editorParams.triggerMode) {
|
|
18793
|
+
return this.editorParams.triggerMode;
|
|
18794
|
+
}
|
|
18795
|
+
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
18796
|
+
const appUserParam = app.model.userParam || {};
|
|
18797
|
+
if (appUserParam.triggerMode) {
|
|
18798
|
+
return appUserParam.triggerMode;
|
|
18799
|
+
}
|
|
18800
|
+
return "blur";
|
|
18801
|
+
}
|
|
18680
18802
|
/**
|
|
18681
18803
|
* 子类不可覆盖或重写此方法,在 init 时需要重写的使用 onInit 方法。
|
|
18682
18804
|
*
|
|
@@ -19069,6 +19191,7 @@ var ControlController = class extends BaseController {
|
|
|
19069
19191
|
* @date 2023-07-12 17:07:55
|
|
19070
19192
|
*/
|
|
19071
19193
|
onActivated() {
|
|
19194
|
+
this._evt.emit("onActivated", void 0);
|
|
19072
19195
|
this.state.activated = true;
|
|
19073
19196
|
if (this.awaitActiveCbs.size > 0) {
|
|
19074
19197
|
this.awaitActiveCbs.forEach((cb) => {
|
|
@@ -19090,6 +19213,7 @@ var ControlController = class extends BaseController {
|
|
|
19090
19213
|
* @date 2023-07-12 17:07:06
|
|
19091
19214
|
*/
|
|
19092
19215
|
onDeactivated() {
|
|
19216
|
+
this._evt.emit("onDeactivated", void 0);
|
|
19093
19217
|
this.state.activated = false;
|
|
19094
19218
|
ibiz.log.debug(
|
|
19095
19219
|
ibiz.i18n.t("runtime.controller.common.control.componentPause", {
|
|
@@ -21972,6 +22096,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
21972
22096
|
const tempaxis = [];
|
|
21973
22097
|
let titleshow = true;
|
|
21974
22098
|
let labelshow = true;
|
|
22099
|
+
let fontConifg = {};
|
|
21975
22100
|
let gridIndex = 0;
|
|
21976
22101
|
if (Array.isArray(tempCatalogFields)) {
|
|
21977
22102
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
@@ -21991,6 +22116,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
21991
22116
|
if (tempconfig) {
|
|
21992
22117
|
titleshow = tempconfig.name === void 0 ? true : !!tempconfig.name;
|
|
21993
22118
|
labelshow = ((_g = tempconfig.axisLabel) == null ? void 0 : _g.show) === void 0 ? true : (_h = tempconfig.axisLabel) == null ? void 0 : _h.show;
|
|
22119
|
+
fontConifg = tempconfig.axisLabel;
|
|
21994
22120
|
}
|
|
21995
22121
|
}
|
|
21996
22122
|
if (this.chartUserParam && this.chartUserParam.grid && Array.isArray(this.chartUserParam.grid)) {
|
|
@@ -22020,6 +22146,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
22020
22146
|
);
|
|
22021
22147
|
tempaxis.push({
|
|
22022
22148
|
show: labelshow,
|
|
22149
|
+
axisLabel: fontConifg,
|
|
22023
22150
|
gridIndex,
|
|
22024
22151
|
type: "category",
|
|
22025
22152
|
data: tempxAxisData,
|
|
@@ -22040,6 +22167,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
22040
22167
|
);
|
|
22041
22168
|
tempaxis.push({
|
|
22042
22169
|
show: labelshow,
|
|
22170
|
+
axisLabel: fontConifg,
|
|
22043
22171
|
gridIndex,
|
|
22044
22172
|
type: "category",
|
|
22045
22173
|
data: tempxAxisData,
|
|
@@ -22077,6 +22205,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
22077
22205
|
tempaxis.push({
|
|
22078
22206
|
type: "category",
|
|
22079
22207
|
gridIndex,
|
|
22208
|
+
axisLabel: fontConifg,
|
|
22080
22209
|
show: titleshow,
|
|
22081
22210
|
data: [
|
|
22082
22211
|
{
|
|
@@ -22097,22 +22226,23 @@ var ChartOptionsGenerator2 = class {
|
|
|
22097
22226
|
} else {
|
|
22098
22227
|
if (catalogLength === 0) {
|
|
22099
22228
|
Object.assign(this.chartUserParam.grid, {
|
|
22100
|
-
bottom:
|
|
22229
|
+
bottom: 45
|
|
22101
22230
|
});
|
|
22102
22231
|
} else {
|
|
22103
22232
|
Object.assign(this.chartUserParam.grid, {
|
|
22104
|
-
bottom: (catalogLength +
|
|
22233
|
+
bottom: (catalogLength + 2) * 24
|
|
22105
22234
|
});
|
|
22106
22235
|
}
|
|
22107
22236
|
tempaxis.push({
|
|
22108
22237
|
type: "category",
|
|
22109
22238
|
gridIndex,
|
|
22110
22239
|
show: titleshow,
|
|
22240
|
+
axisLabel: fontConifg,
|
|
22111
22241
|
data: [
|
|
22112
22242
|
{
|
|
22113
22243
|
value: mergeName,
|
|
22114
22244
|
textStyle: {
|
|
22115
|
-
padding: [24 * catalogLength, 0, 0, 0]
|
|
22245
|
+
padding: [24 * catalogLength + 1, 0, 0, 0]
|
|
22116
22246
|
}
|
|
22117
22247
|
}
|
|
22118
22248
|
],
|
|
@@ -24565,7 +24695,9 @@ var UIActionProviderBase = class {
|
|
|
24565
24695
|
* @memberof UIActionHandler
|
|
24566
24696
|
*/
|
|
24567
24697
|
returnError(result, view) {
|
|
24568
|
-
view
|
|
24698
|
+
if (view) {
|
|
24699
|
+
view.state.isClosing = false;
|
|
24700
|
+
}
|
|
24569
24701
|
return Object.assign(result, {
|
|
24570
24702
|
refresh: false,
|
|
24571
24703
|
closeView: false
|
|
@@ -24956,6 +25088,9 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
24956
25088
|
case "EDITFORM":
|
|
24957
25089
|
actionResult = await this.openEditForm(action, args);
|
|
24958
25090
|
break;
|
|
25091
|
+
case "QUICKEDIT":
|
|
25092
|
+
actionResult = await this.openQuickEdit(action, args);
|
|
25093
|
+
break;
|
|
24959
25094
|
default:
|
|
24960
25095
|
throw new ModelError26(
|
|
24961
25096
|
action,
|
|
@@ -25197,6 +25332,58 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
25197
25332
|
}
|
|
25198
25333
|
return actionResult;
|
|
25199
25334
|
}
|
|
25335
|
+
/**
|
|
25336
|
+
* 打开快速编辑
|
|
25337
|
+
*
|
|
25338
|
+
* @protected
|
|
25339
|
+
* @param {IAppDEUIAction} action
|
|
25340
|
+
* @param {IUILogicParams} args
|
|
25341
|
+
* @return {*} {Promise<IUIActionResult>}
|
|
25342
|
+
* @memberof FrontUIActionProvider
|
|
25343
|
+
*/
|
|
25344
|
+
async openQuickEdit(action, args) {
|
|
25345
|
+
const actionResult = {
|
|
25346
|
+
cancel: true
|
|
25347
|
+
};
|
|
25348
|
+
const { context, params, data, event } = args;
|
|
25349
|
+
if (!event) {
|
|
25350
|
+
throw new RuntimeError51(ibiz.i18n.t("runtime.uiAction.lackNativeEvent"));
|
|
25351
|
+
}
|
|
25352
|
+
const { resultContext, resultParams } = await this.handleParams(
|
|
25353
|
+
action,
|
|
25354
|
+
context,
|
|
25355
|
+
data,
|
|
25356
|
+
params
|
|
25357
|
+
);
|
|
25358
|
+
const options = this.handleViewOptionParams(resultParams).modalOption || {};
|
|
25359
|
+
const popoverOpts = mergeRight4(
|
|
25360
|
+
{
|
|
25361
|
+
autoClose: true
|
|
25362
|
+
},
|
|
25363
|
+
options
|
|
25364
|
+
);
|
|
25365
|
+
const overlay = ibiz.overlay.createPopover(
|
|
25366
|
+
"IBizQuickEdit",
|
|
25367
|
+
{
|
|
25368
|
+
context: resultContext,
|
|
25369
|
+
params: resultParams,
|
|
25370
|
+
modelData: action.deeditForm,
|
|
25371
|
+
onClose: (modalData) => {
|
|
25372
|
+
if (modalData.ok) {
|
|
25373
|
+
actionResult.data = modalData.data;
|
|
25374
|
+
actionResult.cancel = false;
|
|
25375
|
+
}
|
|
25376
|
+
if (overlay) {
|
|
25377
|
+
overlay.dismiss();
|
|
25378
|
+
}
|
|
25379
|
+
}
|
|
25380
|
+
},
|
|
25381
|
+
popoverOpts
|
|
25382
|
+
);
|
|
25383
|
+
overlay.present(event.target);
|
|
25384
|
+
await overlay.onWillDismiss();
|
|
25385
|
+
return actionResult;
|
|
25386
|
+
}
|
|
25200
25387
|
};
|
|
25201
25388
|
|
|
25202
25389
|
// src/ui-action/provider/wf-withdraw-ui-action-provider.ts
|
|
@@ -25372,6 +25559,22 @@ var ToolbarController = class extends ControlController {
|
|
|
25372
25559
|
}
|
|
25373
25560
|
}
|
|
25374
25561
|
}
|
|
25562
|
+
const groupItem = item;
|
|
25563
|
+
if (groupItem.groupExtractMode && groupItem.uiactionGroup && groupItem.uiactionGroup.uiactionGroupDetails) {
|
|
25564
|
+
groupItem.uiactionGroup.uiactionGroupDetails.forEach(
|
|
25565
|
+
(detail) => {
|
|
25566
|
+
const actionid = detail.uiactionId;
|
|
25567
|
+
if (actionid) {
|
|
25568
|
+
const buttonState = new UIActionButtonState(
|
|
25569
|
+
detail.id,
|
|
25570
|
+
this.context.srfappid,
|
|
25571
|
+
actionid
|
|
25572
|
+
);
|
|
25573
|
+
this.state.buttonsState.addState(detail.id, buttonState);
|
|
25574
|
+
}
|
|
25575
|
+
}
|
|
25576
|
+
);
|
|
25577
|
+
}
|
|
25375
25578
|
},
|
|
25376
25579
|
{ childrenFields: ["detoolbarItems"] }
|
|
25377
25580
|
);
|
|
@@ -25528,14 +25731,6 @@ var DashboardController = class extends ControlController {
|
|
|
25528
25731
|
* @type {{ [key: string]: IPortletController }}
|
|
25529
25732
|
*/
|
|
25530
25733
|
this.portlets = {};
|
|
25531
|
-
/**
|
|
25532
|
-
* 启用动态
|
|
25533
|
-
*
|
|
25534
|
-
* @author tony001
|
|
25535
|
-
* @date 2024-06-27 11:06:24
|
|
25536
|
-
* @type {boolean}
|
|
25537
|
-
*/
|
|
25538
|
-
this.enableDynamic = false;
|
|
25539
25734
|
}
|
|
25540
25735
|
initState() {
|
|
25541
25736
|
super.initState();
|
|
@@ -25544,9 +25739,6 @@ var DashboardController = class extends ControlController {
|
|
|
25544
25739
|
this.model.enableCustomized = true;
|
|
25545
25740
|
await super.onCreated();
|
|
25546
25741
|
await this.initPortlets(this.model.controls);
|
|
25547
|
-
if (this.controlParams.enabledynamic === "true") {
|
|
25548
|
-
this.enableDynamic = true;
|
|
25549
|
-
}
|
|
25550
25742
|
const { appDataEntityId } = this.view.model;
|
|
25551
25743
|
if (appDataEntityId) {
|
|
25552
25744
|
this.view.evt.on("onDataChange", (event) => {
|
|
@@ -25642,20 +25834,47 @@ var DashboardController = class extends ControlController {
|
|
|
25642
25834
|
async loadAllDynaPortlet() {
|
|
25643
25835
|
var _a;
|
|
25644
25836
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
25645
|
-
const
|
|
25646
|
-
|
|
25647
|
-
|
|
25648
|
-
|
|
25649
|
-
|
|
25650
|
-
|
|
25651
|
-
|
|
25652
|
-
|
|
25837
|
+
const result = [];
|
|
25838
|
+
if (this.controlParams.dynamiccodelist) {
|
|
25839
|
+
const dynamicCodeListTag = this.controlParams.dynamiccodelist;
|
|
25840
|
+
const codeListItems = await app.codeList.get(
|
|
25841
|
+
dynamicCodeListTag,
|
|
25842
|
+
this.context,
|
|
25843
|
+
this.params
|
|
25844
|
+
);
|
|
25845
|
+
if (codeListItems && codeListItems.length > 0) {
|
|
25846
|
+
codeListItems.forEach((item) => {
|
|
25847
|
+
result.push({
|
|
25848
|
+
...item.data,
|
|
25849
|
+
psappportletid: item.value,
|
|
25850
|
+
psappportletname: item.text
|
|
25851
|
+
});
|
|
25852
|
+
});
|
|
25853
|
+
}
|
|
25854
|
+
} else {
|
|
25855
|
+
const res = await app.deService.exec(
|
|
25856
|
+
"psappportlet",
|
|
25857
|
+
"fetchdefault",
|
|
25858
|
+
this.context,
|
|
25859
|
+
{
|
|
25860
|
+
size: 1e3,
|
|
25861
|
+
n_pssysappid_eq: app.model.codeName,
|
|
25862
|
+
n_dynamodelflag_noteq: 0
|
|
25863
|
+
}
|
|
25864
|
+
);
|
|
25865
|
+
if (res && ((_a = res.data) == null ? void 0 : _a.length) > 0) {
|
|
25866
|
+
res.data.forEach((item) => {
|
|
25867
|
+
result.push({
|
|
25868
|
+
psappportletid: item.psappportletid,
|
|
25869
|
+
codename: item.codename,
|
|
25870
|
+
psappportletname: item.psappportletname,
|
|
25871
|
+
groupcodename: "Ungroup",
|
|
25872
|
+
groupname: "\u672A\u5206\u7C7B"
|
|
25873
|
+
});
|
|
25874
|
+
});
|
|
25653
25875
|
}
|
|
25654
|
-
);
|
|
25655
|
-
if (res && ((_a = res.data) == null ? void 0 : _a.length) > 0) {
|
|
25656
|
-
return res.data;
|
|
25657
25876
|
}
|
|
25658
|
-
return
|
|
25877
|
+
return result;
|
|
25659
25878
|
}
|
|
25660
25879
|
/**
|
|
25661
25880
|
* 通过指定标识加载门户部件
|
|
@@ -25819,7 +26038,7 @@ var CustomDashboardController = class {
|
|
|
25819
26038
|
case "data":
|
|
25820
26039
|
return "".concat(base, "_").concat(this.ownerType, "_").concat(this.ownerId);
|
|
25821
26040
|
case "dynamic":
|
|
25822
|
-
return "".concat(
|
|
26041
|
+
return "".concat(this.context.srfdynadashboardid);
|
|
25823
26042
|
default:
|
|
25824
26043
|
return base;
|
|
25825
26044
|
}
|
|
@@ -31564,6 +31783,14 @@ var GridController = class extends MDControlController {
|
|
|
31564
31783
|
* @type {boolean}
|
|
31565
31784
|
*/
|
|
31566
31785
|
this.addSchemaColumn = false;
|
|
31786
|
+
/**
|
|
31787
|
+
* jsonschema参数
|
|
31788
|
+
*
|
|
31789
|
+
* @author zhanghengfeng
|
|
31790
|
+
* @date 2024-07-05 15:07:13
|
|
31791
|
+
* @type {IParams}
|
|
31792
|
+
*/
|
|
31793
|
+
this.jsonSchemaParams = {};
|
|
31567
31794
|
/**
|
|
31568
31795
|
* 是否显示百分比
|
|
31569
31796
|
*
|
|
@@ -31733,6 +31960,14 @@ var GridController = class extends MDControlController {
|
|
|
31733
31960
|
*/
|
|
31734
31961
|
async onCreated() {
|
|
31735
31962
|
this.addSchemaColumn = this.controlParams.enablejsonschema === "true";
|
|
31963
|
+
const jsonSchemaParams = JSON.parse(
|
|
31964
|
+
this.controlParams.jsonschemaparams || "{}"
|
|
31965
|
+
);
|
|
31966
|
+
this.jsonSchemaParams = convertNavData(
|
|
31967
|
+
jsonSchemaParams,
|
|
31968
|
+
this.params,
|
|
31969
|
+
this.context
|
|
31970
|
+
);
|
|
31736
31971
|
this.showPercent = this.controlParams.showpercent === "true";
|
|
31737
31972
|
await this.initByEntitySchema();
|
|
31738
31973
|
await super.onCreated();
|
|
@@ -31789,7 +32024,8 @@ var GridController = class extends MDControlController {
|
|
|
31789
32024
|
}
|
|
31790
32025
|
const json = await getEntitySchema(
|
|
31791
32026
|
this.model.appDataEntityId,
|
|
31792
|
-
this.context
|
|
32027
|
+
this.context,
|
|
32028
|
+
this.jsonSchemaParams
|
|
31793
32029
|
);
|
|
31794
32030
|
if (!json) {
|
|
31795
32031
|
return;
|
|
@@ -32988,7 +33224,11 @@ var GridController = class extends MDControlController {
|
|
|
32988
33224
|
const totalResult = {};
|
|
32989
33225
|
Object.values(this.fieldColumns).forEach((column) => {
|
|
32990
33226
|
const fieldName = column.model.id;
|
|
32991
|
-
const result = this.state.items.map((item) => item[fieldName]).reduce((a, b) =>
|
|
33227
|
+
const result = this.state.items.map((item) => item[fieldName]).reduce((a, b) => {
|
|
33228
|
+
const aValue = Number(a) || 0;
|
|
33229
|
+
const bValue = Number(b) || 0;
|
|
33230
|
+
return plus2(aValue, bValue);
|
|
33231
|
+
}, 0);
|
|
32992
33232
|
if (result) {
|
|
32993
33233
|
totalResult[fieldName] = result;
|
|
32994
33234
|
}
|
|
@@ -33003,7 +33243,7 @@ import {
|
|
|
33003
33243
|
ModelError as ModelError29,
|
|
33004
33244
|
plus as plus3,
|
|
33005
33245
|
base64ToStr,
|
|
33006
|
-
|
|
33246
|
+
isEmoji
|
|
33007
33247
|
} from "@ibiz-template/core";
|
|
33008
33248
|
import dayjs6 from "dayjs";
|
|
33009
33249
|
import { debounce as debounce2 } from "lodash-es";
|
|
@@ -33224,9 +33464,12 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
33224
33464
|
* @return {*} {(string | undefined)}
|
|
33225
33465
|
*/
|
|
33226
33466
|
calcFieldAgg(items) {
|
|
33227
|
-
const { aggField, aggMode, aggValueFormat, unitName } = this.model;
|
|
33467
|
+
const { aggField, aggMode, aggValueFormat, unitName, appCodeListId } = this.model;
|
|
33228
33468
|
const fieldName = aggField || this.model.id;
|
|
33229
33469
|
let aggValue;
|
|
33470
|
+
if (appCodeListId) {
|
|
33471
|
+
return;
|
|
33472
|
+
}
|
|
33230
33473
|
if (this.grid.model.aggMode === "ALL") {
|
|
33231
33474
|
if (!this.grid.state.remoteAggResult) {
|
|
33232
33475
|
return;
|
|
@@ -33240,10 +33483,18 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
33240
33483
|
if (this.grid.model.aggMode === "PAGE") {
|
|
33241
33484
|
switch (aggMode) {
|
|
33242
33485
|
case "SUM":
|
|
33243
|
-
aggValue = items.map((item) => item[fieldName]).reduce((a, b) =>
|
|
33486
|
+
aggValue = items.map((item) => item[fieldName]).reduce((a, b) => {
|
|
33487
|
+
const aValue = Number(a) || 0;
|
|
33488
|
+
const bValue = Number(b) || 0;
|
|
33489
|
+
return plus3(aValue, bValue);
|
|
33490
|
+
}, 0);
|
|
33244
33491
|
break;
|
|
33245
33492
|
case "AVG":
|
|
33246
|
-
aggValue = items.map((item) => item[fieldName]).reduce((a, b) =>
|
|
33493
|
+
aggValue = items.map((item) => item[fieldName]).reduce((a, b) => {
|
|
33494
|
+
const aValue = Number(a) || 0;
|
|
33495
|
+
const bValue = Number(b) || 0;
|
|
33496
|
+
return plus3(aValue, bValue);
|
|
33497
|
+
}, 0) / items.length;
|
|
33247
33498
|
break;
|
|
33248
33499
|
case "MAX":
|
|
33249
33500
|
aggValue = Math.max(
|
|
@@ -33301,7 +33552,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
33301
33552
|
return ValueExUtil.toText(this.model, value);
|
|
33302
33553
|
}
|
|
33303
33554
|
const strVal = "".concat(isNilOrEmpty8(value) ? "" : value);
|
|
33304
|
-
if (
|
|
33555
|
+
if (isEmoji(strVal)) {
|
|
33305
33556
|
return base64ToStr(strVal);
|
|
33306
33557
|
}
|
|
33307
33558
|
if (!this.valueFormat) {
|
|
@@ -35582,6 +35833,14 @@ var SearchBarController = class extends ControlController {
|
|
|
35582
35833
|
* @date 2024-01-05 10:10:37
|
|
35583
35834
|
*/
|
|
35584
35835
|
this.addSchemaFilters = false;
|
|
35836
|
+
/**
|
|
35837
|
+
* jsonschema参数
|
|
35838
|
+
*
|
|
35839
|
+
* @author zhanghengfeng
|
|
35840
|
+
* @date 2024-07-05 15:07:47
|
|
35841
|
+
* @type {IParams}
|
|
35842
|
+
*/
|
|
35843
|
+
this.jsonSchemaParams = {};
|
|
35585
35844
|
/**
|
|
35586
35845
|
* 是否启用存储
|
|
35587
35846
|
*
|
|
@@ -35643,6 +35902,14 @@ var SearchBarController = class extends ControlController {
|
|
|
35643
35902
|
}
|
|
35644
35903
|
async onCreated() {
|
|
35645
35904
|
this.addSchemaFilters = this.controlParams.enablejsonschema === "true";
|
|
35905
|
+
const jsonSchemaParams = JSON.parse(
|
|
35906
|
+
this.controlParams.jsonschemaparams || "{}"
|
|
35907
|
+
);
|
|
35908
|
+
this.jsonSchemaParams = convertNavData(
|
|
35909
|
+
jsonSchemaParams,
|
|
35910
|
+
this.params,
|
|
35911
|
+
this.context
|
|
35912
|
+
);
|
|
35646
35913
|
this.enableStorage = this.controlParams.storage === "true";
|
|
35647
35914
|
await this.initByEntitySchema();
|
|
35648
35915
|
await super.onCreated();
|
|
@@ -35678,7 +35945,8 @@ var SearchBarController = class extends ControlController {
|
|
|
35678
35945
|
}
|
|
35679
35946
|
const json = await getEntitySchema(
|
|
35680
35947
|
this.model.appDataEntityId,
|
|
35681
|
-
this.context
|
|
35948
|
+
this.context,
|
|
35949
|
+
this.jsonSchemaParams
|
|
35682
35950
|
);
|
|
35683
35951
|
if (!json) {
|
|
35684
35952
|
return;
|
|
@@ -40968,37 +41236,6 @@ var ReportPanelController = class extends ControlController {
|
|
|
40968
41236
|
});
|
|
40969
41237
|
}
|
|
40970
41238
|
}
|
|
40971
|
-
/**
|
|
40972
|
-
* 打开设计界面
|
|
40973
|
-
*
|
|
40974
|
-
* @author tony001
|
|
40975
|
-
* @date 2024-06-18 16:06:46
|
|
40976
|
-
* @return {*} {Promise<IModalData>}
|
|
40977
|
-
*/
|
|
40978
|
-
async openReportDesignPage() {
|
|
40979
|
-
if (this.state.reportType && this.isBIReport) {
|
|
40980
|
-
const modal = ibiz.overlay.createModal(
|
|
40981
|
-
"iBizBIReportDesign",
|
|
40982
|
-
{
|
|
40983
|
-
dismiss: (_data) => modal.dismiss(_data),
|
|
40984
|
-
context: this.context,
|
|
40985
|
-
viewParams: this.params,
|
|
40986
|
-
config: await ibiz.util.biReport.translateReportPanelToConfig(
|
|
40987
|
-
this.model
|
|
40988
|
-
)
|
|
40989
|
-
},
|
|
40990
|
-
{
|
|
40991
|
-
width: "90%",
|
|
40992
|
-
height: "90%",
|
|
40993
|
-
footerHide: true
|
|
40994
|
-
}
|
|
40995
|
-
);
|
|
40996
|
-
modal.present();
|
|
40997
|
-
const result = await modal.onWillDismiss();
|
|
40998
|
-
return result;
|
|
40999
|
-
}
|
|
41000
|
-
return { ok: false, data: [] };
|
|
41001
|
-
}
|
|
41002
41239
|
};
|
|
41003
41240
|
|
|
41004
41241
|
// src/controller/control/gantt/gantt.controller.ts
|