@ibiz-template/vue3-util 0.7.31-alpha.1 → 0.7.37-alpha.3

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 (79) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/common/badge/badge.d.ts +1 -1
  4. package/es/common/code-list/code-list.d.ts +1 -1
  5. package/es/common/code-list/code-list.d.ts.map +1 -1
  6. package/es/common/code-list/code-list.mjs +17 -3
  7. package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +1 -1
  8. package/es/common/control-shell/control-shell.d.ts +1 -1
  9. package/es/common/icon/icon.d.ts +1 -1
  10. package/es/common/router-view/router-view.d.ts +3 -4
  11. package/es/common/router-view/router-view.d.ts.map +1 -1
  12. package/es/common/view-shell/view-shell.d.ts +11 -8
  13. package/es/common/view-shell/view-shell.d.ts.map +1 -1
  14. package/es/common/view-shell/view-shell.mjs +61 -32
  15. package/es/control/panel/panel/index.d.ts +1 -1
  16. package/es/control/panel/panel/panel.d.ts +1 -1
  17. package/es/control/panel/view-layout-panel/index.d.ts +1 -1
  18. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +2 -2
  19. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
  20. package/es/panel-component/grid-container/grid-container.d.ts +1 -1
  21. package/es/panel-component/grid-container/index.d.ts +1 -1
  22. package/es/panel-component/multi-data-container/index.d.ts +1 -1
  23. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +9 -0
  24. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -1
  25. package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +32 -7
  26. package/es/panel-component/multi-data-container/multi-data-container.d.ts +2 -2
  27. package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
  28. package/es/panel-component/nav-pos/index.d.ts +1 -1
  29. package/es/panel-component/nav-pos/nav-pos.d.ts +1 -1
  30. package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
  31. package/es/panel-component/nav-pos/nav-pos.mjs +1 -1
  32. package/es/panel-component/panel-container/index.d.ts +1 -1
  33. package/es/panel-component/panel-container/panel-container.d.ts +1 -1
  34. package/es/panel-component/panel-container-group/index.d.ts +1 -1
  35. package/es/panel-component/panel-container-group/panel-container-group.d.ts +1 -1
  36. package/es/panel-component/panel-container-image/index.d.ts +1 -1
  37. package/es/panel-component/panel-container-image/panel-container-image.d.ts +1 -1
  38. package/es/panel-component/panel-container-tabs/index.d.ts +1 -1
  39. package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts +1 -1
  40. package/es/panel-component/panel-ctrl-pos/index.d.ts +1 -1
  41. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +1 -1
  42. package/es/panel-component/panel-field/index.d.ts +1 -1
  43. package/es/panel-component/panel-field/panel-field.d.ts +1 -1
  44. package/es/panel-component/panel-item-render/index.d.ts +1 -1
  45. package/es/panel-component/panel-item-render/panel-item-render.d.ts +1 -1
  46. package/es/panel-component/panel-rawitem/index.d.ts +1 -1
  47. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +1 -1
  48. package/es/panel-component/panel-rawitem/panel-rawitem.mjs +2 -2
  49. package/es/panel-component/panel-tab-page/index.d.ts +1 -1
  50. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +1 -1
  51. package/es/panel-component/scroll-container/index.d.ts +1 -1
  52. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +1 -1
  53. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +1 -1
  54. package/es/panel-component/single-data-container/index.d.ts +1 -1
  55. package/es/panel-component/single-data-container/single-data-container.controller.d.ts +9 -0
  56. package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -1
  57. package/es/panel-component/single-data-container/single-data-container.controller.mjs +31 -6
  58. package/es/panel-component/single-data-container/single-data-container.d.ts +2 -2
  59. package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
  60. package/es/panel-component/teleport-placeholder/index.d.ts +1 -1
  61. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +1 -1
  62. package/es/util/install.d.ts.map +1 -1
  63. package/es/view/app-redirect-view/app-redirect-view.d.ts +1 -1
  64. package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -1
  65. package/es/view/common/index.d.ts +1 -1
  66. package/es/view/common/view.d.ts +1 -1
  67. package/es/view/de-redirect-view/de-redirect-view.d.ts +1 -1
  68. package/es/view/de-redirect-view/index.d.ts +1 -1
  69. package/es/view/portal-view/index.d.ts +1 -1
  70. package/es/view/portal-view/portal-view.d.ts +1 -1
  71. package/es/view/todo-redirect/todo-redirect.d.ts +1 -1
  72. package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -1
  73. package/lib/common/code-list/code-list.cjs +15 -1
  74. package/lib/common/view-shell/view-shell.cjs +59 -30
  75. package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +31 -6
  76. package/lib/panel-component/nav-pos/nav-pos.cjs +1 -1
  77. package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +2 -2
  78. package/lib/panel-component/single-data-container/single-data-container.controller.cjs +30 -5
  79. package/package.json +8 -7
@@ -11,7 +11,7 @@ export declare const IBizPanelItemRender: import("../../util").TypeWithInstall<i
11
11
  ns: import("@ibiz-template/core").Namespace;
12
12
  classArr: import("vue").ComputedRef<(string | false)[]>;
13
13
  htmlCode: import("vue").ComputedRef<string | undefined>;
14
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  modelData: {
16
16
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
17
17
  required: true;
@@ -14,7 +14,7 @@ export declare const PanelItemRender: import("vue").DefineComponent<{
14
14
  ns: import("@ibiz-template/core").Namespace;
15
15
  classArr: import("vue").ComputedRef<(string | false)[]>;
16
16
  htmlCode: import("vue").ComputedRef<string | undefined>;
17
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
18
  modelData: {
19
19
  type: PropType<IPanelContainer>;
20
20
  required: true;
@@ -13,7 +13,7 @@ export declare const IBizPanelRawItem: import("../../util").TypeWithInstall<impo
13
13
  classArr: import("vue").ComputedRef<(string | false)[]>;
14
14
  tempStyle: import("vue").Ref<string>;
15
15
  content: import("vue").Ref<string | number | undefined>;
16
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  modelData: {
18
18
  type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
19
19
  required: true;
@@ -16,7 +16,7 @@ export declare const PanelRawItem: import("vue").DefineComponent<{
16
16
  classArr: import("vue").ComputedRef<(string | false)[]>;
17
17
  tempStyle: Ref<string>;
18
18
  content: Ref<string | number | undefined>;
19
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
20
  modelData: {
21
21
  type: PropType<IPanelRawItem>;
22
22
  required: true;
@@ -77,8 +77,8 @@ const PanelRawItem = /* @__PURE__ */ defineComponent({
77
77
  return createVNode("div", {
78
78
  "class": this.classArr,
79
79
  "style": this.tempStyle,
80
- "onClick": () => {
81
- this.controller.onClick();
80
+ "onClick": (event) => {
81
+ this.controller.onClick(event);
82
82
  }
83
83
  }, [createVNode(resolveComponent("iBizRawItem"), {
84
84
  "rawItem": this.modelData,
@@ -10,7 +10,7 @@ export declare const IBizPanelTabPage: import("../../util").TypeWithInstall<impo
10
10
  }, {
11
11
  ns: import("@ibiz-template/core").Namespace;
12
12
  classArr: import("vue").ComputedRef<(string | false)[]>;
13
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
14
  modelData: {
15
15
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
16
16
  required: true;
@@ -13,7 +13,7 @@ export declare const PanelTabPage: import("vue").DefineComponent<{
13
13
  }, {
14
14
  ns: import("@ibiz-template/core").Namespace;
15
15
  classArr: import("vue").ComputedRef<(string | false)[]>;
16
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  modelData: {
18
18
  type: PropType<IPanelContainer>;
19
19
  required: true;
@@ -12,7 +12,7 @@ export declare const IBizScrollContainer: import("../../util").TypeWithInstall<i
12
12
  }, {
13
13
  ns: import("@ibiz-template/core").Namespace;
14
14
  classArr: import("vue").ComputedRef<(string | false)[]>;
15
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
16
  modelData: {
17
17
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
18
18
  required: true;
@@ -14,7 +14,7 @@ export declare const ScrollContainer: import("vue").DefineComponent<{
14
14
  }, {
15
15
  ns: import("@ibiz-template/core").Namespace;
16
16
  classArr: import("vue").ComputedRef<(string | false)[]>;
17
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
18
  modelData: {
19
19
  type: PropType<IPanelContainer>;
20
20
  required: true;
@@ -14,7 +14,7 @@ export declare const ScrollContainerItem: import("vue").DefineComponent<{
14
14
  }, {
15
15
  ns: import("@ibiz-template/core").Namespace;
16
16
  classArr: import("vue").ComputedRef<(string | false)[]>;
17
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
18
  modelData: {
19
19
  type: PropType<IPanelContainer>;
20
20
  required: true;
@@ -23,7 +23,7 @@ export declare const IBizSingleDataContainer: import("../../util").TypeWithInsta
23
23
  } | undefined) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
24
  [key: string]: any;
25
25
  }> | null;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
27
  modelData: {
28
28
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
29
29
  required: true;
@@ -49,6 +49,15 @@ export declare class SingleDataContainerController extends PanelItemController<I
49
49
  * @protected
50
50
  */
51
51
  protected initPanelItemControllers(panelItems?: IPanelItem[] | undefined, panel?: IPanelController, parent?: IPanelItemContainerController | undefined): Promise<void>;
52
+ /**
53
+ * 计算导航参数
54
+ *
55
+ * @author tony001
56
+ * @date 2024-07-30 18:07:52
57
+ * @protected
58
+ * @return {*} {IData}
59
+ */
60
+ protected computeNavParams(): IData;
52
61
  /**
53
62
  * 根据来源类型初始化容器数据
54
63
  * @author lxm
@@ -1 +1 @@
1
- {"version":3,"file":"single-data-container.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAElB,eAAe,EAEf,mBAAmB,EACnB,gBAAgB,EAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;;;;;GAMG;AACH,qBAAa,6BACX,SAAQ,mBAAmB,CAAC,eAAe,CAC3C,YAAW,6BAA6B;IAEhC,KAAK,EAAE,wBAAwB,CAAC;IAExC,QAAQ,CAAC,eAAe,QAAQ;IAEhC;;;;;;OAMG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAM;IAEzD;;;;;;OAMG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAM;IAEtD;;;;;;OAMG;IACH,IAAI,IAAI,IAAI,KAAK,CAEhB;IAED,SAAS,CAAC,WAAW,IAAI,wBAAwB;cAIjC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvC;;;;;;OAMG;cACa,wBAAwB,CACtC,UAAU,GAAE,UAAU,EAAE,GAAG,SAAiC,EAC5D,KAAK,GAAE,gBAA6B,EACpC,MAAM,GAAE,6BAA6B,GAAG,SAAgB,GACvD,OAAO,CAAC,IAAI,CAAC;IA4ChB;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IA+EnC;;;;;OAKG;IACH,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAMlD;;;;;OAKG;IACG,OAAO,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBzC;;;;;OAKG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IAI9B;;;;;;OAMG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCjD;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAYzC;;;;;;OAMG;cACa,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA2BlD;;;;;;;OAOG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IA2BrE;;;;;;OAMG;IACH,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAM5C;;;;;OAKG;IACG,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAa/D,OAAO,IAAI,IAAI;CAOhB"}
1
+ {"version":3,"file":"single-data-container.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAKL,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAElB,eAAe,EAEf,mBAAmB,EACnB,gBAAgB,EAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;;;;;GAMG;AACH,qBAAa,6BACX,SAAQ,mBAAmB,CAAC,eAAe,CAC3C,YAAW,6BAA6B;IAEhC,KAAK,EAAE,wBAAwB,CAAC;IAExC,QAAQ,CAAC,eAAe,QAAQ;IAEhC;;;;;;OAMG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAM;IAEzD;;;;;;OAMG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAM;IAEtD;;;;;;OAMG;IACH,IAAI,IAAI,IAAI,KAAK,CAEhB;IAED,SAAS,CAAC,WAAW,IAAI,wBAAwB;cAIjC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvC;;;;;;OAMG;cACa,wBAAwB,CACtC,UAAU,GAAE,UAAU,EAAE,GAAG,SAAiC,EAC5D,KAAK,GAAE,gBAA6B,EACpC,MAAM,GAAE,6BAA6B,GAAG,SAAgB,GACvD,OAAO,CAAC,IAAI,CAAC;IA4ChB;;;;;;;OAOG;IACH,SAAS,CAAC,gBAAgB,IAAI,KAAK;IAgBnC;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IA+EnC;;;;;OAKG;IACH,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAMlD;;;;;OAKG;IACG,OAAO,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBzC;;;;;OAKG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IAI9B;;;;;;OAMG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCjD;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAYzC;;;;;;OAMG;cACa,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA4BlD;;;;;;;OAOG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IA2BrE;;;;;;OAMG;IACH,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAM5C;;;;;OAKG;IACG,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAa/D,OAAO,IAAI,IAAI;CAOhB"}
@@ -1,5 +1,5 @@
1
1
  import { ModelError, RuntimeModelError, RuntimeError } from '@ibiz-template/core';
2
- import { PanelItemController, getPanelItemProvider, isDataContainer, ScriptFactory, getAllPanelField, PanelData, PanelNotifyState, execDELogicById } from '@ibiz-template/runtime';
2
+ import { PanelItemController, getPanelItemProvider, isDataContainer, convertNavData, ScriptFactory, getAllPanelField, PanelData, PanelNotifyState, execDELogicById } from '@ibiz-template/runtime';
3
3
  import { SingleDataContainerState } from './single-data-container.state.mjs';
4
4
 
5
5
  "use strict";
@@ -89,6 +89,29 @@ class SingleDataContainerController extends PanelItemController {
89
89
  })
90
90
  );
91
91
  }
92
+ /**
93
+ * 计算导航参数
94
+ *
95
+ * @author tony001
96
+ * @date 2024-07-30 18:07:52
97
+ * @protected
98
+ * @return {*} {IData}
99
+ */
100
+ computeNavParams() {
101
+ const { navigateContexts, navigateParams } = this.model;
102
+ const context = this.panel.context.clone();
103
+ Object.assign(
104
+ context,
105
+ convertNavData(navigateContexts, this.panel.params, this.panel.context)
106
+ );
107
+ const params = convertNavData(
108
+ navigateParams,
109
+ this.panel.params,
110
+ this.panel.context
111
+ );
112
+ Object.assign(params, this.panel.params);
113
+ return { context, params };
114
+ }
92
115
  /**
93
116
  * 根据来源类型初始化容器数据
94
117
  * @author lxm
@@ -233,12 +256,13 @@ class SingleDataContainerController extends PanelItemController {
233
256
  ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity")
234
257
  );
235
258
  }
259
+ const { context, params } = this.computeNavParams();
236
260
  const data = await execDELogicById(
237
261
  appDELogicId,
238
262
  appDataEntityId,
239
- this.panel.context,
263
+ context,
240
264
  this.panel.data,
241
- this.panel.params
265
+ params
242
266
  );
243
267
  if (!data) {
244
268
  throw new RuntimeError(
@@ -286,12 +310,13 @@ class SingleDataContainerController extends PanelItemController {
286
310
  );
287
311
  }
288
312
  const app = ibiz.hub.getApp(this.panel.context.srfappid);
313
+ const { context, params } = this.computeNavParams();
289
314
  const res = await app.deService.exec(
290
315
  appDataEntityId,
291
316
  appDEMethodId,
292
- this.panel.context,
293
- [],
294
- this.panel.params
317
+ context,
318
+ void 0,
319
+ params
295
320
  );
296
321
  if (res.ok && res.data) {
297
322
  this.setData(res.data);
@@ -22,8 +22,8 @@ export declare const SingleDataContainer: import("vue").DefineComponent<{
22
22
  panelItems: {
23
23
  [key: string]: IPanelItemController;
24
24
  };
25
- } | undefined) => VNode | null;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ }) => VNode | null;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
27
  modelData: {
28
28
  type: PropType<IPanelContainer>;
29
29
  required: true;
@@ -1 +1 @@
1
- {"version":3,"file":"single-data-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EACN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iCA0Bb,UAAU;;;;;;;sBASlB,KAAK,GAAG,IAAI;;;;;;;;;;YA0CrB,CAAC"}
1
+ {"version":3,"file":"single-data-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EACN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iCA0Bb,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACE,KAAK,GAAG,IAAI;;;;;;;;;;YA0CrB,CAAC"}
@@ -13,7 +13,7 @@ export declare const IBizTeleportPlaceholder: import("../../util").TypeWithInsta
13
13
  ns: import("@ibiz-template/core").Namespace;
14
14
  classArr: import("vue").ComputedRef<(string | false)[]>;
15
15
  tempStyle: import("vue").Ref<string>;
16
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  modelData: {
18
18
  type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
19
19
  required: true;
@@ -15,7 +15,7 @@ export declare const TeleportPlaceholder: import("vue").DefineComponent<{
15
15
  ns: import("@ibiz-template/core").Namespace;
16
16
  classArr: import("vue").ComputedRef<(string | false)[]>;
17
17
  tempStyle: import("vue").Ref<string>;
18
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  modelData: {
20
20
  type: PropType<IPanelRawItem>;
21
21
  required: true;
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/util/install.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAEvC,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAE5C,eAAO,MAAM,WAAW,6BAER,GAAG,KAAK,IAAI,uBAM3B,CAAC"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/util/install.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAEvC,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAE5C,eAAO,MAAM,WAAW,YAChB,CAAC,WACE,CAAC,EAAE,EAAE,GAAG,KAAK,IAAI,KACzB,gBAAgB,CAAC,CAKnB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const AppRedirectView: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ export declare const AppRedirectView: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  //# sourceMappingURL=app-redirect-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/app-redirect-view/app-redirect-view.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,sSAqB1B,CAAC"}
1
+ {"version":3,"file":"app-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/app-redirect-view/app-redirect-view.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,4NAqB1B,CAAC"}
@@ -30,7 +30,7 @@ export declare const IBizView: import("../../util").TypeWithInstall<import("vue"
30
30
  }>;
31
31
  getCtrlTeleportTag: (ctrl: import("@ibiz/model-core").IControl) => string | undefined;
32
32
  getControlStyle: () => {};
33
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
34
  context: import("vue").PropType<IContext>;
35
35
  params: {
36
36
  type: import("vue").PropType<IParams>;
@@ -32,7 +32,7 @@ export declare const View: import("vue").DefineComponent<{
32
32
  renderControl: (ctrl: IControl) => VNode;
33
33
  getCtrlTeleportTag: (ctrl: IControl) => string | undefined;
34
34
  getControlStyle: () => {};
35
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  context: PropType<IContext>;
37
37
  params: {
38
38
  type: PropType<IParams>;
@@ -19,7 +19,7 @@ export declare const DeRedirectView: import("vue").DefineComponent<{
19
19
  toViewId: import("vue").Ref<string | undefined>;
20
20
  toViewContext: import("vue").Ref<IContext | undefined>;
21
21
  toViewParams: import("vue").Ref<IParams | undefined>;
22
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
23
  context: {
24
24
  type: PropType<IContext>;
25
25
  required: true;
@@ -16,7 +16,7 @@ export declare const IBizDeRedirectView: import("../../util").TypeWithInstall<im
16
16
  toViewId: import("vue").Ref<string | undefined>;
17
17
  toViewContext: import("vue").Ref<IContext | undefined>;
18
18
  toViewParams: import("vue").Ref<IParams | undefined>;
19
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
20
  context: {
21
21
  type: import("vue").PropType<IContext>;
22
22
  required: true;
@@ -19,7 +19,7 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
19
19
  ns: import("@ibiz-template/core").Namespace;
20
20
  controls: import("@ibiz/model-core").IControl[] | undefined;
21
21
  viewClassNames: (string | undefined)[];
22
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
23
  context: import("vue").PropType<IContext>;
24
24
  params: {
25
25
  type: import("vue").PropType<IParams>;
@@ -22,7 +22,7 @@ export declare const PortalView: import("vue").DefineComponent<{
22
22
  ns: import("@ibiz-template/core").Namespace;
23
23
  controls: import("@ibiz/model-core").IControl[] | undefined;
24
24
  viewClassNames: (string | undefined)[];
25
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
26
  context: PropType<IContext>;
27
27
  params: {
28
28
  type: PropType<IParams>;
@@ -1,2 +1,2 @@
1
- export declare const TodoRedirect: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ export declare const TodoRedirect: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  //# sourceMappingURL=todo-redirect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"todo-redirect.d.ts","sourceRoot":"","sources":["../../../src/view/todo-redirect/todo-redirect.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,sSA8CvB,CAAC"}
1
+ {"version":3,"file":"todo-redirect.d.ts","sourceRoot":"","sources":["../../../src/view/todo-redirect/todo-redirect.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,4NA8CvB,CAAC"}
@@ -44,6 +44,13 @@ const IBizCodeList = /* @__PURE__ */ vue.defineComponent({
44
44
  const items = vue.ref([]);
45
45
  const textSeparator = ((_a = props.codeList) == null ? void 0 : _a.textSeparator) || "\u3001";
46
46
  const valueSeparator = ((_b = props.codeList) == null ? void 0 : _b.valueSeparator) || ",";
47
+ const currentMode = vue.computed(() => {
48
+ if (props.codeList && props.codeList.orMode) {
49
+ return props.codeList.orMode;
50
+ }
51
+ return "STR";
52
+ });
53
+ const calcOrMode = runtime.useCalcOrMode(currentMode.value);
47
54
  vue.watch(items, (newVal) => {
48
55
  let infoText = "";
49
56
  if (newVal.length > 0) {
@@ -78,7 +85,14 @@ const IBizCodeList = /* @__PURE__ */ vue.defineComponent({
78
85
  if (ramda.isNil(value) || value === "") {
79
86
  items.value = [];
80
87
  } else {
81
- const values = typeof value === "string" ? value.split(valueSeparator) : [value];
88
+ let values = [];
89
+ const {
90
+ getSelectArray
91
+ } = calcOrMode;
92
+ const arr = getSelectArray(value, props.codeList, codeListItems, valueSeparator, props.codeList.codeItemValueNumber);
93
+ if (arr) {
94
+ values = arr;
95
+ }
82
96
  items.value = values.map((val) => {
83
97
  const findItem = findCodeListItem(codeListItems, val);
84
98
  let codeValue = val;
@@ -34,12 +34,21 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
34
34
  const provider = vue.ref();
35
35
  const viewModelData = vue.ref();
36
36
  const hasAuthority = vue.ref(true);
37
- const checkViewAuthority = async (viewModel) => {
37
+ const context = vue.ref(props.context);
38
+ const params = vue.ref(props.params || {});
39
+ vue.watch(() => ({
40
+ context: props.context,
41
+ params: props.params
42
+ }), (newVal) => {
43
+ context.value = newVal.context;
44
+ params.value = newVal.params ? newVal.params : {};
45
+ });
46
+ const checkViewAuthority = async (viewModel2) => {
38
47
  let checkResult = true;
39
48
  const {
40
49
  accUserMode,
41
50
  accessKey
42
- } = viewModel;
51
+ } = viewModel2;
43
52
  const authInfo = ibiz.auth.getAuthInfo();
44
53
  if (accUserMode !== void 0) {
45
54
  switch (accUserMode) {
@@ -55,7 +64,7 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
55
64
  break;
56
65
  case 4:
57
66
  if (accessKey) {
58
- const app = await ibiz.hub.getApp(props.context.srfappid);
67
+ const app = await ibiz.hub.getApp(context.value.srfappid);
59
68
  const permitted = app.authority.calcByResCode(accessKey);
60
69
  if (!permitted) {
61
70
  checkResult = false;
@@ -68,13 +77,16 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
68
77
  }
69
78
  return checkResult;
70
79
  };
71
- const init = async () => {
72
- let viewModel;
80
+ let viewModel;
81
+ const initViewModel = async () => {
73
82
  if (props.modelData) {
74
83
  viewModel = props.modelData;
75
84
  } else {
76
85
  viewModel = await ibiz.hub.getAppView(props.viewId);
77
86
  }
87
+ };
88
+ const init = async () => {
89
+ await initViewModel();
78
90
  if (!viewModel) {
79
91
  throw new core.RuntimeError(ibiz.i18n.t("vue3Util.common.noFoundViewModel"));
80
92
  }
@@ -89,30 +101,26 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
89
101
  codeName: viewModel.codeName
90
102
  }));
91
103
  }
92
- const params = props.params || {};
93
- const loadModelParams = await runtime.calcDynaSysParams(appDataEntityId, props.context, {
104
+ const loadModelParams = await runtime.calcDynaSysParams(appDataEntityId, context.value, {
94
105
  viewParams: params,
95
106
  appId: viewModel.appId
96
107
  });
97
- if (params.srfdatatype) {
98
- loadModelParams.srfdatatype = params.srfdatatype;
108
+ if (params.value.srfdatatype) {
109
+ loadModelParams.srfdatatype = params.value.srfdatatype;
99
110
  }
100
- if (params.srfwftag) {
101
- loadModelParams.srfwftag = params.srfwftag;
111
+ if (params.value.srfwftag) {
112
+ loadModelParams.srfwftag = params.value.srfwftag;
102
113
  } else if (appDataEntityId && viewModel.enableWF) {
103
- const context = {
104
- ...props.context
105
- };
106
114
  if (loadModelParams.srfkey) {
107
- const noSrfSessionId = ramda.isNil(props.context.srfsessionid) || ramda.isEmpty(props.context.srfsessionid);
115
+ const noSrfSessionId = ramda.isNil(context.value.srfsessionid) || ramda.isEmpty(context.value.srfsessionid);
108
116
  const id = qxUtil.createUUID();
109
117
  if (noSrfSessionId) {
110
118
  const domain = ibiz.uiDomainManager.create(id);
111
- context.srfsessionid = domain.id;
119
+ context.value.srfsessionid = domain.id;
112
120
  }
113
121
  const app = ibiz.hub.getApp(viewModel.appId);
114
- const service = await app.deService.getService(props.context, appDataEntityId);
115
- const res = await service.get(context, props.params || {});
122
+ const service = await app.deService.getService(context.value, appDataEntityId);
123
+ const res = await service.get(context.value, params.value || {});
116
124
  if (res.ok && res.data) {
117
125
  const {
118
126
  srfwftag,
@@ -123,12 +131,11 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
123
131
  loadModelParams.srfwftag = srfwftag;
124
132
  }
125
133
  if (["DEWFDYNAEDITVIEW3", "DEWFDYNAEDITVIEW"].includes(viewModel.viewType)) {
126
- const viewParams = props.params;
127
- if (ramda.isNil(viewParams.processDefinitionKey)) {
128
- viewParams.processDefinitionKey = processdefinitionkey;
134
+ if (ramda.isNil(params.value.processDefinitionKey)) {
135
+ params.value.processDefinitionKey = processdefinitionkey;
129
136
  }
130
- if (ramda.isNil(viewParams.taskDefinitionKey)) {
131
- viewParams.taskDefinitionKey = taskdefinitionkey;
137
+ if (ramda.isNil(params.value.taskDefinitionKey)) {
138
+ params.value.taskDefinitionKey = taskdefinitionkey;
132
139
  }
133
140
  }
134
141
  }
@@ -151,23 +158,45 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
151
158
  }
152
159
  };
153
160
  init();
161
+ const redrawView = async (event) => {
162
+ isComplete.value = false;
163
+ const {
164
+ redrawData
165
+ } = event;
166
+ const {
167
+ isReloadModel
168
+ } = redrawData;
169
+ Object.assign(context.value, redrawData.context);
170
+ Object.assign(params.value, redrawData.params);
171
+ if (isReloadModel) {
172
+ await init();
173
+ } else {
174
+ setTimeout(() => {
175
+ isComplete.value = true;
176
+ });
177
+ }
178
+ };
154
179
  return {
155
180
  ns,
156
- isComplete,
157
181
  errMsg,
158
- viewModelData,
182
+ provider,
183
+ isComplete,
159
184
  hasAuthority,
160
- provider
185
+ viewModelData,
186
+ redrawView,
187
+ curContext: context,
188
+ curParams: params
161
189
  };
162
190
  },
163
191
  render() {
164
192
  if (this.isComplete && this.provider && this.hasAuthority) {
165
193
  return vue.h(vue.resolveComponent(this.provider.component), {
166
- context: this.$props.context,
167
- params: this.$props.params,
168
- modelData: this.viewModelData,
194
+ context: this.curContext,
195
+ params: this.curParams,
196
+ modelData: ramda.clone(this.viewModelData),
169
197
  ...this.$attrs,
170
- provider: this.provider
198
+ provider: this.provider,
199
+ onRedrawView: this.redrawView
171
200
  }, this.$slots);
172
201
  }
173
202
  if (!this.hasAuthority) {
@@ -82,6 +82,29 @@ class MultiDataContainerController extends runtime.PanelItemController {
82
82
  })
83
83
  );
84
84
  }
85
+ /**
86
+ * 计算导航参数
87
+ *
88
+ * @author tony001
89
+ * @date 2024-07-30 18:07:36
90
+ * @protected
91
+ * @return {*} {IData}
92
+ */
93
+ computeNavParams() {
94
+ const { navigateContexts, navigateParams } = this.model;
95
+ const context = this.panel.context.clone();
96
+ Object.assign(
97
+ context,
98
+ runtime.convertNavData(navigateContexts, this.panel.params, this.panel.context)
99
+ );
100
+ const params = runtime.convertNavData(
101
+ navigateParams,
102
+ this.panel.params,
103
+ this.panel.context
104
+ );
105
+ Object.assign(params, this.panel.params);
106
+ return { context, params };
107
+ }
85
108
  /**
86
109
  * 根据来源类型初始化容器数据
87
110
  * @author lxm
@@ -232,12 +255,13 @@ class MultiDataContainerController extends runtime.PanelItemController {
232
255
  ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity")
233
256
  );
234
257
  }
258
+ const { context, params } = this.computeNavParams();
235
259
  const data = await runtime.execDELogicById(
236
260
  appDELogicId,
237
261
  appDataEntityId,
238
- this.panel.context,
239
- [],
240
- this.panel.params
262
+ context,
263
+ this.panel.data,
264
+ params
241
265
  );
242
266
  if (!data) {
243
267
  throw new core.RuntimeError(
@@ -285,12 +309,13 @@ class MultiDataContainerController extends runtime.PanelItemController {
285
309
  );
286
310
  }
287
311
  const app = ibiz.hub.getApp(this.panel.context.srfappid);
312
+ const { context, params } = this.computeNavParams();
288
313
  const res = await app.deService.exec(
289
314
  appDataEntityId,
290
315
  appDEMethodId,
291
- this.panel.context,
292
- [],
293
- this.panel.params
316
+ context,
317
+ void 0,
318
+ params
294
319
  );
295
320
  if (res.ok && res.data) {
296
321
  this.setData(res.data);
@@ -94,7 +94,7 @@ const NavPos = /* @__PURE__ */ vue.defineComponent({
94
94
  }
95
95
  });
96
96
  } else {
97
- const view = currentKey ? vue.h(vue.resolveComponent("IBizViewShell"), {
97
+ const view = currentKey && navViewMsgs[currentKey] ? vue.h(vue.resolveComponent("IBizViewShell"), {
98
98
  context: navViewMsgs[currentKey].context,
99
99
  params: navViewMsgs[currentKey].params,
100
100
  key: !this.c.ignoreEmbedKey ? currentKey : void 0,
@@ -79,8 +79,8 @@ const PanelRawItem = /* @__PURE__ */ vue.defineComponent({
79
79
  return vue.createVNode("div", {
80
80
  "class": this.classArr,
81
81
  "style": this.tempStyle,
82
- "onClick": () => {
83
- this.controller.onClick();
82
+ "onClick": (event) => {
83
+ this.controller.onClick(event);
84
84
  }
85
85
  }, [vue.createVNode(vue.resolveComponent("iBizRawItem"), {
86
86
  "rawItem": this.modelData,