@ibiz-template/runtime 0.6.5 → 0.6.8
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 +177 -29
- package/dist/index.system.min.js +1 -1
- package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +3 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +3 -0
- package/out/controller/control/form/form-detail/form-button/form-button.controller.d.ts +36 -0
- package/out/controller/control/form/form-detail/form-button/form-button.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-button/form-button.controller.js +66 -0
- package/out/controller/control/report-panel/report-panel.service.d.ts.map +1 -1
- package/out/controller/control/report-panel/report-panel.service.js +1 -2
- package/out/controller/control/toolbar/toolbar.controllerr.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controllerr.js +2 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.js +1 -1
- package/out/controller/utils/data-file-util/data-file-util.js +2 -2
- package/out/engine/md-view.engine.d.ts +7 -0
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +9 -0
- package/out/engine/view-base.engine.d.ts +7 -0
- package/out/engine/view-base.engine.d.ts.map +1 -1
- package/out/engine/view-base.engine.js +7 -0
- package/out/interface/engine/i-view.engine.d.ts +7 -0
- package/out/interface/engine/i-view.engine.d.ts.map +1 -1
- package/out/interface/provider/i-error-view.provider.d.ts +19 -0
- package/out/interface/provider/i-error-view.provider.d.ts.map +1 -0
- package/out/interface/provider/i-error-view.provider.js +1 -0
- package/out/interface/provider/index.d.ts +1 -0
- package/out/interface/provider/index.d.ts.map +1 -1
- package/out/model/utils/util.d.ts +12 -1
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +37 -0
- package/out/register/helper/error-view-register.d.ts +22 -0
- package/out/register/helper/error-view-register.d.ts.map +1 -0
- package/out/register/helper/error-view-register.js +32 -0
- package/out/register/helper/index.d.ts +1 -0
- package/out/register/helper/index.d.ts.map +1 -1
- package/out/register/helper/index.js +1 -0
- package/out/service/service/entity/de.service.js +3 -3
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +17 -12
- package/out/service/service/entity/method/method.d.ts +8 -1
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +10 -3
- package/out/service/service/file/file.service.js +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +6 -6
- package/package.json +4 -5
package/dist/index.esm.js
CHANGED
|
@@ -804,6 +804,33 @@ function getControlPanel(control) {
|
|
|
804
804
|
}
|
|
805
805
|
return layoutPanel;
|
|
806
806
|
}
|
|
807
|
+
function findAppDEMethod(appDataEntity, id) {
|
|
808
|
+
const models = appDataEntity.appDEMethods;
|
|
809
|
+
if (models && id) {
|
|
810
|
+
const model = findModelChild(models, id);
|
|
811
|
+
if (model) {
|
|
812
|
+
return model;
|
|
813
|
+
}
|
|
814
|
+
const model2 = models.find((item) => {
|
|
815
|
+
switch (item.methodType) {
|
|
816
|
+
case "DEACTION": {
|
|
817
|
+
const { actionTag } = item;
|
|
818
|
+
return (actionTag == null ? void 0 : actionTag.toLowerCase()) === id.toLowerCase();
|
|
819
|
+
}
|
|
820
|
+
case "FETCH": {
|
|
821
|
+
const { dataSetTag } = item;
|
|
822
|
+
return "fetch".concat(dataSetTag == null ? void 0 : dataSetTag.toLowerCase()) === id.toLowerCase();
|
|
823
|
+
}
|
|
824
|
+
default:
|
|
825
|
+
return false;
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
if (model2) {
|
|
829
|
+
return model2;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
return null;
|
|
833
|
+
}
|
|
807
834
|
|
|
808
835
|
// src/model/layout/layout.ts
|
|
809
836
|
import { isArray as isArray2, isObject, isString } from "lodash-es";
|
|
@@ -6074,6 +6101,24 @@ function getInternalMessageProvider(msg) {
|
|
|
6074
6101
|
}
|
|
6075
6102
|
}
|
|
6076
6103
|
|
|
6104
|
+
// src/register/helper/error-view-register.ts
|
|
6105
|
+
var ERROR_VIEW_PROVIDER_PREFIX = "ERROR_VIEW";
|
|
6106
|
+
function registerErrorViewProvider(key, callback) {
|
|
6107
|
+
ibiz.register.register("".concat(ERROR_VIEW_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
6108
|
+
}
|
|
6109
|
+
function getProvider16(key) {
|
|
6110
|
+
return ibiz.register.get(
|
|
6111
|
+
"".concat(ERROR_VIEW_PROVIDER_PREFIX, "_").concat(key)
|
|
6112
|
+
);
|
|
6113
|
+
}
|
|
6114
|
+
function getErrorViewProvider(code) {
|
|
6115
|
+
let provider;
|
|
6116
|
+
if (!provider) {
|
|
6117
|
+
provider = getProvider16(code);
|
|
6118
|
+
}
|
|
6119
|
+
return provider;
|
|
6120
|
+
}
|
|
6121
|
+
|
|
6077
6122
|
// src/service/utils/app-counter/app-counter.ts
|
|
6078
6123
|
import { IBizContext, RuntimeError as RuntimeError14 } from "@ibiz-template/core";
|
|
6079
6124
|
import { notNilEmpty as notNilEmpty5, QXEvent as QXEvent2 } from "qx-util";
|
|
@@ -7966,7 +8011,7 @@ var FileService = class {
|
|
|
7966
8011
|
*/
|
|
7967
8012
|
exportData(dataExport, fetchAction, context, params) {
|
|
7968
8013
|
const resPath = calcResPath(context, this.model);
|
|
7969
|
-
const exportUrl = "".concat(resPath, "/").concat(this.model.
|
|
8014
|
+
const exportUrl = "".concat(resPath, "/").concat(this.model.deapicodeName2, "/exportdata/").concat(fetchAction.toLowerCase(), "/?srfexporttag=").concat(dataExport.codeName);
|
|
7970
8015
|
return ibiz.net.request(exportUrl, {
|
|
7971
8016
|
method: "post",
|
|
7972
8017
|
data: params,
|
|
@@ -8496,7 +8541,7 @@ var DEService = class {
|
|
|
8496
8541
|
if (this.methodMap.has(cacheId)) {
|
|
8497
8542
|
return this.methodMap.get(cacheId);
|
|
8498
8543
|
}
|
|
8499
|
-
const model =
|
|
8544
|
+
const model = findAppDEMethod(this.model, id);
|
|
8500
8545
|
if (!model) {
|
|
8501
8546
|
throw new RuntimeModelError10(this.model, "\u672A\u627E\u5230\u670D\u52A1\u65B9\u6CD5: ".concat(id));
|
|
8502
8547
|
}
|
|
@@ -8649,7 +8694,7 @@ var DEService = class {
|
|
|
8649
8694
|
*/
|
|
8650
8695
|
calcSsePath(context, isHistories = false) {
|
|
8651
8696
|
const srfkey = context[this.model.codeName.toLowerCase()];
|
|
8652
|
-
const curPath = "/".concat(this.model.
|
|
8697
|
+
const curPath = "/".concat(this.model.deapicodeName2, "/ssechatcompletion").concat(isHistories ? "/histories" : "").concat(srfkey ? "/".concat(srfkey) : "");
|
|
8653
8698
|
const resPath = calcResPath(context, this.model);
|
|
8654
8699
|
return resPath + curPath;
|
|
8655
8700
|
}
|
|
@@ -9701,7 +9746,7 @@ var Method = class {
|
|
|
9701
9746
|
async request(path2, context, data, params, header) {
|
|
9702
9747
|
const { actionType, requestMethod } = this.method;
|
|
9703
9748
|
if (actionType === "REMOTE") {
|
|
9704
|
-
const methodName = this.method.
|
|
9749
|
+
const methodName = this.method.requestPath;
|
|
9705
9750
|
let res = null;
|
|
9706
9751
|
switch (requestMethod) {
|
|
9707
9752
|
case "POST":
|
|
@@ -9747,8 +9792,15 @@ var Method = class {
|
|
|
9747
9792
|
}
|
|
9748
9793
|
throw new RuntimeModelError11(this.method, "\u672A\u652F\u6301\u7684\u884C\u4E3A\u7C7B\u578B[".concat(actionType, "]"));
|
|
9749
9794
|
}
|
|
9795
|
+
/**
|
|
9796
|
+
* 合并请求路径
|
|
9797
|
+
* @author lionlau
|
|
9798
|
+
* @param path
|
|
9799
|
+
* @param methodName 方法名,以 / 开始
|
|
9800
|
+
* @returns
|
|
9801
|
+
*/
|
|
9750
9802
|
mergeRequestPath(path2, methodName) {
|
|
9751
|
-
return "".concat(path2
|
|
9803
|
+
return methodName ? "".concat(path2).concat(methodName) : "".concat(path2);
|
|
9752
9804
|
}
|
|
9753
9805
|
/**
|
|
9754
9806
|
* 根据上下文计算当前请求路径
|
|
@@ -9760,7 +9812,7 @@ var Method = class {
|
|
|
9760
9812
|
* @return {*} {string} 拼接结果说明: /祖父实体/祖父实体主键/爷爷实体/爷爷实体主键/父实体/父实体主键/当前实体
|
|
9761
9813
|
*/
|
|
9762
9814
|
calcPath(context) {
|
|
9763
|
-
const curPath = "/".concat(this.entity.
|
|
9815
|
+
const curPath = "/".concat(this.entity.deapicodeName2);
|
|
9764
9816
|
const resPath = calcResPath(context, this.entity);
|
|
9765
9817
|
return resPath + curPath;
|
|
9766
9818
|
}
|
|
@@ -11011,35 +11063,36 @@ var DEActionMethod = class extends Method {
|
|
|
11011
11063
|
if (data && !this.isLocalMode) {
|
|
11012
11064
|
data = await this.inputHandle(context, data);
|
|
11013
11065
|
}
|
|
11014
|
-
|
|
11015
|
-
|
|
11066
|
+
const methodTag = this.method.actionTag ? this.method.actionTag.toUpperCase() : this.method.codeName.toUpperCase();
|
|
11067
|
+
switch (methodTag) {
|
|
11068
|
+
case "CREATE":
|
|
11016
11069
|
result = await this.create(context, data, params || {}, header);
|
|
11017
11070
|
break;
|
|
11018
|
-
case "
|
|
11071
|
+
case "GET":
|
|
11019
11072
|
result = await this.get(context, params, header);
|
|
11020
11073
|
break;
|
|
11021
|
-
case "
|
|
11074
|
+
case "GETDRAFT":
|
|
11022
11075
|
result = await this.getDraft(context, params, header);
|
|
11023
11076
|
break;
|
|
11024
|
-
case "
|
|
11077
|
+
case "REMOVE":
|
|
11025
11078
|
result = await this.remove(context, params);
|
|
11026
11079
|
break;
|
|
11027
|
-
case "
|
|
11080
|
+
case "UPDATE":
|
|
11028
11081
|
result = await this.update(context, data, params, header);
|
|
11029
11082
|
break;
|
|
11030
|
-
case "
|
|
11083
|
+
case "CREATETEMP":
|
|
11031
11084
|
result = await this.createTemp(context, data);
|
|
11032
11085
|
break;
|
|
11033
|
-
case "
|
|
11086
|
+
case "GETTEMP":
|
|
11034
11087
|
result = await this.getTemp(context, data);
|
|
11035
11088
|
break;
|
|
11036
|
-
case "
|
|
11089
|
+
case "GETDRAFTTEMP":
|
|
11037
11090
|
result = await this.getDraftTemp(context, params);
|
|
11038
11091
|
break;
|
|
11039
|
-
case "
|
|
11092
|
+
case "REMOVETEMP":
|
|
11040
11093
|
result = await this.removeTemp(context, data);
|
|
11041
11094
|
break;
|
|
11042
|
-
case "
|
|
11095
|
+
case "UPDATETEMP":
|
|
11043
11096
|
result = await this.updateTemp(context, data);
|
|
11044
11097
|
break;
|
|
11045
11098
|
default: {
|
|
@@ -11173,7 +11226,11 @@ var DEActionMethod = class extends Method {
|
|
|
11173
11226
|
return this.getDraftTemp(context, params);
|
|
11174
11227
|
}
|
|
11175
11228
|
const path2 = this.calcPath(context);
|
|
11176
|
-
const res = await this.app.net.get(
|
|
11229
|
+
const res = await this.app.net.get(
|
|
11230
|
+
this.mergeRequestPath(path2, this.method.requestPath),
|
|
11231
|
+
params,
|
|
11232
|
+
header
|
|
11233
|
+
);
|
|
11177
11234
|
res.data = await this.result.handle(context, res.data);
|
|
11178
11235
|
return res;
|
|
11179
11236
|
}
|
|
@@ -12850,6 +12907,9 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
12850
12907
|
*/
|
|
12851
12908
|
async exec(appViewId, _context, params = {}, opts = {}) {
|
|
12852
12909
|
const context = clone17(_context);
|
|
12910
|
+
if (context.srfsimple !== null) {
|
|
12911
|
+
context.srfsimple = void 0;
|
|
12912
|
+
}
|
|
12853
12913
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
12854
12914
|
if (!appView) {
|
|
12855
12915
|
throw new RuntimeError25("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
@@ -14383,7 +14443,7 @@ function listenAsyncAction(id) {
|
|
|
14383
14443
|
async function asyncImportData(file, appDataEntity, dataImport, context) {
|
|
14384
14444
|
const data = new FormData();
|
|
14385
14445
|
data.append("file", file);
|
|
14386
|
-
let url = "/".concat(appDataEntity.
|
|
14446
|
+
let url = "/".concat(appDataEntity.deapicodeName2, "/").concat(asyncImportUrl);
|
|
14387
14447
|
if (dataImport == null ? void 0 : dataImport.codeName) {
|
|
14388
14448
|
url += "?srfimporttag=".concat(dataImport.codeName);
|
|
14389
14449
|
}
|
|
@@ -14405,7 +14465,7 @@ async function asyncImportData(file, appDataEntity, dataImport, context) {
|
|
|
14405
14465
|
async function importData(file, appDataEntity, dataImport, context) {
|
|
14406
14466
|
const data = new FormData();
|
|
14407
14467
|
data.append("file", file);
|
|
14408
|
-
let url = "/".concat(appDataEntity.
|
|
14468
|
+
let url = "/".concat(appDataEntity.deapicodeName2, "/").concat(importUrl);
|
|
14409
14469
|
if (dataImport == null ? void 0 : dataImport.codeName) {
|
|
14410
14470
|
url += "?srfimporttag=".concat(dataImport.codeName);
|
|
14411
14471
|
}
|
|
@@ -15139,6 +15199,9 @@ var ViewController = class extends BaseController {
|
|
|
15139
15199
|
params = convertNavData(navParams, this.params, this.context);
|
|
15140
15200
|
}
|
|
15141
15201
|
Object.assign(this.params, params);
|
|
15202
|
+
this.engines.forEach((engine2) => {
|
|
15203
|
+
engine2.handleContextParams();
|
|
15204
|
+
});
|
|
15142
15205
|
if (this.state.isMounted) {
|
|
15143
15206
|
this.callUIAction("Refresh" /* REFRESH */);
|
|
15144
15207
|
}
|
|
@@ -20192,7 +20255,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20192
20255
|
* @return {*}
|
|
20193
20256
|
*/
|
|
20194
20257
|
async executePrint(action, args) {
|
|
20195
|
-
var _a, _b
|
|
20258
|
+
var _a, _b;
|
|
20196
20259
|
const { resultContext, resultParams } = await this.handleParams(
|
|
20197
20260
|
action,
|
|
20198
20261
|
args.context,
|
|
@@ -20209,7 +20272,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20209
20272
|
if (appDEPrint) {
|
|
20210
20273
|
let requestUrl = "";
|
|
20211
20274
|
if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
|
|
20212
|
-
requestUrl += "/".concat(
|
|
20275
|
+
requestUrl += "/".concat(appDataEntity.deapicodeName2, "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
|
|
20213
20276
|
} else {
|
|
20214
20277
|
throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
|
|
20215
20278
|
}
|
|
@@ -20224,7 +20287,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20224
20287
|
if (res.ok) {
|
|
20225
20288
|
if (resultParams && resultParams.srfcontenttype) {
|
|
20226
20289
|
const disposition = res.headers["content-disposition"];
|
|
20227
|
-
const filename = (
|
|
20290
|
+
const filename = (_b = disposition.split(";").find((str) => str.indexOf("filename=") !== -1)) == null ? void 0 : _b.slice(9);
|
|
20228
20291
|
const href = URL.createObjectURL(res.data);
|
|
20229
20292
|
const a = document.createElement("a");
|
|
20230
20293
|
a.href = href;
|
|
@@ -20302,7 +20365,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20302
20365
|
* @return {*}
|
|
20303
20366
|
*/
|
|
20304
20367
|
async executeDataExport(action, args) {
|
|
20305
|
-
var _a
|
|
20368
|
+
var _a;
|
|
20306
20369
|
const { resultParams } = await this.handleParams(
|
|
20307
20370
|
action,
|
|
20308
20371
|
args.context,
|
|
@@ -20317,7 +20380,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20317
20380
|
return dataExport.id === action.appDEDataExportId;
|
|
20318
20381
|
});
|
|
20319
20382
|
if (appDEDataExport) {
|
|
20320
|
-
const url = "/".concat(
|
|
20383
|
+
const url = "/".concat(appDataEntity.deapicodeName2, "/exportdata/fetchdefault?srfexporttag=").concat(appDEDataExport.codeName);
|
|
20321
20384
|
const params = {
|
|
20322
20385
|
page: 0,
|
|
20323
20386
|
size: appDEDataExport.maxRowCount ? appDEDataExport.maxRowCount : 1e3,
|
|
@@ -20479,7 +20542,7 @@ var ToolbarController = class extends ControlController {
|
|
|
20479
20542
|
for (let i = 0; i < item.controlLogics.length; i++) {
|
|
20480
20543
|
const controlLogic = item.controlLogics[i];
|
|
20481
20544
|
const itemState = this.state.buttonsState[item.id];
|
|
20482
|
-
if (controlLogic.itemName === item.id && controlLogic.triggerType === "ITEMVISIBLE") {
|
|
20545
|
+
if (controlLogic.itemName === item.id && controlLogic.triggerType === "ITEMVISIBLE" && itemState) {
|
|
20483
20546
|
itemState.visible = false;
|
|
20484
20547
|
break;
|
|
20485
20548
|
}
|
|
@@ -23359,10 +23422,75 @@ var FormButtonState = class extends FormDetailState {
|
|
|
23359
23422
|
|
|
23360
23423
|
// src/controller/control/form/form-detail/form-button/form-button.controller.ts
|
|
23361
23424
|
var FormButtonController = class extends FormDetailController {
|
|
23425
|
+
constructor() {
|
|
23426
|
+
super(...arguments);
|
|
23427
|
+
/**
|
|
23428
|
+
*界面行为状态
|
|
23429
|
+
*
|
|
23430
|
+
* @author zzq
|
|
23431
|
+
* @date 2024-03-11 15:09:43
|
|
23432
|
+
*/
|
|
23433
|
+
this.actionState = null;
|
|
23434
|
+
}
|
|
23362
23435
|
createState() {
|
|
23363
23436
|
var _a;
|
|
23364
23437
|
return new FormButtonState((_a = this.parent) == null ? void 0 : _a.state);
|
|
23365
23438
|
}
|
|
23439
|
+
async onInit() {
|
|
23440
|
+
super.onInit();
|
|
23441
|
+
await this.initActionStates();
|
|
23442
|
+
}
|
|
23443
|
+
/**
|
|
23444
|
+
* 初始化界面行为按钮的状态
|
|
23445
|
+
*
|
|
23446
|
+
* @author zzq
|
|
23447
|
+
* @date 2024-03-11 15:09:43
|
|
23448
|
+
*/
|
|
23449
|
+
async initActionStates() {
|
|
23450
|
+
const actionid = this.model.uiactionId;
|
|
23451
|
+
if (actionid) {
|
|
23452
|
+
this.actionState = new UIActionButtonState(
|
|
23453
|
+
this.model.id,
|
|
23454
|
+
this.form.context.srfappid,
|
|
23455
|
+
actionid
|
|
23456
|
+
);
|
|
23457
|
+
}
|
|
23458
|
+
}
|
|
23459
|
+
/**
|
|
23460
|
+
* 表单状态变更通知
|
|
23461
|
+
*
|
|
23462
|
+
* @author zzq
|
|
23463
|
+
* @date 2024-03-11 15:09:43
|
|
23464
|
+
*/
|
|
23465
|
+
async formStateNotify(_state) {
|
|
23466
|
+
if (this.actionState) {
|
|
23467
|
+
const deCodeName = calcDeCodeNameById(this.form.model.appDataEntityId);
|
|
23468
|
+
await this.actionState.update(this.data, deCodeName);
|
|
23469
|
+
}
|
|
23470
|
+
await super.formStateNotify(_state);
|
|
23471
|
+
}
|
|
23472
|
+
/**
|
|
23473
|
+
* 计算项的禁用状态
|
|
23474
|
+
*
|
|
23475
|
+
* @param {IData} data
|
|
23476
|
+
*/
|
|
23477
|
+
calcDetailDisabled(data) {
|
|
23478
|
+
super.calcDetailDisabled(data);
|
|
23479
|
+
if (this.actionState) {
|
|
23480
|
+
this.state.disabled = !!(this.state.disabled || this.actionState.disabled);
|
|
23481
|
+
}
|
|
23482
|
+
}
|
|
23483
|
+
/**
|
|
23484
|
+
* 计算项的显示状态
|
|
23485
|
+
*
|
|
23486
|
+
* @param {IData} data
|
|
23487
|
+
*/
|
|
23488
|
+
calcDetailVisible(data) {
|
|
23489
|
+
super.calcDetailVisible(data);
|
|
23490
|
+
if (this.actionState) {
|
|
23491
|
+
this.state.visible = !!(this.state.visible && this.actionState.visible);
|
|
23492
|
+
}
|
|
23493
|
+
}
|
|
23366
23494
|
/**
|
|
23367
23495
|
* 按钮点击处理回调
|
|
23368
23496
|
*
|
|
@@ -31060,7 +31188,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
31060
31188
|
* @memberof WizardPanelController
|
|
31061
31189
|
*/
|
|
31062
31190
|
async onNextClick() {
|
|
31063
|
-
const data = await this.activeFormController.save();
|
|
31191
|
+
const data = await this.activeFormController.save({ silent: true });
|
|
31064
31192
|
let nextTag;
|
|
31065
31193
|
if (data.srfnextform) {
|
|
31066
31194
|
const wizardForm = this.getWizardFormByTag(data.srfnextform);
|
|
@@ -33527,12 +33655,11 @@ var ReportPanelService = class extends ControlService {
|
|
|
33527
33655
|
* @returns {*} {Promise<IHttpResponse>}
|
|
33528
33656
|
*/
|
|
33529
33657
|
async fetch(context, params = {}) {
|
|
33530
|
-
var _a;
|
|
33531
33658
|
this.dataEntity = await ibiz.hub.getAppDataEntity(
|
|
33532
33659
|
this.model.appDataEntityId,
|
|
33533
33660
|
this.model.appId
|
|
33534
33661
|
);
|
|
33535
|
-
const url = "".concat(
|
|
33662
|
+
const url = "".concat(this.dataEntity.deapicodeName2, "/report?srfreporttag=").concat(this.model.codeName);
|
|
33536
33663
|
let res = await ibiz.net.request(url, {
|
|
33537
33664
|
method: "post",
|
|
33538
33665
|
data: params
|
|
@@ -35350,6 +35477,14 @@ var ViewEngineBase = class {
|
|
|
35350
35477
|
*/
|
|
35351
35478
|
init() {
|
|
35352
35479
|
}
|
|
35480
|
+
/**
|
|
35481
|
+
* 重新计算上下文,主要用于视图控制器再算上下文后,每个视图控制器可自身根据变动重新计算
|
|
35482
|
+
* @author zpc
|
|
35483
|
+
* @date 2024-03-12 13:50:07
|
|
35484
|
+
* @return {*} {Promise<void>}
|
|
35485
|
+
*/
|
|
35486
|
+
handleContextParams() {
|
|
35487
|
+
}
|
|
35353
35488
|
async onCreated() {
|
|
35354
35489
|
const { childNames, modal } = this.view;
|
|
35355
35490
|
modal.hooks.shouldDismiss.tapPromise(async (context) => {
|
|
@@ -35654,6 +35789,15 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
35654
35789
|
this.load();
|
|
35655
35790
|
}
|
|
35656
35791
|
}
|
|
35792
|
+
}
|
|
35793
|
+
/**
|
|
35794
|
+
* 重新计算上下文,主要用于视图控制器再算上下文后,每个视图控制器可自身根据变动重新计算
|
|
35795
|
+
* @author zpc
|
|
35796
|
+
* @date 2024-03-12 13:52:06
|
|
35797
|
+
* @return {*} {Promise<void>}
|
|
35798
|
+
*/
|
|
35799
|
+
handleContextParams() {
|
|
35800
|
+
super.handleContextParams();
|
|
35657
35801
|
if (this.view.context.srfsimple == null) {
|
|
35658
35802
|
this.view.context.srfsimple = true;
|
|
35659
35803
|
}
|
|
@@ -37278,6 +37422,7 @@ export {
|
|
|
37278
37422
|
DefaultErrorHandler,
|
|
37279
37423
|
DynamicCodeListCache,
|
|
37280
37424
|
EDITOR_PROVIDER_PREFIX,
|
|
37425
|
+
ERROR_VIEW_PROVIDER_PREFIX,
|
|
37281
37426
|
EditFormController,
|
|
37282
37427
|
EditFormService,
|
|
37283
37428
|
EditorController,
|
|
@@ -37473,6 +37618,7 @@ export {
|
|
|
37473
37618
|
fieldValueToBoolean,
|
|
37474
37619
|
filterFieldLogics,
|
|
37475
37620
|
filterValueRules,
|
|
37621
|
+
findAppDEMethod,
|
|
37476
37622
|
findChildFormDetails,
|
|
37477
37623
|
findDELogic,
|
|
37478
37624
|
findEditItem,
|
|
@@ -37498,6 +37644,7 @@ export {
|
|
|
37498
37644
|
getDefaultValue,
|
|
37499
37645
|
getEditorProvider,
|
|
37500
37646
|
getEntitySchema,
|
|
37647
|
+
getErrorViewProvider,
|
|
37501
37648
|
getFormDetailProvider,
|
|
37502
37649
|
getGridColumnProvider,
|
|
37503
37650
|
getInternalMessageProvider,
|
|
@@ -37544,6 +37691,7 @@ export {
|
|
|
37544
37691
|
registerControlProvider,
|
|
37545
37692
|
registerDEMethodProvider,
|
|
37546
37693
|
registerEditorProvider,
|
|
37694
|
+
registerErrorViewProvider,
|
|
37547
37695
|
registerFormDetailProvider,
|
|
37548
37696
|
registerGridColumnProvider,
|
|
37549
37697
|
registerInternalMessageProvider,
|