@ibiz-template/runtime 0.6.1-dev.1 → 0.6.2-dev.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.
Files changed (138) hide show
  1. package/dist/index.esm.js +499 -143
  2. package/dist/index.system.min.js +1 -1
  3. package/out/application.js +7 -7
  4. package/out/controller/common/base.controller.d.ts +9 -0
  5. package/out/controller/common/base.controller.d.ts.map +1 -1
  6. package/out/controller/common/base.controller.js +12 -0
  7. package/out/controller/common/control/md-control.controller.d.ts +15 -0
  8. package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
  9. package/out/controller/common/control/md-control.controller.js +22 -3
  10. package/out/controller/common/view/view.controller.d.ts.map +1 -1
  11. package/out/controller/common/view/view.controller.js +2 -1
  12. package/out/controller/control/app-menu/app-menu.controller.js +1 -1
  13. package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
  14. package/out/controller/control/form/edit-form/edit-form.controller.js +3 -1
  15. package/out/controller/control/form/form/form.controller.d.ts +18 -1
  16. package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
  17. package/out/controller/control/form/form/form.controller.js +68 -0
  18. package/out/controller/control/gantt/gantt.controller.d.ts +3 -3
  19. package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
  20. package/out/controller/control/gantt/gantt.controller.js +1 -4
  21. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  22. package/out/controller/control/grid/grid/grid.controller.js +1 -0
  23. package/out/controller/control/tree/tree.controller.d.ts +8 -0
  24. package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
  25. package/out/controller/control/tree/tree.controller.js +14 -0
  26. package/out/controller/notification/internal-message.controller.d.ts +7 -0
  27. package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
  28. package/out/controller/notification/internal-message.controller.js +14 -4
  29. package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts.map +1 -1
  30. package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.js +3 -1
  31. package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts.map +1 -1
  32. package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.js +12 -3
  33. package/out/de-logic/de-logic-node/append-param-node/append-param-node.d.ts.map +1 -1
  34. package/out/de-logic/de-logic-node/append-param-node/append-param-node.js +1 -0
  35. package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
  36. package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.js +1 -0
  37. package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
  38. package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.js +1 -0
  39. package/out/de-logic/de-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
  40. package/out/de-logic/de-logic-node/data-set-node/data-set-node.js +1 -0
  41. package/out/de-logic/de-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
  42. package/out/de-logic/de-logic-node/de-action-node/de-action-node.js +1 -0
  43. package/out/de-logic/de-logic-node/end-node/end-node.d.ts.map +1 -1
  44. package/out/de-logic/de-logic-node/end-node/end-node.js +1 -0
  45. package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.d.ts.map +1 -1
  46. package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.js +22 -7
  47. package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
  48. package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.js +1 -0
  49. package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
  50. package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.js +1 -0
  51. package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
  52. package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.js +1 -0
  53. package/out/de-logic/de-logic-node/start-node/start-node.d.ts.map +1 -1
  54. package/out/de-logic/de-logic-node/start-node/start-node.js +1 -0
  55. package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
  56. package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.js +1 -0
  57. package/out/de-logic/de-logic-param/de-logic-param.d.ts.map +1 -1
  58. package/out/de-logic/de-logic-param/de-logic-param.js +2 -0
  59. package/out/de-logic/index.d.ts.map +1 -1
  60. package/out/de-logic/index.js +4 -1
  61. package/out/engine/md-view.engine.d.ts.map +1 -1
  62. package/out/engine/md-view.engine.js +3 -2
  63. package/out/hub/config/app-view-config-service.d.ts.map +1 -1
  64. package/out/hub/config/app-view-config-service.js +1 -0
  65. package/out/interface/controller/controller/control/i-gantt.controller.d.ts +31 -2
  66. package/out/interface/controller/controller/control/i-gantt.controller.d.ts.map +1 -1
  67. package/out/interface/controller/controller/notice/i-internal-message.controller.d.ts +7 -0
  68. package/out/interface/controller/controller/notice/i-internal-message.controller.d.ts.map +1 -1
  69. package/out/interface/controller/state/view/i-view.state.d.ts +7 -0
  70. package/out/interface/controller/state/view/i-view.state.d.ts.map +1 -1
  71. package/out/interface/service/code-list-item/code-list-item.d.ts +8 -0
  72. package/out/interface/service/code-list-item/code-list-item.d.ts.map +1 -1
  73. package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts +8 -0
  74. package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts.map +1 -1
  75. package/out/plugin/plugin-static-resource/plugin-static-resource.js +12 -1
  76. package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
  77. package/out/service/service/code-list/code-list.service.js +1 -0
  78. package/out/service/service/internal-message/internal-message.service.d.ts +8 -0
  79. package/out/service/service/internal-message/internal-message.service.d.ts.map +1 -1
  80. package/out/service/service/internal-message/internal-message.service.js +10 -0
  81. package/out/types.d.ts +1 -1
  82. package/out/types.d.ts.map +1 -1
  83. package/out/ui-action/provider/ui-action-provider-base.d.ts +2 -2
  84. package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
  85. package/out/ui-action/provider/ui-action-provider-base.js +9 -4
  86. package/out/ui-logic/index.d.ts.map +1 -1
  87. package/out/ui-logic/index.js +4 -1
  88. package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.d.ts.map +1 -1
  89. package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.js +3 -1
  90. package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.d.ts.map +1 -1
  91. package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.js +12 -3
  92. package/out/ui-logic/ui-logic-node/append-param-node/append-param-node.d.ts.map +1 -1
  93. package/out/ui-logic/ui-logic-node/append-param-node/append-param-node.js +1 -0
  94. package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
  95. package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.js +1 -0
  96. package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
  97. package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.js +1 -0
  98. package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
  99. package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.js +1 -0
  100. package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
  101. package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.js +1 -0
  102. package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.d.ts.map +1 -1
  103. package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.js +2 -1
  104. package/out/ui-logic/ui-logic-node/end-node/end-node.d.ts.map +1 -1
  105. package/out/ui-logic/ui-logic-node/end-node/end-node.js +1 -0
  106. package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.d.ts.map +1 -1
  107. package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.js +1 -0
  108. package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.d.ts.map +1 -1
  109. package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.js +1 -0
  110. package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.d.ts.map +1 -1
  111. package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.js +1 -0
  112. package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.d.ts.map +1 -1
  113. package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.js +6 -0
  114. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
  115. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +1 -0
  116. package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
  117. package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.js +1 -0
  118. package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
  119. package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.js +1 -0
  120. package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
  121. package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.js +1 -0
  122. package/out/ui-logic/ui-logic-node/start-node/start-node.d.ts.map +1 -1
  123. package/out/ui-logic/ui-logic-node/start-node/start-node.js +1 -0
  124. package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
  125. package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.js +1 -0
  126. package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.d.ts.map +1 -1
  127. package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.js +1 -0
  128. package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.d.ts.map +1 -1
  129. package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.js +1 -0
  130. package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
  131. package/out/ui-logic/ui-logic-param/ui-logic-param.js +2 -0
  132. package/out/utils/handlebars/helpers/not/not.d.ts.map +1 -1
  133. package/out/utils/handlebars/helpers/not/not.js +2 -1
  134. package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
  135. package/out/utils/open-redirect-view/open-redirect-view.js +3 -0
  136. package/out/utils/script/script-function.d.ts.map +1 -1
  137. package/out/utils/script/script-function.js +1 -0
  138. package/package.json +6 -7
package/dist/index.esm.js CHANGED
@@ -233,8 +233,8 @@ var HelperBase = class {
233
233
  * @date 2021-12-29 14:12:47
234
234
  * @param {string} tag 助手标识
235
235
  */
236
- constructor(Handlebars2, tag) {
237
- Handlebars2.registerHelper(tag, this.onExecute);
236
+ constructor(Handlebars, tag) {
237
+ Handlebars.registerHelper(tag, this.onExecute);
238
238
  }
239
239
  };
240
240
 
@@ -408,12 +408,13 @@ var HelperNeq = class extends HelperBase {
408
408
  };
409
409
 
410
410
  // src/utils/handlebars/helpers/not/not.ts
411
+ import { isEmpty, isNil } from "ramda";
411
412
  var HelperNot = class extends HelperBase {
412
413
  constructor(hbs) {
413
414
  super(hbs, "not");
414
415
  }
415
416
  onExecute(param, options) {
416
- const bol = Handlebars.Utils.isEmpty(param);
417
+ const bol = isEmpty(param) || isNil(param);
417
418
  return HelperUtil.handleJudgmentExecute(this, bol, options);
418
419
  }
419
420
  };
@@ -595,7 +596,7 @@ var HandlebarsUtil = class {
595
596
  };
596
597
 
597
598
  // src/utils/nav-params/nav-params.ts
598
- import { isEmpty, isNil } from "lodash-es";
599
+ import { isEmpty as isEmpty2, isNil as isNil2 } from "lodash-es";
599
600
  import { isNilOrEmpty, notNilEmpty } from "qx-util";
600
601
  function convertObjectToNavParams(navParams) {
601
602
  const result = [];
@@ -616,7 +617,7 @@ function convertObjectToNavParams(navParams) {
616
617
  return result;
617
618
  }
618
619
  function convertNavData(navParams, ...origins) {
619
- if (!navParams || isEmpty(navParams)) {
620
+ if (!navParams || isEmpty2(navParams)) {
620
621
  return {};
621
622
  }
622
623
  const navParamsArr = Array.isArray(navParams) ? navParams : convertObjectToNavParams(navParams);
@@ -650,7 +651,7 @@ function convertNavDataByArray(naviDatas, ...origins) {
650
651
  key.slice(2, -1).toLowerCase()
651
652
  );
652
653
  if (find) {
653
- valueStr = valueStr.replace(key, "".concat(isNil(value) ? "" : value));
654
+ valueStr = valueStr.replace(key, "".concat(isNil2(value) ? "" : value));
654
655
  }
655
656
  });
656
657
  result[naviData.key.toLowerCase()] = valueStr;
@@ -1294,6 +1295,9 @@ async function getDERedirectToView(appView, context, params = {}, opts = {}) {
1294
1295
  });
1295
1296
  if (refView) {
1296
1297
  viewId = refView.refAppViewId;
1298
+ if (refView.openMode) {
1299
+ opts.openMode = refView.openMode;
1300
+ }
1297
1301
  if (viewId) {
1298
1302
  return {
1299
1303
  type: "view",
@@ -1405,7 +1409,7 @@ async function calcDERdTag(entity, rdView, params, data) {
1405
1409
  // src/utils/verify/verify.ts
1406
1410
  import { RuntimeError as RuntimeError3 } from "@ibiz-template/core";
1407
1411
  import { isNilOrEmpty as isNilOrEmpty3, notNilEmpty as notNilEmpty4 } from "qx-util";
1408
- import { isNil as isNil2 } from "ramda";
1412
+ import { isNil as isNil3 } from "ramda";
1409
1413
  function testCond(value, op, value2) {
1410
1414
  if (Object.is(op, "IN")) {
1411
1415
  return contains(value, value2);
@@ -1431,7 +1435,7 @@ function testCond(value, op, value2) {
1431
1435
  case "ISNOTNULL":
1432
1436
  return notNilEmpty4(value);
1433
1437
  case "TESTNULL":
1434
- return isNil2(value);
1438
+ return isNil3(value);
1435
1439
  case "IN":
1436
1440
  return contains(value, value2);
1437
1441
  case "NOTIN":
@@ -1504,7 +1508,7 @@ function strContain(value, value2, mode) {
1504
1508
  // src/utils/verify/de-rule-verify.ts
1505
1509
  import { RuntimeError as RuntimeError4 } from "@ibiz-template/core";
1506
1510
  import { isNilOrEmpty as isNilOrEmpty4 } from "qx-util";
1507
- import { isEmpty as isEmpty2, isNil as isNil3 } from "ramda";
1511
+ import { isEmpty as isEmpty3, isNil as isNil4 } from "ramda";
1508
1512
 
1509
1513
  // src/utils/script/script-function.ts
1510
1514
  import { mergeRight } from "ramda";
@@ -1576,7 +1580,8 @@ var ScriptFunction = class {
1576
1580
  "parentView",
1577
1581
  "view",
1578
1582
  "parent",
1579
- "util"
1583
+ "util",
1584
+ "ctrl"
1580
1585
  ];
1581
1586
  keys.push(...presetArgsKeys);
1582
1587
  this.argKeys = Array.from(new Set(keys));
@@ -1858,7 +1863,7 @@ function checkFieldSimpleRule(value, op, value2, errorInfo, paramType, form, pri
1858
1863
  const _value2Field = form[value2] ? form[value2] : value2;
1859
1864
  value2 = _value2Field;
1860
1865
  }
1861
- if (isNil3(errorInfo) || isEmpty2(errorInfo)) {
1866
+ if (isNil4(errorInfo) || isEmpty3(errorInfo)) {
1862
1867
  errorInfo = "\u5185\u5BB9\u5FC5\u987B\u7B26\u5408\u503C\u89C4\u5219";
1863
1868
  }
1864
1869
  const result = testCond(value, op, value2);
@@ -4988,7 +4993,7 @@ import { ModelError as ModelError15, RuntimeError as RuntimeError25 } from "@ibi
4988
4993
  import { clone as clone17 } from "ramda";
4989
4994
 
4990
4995
  // src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
4991
- import { isEmpty as isEmpty3 } from "ramda";
4996
+ import { isEmpty as isEmpty4 } from "ramda";
4992
4997
 
4993
4998
  // src/service/utils/de-dq-cond/ps-model-cond-engine-base.ts
4994
4999
  var PSModelCondEngineBase = class {
@@ -5295,7 +5300,7 @@ var _PSDEDQCondEngine = class _PSDEDQCondEngine extends PSModelCondEngineBase {
5295
5300
  testCond(cond, data, filter) {
5296
5301
  if (cond instanceof PSModelGroupCondBase) {
5297
5302
  const list = cond.getChildPSModelCondBases();
5298
- if (list == null || isEmpty3(list)) {
5303
+ if (list == null || isEmpty4(list)) {
5299
5304
  return !cond.isNotMode();
5300
5305
  }
5301
5306
  const bAnd = "AND" /* CONDOP_AND */ === cond.getCondOp();
@@ -5318,15 +5323,15 @@ var _PSDEDQCondEngine = class _PSDEDQCondEngine extends PSModelCondEngineBase {
5318
5323
  return bRet;
5319
5324
  }
5320
5325
  if (cond instanceof PSModelSingleCondBase) {
5321
- if (isEmpty3(cond.getParam())) {
5326
+ if (isEmpty4(cond.getParam())) {
5322
5327
  ibiz.log.warn("\u6CA1\u6709\u6307\u5B9A\u5C5E\u6027\u540D\u79F0", cond);
5323
5328
  }
5324
5329
  const objValue = data[cond.getParam().toLowerCase()];
5325
5330
  let objCondValue = null;
5326
5331
  const valType = cond.getValueType();
5327
5332
  const val = cond.getValue();
5328
- if (valType != null && !isEmpty3(valType)) {
5329
- if (isEmpty3(val)) {
5333
+ if (valType != null && !isEmpty4(valType)) {
5334
+ if (isEmpty4(val)) {
5330
5335
  ibiz.log.warn("\u6CA1\u6709\u6307\u5B9A\u4E0A\u4E0B\u6587\u53C2\u6570\u540D\u79F0");
5331
5336
  }
5332
5337
  if (_PSDEDQCondEngine.PARAMTYPE_WEBCONTEXT === valType) {
@@ -6361,7 +6366,7 @@ DEDQCondUtil.map = /* @__PURE__ */ new WeakMap();
6361
6366
 
6362
6367
  // src/service/utils/dynamic-code-list/dynamic-code-list.ts
6363
6368
  import { ModelError as ModelError5, RuntimeModelError as RuntimeModelError7 } from "@ibiz-template/core";
6364
- import { isNil as isNil4 } from "ramda";
6369
+ import { isNil as isNil5 } from "ramda";
6365
6370
  var DynamicCodeListCache = class {
6366
6371
  constructor(codeList) {
6367
6372
  /**
@@ -6594,7 +6599,7 @@ var DynamicCodeListCache = class {
6594
6599
  }
6595
6600
  const promise = this.load(context, params);
6596
6601
  const { cacheTimeout } = this.codeList;
6597
- const waitTime = cacheTimeout === -1 || isNil4(cacheTimeout) ? ibiz.config.codeList.timeout : this.codeList.cacheTimeout;
6602
+ const waitTime = cacheTimeout === -1 || isNil5(cacheTimeout) ? ibiz.config.codeList.timeout : this.codeList.cacheTimeout;
6598
6603
  const cacheData = {
6599
6604
  expirationTime: (/* @__PURE__ */ new Date()).getTime() + waitTime,
6600
6605
  promise
@@ -6608,17 +6613,17 @@ var DynamicCodeListCache = class {
6608
6613
  };
6609
6614
 
6610
6615
  // src/service/utils/de-cache/de-cache.ts
6611
- import { where, equals, clone as clone4, isNil as isNil6, isEmpty as isEmpty5 } from "ramda";
6616
+ import { where, equals, clone as clone4, isNil as isNil7, isEmpty as isEmpty6 } from "ramda";
6612
6617
  import { createUUID as createUUID2 } from "qx-util";
6613
6618
  import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
6614
6619
 
6615
6620
  // src/service/utils/service-exist-util/service-exist-util.ts
6616
6621
  import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
6617
- import { isEmpty as isEmpty4, isNil as isNil5 } from "ramda";
6622
+ import { isEmpty as isEmpty5, isNil as isNil6 } from "ramda";
6618
6623
  function isExistSrfKey(funcName, entity) {
6619
6624
  if (entity != null) {
6620
6625
  const { srfkey } = entity;
6621
- if (!isNil5(srfkey) && !isEmpty4(srfkey)) {
6626
+ if (!isNil6(srfkey) && !isEmpty5(srfkey)) {
6622
6627
  return true;
6623
6628
  }
6624
6629
  }
@@ -6626,7 +6631,7 @@ function isExistSrfKey(funcName, entity) {
6626
6631
  }
6627
6632
  function isExistSessionId(funcName, context) {
6628
6633
  const { srfsessionid } = context;
6629
- if (!isNil5(srfsessionid) && !isEmpty4(srfsessionid)) {
6634
+ if (!isNil6(srfsessionid) && !isEmpty5(srfsessionid)) {
6630
6635
  return true;
6631
6636
  }
6632
6637
  throw new RuntimeError15("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
@@ -6722,7 +6727,7 @@ var DECache = class {
6722
6727
  }
6723
6728
  try {
6724
6729
  isExistSessionId("add", context);
6725
- if (isNil6(entity.srfkey) || isEmpty5(entity.srfkey)) {
6730
+ if (isNil7(entity.srfkey) || isEmpty6(entity.srfkey)) {
6726
6731
  entity.srfkey = createUUID2();
6727
6732
  }
6728
6733
  entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
@@ -6866,7 +6871,7 @@ var DECache = class {
6866
6871
  const t = this.getTransaction(context);
6867
6872
  for (let i = 0; i < entities.length; i++) {
6868
6873
  const entity = entities[i];
6869
- if (isNil6(entity.srfkey) || isEmpty5(entity.srfkey)) {
6874
+ if (isNil7(entity.srfkey) || isEmpty6(entity.srfkey)) {
6870
6875
  entity.srfkey = createUUID2();
6871
6876
  }
6872
6877
  entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
@@ -7057,7 +7062,7 @@ var DECache = class {
7057
7062
  }
7058
7063
  );
7059
7064
  const unionValues = unionKeys.map((key) => {
7060
- if (isNil6(data[key])) {
7065
+ if (isNil7(data[key])) {
7061
7066
  return "__empty__";
7062
7067
  }
7063
7068
  return data[key];
@@ -7131,7 +7136,7 @@ function calcResPath(context, entity) {
7131
7136
  }
7132
7137
 
7133
7138
  // src/service/utils/search-filter/search-filter.ts
7134
- import { isEmpty as isEmpty6, isNil as isNil7 } from "ramda";
7139
+ import { isEmpty as isEmpty7, isNil as isNil8 } from "ramda";
7135
7140
  var SearchFilter = class {
7136
7141
  /**
7137
7142
  * Creates an instance of SearchFilter.
@@ -7179,16 +7184,16 @@ var SearchFilter = class {
7179
7184
  this.sortMode = "ASC";
7180
7185
  this.context = context;
7181
7186
  if (data) {
7182
- if (!isNil7(data.page) && !isEmpty6(data.page)) {
7187
+ if (!isNil8(data.page) && !isEmpty7(data.page)) {
7183
7188
  this.page = data.page;
7184
7189
  }
7185
- if (!isNil7(data.size) && !isEmpty6(data.size)) {
7190
+ if (!isNil8(data.size) && !isEmpty7(data.size)) {
7186
7191
  this.size = data.size;
7187
7192
  }
7188
- if (!isNil7(data.query) && !isEmpty6(data.query)) {
7193
+ if (!isNil8(data.query) && !isEmpty7(data.query)) {
7189
7194
  this.query = data.query;
7190
7195
  }
7191
- if (!isNil7(data.sort) && !isEmpty6(data.sort)) {
7196
+ if (!isNil8(data.sort) && !isEmpty7(data.sort)) {
7192
7197
  const arr = data.sort.split(",");
7193
7198
  if (arr.length >= 1) {
7194
7199
  [this.sortField] = arr;
@@ -7375,7 +7380,8 @@ var CodeListService = class {
7375
7380
  tooltip,
7376
7381
  // 代码项数据
7377
7382
  data: codeItem.data ? ScriptFactory.execSingleLine(codeItem.data) : void 0,
7378
- sysImage: codeItem.sysImage
7383
+ sysImage: codeItem.sysImage,
7384
+ userData: codeItem.userData
7379
7385
  };
7380
7386
  if ((_a = codeItem.codeItems) == null ? void 0 : _a.length) {
7381
7387
  _codeItem.children = this.formatStaticItems(
@@ -7909,7 +7915,7 @@ var FileService = class {
7909
7915
  };
7910
7916
 
7911
7917
  // src/service/app-data-entity/app-data-entity.ts
7912
- import { clone as clone5, isNil as isNil8 } from "ramda";
7918
+ import { clone as clone5, isNil as isNil9 } from "ramda";
7913
7919
  import { DataTypes } from "@ibiz-template/core";
7914
7920
  import { createUUID as createUUID3 } from "qx-util";
7915
7921
 
@@ -8002,7 +8008,7 @@ var AppDataEntity = class _AppDataEntity {
8002
8008
  enumerable: false,
8003
8009
  configurable: true,
8004
8010
  writable: true,
8005
- value: isNil8(this.srfkey) ? createUUID3() : this.srfkey
8011
+ value: isNil9(this.srfkey) ? createUUID3() : this.srfkey
8006
8012
  });
8007
8013
  this.defineProperties();
8008
8014
  }
@@ -8092,11 +8098,11 @@ var AppDataEntity = class _AppDataEntity {
8092
8098
  if (value == null) {
8093
8099
  return value;
8094
8100
  }
8095
- if (isNil8(dataType)) {
8101
+ if (isNil9(dataType)) {
8096
8102
  return value;
8097
8103
  }
8098
8104
  if (DataTypes.isNumber(dataType)) {
8099
- const numVal = !isNil8(value) && value !== "" ? Number(value) : value;
8105
+ const numVal = !isNil9(value) && value !== "" ? Number(value) : value;
8100
8106
  if (Number.isNaN(numVal)) {
8101
8107
  ibiz.log.debug("".concat(value, "\u4E0D\u80FD\u8F6C\u6362\u6210\u6570\u5B57"));
8102
8108
  return value;
@@ -8615,7 +8621,7 @@ import { clone as clone8 } from "@ibiz-template/core";
8615
8621
 
8616
8622
  // src/service/vo/control.vo.ts
8617
8623
  import { createUUID as createUUID4 } from "qx-util";
8618
- import { clone as clone7, isNil as isNil9 } from "ramda";
8624
+ import { clone as clone7, isNil as isNil10 } from "ramda";
8619
8625
  var BuildInKeys = [
8620
8626
  "srfkey",
8621
8627
  "srfmajortext",
@@ -8704,7 +8710,7 @@ var ControlVO = class _ControlVO {
8704
8710
  enumerable: false,
8705
8711
  configurable: true,
8706
8712
  writable: true,
8707
- value: isNil9(this.srfkey) ? createUUID4() : this.srfkey
8713
+ value: isNil10(this.srfkey) ? createUUID4() : this.srfkey
8708
8714
  });
8709
8715
  }
8710
8716
  Object.defineProperty(this, "srfuf", {
@@ -9428,7 +9434,7 @@ var V7AuthService = class {
9428
9434
  };
9429
9435
 
9430
9436
  // src/service/service/async-action/async-action.service.ts
9431
- import { isNil as isNil10 } from "ramda";
9437
+ import { isNil as isNil11 } from "ramda";
9432
9438
  var AsyncActionService = class {
9433
9439
  /**
9434
9440
  * 获取异步操作的集合
@@ -9439,7 +9445,7 @@ var AsyncActionService = class {
9439
9445
  */
9440
9446
  async fetch(params = {}) {
9441
9447
  const res = await ibiz.net.post("/portal/asyncaction/all", params);
9442
- if (isNil10(res.data)) {
9448
+ if (isNil11(res.data)) {
9443
9449
  res.data = [];
9444
9450
  }
9445
9451
  return res;
@@ -9464,7 +9470,7 @@ import {
9464
9470
  RuntimeError as RuntimeError23,
9465
9471
  RuntimeModelError as RuntimeModelError22
9466
9472
  } from "@ibiz-template/core";
9467
- import { isArray as isArray6, isNil as isNil11 } from "lodash-es";
9473
+ import { isArray as isArray6, isNil as isNil12 } from "lodash-es";
9468
9474
  import { ascSort } from "qx-util";
9469
9475
  import { clone as clone14 } from "ramda";
9470
9476
 
@@ -9886,6 +9892,8 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
9886
9892
  */
9887
9893
  test(ctx, context, data) {
9888
9894
  const dst = ctx.params[this.dstParam];
9895
+ let result;
9896
+ let compareValue;
9889
9897
  switch (this.type) {
9890
9898
  case "ENTITYFIELD": {
9891
9899
  if (!this.value) {
@@ -9895,7 +9903,9 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
9895
9903
  );
9896
9904
  }
9897
9905
  const value = data[this.value] != null ? data[this.value] : context[this.value];
9898
- return testCond(dst[this.dstField], this.op, value);
9906
+ compareValue = value;
9907
+ result = testCond(dst[this.dstField], this.op, value);
9908
+ break;
9899
9909
  }
9900
9910
  case "SRCENTITYFIELD": {
9901
9911
  if (!this.value) {
@@ -9905,13 +9915,26 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
9905
9915
  );
9906
9916
  }
9907
9917
  const src = ctx.params[this.srcParam];
9908
- return testCond(dst[this.dstField], this.op, src[this.value]);
9918
+ compareValue = src[this.value];
9919
+ result = testCond(dst[this.dstField], this.op, src[this.value]);
9920
+ break;
9909
9921
  }
9910
9922
  case "CURTIME":
9911
9923
  throw new ModelError8(this.model, "\u6682\u672A\u652F\u6301\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u5F53\u524D\u65F6\u95F4]");
9912
9924
  default:
9913
- return testCond(dst[this.dstField], this.op, this.value);
9925
+ compareValue = this.value;
9926
+ result = testCond(dst[this.dstField], this.op, this.value);
9914
9927
  }
9928
+ ibiz.log.debug(
9929
+ "\u5B9E\u4F53\u903B\u8F91\u8FDE\u63A5\u6761\u4EF6\u9879\uFF1A".concat(this.model.name, "-\u6761\u4EF6\u503C\u7C7B\u578B\uFF1A").concat(this.type, "-\u6E90\u5C5E\u6027\u540D\u79F0\uFF1A").concat(this.dstField, "-\u6E90\u5BF9\u8C61\u503C\uFF1A"),
9930
+ dst[this.dstField],
9931
+ "-\u5BF9\u6BD4\u6761\u4EF6\uFF1A".concat(this.op),
9932
+ "-\u5BF9\u6BD4\u503C",
9933
+ compareValue,
9934
+ "-\u5BF9\u6BD4\u7ED3\u679C\uFF1A",
9935
+ result
9936
+ );
9937
+ return result;
9915
9938
  }
9916
9939
  };
9917
9940
 
@@ -9976,7 +9999,12 @@ var DELogicLinkGroupCond = class _DELogicLinkGroupCond extends DELogicLinkCond {
9976
9999
  break;
9977
10000
  }
9978
10001
  }
9979
- return this.notMode ? !bol : bol;
10002
+ const result = this.notMode ? !bol : bol;
10003
+ ibiz.log.debug(
10004
+ "\u5B9E\u4F53\u903B\u8F91\u8FDE\u63A5\u6761\u4EF6\u7EC4\u540D\u79F0\uFF1A".concat(this.model.name, "-\u6761\u4EF6\u7EC4\u6807\u8BC6\uFF1A").concat(this.model.id, "-\u8FD0\u884C\u7ED3\u679C\uFF1A"),
10005
+ result
10006
+ );
10007
+ return result;
9980
10008
  }
9981
10009
  };
9982
10010
 
@@ -10082,12 +10110,17 @@ var DEActionNode = class extends DELogicNode {
10082
10110
  if (res.ok) {
10083
10111
  ctx.params[retDELogicParamId] = res.data;
10084
10112
  }
10113
+ ibiz.log.debug(
10114
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u5B9E\u4F53\u884C\u4E3A\uFF09\uFF1A".concat(this.model.id, "-\u754C\u9762\u884C\u4E3A\u6240\u5C5E\u5B9E\u4F53\uFF1A").concat(dstAppDataEntityId, "-\u5B9E\u4F53\u884C\u4E3A\u6807\u8BC6\uFF1A").concat(dstAppDEActionId, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(retDELogicParamId, "-\u503C\uFF1A"),
10115
+ ctx.params[retDELogicParamId]
10116
+ );
10085
10117
  }
10086
10118
  };
10087
10119
 
10088
10120
  // src/de-logic/de-logic-node/start-node/start-node.ts
10089
10121
  var StartNode = class extends DELogicNode {
10090
10122
  async exec(_ctx) {
10123
+ ibiz.log.debug("\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u542F\u52A8\u8282\u70B9\uFF09\uFF1A".concat(this.model.id));
10091
10124
  }
10092
10125
  };
10093
10126
 
@@ -10121,6 +10154,10 @@ var EndNode = class extends DELogicNode {
10121
10154
  "\u6682\u672A\u652F\u6301\u7684\u7ED3\u675F\u8282\u70B9\u8FD4\u56DE\u503C\u7C7B\u578B: ".concat(returnType)
10122
10155
  );
10123
10156
  }
10157
+ ibiz.log.debug(
10158
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u7ED3\u675F\u8282\u70B9\uFF09\uFF1A".concat(this.model.id, "-\u8FD4\u56DE\u503C\u7C7B\u578B\uFF1A").concat(returnType, "-\u8FD4\u56DE\u503C\uFF1A"),
10159
+ ctx.result
10160
+ );
10124
10161
  }
10125
10162
  };
10126
10163
 
@@ -10203,27 +10240,46 @@ var PrepareParamNode = class extends DELogicNode {
10203
10240
  if (nodeParams == null ? void 0 : nodeParams.length) {
10204
10241
  await Promise.all(
10205
10242
  nodeParams.map((nodeParam) => {
10243
+ let result;
10244
+ let originValue;
10245
+ if (nodeParam.dstDELogicParamId) {
10246
+ originValue = clone10(ctx.params[nodeParam.dstDELogicParamId]);
10247
+ }
10206
10248
  switch (nodeParam.paramAction) {
10207
10249
  case "SETPARAMVALUE":
10208
- return this.setParamValue(nodeParam, ctx);
10250
+ result = this.setParamValue(nodeParam, ctx);
10251
+ break;
10209
10252
  case "RESETPARAM":
10210
- return this.resetParam(nodeParam, ctx);
10253
+ result = this.resetParam(nodeParam, ctx);
10254
+ break;
10211
10255
  case "COPYPARAM":
10212
- return this.copyParam(nodeParam, ctx);
10256
+ result = this.copyParam(nodeParam, ctx);
10257
+ break;
10213
10258
  case "BINDPARAM":
10214
- return this.bindParam(nodeParam, ctx);
10259
+ result = this.bindParam(nodeParam, ctx);
10260
+ break;
10215
10261
  case "RENEWPARAM":
10216
- return this.renewParam(nodeParam, ctx);
10262
+ result = this.renewParam(nodeParam, ctx);
10263
+ break;
10217
10264
  case "APPENDPARAM":
10218
- return this.appendParam(nodeParam, ctx);
10265
+ result = this.appendParam(nodeParam, ctx);
10266
+ break;
10219
10267
  case "SORTPARAM":
10220
- return this.sortParam(nodeParam, ctx);
10268
+ result = this.sortParam(nodeParam, ctx);
10269
+ break;
10221
10270
  default:
10222
10271
  throw new ModelError11(
10223
10272
  nodeParam,
10224
10273
  "\u6682\u672A\u652F\u6301\u903B\u8F91\u5904\u7406\u53C2\u6570\u64CD\u4F5C".concat(nodeParam.paramAction)
10225
10274
  );
10226
10275
  }
10276
+ ibiz.log.debug(
10277
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u51C6\u5907\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u53C2\u6570\u5904\u7406\u64CD\u4F5C\uFF1A").concat(nodeParam.paramAction, "-\u76EE\u6807\u903B\u8F91\u53C2\u6570\uFF1A").concat(nodeParam.dstDELogicParamId, "-\u6E90\u53C2\u6570\uFF08\u503C\uFF09\uFF1A"),
10278
+ originValue,
10279
+ "-\u76EE\u6807\u53C2\u6570\uFF08\u503C\uFF09\uFF1A",
10280
+ ctx.params[nodeParam.dstDELogicParamId]
10281
+ );
10282
+ return result;
10227
10283
  })
10228
10284
  );
10229
10285
  }
@@ -10357,6 +10413,10 @@ var DataSetNode = class extends DELogicNode {
10357
10413
  if (res.ok) {
10358
10414
  ctx.params[retDELogicParamId] = res.data;
10359
10415
  }
10416
+ ibiz.log.debug(
10417
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u6570\u636E\u96C6\u5408\uFF09\uFF1A".concat(this.model.id, "-\u6570\u636E\u96C6\u5B9E\u4F53\u6807\u8BC6\uFF1A").concat(dstAppDataEntityId, "-\u6570\u636E\u96C6\u6807\u8BC6\uFF1A").concat(dstAppDEDataSetId, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(retDELogicParamId, "-\u503C\uFF1A"),
10418
+ ctx.params[retDELogicParamId]
10419
+ );
10360
10420
  }
10361
10421
  };
10362
10422
 
@@ -10373,6 +10433,10 @@ var BindParamNode = class extends DELogicNode {
10373
10433
  }
10374
10434
  const srcVal = handleSrcVal(ctx, this.model);
10375
10435
  ctx.params[dstDELogicParamId] = srcVal;
10436
+ ibiz.log.debug(
10437
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u7ED1\u5B9A\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDELogicParamId, "-\u503C\uFF1A"),
10438
+ srcVal
10439
+ );
10376
10440
  }
10377
10441
  };
10378
10442
 
@@ -10385,6 +10449,9 @@ var ResetParamNode = class extends DELogicNode {
10385
10449
  throw new RuntimeModelError16(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
10386
10450
  }
10387
10451
  ctx.resetParam(dstDELogicParamId);
10452
+ ibiz.log.debug(
10453
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u91CD\u7F6E\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u91CD\u7F6E\u53C2\u6570\uFF1A").concat(dstDELogicParamId)
10454
+ );
10388
10455
  }
10389
10456
  };
10390
10457
 
@@ -10397,6 +10464,9 @@ var RenewParamNode = class extends DELogicNode {
10397
10464
  throw new RuntimeModelError17(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
10398
10465
  }
10399
10466
  ctx.renewParam(dstDELogicParamId);
10467
+ ibiz.log.debug(
10468
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u91CD\u65B0\u5EFA\u7ACB\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u91CD\u5EFA\u53C2\u6570\uFF1A").concat(dstDELogicParamId)
10469
+ );
10400
10470
  }
10401
10471
  };
10402
10472
 
@@ -10414,6 +10484,10 @@ var CopyParamNode = class extends DELogicNode {
10414
10484
  }
10415
10485
  const srcVal = handleSrcVal(ctx, this.model);
10416
10486
  ctx.params[dstDELogicParamId] = clone11(srcVal);
10487
+ ibiz.log.debug(
10488
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u62F7\u8D1D\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDELogicParamId, "-\u503C\uFF1A"),
10489
+ srcVal
10490
+ );
10417
10491
  }
10418
10492
  };
10419
10493
 
@@ -10430,6 +10504,10 @@ var SortParamNode = class extends DELogicNode {
10430
10504
  arr.sort((a, b) => {
10431
10505
  return dstSortDir === "ASC" ? a[key] - b[key] : b[key] - a[key];
10432
10506
  });
10507
+ ibiz.log.debug(
10508
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u6392\u5E8F\u6570\u7EC4\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u6392\u5E8F\u5C5E\u6027\uFF1A").concat(dstFieldName, "-\u6392\u5E8F\u6A21\u5F0F\uFF1A").concat(dstSortDir, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDELogicParamId, "-\u6392\u5E8F\u540E\u6570\u7EC4\uFF1A"),
10509
+ arr
10510
+ );
10433
10511
  }
10434
10512
  };
10435
10513
 
@@ -10459,6 +10537,12 @@ var AppendParamNode = class extends DELogicNode {
10459
10537
  0,
10460
10538
  ...srcVal.slice(_srcIndex, _srcSize)
10461
10539
  );
10540
+ ibiz.log.debug(
10541
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u9644\u52A0\u5230\u6570\u7EC4\uFF09\uFF1A".concat(this.model.id, "-\u9644\u52A0\u53C2\u6570\uFF1A"),
10542
+ ctx.params,
10543
+ "-\u9644\u52A0\u503C\uFF1A",
10544
+ srcVal.slice(_srcIndex, _srcSize)
10545
+ );
10462
10546
  }
10463
10547
  };
10464
10548
 
@@ -10467,6 +10551,9 @@ import { HttpError as HttpError3 } from "@ibiz-template/core";
10467
10551
  var ThrowExceptionNode = class extends DELogicNode {
10468
10552
  async exec(_ctx) {
10469
10553
  const { errorCode, errorInfo } = this.model;
10554
+ ibiz.log.debug(
10555
+ "\u5B9E\u4F53\u903B\u8F91\u8282\u70B9\uFF08\u629B\u51FA\u5F02\u5E38\uFF09\uFF1A".concat(this.model.id, "-\u9519\u8BEF\u4EE3\u7801\uFF1A").concat(errorCode, "-\u9519\u8BEF\u4FE1\u606F\uFF1A").concat(errorInfo)
10556
+ );
10470
10557
  throw new HttpError3({
10471
10558
  response: {
10472
10559
  status: errorCode,
@@ -10543,6 +10630,7 @@ var DELogicParam = class {
10543
10630
  } else if (m.sessionParam) {
10544
10631
  throw new ModelError12(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u64CD\u4F5C\u4F1A\u8BDD\u53D8\u91CF");
10545
10632
  }
10633
+ ibiz.log.debug("\u8BA1\u7B97\u5B9E\u4F53\u903B\u8F91\u53C2\u6570\uFF0C\u6807\u8BC6\uFF1A".concat(tag), "-\u503C\uFF1A", ctx.params[tag]);
10546
10634
  }
10547
10635
  /**
10548
10636
  * 重新建立变量
@@ -10560,6 +10648,11 @@ var DELogicParam = class {
10560
10648
  } else {
10561
10649
  throw new ModelError12(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B\u91CD\u65B0\u5EFA\u7ACB\u53D8\u91CF");
10562
10650
  }
10651
+ ibiz.log.debug(
10652
+ "\u91CD\u65B0\u5EFA\u7ACB\u5B9E\u4F53\u903B\u8F91\u53C2\u6570\uFF0C\u6807\u8BC6\uFF1A".concat(tag),
10653
+ "-\u503C\uFF1A",
10654
+ ctx.params[tag]
10655
+ );
10563
10656
  }
10564
10657
  };
10565
10658
 
@@ -10747,8 +10840,15 @@ async function execDELogic(deDELogic, context, data = {}, params = {}) {
10747
10840
  if (!deLogicMap.has(deDELogic)) {
10748
10841
  deLogicMap.set(deDELogic, new DELogic(deDELogic));
10749
10842
  }
10843
+ ibiz.log.debug(
10844
+ "\u5F00\u59CB\u6267\u884C\u5B9E\u4F53\u903B\u8F91\uFF0C\u903B\u8F91\u6807\u8BC6\uFF1A".concat(deDELogic.id, "-\u903B\u8F91\u540D\u79F0\uFF1A").concat(deDELogic.name)
10845
+ );
10750
10846
  const deLogic = deLogicMap.get(deDELogic);
10751
- return deLogic.exec(context, data, params);
10847
+ const result = await deLogic.exec(context, data, params);
10848
+ ibiz.log.debug(
10849
+ "\u7ED3\u675F\u6267\u884C\u5B9E\u4F53\u903B\u8F91\uFF0C\u903B\u8F91\u6807\u8BC6\uFF1A".concat(deDELogic.id, "-\u903B\u8F91\u540D\u79F0\uFF1A").concat(deDELogic.name)
10850
+ );
10851
+ return result;
10752
10852
  }
10753
10853
  async function execDELogicById(deDELogicId, dataEntityId, context, data, params) {
10754
10854
  const deLogic = await findDeLogic(
@@ -10869,7 +10969,7 @@ var DEActionMethod = class extends Method {
10869
10969
  let path2 = this.calcPath(context);
10870
10970
  if (this.method.needResourceKey) {
10871
10971
  let srfkey = context[this.entity.codeName.toLowerCase()];
10872
- if (isNil11(srfkey)) {
10972
+ if (isNil12(srfkey)) {
10873
10973
  srfkey = isArray6(data) ? null : data == null ? void 0 : data[this.entity.keyAppDEFieldId];
10874
10974
  }
10875
10975
  path2 = "".concat(path2, "/").concat(srfkey);
@@ -11294,7 +11394,7 @@ import {
11294
11394
  RuntimeModelError as RuntimeModelError23
11295
11395
  } from "@ibiz-template/core";
11296
11396
  import { isArray as isArray7 } from "lodash-es";
11297
- import { clone as clone15, isEmpty as isEmpty7, isNil as isNil12 } from "ramda";
11397
+ import { clone as clone15, isEmpty as isEmpty8, isNil as isNil13 } from "ramda";
11298
11398
  import { ascSort as ascSort2, descSort } from "qx-util";
11299
11399
  var FetchMethod = class extends Method {
11300
11400
  async exec(context, params, params2, header) {
@@ -11371,7 +11471,7 @@ var FetchMethod = class extends Method {
11371
11471
  }
11372
11472
  }
11373
11473
  }
11374
- if (!isNil12(filter.sortField) && !isEmpty7(filter.sortField)) {
11474
+ if (!isNil13(filter.sortField) && !isEmpty8(filter.sortField)) {
11375
11475
  if (filter.sortMode === "DESC") {
11376
11476
  list = descSort(list, filter.sortField);
11377
11477
  } else {
@@ -11438,7 +11538,7 @@ function presetDEMethodProvider() {
11438
11538
  }
11439
11539
 
11440
11540
  // src/service/service/internal-message/internal-message.service.ts
11441
- import { isNil as isNil13 } from "ramda";
11541
+ import { isNil as isNil14 } from "ramda";
11442
11542
  var InternalMessageService = class {
11443
11543
  constructor() {
11444
11544
  /**
@@ -11477,7 +11577,7 @@ var InternalMessageService = class {
11477
11577
  res.total = Number(res.headers["x-total"]);
11478
11578
  }
11479
11579
  }
11480
- if (isNil13(res.data)) {
11580
+ if (isNil14(res.data)) {
11481
11581
  res.data = [];
11482
11582
  }
11483
11583
  return res;
@@ -11503,6 +11603,16 @@ var InternalMessageService = class {
11503
11603
  async markRead(messageId) {
11504
11604
  await ibiz.net.post("".concat(this.baseUrl, "/").concat(messageId, "/mark_read"), {});
11505
11605
  }
11606
+ /**
11607
+ * 批量设置已读
11608
+ * @author lxm
11609
+ * @date 2024-02-04 03:59:52
11610
+ * @param {string} messageId
11611
+ * @return {*} {Promise<void>}
11612
+ */
11613
+ async batchMarkRead() {
11614
+ await ibiz.net.post("".concat(this.baseUrl, "/mark_all_read"), {});
11615
+ }
11506
11616
  /**
11507
11617
  * 获取未读数据的总条数
11508
11618
  * @author lxm
@@ -11683,7 +11793,7 @@ var TreeCodeListNodeData = class extends TreeNodeData {
11683
11793
 
11684
11794
  // src/service/vo/tree-node-data/tree-data-set-node-data.ts
11685
11795
  import { updateKeyDefine } from "@ibiz-template/core";
11686
- import { clone as clone16, isNil as isNil14 } from "ramda";
11796
+ import { clone as clone16, isNil as isNil15 } from "ramda";
11687
11797
  var CloneExcludeKeys = [
11688
11798
  "_id",
11689
11799
  "srfnodeid",
@@ -11807,7 +11917,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
11807
11917
  });
11808
11918
  Object.keys(this).forEach((key) => {
11809
11919
  const deKey = getDeKey(key);
11810
- if (isNil14(deKey) && !CloneExcludeKeys.includes(key)) {
11920
+ if (isNil15(deKey) && !CloneExcludeKeys.includes(key)) {
11811
11921
  cloneNodeData[key] = this[key];
11812
11922
  }
11813
11923
  });
@@ -11816,7 +11926,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
11816
11926
  return new Proxy(this, {
11817
11927
  set(target, p, value) {
11818
11928
  const deKey = getDeKey(p);
11819
- if (!isNil14(deKey)) {
11929
+ if (!isNil15(deKey)) {
11820
11930
  target._deData[deKey] = value;
11821
11931
  } else {
11822
11932
  target[p] = value;
@@ -11825,8 +11935,8 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
11825
11935
  },
11826
11936
  get(target, p, _receiver) {
11827
11937
  const deKey = getDeKey(p);
11828
- if (!isNil14(deKey)) {
11829
- return isNil14(target._deData[deKey]) ? getKeyDefault(p) : target._deData[deKey];
11938
+ if (!isNil15(deKey)) {
11939
+ return isNil15(target._deData[deKey]) ? getKeyDefault(p) : target._deData[deKey];
11830
11940
  }
11831
11941
  return target[p];
11832
11942
  },
@@ -11930,7 +12040,7 @@ var TreeStaticNodeData = class extends TreeNodeData {
11930
12040
 
11931
12041
  // src/service/vo/ui-map-field.ts
11932
12042
  import { DataTypes as DataTypes2 } from "@ibiz-template/core";
11933
- import { isNil as isNil15 } from "ramda";
12043
+ import { isNil as isNil16 } from "ramda";
11934
12044
  var UIMapField = class {
11935
12045
  constructor(uiKey, dataKey, opts = {}) {
11936
12046
  /**
@@ -11951,10 +12061,10 @@ var UIMapField = class {
11951
12061
  this.isRequestNeed = true;
11952
12062
  this.uiKey = uiKey;
11953
12063
  this.dataKey = dataKey;
11954
- if (!isNil15(opts.isOriginField)) {
12064
+ if (!isNil16(opts.isOriginField)) {
11955
12065
  this.isOriginField = opts.isOriginField;
11956
12066
  }
11957
- if (!isNil15(opts.dataType)) {
12067
+ if (!isNil16(opts.dataType)) {
11958
12068
  this.dataType = opts.dataType;
11959
12069
  }
11960
12070
  }
@@ -11969,7 +12079,7 @@ var UIMapField = class {
11969
12079
  return value;
11970
12080
  }
11971
12081
  if (DataTypes2.isNumber(this.dataType)) {
11972
- const numVal = !isNil15(value) && value !== "" ? Number(value) : value;
12082
+ const numVal = !isNil16(value) && value !== "" ? Number(value) : value;
11973
12083
  if (Number.isNaN(numVal)) {
11974
12084
  ibiz.log.debug("".concat(value, "\u4E0D\u80FD\u8F6C\u6362\u6210\u6570\u5B57"));
11975
12085
  return value;
@@ -12964,10 +13074,10 @@ var Application = class {
12964
13074
  */
12965
13075
  this.deName2DeCodeName = /* @__PURE__ */ new Map();
12966
13076
  this.net = new Net({
12967
- baseURL: "".concat(ibiz.env.baseUrl, "/").concat(model.appId)
13077
+ baseURL: "".concat(ibiz.env.baseUrl, "/").concat(this.appId)
12968
13078
  });
12969
13079
  this.configCache = new ConfigService(
12970
- model.appId,
13080
+ this.appId,
12971
13081
  "PSSysApp",
12972
13082
  model.codeName
12973
13083
  );
@@ -12984,7 +13094,7 @@ var Application = class {
12984
13094
  * @type {string}
12985
13095
  */
12986
13096
  get appId() {
12987
- return this.model.appId;
13097
+ return this.model.appId || ibiz.env.appId;
12988
13098
  }
12989
13099
  /**
12990
13100
  * 初始化应用
@@ -13042,7 +13152,7 @@ var Application = class {
13042
13152
  if (appDeId) {
13043
13153
  const appDataEntity = await ibiz.hub.getAppDataEntity(
13044
13154
  appDeId,
13045
- this.model.appId
13155
+ this.appId
13046
13156
  );
13047
13157
  const find = appDataEntity.appDEUIActions.find((action) => {
13048
13158
  return action.id === actionId;
@@ -13069,7 +13179,7 @@ var Application = class {
13069
13179
  if (!result && appDataEntityId) {
13070
13180
  const appDataEntity = await ibiz.hub.getAppDataEntity(
13071
13181
  appDataEntityId,
13072
- this.model.appId
13182
+ this.appId
13073
13183
  );
13074
13184
  result = (_b = appDataEntity.deopprivs) == null ? void 0 : _b.find((item) => item.name === id);
13075
13185
  }
@@ -13086,7 +13196,7 @@ var Application = class {
13086
13196
  async getDEUILogic(deUILogicId, appDataEntityId) {
13087
13197
  const appDataEntity = await ibiz.hub.getAppDataEntity(
13088
13198
  appDataEntityId,
13089
- this.model.appId
13199
+ this.appId
13090
13200
  );
13091
13201
  return appDataEntity.appDEUILogics.find((logic) => {
13092
13202
  return logic.id === deUILogicId;
@@ -13106,7 +13216,7 @@ var Application = class {
13106
13216
  this.mqtt = new MqttService(
13107
13217
  ibiz.appData.mqtttopic,
13108
13218
  getToken(),
13109
- this.model.appId
13219
+ this.appId
13110
13220
  );
13111
13221
  this.mqtt.evt.on("message", (message) => {
13112
13222
  ibiz.mc.command.next(message);
@@ -13280,7 +13390,7 @@ var TreeGridExNotifyState = /* @__PURE__ */ ((TreeGridExNotifyState2) => {
13280
13390
  // src/controller/common/view/view.controller.ts
13281
13391
  import { notNilEmpty as notNilEmpty6 } from "qx-util";
13282
13392
  import { IBizContext as IBizContext2, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
13283
- import { isEmpty as isEmpty8, isNil as isNil21, isNotNil as isNotNil2 } from "ramda";
13393
+ import { isEmpty as isEmpty9, isNil as isNil22, isNotNil as isNotNil2 } from "ramda";
13284
13394
 
13285
13395
  // src/controller/utils/loading/loading.state.ts
13286
13396
  import { NOOP } from "@ibiz-template/core";
@@ -13922,9 +14032,9 @@ function hasSubRoute(routeDepth) {
13922
14032
  }
13923
14033
 
13924
14034
  // src/controller/utils/util/util.ts
13925
- import { isNil as isNil16 } from "ramda";
14035
+ import { isNil as isNil17 } from "ramda";
13926
14036
  function isValueChange(value, value2) {
13927
- if ((isNil16(value) || value === "") && (isNil16(value2) || value2 === "")) {
14037
+ if ((isNil17(value) || value === "") && (isNil17(value2) || value2 === "")) {
13928
14038
  return false;
13929
14039
  }
13930
14040
  return value !== value2;
@@ -13940,7 +14050,7 @@ function getOriginData(data) {
13940
14050
  // src/controller/utils/value-rule/value-rule.ts
13941
14051
  import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
13942
14052
  import { isNilOrEmpty as isNilOrEmpty6, isNumber } from "qx-util";
13943
- import { isNil as isNil17 } from "ramda";
14053
+ import { isNil as isNil18 } from "ramda";
13944
14054
  function generateRules(itemVRs, name, valueItemName) {
13945
14055
  const rules = [];
13946
14056
  itemVRs.forEach((item) => {
@@ -14005,7 +14115,7 @@ function generateEditorRules(editor) {
14005
14115
  if (maxLength) {
14006
14116
  rules.push({
14007
14117
  validator: (rule, value, callback) => {
14008
- if (!isNil17(value) && value.length > maxLength) {
14118
+ if (!isNil18(value) && value.length > maxLength) {
14009
14119
  callback(
14010
14120
  new Error(
14011
14121
  "\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
@@ -14020,7 +14130,7 @@ function generateEditorRules(editor) {
14020
14130
  if (minLength) {
14021
14131
  rules.push({
14022
14132
  validator: (rule, value, callback) => {
14023
- if (!isNil17(value) && value.length < minLength) {
14133
+ if (!isNil18(value) && value.length < minLength) {
14024
14134
  callback(
14025
14135
  new Error(
14026
14136
  "\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
@@ -14032,10 +14142,10 @@ function generateEditorRules(editor) {
14032
14142
  }
14033
14143
  });
14034
14144
  }
14035
- if (!isNil17(maxValue)) {
14145
+ if (!isNil18(maxValue)) {
14036
14146
  rules.push({
14037
14147
  validator: (rule, value, callback) => {
14038
- if (!isNil17(value) && isNumber(value) && value > maxValue) {
14148
+ if (!isNil18(value) && isNumber(value) && value > maxValue) {
14039
14149
  callback(new Error("\u503C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxValue)));
14040
14150
  } else {
14041
14151
  return true;
@@ -14043,10 +14153,10 @@ function generateEditorRules(editor) {
14043
14153
  }
14044
14154
  });
14045
14155
  }
14046
- if (!isNil17(minValue)) {
14156
+ if (!isNil18(minValue)) {
14047
14157
  rules.push({
14048
14158
  validator: (rule, value, callback) => {
14049
- if (!isNil17(value) && isNumber(value) && value < minValue) {
14159
+ if (!isNil18(value) && isNumber(value) && value < minValue) {
14050
14160
  callback(new Error("\u503C\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minValue)));
14051
14161
  } else {
14052
14162
  return true;
@@ -14059,7 +14169,7 @@ function generateEditorRules(editor) {
14059
14169
 
14060
14170
  // src/controller/utils/value-ex/value-ex.ts
14061
14171
  import { RuntimeError as RuntimeError30 } from "@ibiz-template/core";
14062
- import { isNil as isNil18, mergeLeft } from "ramda";
14172
+ import { isNil as isNil19, mergeLeft } from "ramda";
14063
14173
  var ValueExUtil = class {
14064
14174
  /**
14065
14175
  * 合并默认值
@@ -14084,7 +14194,7 @@ var ValueExUtil = class {
14084
14194
  * @return {*} {string}
14085
14195
  */
14086
14196
  static toText(options, value) {
14087
- if (isNil18(value) || value === "") {
14197
+ if (isNil19(value) || value === "") {
14088
14198
  return "";
14089
14199
  }
14090
14200
  const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
@@ -14109,12 +14219,12 @@ var ValueExUtil = class {
14109
14219
  import { RuntimeError as RuntimeError31, ModelError as ModelError17 } from "@ibiz-template/core";
14110
14220
  import dayjs from "dayjs";
14111
14221
  import { createUUID as createUUID8 } from "qx-util";
14112
- import { isNil as isNil19, isNotNil } from "ramda";
14222
+ import { isNil as isNil20, isNotNil } from "ramda";
14113
14223
  function getDefaultValue(opts, origins) {
14114
14224
  var _a;
14115
14225
  const { name, valueType, defaultValue, valueFormat } = opts;
14116
14226
  const { data, context, params } = origins;
14117
- if (isNil19(valueType) && isNil19(defaultValue)) {
14227
+ if (isNil20(valueType) && isNil20(defaultValue)) {
14118
14228
  return;
14119
14229
  }
14120
14230
  if (valueType === "RESET") {
@@ -14297,6 +14407,7 @@ var BaseController = class {
14297
14407
  */
14298
14408
  this.childNames = [];
14299
14409
  this.name = model.name || model.id;
14410
+ this.preprocessModel(model);
14300
14411
  this.initState();
14301
14412
  this.convertMultipleLanguages();
14302
14413
  }
@@ -14310,6 +14421,16 @@ var BaseController = class {
14310
14421
  get _evt() {
14311
14422
  return this.evt;
14312
14423
  }
14424
+ /**
14425
+ * 根据需求对model进行预处理
14426
+ *
14427
+ * @author chitanda
14428
+ * @date 2024-02-27 11:02:00
14429
+ * @protected
14430
+ * @param {T} _model
14431
+ */
14432
+ preprocessModel(_model) {
14433
+ }
14313
14434
  /**
14314
14435
  * 初始化state的属性放,一般情况下只需要把对应的默认值直接赋值给state
14315
14436
  * 如果需要构造特殊class类型的state,可以重写该方法时,
@@ -14468,7 +14589,7 @@ var BaseController = class {
14468
14589
 
14469
14590
  // src/controller/utils/view-msg/view-msg-controller.ts
14470
14591
  import { RuntimeError as RuntimeError33, RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
14471
- import { isNil as isNil20, mergeRight as mergeRight2 } from "ramda";
14592
+ import { isNil as isNil21, mergeRight as mergeRight2 } from "ramda";
14472
14593
  var ViewMsgController = class _ViewMsgController {
14473
14594
  constructor(msgGroupId) {
14474
14595
  this.msgGroupId = msgGroupId;
@@ -14653,19 +14774,19 @@ var ViewMsgController = class _ViewMsgController {
14653
14774
  const removeModeField = this.getDeFieldName(entity, removeFlagAppDEFieldId);
14654
14775
  const deViewMessages = dataSet.map((item) => {
14655
14776
  const message = {};
14656
- if (positionField && !isNil20(item[positionField])) {
14777
+ if (positionField && !isNil21(item[positionField])) {
14657
14778
  message.position = item[positionField];
14658
14779
  }
14659
- if (titleField && !isNil20(item[titleField])) {
14780
+ if (titleField && !isNil21(item[titleField])) {
14660
14781
  message.title = item[titleField];
14661
14782
  }
14662
- if (messageField && !isNil20(item[messageField])) {
14783
+ if (messageField && !isNil21(item[messageField])) {
14663
14784
  message.message = item[messageField];
14664
14785
  }
14665
- if (typeField && !isNil20(item[typeField])) {
14786
+ if (typeField && !isNil21(item[typeField])) {
14666
14787
  message.messageType = item[typeField];
14667
14788
  }
14668
- if (removeModeField && !isNil20(item[removeModeField])) {
14789
+ if (removeModeField && !isNil21(item[removeModeField])) {
14669
14790
  message.removeMode = item[removeModeField];
14670
14791
  }
14671
14792
  return mergeRight2(basicMsg, message);
@@ -14824,6 +14945,7 @@ var ViewController = class extends BaseController {
14824
14945
  this.state.caption = this.model.caption;
14825
14946
  this.state.srfactiveviewdata = null;
14826
14947
  this.state.viewMessages = {};
14948
+ this.state.isClosing = false;
14827
14949
  }
14828
14950
  async onCreated() {
14829
14951
  await super.onCreated();
@@ -14903,8 +15025,8 @@ var ViewController = class extends BaseController {
14903
15025
  * @protected
14904
15026
  */
14905
15027
  handleContextParams() {
14906
- this.context.srfappid = this.model.appId;
14907
- if (isNil21(this.context.srfsessionid) || isEmpty8(this.context.srfsessionid)) {
15028
+ this.context.srfappid = this.model.appId || ibiz.env.appId;
15029
+ if (isNil22(this.context.srfsessionid) || isEmpty9(this.context.srfsessionid)) {
14908
15030
  const domain = ibiz.uiDomainManager.create(this.id);
14909
15031
  this.context.srfsessionid = domain.id;
14910
15032
  }
@@ -15304,7 +15426,7 @@ var CodeListEditorController = class extends EditorController {
15304
15426
 
15305
15427
  // src/controller/common/control/control.controller.ts
15306
15428
  import { IBizContext as IBizContext3, IBizParams, NoticeError as NoticeError2 } from "@ibiz-template/core";
15307
- import { clone as clone18, isNil as isNil22 } from "ramda";
15429
+ import { clone as clone18, isNil as isNil23 } from "ramda";
15308
15430
  import { notNilEmpty as notNilEmpty7 } from "qx-util";
15309
15431
  var ControlController = class extends BaseController {
15310
15432
  /**
@@ -15592,7 +15714,7 @@ var ControlController = class extends BaseController {
15592
15714
  let message;
15593
15715
  let duration;
15594
15716
  if (msgItem && msgItem.content) {
15595
- duration = isNil22(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
15717
+ duration = isNil23(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
15596
15718
  const scriptParams = { ...this.getEventArgs() };
15597
15719
  if (opts == null ? void 0 : opts.data) {
15598
15720
  scriptParams.data = opts.data;
@@ -15644,6 +15766,13 @@ var MDControlController = class extends ControlController {
15644
15766
  * @protected
15645
15767
  */
15646
15768
  this.commandDataChange = false;
15769
+ /**
15770
+ * 是否设置过排序条件,比如searchBars默认点击分组时设置了
15771
+ * @return {*}
15772
+ * @author: zhujiamin
15773
+ * @Date: 2024-02-22 16:10:23
15774
+ */
15775
+ this.isSetSort = false;
15647
15776
  /**
15648
15777
  * 实体属性映射,key是id,value是name
15649
15778
  * @author lxm
@@ -15715,7 +15844,9 @@ var MDControlController = class extends ControlController {
15715
15844
  fn(msg);
15716
15845
  }, 300);
15717
15846
  ibiz.mc.command.change.on(this.onDataChange);
15718
- this.setSort();
15847
+ if (!this.isSetSort) {
15848
+ this.setSort();
15849
+ }
15719
15850
  }
15720
15851
  async onMounted() {
15721
15852
  await super.onMounted();
@@ -15929,9 +16060,9 @@ var MDControlController = class extends ControlController {
15929
16060
  await this.startLoading();
15930
16061
  let needRefresh = false;
15931
16062
  try {
15932
- const deName = calcDeCodeNameById(this.model.appDataEntityId);
15933
16063
  await handleAllSettled(
15934
16064
  data.map(async (item) => {
16065
+ const deName = this.getRemoveDeName(item);
15935
16066
  if (item.srfuf !== 0 /* CREATE */) {
15936
16067
  const tempContext = context.clone();
15937
16068
  tempContext[deName] = item.srfkey;
@@ -15963,6 +16094,16 @@ var MDControlController = class extends ControlController {
15963
16094
  this.state.selectedData = [];
15964
16095
  await this._evt.emit("onRemoveSuccess", void 0);
15965
16096
  }
16097
+ /**
16098
+ * 获取删除实体codeName
16099
+ * @param {IData} _item
16100
+ * @return {*}
16101
+ * @author: zhujiamin
16102
+ * @Date: 2024-02-22 16:47:44
16103
+ */
16104
+ getRemoveDeName(_item) {
16105
+ return calcDeCodeNameById(this.model.appDataEntityId);
16106
+ }
15966
16107
  /**
15967
16108
  * 后台删除结束后界面删除逻辑
15968
16109
  *
@@ -16180,7 +16321,7 @@ var AppMenuController = class extends ControlController {
16180
16321
  throw new RuntimeModelError26(menuItem, "\u6CA1\u6709\u914D\u7F6E\u5E94\u7528\u529F\u80FD");
16181
16322
  }
16182
16323
  const tempContext = this.context.clone();
16183
- tempContext.srfappid = menuItem.appId;
16324
+ tempContext.srfappid = menuItem.appId || ibiz.env.appId;
16184
16325
  if (this.routeDepth && useDepth) {
16185
16326
  Object.assign(tempContext, {
16186
16327
  toRouteDepth: this.routeDepth + 1
@@ -16625,7 +16766,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
16625
16766
  import quarterOfYear from "dayjs/plugin/quarterOfYear";
16626
16767
  import weekOfYear from "dayjs/plugin/weekOfYear";
16627
16768
  import isoWeek from "dayjs/plugin/isoWeek";
16628
- import { clone as clone20, isNil as isNil23, mergeDeepRight } from "ramda";
16769
+ import { clone as clone20, isNil as isNil24, mergeDeepRight } from "ramda";
16629
16770
  dayjs4.extend(minMax2);
16630
16771
  dayjs4.extend(isSameOrBefore);
16631
16772
  dayjs4.extend(quarterOfYear);
@@ -16721,10 +16862,10 @@ var BaseSeriesGenerator = class {
16721
16862
  * @return {*} {(string | undefined)}
16722
16863
  */
16723
16864
  translateVal(codeListKey, val, isExclude = false) {
16724
- if (isNil23(val)) {
16865
+ if (isNil24(val)) {
16725
16866
  return void 0;
16726
16867
  }
16727
- if (isNil23(codeListKey)) {
16868
+ if (isNil24(codeListKey)) {
16728
16869
  return val;
16729
16870
  }
16730
16871
  const codeListItems = this.chartGenerator.codeListMap.get(codeListKey);
@@ -16773,7 +16914,7 @@ var BaseSeriesGenerator = class {
16773
16914
  seriesCodeListId,
16774
16915
  item[this.groupField]
16775
16916
  );
16776
- if (isNil23(groupVal)) {
16917
+ if (isNil24(groupVal)) {
16777
16918
  return;
16778
16919
  }
16779
16920
  group = groupVal;
@@ -18043,6 +18184,8 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
18043
18184
  srcDEUILogicParamId: this.dstParam,
18044
18185
  srcFieldName: this.dstField
18045
18186
  });
18187
+ let result;
18188
+ let compareValue;
18046
18189
  switch (this.type) {
18047
18190
  case "ENTITYFIELD": {
18048
18191
  if (!this.value) {
@@ -18052,7 +18195,9 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
18052
18195
  );
18053
18196
  }
18054
18197
  const value = data[this.value] != null ? data[this.value] : context[this.value];
18055
- return testCond(dstVal, this.op, value);
18198
+ compareValue = value;
18199
+ result = testCond(dstVal, this.op, value);
18200
+ break;
18056
18201
  }
18057
18202
  case "SRCENTITYFIELD": {
18058
18203
  if (!this.value) {
@@ -18065,13 +18210,26 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
18065
18210
  srcDEUILogicParamId: this.srcParam,
18066
18211
  srcFieldName: this.value
18067
18212
  });
18068
- return testCond(dstVal, this.op, srcVal);
18213
+ compareValue = srcVal;
18214
+ result = testCond(dstVal, this.op, srcVal);
18215
+ break;
18069
18216
  }
18070
18217
  case "CURTIME":
18071
18218
  throw new ModelError19(this.model, "\u6682\u672A\u652F\u6301\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u5F53\u524D\u65F6\u95F4]");
18072
18219
  default:
18073
- return testCond(dstVal, this.op, this.value);
18220
+ compareValue = this.value;
18221
+ result = testCond(dstVal, this.op, this.value);
18074
18222
  }
18223
+ ibiz.log.debug(
18224
+ "\u754C\u9762\u903B\u8F91\u8FDE\u63A5\u6761\u4EF6\u9879\uFF1A".concat(this.model.name, "-\u6761\u4EF6\u503C\u7C7B\u578B\uFF1A").concat(this.type, "-\u6E90\u5C5E\u6027\u540D\u79F0\uFF1A").concat(this.dstField, "-\u6E90\u5BF9\u8C61\u503C\uFF1A"),
18225
+ dstVal,
18226
+ "-\u5BF9\u6BD4\u6761\u4EF6\uFF1A".concat(this.op),
18227
+ "-\u5BF9\u6BD4\u503C\uFF1A",
18228
+ compareValue,
18229
+ "-\u5BF9\u6BD4\u7ED3\u679C\uFF1A",
18230
+ result
18231
+ );
18232
+ return result;
18075
18233
  }
18076
18234
  };
18077
18235
 
@@ -18136,7 +18294,12 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
18136
18294
  break;
18137
18295
  }
18138
18296
  }
18139
- return this.notMode ? !bol : bol;
18297
+ const result = this.notMode ? !bol : bol;
18298
+ ibiz.log.debug(
18299
+ "\u754C\u9762\u903B\u8F91\u8FDE\u63A5\u6761\u4EF6\u7EC4\u540D\u79F0\uFF1A".concat(this.model.name, "-\u6761\u4EF6\u7EC4\u6807\u8BC6\uFF1A").concat(this.model.id, "-\u8FD0\u884C\u7ED3\u679C\uFF1A"),
18300
+ result
18301
+ );
18302
+ return result;
18140
18303
  }
18141
18304
  };
18142
18305
 
@@ -18265,6 +18428,10 @@ var DEActionNode2 = class extends UILogicNode {
18265
18428
  if (res.ok) {
18266
18429
  ctx.params[retDEUILogicParamId] = res.data;
18267
18430
  }
18431
+ ibiz.log.debug(
18432
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u5B9E\u4F53\u884C\u4E3A\uFF09\uFF1A".concat(this.model.id, "-\u754C\u9762\u884C\u4E3A\u6240\u5C5E\u5B9E\u4F53\uFF1A").concat(dstAppDataEntityId, "-\u5B9E\u4F53\u884C\u4E3A\u6807\u8BC6\uFF1A").concat(dstAppDEActionId, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(retDEUILogicParamId, "-\u503C\uFF1A"),
18433
+ ctx.params[retDEUILogicParamId]
18434
+ );
18268
18435
  }
18269
18436
  };
18270
18437
 
@@ -18272,7 +18439,7 @@ var DEActionNode2 = class extends UILogicNode {
18272
18439
  import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
18273
18440
  var DEUIActionNode = class extends UILogicNode {
18274
18441
  async exec(ctx) {
18275
- const { dstAppDEUIActionId, dstDEUILogicParamId } = this.model;
18442
+ const { dstAppDEUIActionId, dstDEUILogicParamId, dstAppDataEntityId } = this.model;
18276
18443
  const { data, parameters } = ctx;
18277
18444
  if (!dstAppDEUIActionId) {
18278
18445
  throw new RuntimeModelError35(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
@@ -18286,6 +18453,9 @@ var DEUIActionNode = class extends UILogicNode {
18286
18453
  actionData = [param];
18287
18454
  }
18288
18455
  }
18456
+ ibiz.log.debug(
18457
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u5B9E\u4F53\u754C\u9762\u884C\u4E3A\uFF09\uFF1A".concat(this.model.id, "-\u754C\u9762\u884C\u4E3A\u6807\u8BC6\uFF1A").concat(dstAppDEUIActionId, "-\u754C\u9762\u884C\u4E3A\u6240\u5C5E\u5B9E\u4F53\uFF1A").concat(dstAppDataEntityId, "-\u76EE\u6807\u903B\u8F91\u53C2\u6570\u5BF9\u8C61\uFF1A").concat(dstDEUILogicParamId)
18458
+ );
18289
18459
  await UIActionUtil.execAndResolved(
18290
18460
  dstAppDEUIActionId,
18291
18461
  {
@@ -18302,6 +18472,7 @@ var DEUIActionNode = class extends UILogicNode {
18302
18472
  // src/ui-logic/ui-logic-node/start-node/start-node.ts
18303
18473
  var StartNode2 = class extends UILogicNode {
18304
18474
  async exec(_ctx) {
18475
+ ibiz.log.debug("\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u542F\u52A8\u8282\u70B9\uFF09\uFF1A".concat(this.model.id));
18305
18476
  }
18306
18477
  };
18307
18478
 
@@ -18335,6 +18506,10 @@ var EndNode2 = class extends UILogicNode {
18335
18506
  "\u6682\u672A\u652F\u6301\u7684\u7ED3\u675F\u8282\u70B9\u8FD4\u56DE\u503C\u7C7B\u578B: ".concat(returnType)
18336
18507
  );
18337
18508
  }
18509
+ ibiz.log.debug(
18510
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u7ED3\u675F\u8282\u70B9\uFF09\uFF1A".concat(this.model.id, "-\u8FD4\u56DE\u503C\u7C7B\u578B\uFF1A").concat(returnType, "-\u8FD4\u56DE\u503C\uFF1A"),
18511
+ ctx.result
18512
+ );
18338
18513
  }
18339
18514
  };
18340
18515
 
@@ -18348,6 +18523,10 @@ var PrepareJSParamNode = class extends UILogicNode {
18348
18523
  return;
18349
18524
  }
18350
18525
  for (const nodeParam of nodeParams) {
18526
+ let originValue;
18527
+ if (nodeParam.dstDEUILogicParamId) {
18528
+ originValue = clone22(ctx.params[nodeParam.dstDEUILogicParamId]);
18529
+ }
18351
18530
  switch (nodeParam.paramAction) {
18352
18531
  case "SETPARAMVALUE":
18353
18532
  await this.setParamValue(nodeParam, ctx);
@@ -18376,6 +18555,12 @@ var PrepareJSParamNode = class extends UILogicNode {
18376
18555
  "\u6682\u672A\u652F\u6301\u903B\u8F91\u5904\u7406\u53C2\u6570\u64CD\u4F5C".concat(nodeParam.paramAction)
18377
18556
  );
18378
18557
  }
18558
+ ibiz.log.debug(
18559
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u51C6\u5907\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u53C2\u6570\u5904\u7406\u64CD\u4F5C\uFF1A").concat(nodeParam.paramAction, "-\u76EE\u6807\u903B\u8F91\u53C2\u6570\uFF1A").concat(nodeParam.dstDEUILogicParamId, "-\u6E90\u53C2\u6570\uFF08\u503C\uFF09\uFF1A"),
18560
+ originValue,
18561
+ "-\u76EE\u6807\u53C2\u6570\uFF08\u503C\uFF09\uFF1A",
18562
+ ctx.params[nodeParam.dstDEUILogicParamId]
18563
+ );
18379
18564
  }
18380
18565
  }
18381
18566
  /**
@@ -18532,6 +18717,10 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
18532
18717
  if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
18533
18718
  throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
18534
18719
  }
18720
+ ibiz.log.debug(
18721
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u89C6\u56FE\u90E8\u4EF6\u8C03\u7528\uFF09\uFF1A".concat(this.model.id, "-\u8C03\u7528\u89C6\u56FE\u90E8\u4EF6\u540D\u79F0\uFF1A").concat(invokeCtrlId, "-\u8C03\u7528\u65B9\u6CD5\u540D\u79F0\uFF1A").concat(invokeMethod, "-\u89E6\u53D1\u53C2\u6570\uFF1A"),
18722
+ invokeParam
18723
+ );
18535
18724
  await invokeCtrl[invokeMethod](invokeParam);
18536
18725
  }
18537
18726
  };
@@ -18549,6 +18738,10 @@ var BindParamNode2 = class extends UILogicNode {
18549
18738
  }
18550
18739
  const srcVal = handleSrcVal2(ctx, this.model);
18551
18740
  ctx.params[dstDEUILogicParamId] = srcVal;
18741
+ ibiz.log.debug(
18742
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u7ED1\u5B9A\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDEUILogicParamId, "-\u503C\uFF1A"),
18743
+ srcVal
18744
+ );
18552
18745
  }
18553
18746
  };
18554
18747
 
@@ -18614,6 +18807,9 @@ var MsgBoxNode = class extends UILogicNode {
18614
18807
  default:
18615
18808
  throw new ModelError23(this.model, "".concat(buttonsType, "\u6682\u672A\u652F\u6301"));
18616
18809
  }
18810
+ ibiz.log.debug(
18811
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u6D88\u606F\u5F39\u7A97\uFF09\uFF1A".concat(this.model.id, "-\u6D88\u606F\u7C7B\u578B\uFF1A").concat(type, "-\u6D88\u606F\uFF1A").concat(message)
18812
+ );
18617
18813
  const result = await ibiz.modal.confirm(modalParams);
18618
18814
  ctx.setLastReturn(resultTags[result ? 0 : 1]);
18619
18815
  }
@@ -18622,6 +18818,9 @@ var MsgBoxNode = class extends UILogicNode {
18622
18818
  // src/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.ts
18623
18819
  var PFPluginNode = class extends UILogicNode {
18624
18820
  async exec(ctx) {
18821
+ ibiz.log.debug(
18822
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u524D\u7AEF\u63D2\u4EF6\uFF09\uFF1A".concat(this.model.id, "-\u63D2\u4EF6\u6807\u8BC6\uFF1A").concat(this.model.sysPFPluginId)
18823
+ );
18625
18824
  const provider = await getUILogicNodeProvider(this.model);
18626
18825
  if (provider) {
18627
18826
  await provider.exec(this.model, ctx);
@@ -18651,6 +18850,9 @@ var ResetParamNode2 = class extends UILogicNode {
18651
18850
  throw new RuntimeModelError40(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
18652
18851
  }
18653
18852
  ctx.resetParam(dstDEUILogicParamId);
18853
+ ibiz.log.debug(
18854
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u91CD\u7F6E\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u91CD\u7F6E\u53C2\u6570\uFF1A").concat(dstDEUILogicParamId)
18855
+ );
18654
18856
  }
18655
18857
  };
18656
18858
 
@@ -18668,6 +18870,10 @@ var CopyParamNode2 = class extends UILogicNode {
18668
18870
  }
18669
18871
  const srcVal = handleSrcVal2(ctx, this.model);
18670
18872
  ctx.params[dstDEUILogicParamId] = clone23(srcVal);
18873
+ ibiz.log.debug(
18874
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u62F7\u8D1D\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDEUILogicParamId, "-\u503C\uFF1A"),
18875
+ srcVal
18876
+ );
18671
18877
  }
18672
18878
  };
18673
18879
 
@@ -18697,6 +18903,12 @@ var AppendParamNode2 = class extends UILogicNode {
18697
18903
  0,
18698
18904
  ...srcVal.slice(_srcIndex, _srcSize)
18699
18905
  );
18906
+ ibiz.log.debug(
18907
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u9644\u52A0\u5230\u6570\u7EC4\uFF09\uFF1A".concat(this.model.id, "-\u9644\u52A0\u53C2\u6570\uFF1A"),
18908
+ ctx.params,
18909
+ "-\u9644\u52A0\u503C\uFF1A",
18910
+ srcVal.slice(_srcIndex, _srcSize)
18911
+ );
18700
18912
  }
18701
18913
  };
18702
18914
 
@@ -18713,6 +18925,10 @@ var SortParamNode2 = class extends UILogicNode {
18713
18925
  arr.sort((a, b) => {
18714
18926
  return dstSortDir === "ASC" ? a[key] - b[key] : b[key] - a[key];
18715
18927
  });
18928
+ ibiz.log.debug(
18929
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u6392\u5E8F\u6570\u7EC4\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u6392\u5E8F\u5C5E\u6027\uFF1A").concat(dstFieldName, "-\u6392\u5E8F\u6A21\u5F0F\uFF1A").concat(dstSortDir, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDEUILogicParamId, "-\u6392\u5E8F\u540E\u6570\u7EC4\uFF1A"),
18930
+ arr
18931
+ );
18716
18932
  }
18717
18933
  };
18718
18934
 
@@ -18725,6 +18941,9 @@ var RenewParamNode2 = class extends UILogicNode {
18725
18941
  throw new RuntimeModelError44(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
18726
18942
  }
18727
18943
  ctx.renewParam(dstDEUILogicParamId);
18944
+ ibiz.log.debug(
18945
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u91CD\u65B0\u5EFA\u7ACB\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u91CD\u5EFA\u53C2\u6570\uFF1A").concat(dstDEUILogicParamId)
18946
+ );
18728
18947
  }
18729
18948
  };
18730
18949
 
@@ -18752,6 +18971,10 @@ var DataSetNode2 = class extends UILogicNode {
18752
18971
  if (res.ok) {
18753
18972
  ctx.params[retDEUILogicParamId] = res.data;
18754
18973
  }
18974
+ ibiz.log.debug(
18975
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u6570\u636E\u96C6\u5408\uFF09\uFF1A".concat(this.model.id, "-\u6570\u636E\u96C6\u5B9E\u4F53\u6807\u8BC6\uFF1A").concat(dstAppDataEntityId, "-\u6570\u636E\u96C6\u6807\u8BC6\uFF1A").concat(dstAppDEDataSetId, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(retDEUILogicParamId, "-\u503C\uFF1A"),
18976
+ ctx.params[retDEUILogicParamId]
18977
+ );
18755
18978
  }
18756
18979
  };
18757
18980
 
@@ -18760,6 +18983,9 @@ import { RuntimeError as RuntimeError43 } from "@ibiz-template/core";
18760
18983
  var ThrowExceptionNode2 = class extends UILogicNode {
18761
18984
  async exec(_ctx) {
18762
18985
  const { errorInfo } = this.model;
18986
+ ibiz.log.debug(
18987
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u629B\u51FA\u5F02\u5E38\uFF09\uFF1A".concat(this.model.id, "-\u9519\u8BEF\u4FE1\u606F\uFF1A").concat(errorInfo)
18988
+ );
18763
18989
  throw new RuntimeError43(errorInfo);
18764
18990
  }
18765
18991
  };
@@ -18787,6 +19013,10 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
18787
19013
  if (!eventParam) {
18788
19014
  throw new RuntimeError44("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
18789
19015
  }
19016
+ ibiz.log.debug(
19017
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u89C6\u56FE\u90E8\u4EF6\u4E8B\u4EF6\u89E6\u53D1\u903B\u8F91\uFF09\uFF1A".concat(this.model.id, "-\u8C03\u7528\u89C6\u56FE\u90E8\u4EF6\u540D\u79F0\uFF1A").concat(fireCtrlId, "-\u89E6\u53D1\u4E8B\u4EF6\u540D\u79F0\uFF1A").concat(eventName, "-\u89E6\u53D1\u53C2\u6570\uFF1A"),
19018
+ eventParam
19019
+ );
18790
19020
  await invokeCtrl.evt.emit(eventName, eventParam);
18791
19021
  }
18792
19022
  };
@@ -18824,12 +19054,20 @@ var ExecuteDELogicNode = class extends UILogicNode {
18824
19054
  if (retDEUILogicParamId) {
18825
19055
  ctx.params[retDEUILogicParamId] = result;
18826
19056
  }
19057
+ ibiz.log.debug(
19058
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u6267\u884C\u5B9E\u4F53\u903B\u8F91\uFF09\uFF1A".concat(this.model.id, "-\u5B9E\u4F53\u903B\u8F91\u6807\u8BC6\uFF1A").concat(dstAppDELogicId, "-\u5B9E\u4F53\u903B\u8F91\u6240\u5C5E\u5B9E\u4F53\uFF1A").concat(dstAppDataEntityId, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(retDEUILogicParamId, "-\u503C\uFF1A"),
19059
+ result
19060
+ );
18827
19061
  }
18828
19062
  };
18829
19063
 
18830
19064
  // src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts
18831
19065
  var RawJSCodeNode = class extends UILogicNode {
18832
19066
  async exec(ctx) {
19067
+ ibiz.log.debug(
19068
+ "\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u76F4\u63A5\u4EE3\u7801\uFF09\uFF1A".concat(this.model.id, "-\u76F4\u63A5\u4EE3\u7801\uFF1A"),
19069
+ this.model.code
19070
+ );
18833
19071
  ScriptFactory.execScriptFn(
18834
19072
  {
18835
19073
  view: ctx.view,
@@ -18919,6 +19157,7 @@ var UILogicParam = class {
18919
19157
  } else if (m.viewSessionParam) {
18920
19158
  throw new ModelError24(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5F53\u524D\u89C6\u56FE\u4F1A\u8BDD");
18921
19159
  }
19160
+ ibiz.log.debug("\u8BA1\u7B97\u754C\u9762\u903B\u8F91\u53C2\u6570\uFF0C\u6807\u8BC6\uFF1A".concat(tag), "-\u503C\uFF1A", ctx.params[tag]);
18922
19161
  }
18923
19162
  /**
18924
19163
  * 重新建立变量
@@ -18936,6 +19175,11 @@ var UILogicParam = class {
18936
19175
  } else {
18937
19176
  throw new ModelError24(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B\u91CD\u65B0\u5EFA\u7ACB\u53D8\u91CF");
18938
19177
  }
19178
+ ibiz.log.debug(
19179
+ "\u91CD\u65B0\u5EFA\u7ACB\u754C\u9762\u903B\u8F91\u53C2\u6570\uFF0C\u6807\u8BC6\uFF1A".concat(tag),
19180
+ "-\u503C\uFF1A",
19181
+ ctx.params[tag]
19182
+ );
18939
19183
  }
18940
19184
  };
18941
19185
 
@@ -19142,8 +19386,15 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
19142
19386
  if (!uiLogicMap.has(deUILogic)) {
19143
19387
  uiLogicMap.set(deUILogic, new UILogic(deUILogic));
19144
19388
  }
19389
+ ibiz.log.debug(
19390
+ "\u5F00\u59CB\u6267\u884C\u754C\u9762\u903B\u8F91\uFF0C\u5B9E\u4F53\uFF1A".concat(appDataEntityId, "-\u903B\u8F91\u540D\u79F0\uFF1A").concat(deUILogic.name)
19391
+ );
19145
19392
  const uiLogic = uiLogicMap.get(deUILogic);
19146
- return uiLogic.exec(parameters);
19393
+ const result = await uiLogic.exec(parameters);
19394
+ ibiz.log.debug(
19395
+ "\u7ED3\u675F\u6267\u884C\u754C\u9762\u903B\u8F91\uFF0C\u5B9E\u4F53\uFF1A".concat(appDataEntityId, "-\u903B\u8F91\u540D\u79F0\uFF1A").concat(deUILogic.name)
19396
+ );
19397
+ return result;
19147
19398
  }
19148
19399
 
19149
19400
  // src/ui-action/uiaction-util.ts
@@ -19257,6 +19508,10 @@ var UIActionProviderBase = class {
19257
19508
  refreshMode: action.refreshMode,
19258
19509
  closeView: action.closeEditView
19259
19510
  };
19511
+ const { view } = args;
19512
+ if (action.closeEditView) {
19513
+ view.state.isClosing = true;
19514
+ }
19260
19515
  const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
19261
19516
  if (uilogicAttachMode === "REPLACE") {
19262
19517
  if (!appDEUILogicId) {
@@ -19266,12 +19521,12 @@ var UIActionProviderBase = class {
19266
19521
  return result;
19267
19522
  }
19268
19523
  if (!await this.isConfirm(action, args)) {
19269
- return this.returnError(result);
19524
+ return this.returnError(result, view);
19270
19525
  }
19271
19526
  const _result = await this.execAction(action, args);
19272
19527
  Object.assign(result, _result);
19273
19528
  if (result.cancel === true) {
19274
- return this.returnError(result);
19529
+ return this.returnError(result, view);
19275
19530
  }
19276
19531
  if (action.uilogicAttachMode === "AFTER") {
19277
19532
  if (!appDEUILogicId) {
@@ -19295,7 +19550,7 @@ var UIActionProviderBase = class {
19295
19550
  if (nextResult) {
19296
19551
  Object.assign(result, nextResult);
19297
19552
  if (nextResult.cancel === true) {
19298
- return this.returnError(result);
19553
+ return this.returnError(result, view);
19299
19554
  }
19300
19555
  }
19301
19556
  }
@@ -19327,7 +19582,8 @@ var UIActionProviderBase = class {
19327
19582
  * @returns {*} {IUIActionResult}
19328
19583
  * @memberof UIActionHandler
19329
19584
  */
19330
- returnError(result) {
19585
+ returnError(result, view) {
19586
+ view.state.isClosing = false;
19331
19587
  return Object.assign(result, {
19332
19588
  refresh: false,
19333
19589
  closeView: false
@@ -20585,7 +20841,7 @@ var RawItemPortletController = class extends PortletPartController {
20585
20841
 
20586
20842
  // src/controller/control/data-view/data-view.controller.ts
20587
20843
  import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
20588
- import { isNil as isNil24 } from "ramda";
20844
+ import { isNil as isNil25 } from "ramda";
20589
20845
 
20590
20846
  // src/controller/control/data-view/data-view.service.ts
20591
20847
  var DataViewControlService = class extends MDControlService {
@@ -20873,7 +21129,7 @@ var DataViewControlController = class extends MDControlController {
20873
21129
  const groupMap = /* @__PURE__ */ new Map();
20874
21130
  items.forEach((item) => {
20875
21131
  const groupVal = item[groupAppDEFieldId];
20876
- if (isNil24(groupVal)) {
21132
+ if (isNil25(groupVal)) {
20877
21133
  return;
20878
21134
  }
20879
21135
  if (!groupMap.has(groupVal)) {
@@ -21865,6 +22121,70 @@ var FormController = class extends ControlController {
21865
22121
  this.state.processing = false;
21866
22122
  this.state.modified = false;
21867
22123
  }
22124
+ /**
22125
+ * 进行模型预处理
22126
+ *
22127
+ * @author chitanda
22128
+ * @date 2024-02-27 09:02:52
22129
+ * @protected
22130
+ */
22131
+ preprocessModel(model) {
22132
+ if (this.context && this.context.srfreadonly === true) {
22133
+ const pages = model.deformPages;
22134
+ if (pages) {
22135
+ pages.forEach((page) => {
22136
+ page.infoGroupMode = true;
22137
+ if (page.deformDetails) {
22138
+ page.deformDetails.forEach((detail) => {
22139
+ this.deepPreprocessModel(detail);
22140
+ });
22141
+ }
22142
+ });
22143
+ }
22144
+ }
22145
+ }
22146
+ /**
22147
+ * 递归将表单模型修改为信息态
22148
+ *
22149
+ * @author chitanda
22150
+ * @date 2024-02-27 11:02:43
22151
+ * @protected
22152
+ * @param {IDEFormGroupBase} model
22153
+ */
22154
+ deepPreprocessModel(model) {
22155
+ if (model.detailType === "GROUPPANEL") {
22156
+ model.infoGroupMode = true;
22157
+ } else if (model.detailType === "FORMITEM") {
22158
+ const { editor } = model;
22159
+ if (editor) {
22160
+ editor.readOnly = true;
22161
+ }
22162
+ }
22163
+ switch (model.detailType) {
22164
+ case "FORMITEM": {
22165
+ const { editor } = model;
22166
+ if (editor) {
22167
+ editor.readOnly = true;
22168
+ }
22169
+ break;
22170
+ }
22171
+ case "MDCTRL": {
22172
+ const detail = model;
22173
+ detail.buildInActions = 0;
22174
+ break;
22175
+ }
22176
+ case "GROUPPANEL":
22177
+ model.infoGroupMode = true;
22178
+ break;
22179
+ default:
22180
+ break;
22181
+ }
22182
+ if (model.deformDetails) {
22183
+ model.deformDetails.forEach((detail) => {
22184
+ this.deepPreprocessModel(detail);
22185
+ });
22186
+ }
22187
+ }
21868
22188
  /**
21869
22189
  * 通知所有表单成员表单操作过程中的数据变更
21870
22190
  *
@@ -24596,7 +24916,9 @@ var EditFormController = class extends FormController {
24596
24916
  }
24597
24917
  this.state.modified = false;
24598
24918
  await this.evt.emit("onSaveSuccess", void 0);
24599
- this.formStateNotify("SAVE" /* SAVE */);
24919
+ if (!this.view.state.isClosing) {
24920
+ this.formStateNotify("SAVE" /* SAVE */);
24921
+ }
24600
24922
  if (!silent) {
24601
24923
  this.actionNotification("".concat(isCreate ? "CREATE" : "UPDATE", "SUCCESS"), {
24602
24924
  default: "".concat(this.data.srfmajortext || "", "\u4FDD\u5B58\u6210\u529F")
@@ -26278,6 +26600,7 @@ var GridController = class extends MDControlController {
26278
26600
  setGroupParams(data) {
26279
26601
  if (data.sort) {
26280
26602
  this.state.sortQuery = data.sort;
26603
+ this.isSetSort = true;
26281
26604
  } else {
26282
26605
  this.state.sortQuery = "";
26283
26606
  }
@@ -26335,7 +26658,7 @@ var GridController = class extends MDControlController {
26335
26658
  import { DataTypes as DataTypes4, ModelError as ModelError29, plus as plus2 } from "@ibiz-template/core";
26336
26659
  import dayjs5 from "dayjs";
26337
26660
  import { debounce as debounce3 } from "lodash-es";
26338
- import { clone as clone27, isNil as isNil25 } from "ramda";
26661
+ import { clone as clone27, isNil as isNil26 } from "ramda";
26339
26662
  var GridFieldColumnController = class extends GridColumnController {
26340
26663
  constructor() {
26341
26664
  super(...arguments);
@@ -26547,11 +26870,11 @@ var GridFieldColumnController = class extends GridColumnController {
26547
26870
  */
26548
26871
  calcFieldAgg(items) {
26549
26872
  const { aggField, aggMode, aggValueFormat, unitName } = this.model;
26550
- if (isNil25(aggMode) || aggMode === "NONE") {
26873
+ if (isNil26(aggMode) || aggMode === "NONE") {
26551
26874
  return;
26552
26875
  }
26553
26876
  const fieldName = aggField || this.model.id;
26554
- items = items.filter((item) => !isNil25(item[fieldName]));
26877
+ items = items.filter((item) => !isNil26(item[fieldName]));
26555
26878
  let aggValue;
26556
26879
  if (this.grid.model.aggMode === "PAGE") {
26557
26880
  switch (aggMode) {
@@ -27867,7 +28190,7 @@ var PickupViewPanelController = class extends ControlController {
27867
28190
 
27868
28191
  // src/controller/control/search-bar/search-bar.controller.ts
27869
28192
  import { mergeInLeft as mergeInLeft3, recursiveIterate as recursiveIterate10 } from "@ibiz-template/core";
27870
- import { clone as clone28, isNil as isNil27 } from "ramda";
28193
+ import { clone as clone28, isNil as isNil28 } from "ramda";
27871
28194
  import { isString as isString2 } from "lodash-es";
27872
28195
 
27873
28196
  // src/controller/control/search-bar/search-bar-filter.controller.ts
@@ -28309,7 +28632,7 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
28309
28632
 
28310
28633
  // src/controller/control/search-bar/use-searchcond.ts
28311
28634
  import { RuntimeError as RuntimeError58, recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
28312
- import { isNil as isNil26 } from "ramda";
28635
+ import { isNil as isNil27 } from "ramda";
28313
28636
  function getOriginFilterNodes() {
28314
28637
  return [
28315
28638
  {
@@ -28366,7 +28689,7 @@ function calcSearchConds(filterNodes) {
28366
28689
  let hasError = false;
28367
28690
  recursiveIterate9(filterNodes[0], (node) => {
28368
28691
  if (node.leaf) {
28369
- if (node.field && node.valueOP && !isNil26(node.value)) {
28692
+ if (node.field && node.valueOP && !isNil27(node.value)) {
28370
28693
  hasFilter = true;
28371
28694
  } else {
28372
28695
  hasError = true;
@@ -28665,7 +28988,7 @@ var SearchBarController = class extends ControlController {
28665
28988
  recursiveIterate10(
28666
28989
  searchconds[0],
28667
28990
  (node) => {
28668
- if (node.condtype === "DEFIELD" && !isNil27(node.value)) {
28991
+ if (node.condtype === "DEFIELD" && !isNil28(node.value)) {
28669
28992
  const controller = this.findFilterController(
28670
28993
  node.fieldname,
28671
28994
  node.condop
@@ -30106,6 +30429,20 @@ var TreeController = class extends MDControlController {
30106
30429
  nodeData._text = text;
30107
30430
  await this.updateDeNodeData([nodeData]);
30108
30431
  }
30432
+ /**
30433
+ * 获取删除实体codeName
30434
+ * @param {IData} item
30435
+ * @return {*}
30436
+ * @author: zhujiamin
30437
+ * @Date: 2024-02-22 16:47:44
30438
+ */
30439
+ getRemoveDeName(item) {
30440
+ const treeNode = this.getNodeModel(item._nodeId);
30441
+ if (treeNode) {
30442
+ return calcDeCodeNameById(treeNode.appDataEntityId);
30443
+ }
30444
+ return calcDeCodeNameById(this.model.appDataEntityId);
30445
+ }
30109
30446
  };
30110
30447
 
30111
30448
  // src/controller/control/wizard-panel/wizard-panel.controller.ts
@@ -30462,7 +30799,7 @@ var WizardPanelController = class extends ControlController {
30462
30799
 
30463
30800
  // src/controller/control/md-ctrl/md-ctrl.controller.ts
30464
30801
  import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
30465
- import { isNil as isNil28 } from "ramda";
30802
+ import { isNil as isNil29 } from "ramda";
30466
30803
 
30467
30804
  // src/controller/control/md-ctrl/md-ctrl.service.ts
30468
30805
  var MDCtrlService = class extends MDControlService {
@@ -30689,7 +31026,7 @@ var MDCtrlController = class extends MDControlController {
30689
31026
  const groupMap = /* @__PURE__ */ new Map();
30690
31027
  items.forEach((item) => {
30691
31028
  const groupVal = item[groupAppDEFieldId];
30692
- if (isNil28(groupVal)) {
31029
+ if (isNil29(groupVal)) {
30693
31030
  return;
30694
31031
  }
30695
31032
  if (!groupMap.has(groupVal)) {
@@ -30766,7 +31103,7 @@ var MDCtrlController = class extends MDControlController {
30766
31103
 
30767
31104
  // src/controller/control/kanban/kanban.controller.ts
30768
31105
  import { RuntimeError as RuntimeError61, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
30769
- import { isNil as isNil29 } from "ramda";
31106
+ import { isNil as isNil30 } from "ramda";
30770
31107
 
30771
31108
  // src/controller/control/kanban/kanban.service.ts
30772
31109
  var KanbanService = class extends DataViewControlService {
@@ -30851,7 +31188,7 @@ var KanbanController = class extends DataViewControlController {
30851
31188
  const isAsc = minorSortDir === "ASC";
30852
31189
  items.forEach((item) => {
30853
31190
  const sortValue = item[sortField];
30854
- if (isNil29(sortValue)) {
31191
+ if (isNil30(sortValue)) {
30855
31192
  item[sortField] = 0;
30856
31193
  } else {
30857
31194
  const toNum = Number(sortValue);
@@ -30958,7 +31295,7 @@ var KanbanController = class extends DataViewControlController {
30958
31295
  const groupMap = /* @__PURE__ */ new Map();
30959
31296
  items.forEach((item) => {
30960
31297
  const groupVal = item[groupAppDEFieldId];
30961
- if (isNil29(groupVal)) {
31298
+ if (isNil30(groupVal)) {
30962
31299
  return;
30963
31300
  }
30964
31301
  if (!groupMap.has(groupVal)) {
@@ -33539,7 +33876,7 @@ var GanttController = class extends TreeGridExController {
33539
33876
  /**
33540
33877
  * 保存
33541
33878
  *
33542
- * @param {ITreeNodeData} nodeData
33879
+ * @param {IGanttNodeData} nodeData
33543
33880
  * @return {*} {Promise<void>}
33544
33881
  * @memberof GanttController
33545
33882
  */
@@ -33566,9 +33903,6 @@ var GanttController = class extends TreeGridExController {
33566
33903
  const nodeModel = this.getNodeModel(nodeData._nodeId);
33567
33904
  const { appDataEntityId } = nodeModel;
33568
33905
  const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
33569
- if (isCreate) {
33570
- return;
33571
- }
33572
33906
  const deName = calcDeCodeNameById(appDataEntityId);
33573
33907
  const tempContext = this.context.clone();
33574
33908
  tempContext[deName] = nodeData._deData.srfkey;
@@ -33805,7 +34139,7 @@ import { QXEvent as QXEvent9 } from "qx-util";
33805
34139
  // src/controller/notification/async-action.controller.ts
33806
34140
  import { QXEvent as QXEvent7 } from "qx-util";
33807
34141
  import { clone as clone31 } from "ramda";
33808
- import { isNil as isNil30, isNumber as isNumber2 } from "lodash-es";
34142
+ import { isNil as isNil31, isNumber as isNumber2 } from "lodash-es";
33809
34143
  import dayjs7 from "dayjs";
33810
34144
  var AsyncActionController = class {
33811
34145
  constructor() {
@@ -33880,14 +34214,14 @@ var AsyncActionController = class {
33880
34214
  data[key] = dayjs7(data[key]).format("YYYY-MM-DD HH:mm:ss");
33881
34215
  }
33882
34216
  });
33883
- if (!isNil30(data.actionresult)) {
34217
+ if (!isNil31(data.actionresult)) {
33884
34218
  try {
33885
34219
  const json = JSON.parse(data.actionresult);
33886
34220
  data.actionresult = json;
33887
34221
  } catch (error) {
33888
34222
  }
33889
34223
  }
33890
- if (!isNil30(data.completionrate)) {
34224
+ if (!isNil31(data.completionrate)) {
33891
34225
  const num = Number(data.completionrate);
33892
34226
  if (Number.isNaN(num)) {
33893
34227
  data.completionrate = void 0;
@@ -34061,14 +34395,12 @@ var InternalMessageController = class {
34061
34395
  position: "bottom-right"
34062
34396
  });
34063
34397
  }
34398
+ this.refreshUnreadCount();
34064
34399
  });
34065
34400
  }
34066
34401
  async markRead(message) {
34067
- if (message.status !== "RECEIVED") {
34068
- return;
34069
- }
34070
34402
  const find = this.messages.find((msg) => msg.id === message.id);
34071
- if (!find) {
34403
+ if (!find || find.status !== "RECEIVED") {
34072
34404
  return;
34073
34405
  }
34074
34406
  await this.service.markRead(message.id);
@@ -34077,6 +34409,18 @@ var InternalMessageController = class {
34077
34409
  this.evt.emit("unreadCountChange", this.unreadCount);
34078
34410
  this.evt.emit("dataChange");
34079
34411
  }
34412
+ /**
34413
+ * 把所有未读消息标记为已读
34414
+ * @return {*}
34415
+ * @author: zhujiamin
34416
+ * @Date: 2024-02-21 15:38:25
34417
+ */
34418
+ async batchMarkRead() {
34419
+ await this.service.batchMarkRead();
34420
+ await this.fetch();
34421
+ this.unreadCount = 0;
34422
+ this.evt.emit("unreadCountChange", this.unreadCount);
34423
+ }
34080
34424
  /**
34081
34425
  * 获取完整信息
34082
34426
  * @author lxm
@@ -34879,7 +35223,7 @@ var MDViewEngine = class extends ViewEngineBase {
34879
35223
  });
34880
35224
  }
34881
35225
  if (!this.view.state.noLoadDefault && model.loadDefault) {
34882
- if (this.searchBar && this.searchBar.hasDefaultSelect && this.xdataControlName === "grid") {
35226
+ if (this.searchBar && this.searchBar.hasDefaultSelect && (this.xdataControlName === "grid" || this.xdataControlName === "treegrid")) {
34883
35227
  this.searchBar.setDefaultSelect();
34884
35228
  } else {
34885
35229
  this.load();
@@ -34973,7 +35317,7 @@ var MDViewEngine = class extends ViewEngineBase {
34973
35317
  view: this.view
34974
35318
  }));
34975
35319
  if (result === -1) {
34976
- throw new RuntimeModelError70(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
35320
+ throw new RuntimeModelError70(this.view.model, "\u7F3A\u5C11opendata\u7684\u89C6\u56FE\u903B\u8F91");
34977
35321
  } else {
34978
35322
  return {
34979
35323
  cancel: !result.ok
@@ -36352,6 +36696,14 @@ var PluginStaticResource = class {
36352
36696
  * @param {string} mateUrl import.mate.url
36353
36697
  */
36354
36698
  constructor(mateUrl) {
36699
+ /**
36700
+ * 是否为 http || https 开头
36701
+ *
36702
+ * @author chitanda
36703
+ * @date 2022-11-07 14:11:28
36704
+ * @protected
36705
+ */
36706
+ this.urlReg = /^http[s]?:\/\/[^\s]*/;
36355
36707
  /**
36356
36708
  * 已经输出过路径的 style 标签
36357
36709
  *
@@ -36373,6 +36725,9 @@ var PluginStaticResource = class {
36373
36725
  * @return {*} {string}
36374
36726
  */
36375
36727
  dir(pathStr) {
36728
+ if (this.urlReg.test(pathStr)) {
36729
+ return pathStr;
36730
+ }
36376
36731
  return this.url.origin + path.resolve(this.baseDir, pathStr);
36377
36732
  }
36378
36733
  /**
@@ -36385,7 +36740,7 @@ var PluginStaticResource = class {
36385
36740
  */
36386
36741
  async loadStyle(urls) {
36387
36742
  const all = urls.map((styleUrl) => {
36388
- const url = this.dir(styleUrl);
36743
+ const url = this.urlReg.test(styleUrl) ? styleUrl : this.dir(styleUrl);
36389
36744
  if (this.styleElementMap.has(url)) {
36390
36745
  return false;
36391
36746
  }
@@ -36769,3 +37124,4 @@ export {
36769
37124
  verifyFormGroupLogic,
36770
37125
  verifyPanelGroupLogic
36771
37126
  };
37127
+ //! 只有动态走这个逻辑,全代码确保所有视图都设置了viewConfig