@ibiz-template/runtime 0.7.22 → 0.7.24-alpha.0

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 CHANGED
@@ -10145,6 +10145,12 @@ var DEActionMethod = class extends Method {
10145
10145
  path2 = "".concat(path2, "/").concat(srfkey);
10146
10146
  }
10147
10147
  const res = await this.request(path2, context, data, params, header);
10148
+ if (!res.data) {
10149
+ ibiz.log.error(
10150
+ ibiz.i18n.t("runtime.deAction.responseDataError"),
10151
+ res
10152
+ );
10153
+ }
10148
10154
  if (!(params && params.srfupdateitem)) {
10149
10155
  res.data = await this.result.handle(context, res.data);
10150
10156
  }
@@ -16208,7 +16214,7 @@ var UIActionButtonState = class {
16208
16214
  this.permitted = await app.authority.calcByNoDataAccessAction(
16209
16215
  this.dataAccessAction,
16210
16216
  context,
16211
- appDeId
16217
+ appDeId || this.appDeName
16212
16218
  );
16213
16219
  return;
16214
16220
  }
@@ -16228,7 +16234,7 @@ var UIActionButtonState = class {
16228
16234
  this.dataAccessAction,
16229
16235
  context,
16230
16236
  data,
16231
- appDeId
16237
+ appDeId || this.appDeName
16232
16238
  );
16233
16239
  }
16234
16240
  async update(context, data, appDeId) {
@@ -41162,11 +41168,12 @@ var AppHub = class {
41162
41168
  * 获取应用智能报表体系
41163
41169
  *
41164
41170
  * @author tony001
41165
- * @date 2024-06-04 13:06:59
41166
- * @param {string} appId
41171
+ * @date 2024-06-06 16:06:57
41172
+ * @param {string[]} [ids=[]]
41173
+ * @param {string} [appId=ibiz.env.appId]
41167
41174
  * @return {*} {Promise<IAppBIScheme[]>}
41168
41175
  */
41169
- async getAppBISchemes(appId2 = ibiz.env.appId, ids = []) {
41176
+ async getAppBISchemes(ids = [], appId2 = ibiz.env.appId) {
41170
41177
  if (this.modelLoaderProvider) {
41171
41178
  return this.modelLoaderProvider.getAppBISchemes(appId2, ids);
41172
41179
  }
@@ -41177,8 +41184,8 @@ var AppHub = class {
41177
41184
  *
41178
41185
  * @author tony001
41179
41186
  * @date 2024-06-04 16:06:03
41180
- * @param {string} appId
41181
41187
  * @param {string[]} ids
41188
+ * @param {string} appId
41182
41189
  * @return {*} {Promise<IAppBICube[]>}
41183
41190
  */
41184
41191
  async getAppAppBICubes(ids, appId2 = ibiz.env.appId) {
@@ -41192,8 +41199,8 @@ var AppHub = class {
41192
41199
  *
41193
41200
  * @author tony001
41194
41201
  * @date 2024-06-04 16:06:25
41195
- * @param {string} appId
41196
41202
  * @param {string[]} ids
41203
+ * @param {string} appId
41197
41204
  * @return {*} {Promise<IAppBIReport[]>}
41198
41205
  */
41199
41206
  async getAppBIReports(ids, appId2 = ibiz.env.appId) {
@@ -41825,8 +41832,8 @@ var ViewEngineBase = class {
41825
41832
  await this.handleEntityPrivilege(data, this.view.context);
41826
41833
  }
41827
41834
  this.view.state.srfactiveviewdata = data;
41828
- if (data.srfreadonly) {
41829
- this.view.context.srfreadonly = true;
41835
+ if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
41836
+ this.view.context.srfreadonly = data.srfreadonly;
41830
41837
  }
41831
41838
  evt.emit("onDataChange", { actionType: "LOAD", data: [data] });
41832
41839
  if (data.srfkey) {
@@ -44263,6 +44270,9 @@ var en = {
44263
44270
  conditionalValues: "Conditional values for range comparisons do not exist or are not strings"
44264
44271
  },
44265
44272
  firstregister: "Please register the model loading adapter first"
44273
+ },
44274
+ deAction: {
44275
+ responseDataError: "Response data exception [data]: {error}"
44266
44276
  }
44267
44277
  }
44268
44278
  };
@@ -44836,6 +44846,9 @@ var zhCn = {
44836
44846
  conditionalValues: "\u8303\u56F4\u6BD4\u8F83\u7684\u6761\u4EF6\u503C\u4E0D\u5B58\u6216\u8005\u4E0D\u662F\u5B57\u7B26\u4E32"
44837
44847
  },
44838
44848
  firstregister: "\u8BF7\u5148\u6CE8\u518C\u6A21\u578B\u52A0\u8F7D\u9002\u914D\u5668"
44849
+ },
44850
+ deAction: {
44851
+ responseDataError: "\u54CD\u5E94\u6570\u636E\u5F02\u5E38 [data]: {error}"
44839
44852
  }
44840
44853
  }
44841
44854
  };