@ibiz-template/runtime 0.1.13 → 0.1.14
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 +10 -7
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/common/editor/editor.controller.d.ts +1 -1
- package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
- package/out/controller/common/editor/editor.controller.js +3 -1
- package/out/service/service/entity/method/method.js +4 -4
- package/out/ui-action/provider/backend-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/backend-ui-action-provider.js +3 -2
- package/package.json +3 -3
- package/src/controller/common/editor/editor.controller.ts +5 -2
- package/src/service/service/entity/method/method.ts +4 -4
- package/src/ui-action/provider/backend-ui-action-provider.ts +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -11119,16 +11119,16 @@ var Method = class {
|
|
|
11119
11119
|
let res = null;
|
|
11120
11120
|
switch (requestMethod) {
|
|
11121
11121
|
case "POST":
|
|
11122
|
-
res = await this.app.net.post("".concat(path2, "/").concat(methodName), data);
|
|
11122
|
+
res = await this.app.net.post("".concat(path2, "/").concat(methodName), data, params);
|
|
11123
11123
|
break;
|
|
11124
11124
|
case "GET":
|
|
11125
|
-
res = await this.app.net.get("".concat(path2, "/").concat(methodName),
|
|
11125
|
+
res = await this.app.net.get("".concat(path2, "/").concat(methodName), data);
|
|
11126
11126
|
break;
|
|
11127
11127
|
case "PUT":
|
|
11128
|
-
res = await this.app.net.put("".concat(path2, "/").concat(methodName), data);
|
|
11128
|
+
res = await this.app.net.put("".concat(path2, "/").concat(methodName), data, params);
|
|
11129
11129
|
break;
|
|
11130
11130
|
case "DELETE":
|
|
11131
|
-
res = await this.app.net.delete("".concat(path2, "/").concat(methodName),
|
|
11131
|
+
res = await this.app.net.delete("".concat(path2, "/").concat(methodName), data);
|
|
11132
11132
|
break;
|
|
11133
11133
|
default:
|
|
11134
11134
|
if (requestMethod) {
|
|
@@ -15162,11 +15162,13 @@ var EditorController = class {
|
|
|
15162
15162
|
if (navigateContexts && data) {
|
|
15163
15163
|
selfContext = convertNavData(navigateContexts, context, params, data);
|
|
15164
15164
|
}
|
|
15165
|
+
const _context = Object.assign(context.clone(), selfContext);
|
|
15165
15166
|
let selfParams = {};
|
|
15166
15167
|
if (navigateParams && data) {
|
|
15167
15168
|
selfParams = convertNavData(navigateParams, context, params, data);
|
|
15168
15169
|
}
|
|
15169
|
-
|
|
15170
|
+
const _params = { ...params, ...selfParams };
|
|
15171
|
+
return { context: _context, params: _params };
|
|
15170
15172
|
}
|
|
15171
15173
|
/**
|
|
15172
15174
|
* 字符串转对象、数组对象
|
|
@@ -18254,6 +18256,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
18254
18256
|
data,
|
|
18255
18257
|
params
|
|
18256
18258
|
);
|
|
18259
|
+
const tempParams = { ...params, ...resultParams };
|
|
18257
18260
|
const frontPSAppView = action.frontAppViewId;
|
|
18258
18261
|
if (frontPSAppView) {
|
|
18259
18262
|
const res2 = await ibiz.commands.execute(
|
|
@@ -18289,7 +18292,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
18289
18292
|
methodName,
|
|
18290
18293
|
resultContext,
|
|
18291
18294
|
isMultiData ? _data : _data[0],
|
|
18292
|
-
|
|
18295
|
+
tempParams
|
|
18293
18296
|
);
|
|
18294
18297
|
if (res.ok && action.successMsg) {
|
|
18295
18298
|
ibiz.message.success(action.successMsg);
|
|
@@ -18297,7 +18300,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
18297
18300
|
Object.assign(actionResult, {
|
|
18298
18301
|
data: isArray2(res.data) ? res.data : [res.data],
|
|
18299
18302
|
nextContext: resultContext,
|
|
18300
|
-
nextParams:
|
|
18303
|
+
nextParams: tempParams
|
|
18301
18304
|
});
|
|
18302
18305
|
return actionResult;
|
|
18303
18306
|
}
|