@ibiz-template/vue3-components 0.7.38-alpha.31 → 0.7.38-alpha.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart-NHocZH22.js +1 -0
- package/dist/index-BLHbMaxB.js +1 -0
- package/dist/index-D22WGUVe.js +1 -0
- package/dist/index-b76YR_Js.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-DbA3TyD9.js → xlsx-util-BoMFhSd9.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/button-list/button-list.css +1 -1
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +3 -0
- package/es/common/custom-theme/custom-theme-model.mjs +168 -47
- package/es/common/custom-theme/custom-theme.controller.d.ts +87 -1
- package/es/common/custom-theme/custom-theme.controller.mjs +235 -5
- package/es/common/custom-theme/custom-theme.css +1 -1
- package/es/common/custom-theme/custom-theme.d.ts +5 -3
- package/es/common/custom-theme/custom-theme.mjs +190 -26
- package/es/common/nav-split/nav-split.mjs +0 -1
- package/es/common/no-data/no-data.css +1 -1
- package/es/common/no-data/no-data.d.ts +3 -3
- package/es/common/no-data/no-data.mjs +2 -2
- package/es/common/view-message/view-message.d.ts +5 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/calendar/calendar-util.d.ts +24 -0
- package/es/control/calendar/calendar-util.mjs +21 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +2 -0
- package/es/control/calendar/calendar.mjs +94 -25
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -0
- package/es/control/calendar/components/calendar-user/calendar-user.d.ts +15 -0
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +133 -0
- package/es/control/calendar/components/calendar-user/index.d.ts +15 -0
- package/es/control/calendar/components/calendar-user/index.mjs +9 -0
- package/es/control/calendar/components/calendar-user/use-calendar-user.d.ts +17 -0
- package/es/control/calendar/components/calendar-user/use-calendar-user.mjs +59 -0
- package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +3 -2
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +11 -0
- package/es/control/calendar/components/interface/calendar-user.d.ts +10 -0
- package/es/control/calendar/components/interface/calendar-user.mjs +20 -0
- package/es/control/calendar/components/interface/index.d.ts +1 -0
- package/es/control/calendar/components/interface/index.mjs +1 -0
- package/es/control/calendar/index.d.ts +2 -0
- package/es/control/caption-bar/caption-bar.css +1 -1
- package/es/control/chart/chart.css +1 -1
- package/es/control/chart/chart.d.ts +1 -0
- package/es/control/chart/chart.mjs +12 -5
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +85 -0
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +1 -0
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +36 -16
- package/es/control/dashboard/dashboard-design/dashboard-design.util.d.ts +10 -0
- package/es/control/dashboard/dashboard-design/dashboard-design.util.mjs +246 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +1 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +8 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.d.ts +35 -0
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.mjs +93 -0
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +49 -33
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +71 -0
- package/es/control/grid/grid/grid-control.util.mjs +2 -2
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +3 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.mjs +9 -2
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.d.ts +2 -2
- package/es/control/toolbar/toolbar.mjs +24 -11
- package/es/control/tree/index.d.ts +2 -0
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +2 -0
- package/es/control/tree/tree.mjs +87 -6
- package/es/control/wizard-panel/wizard-panel.mjs +3 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +3 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.d.ts +66 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.mjs +139 -0
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.css +1 -0
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.d.ts +56 -0
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +178 -0
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +10 -1
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +48 -4
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +10 -0
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +9 -2
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +12 -3
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +3 -1
- package/es/editor/data-picker/picker-editor.provider.mjs +0 -1
- package/es/editor/dropdown-list/dropdown-list-editor.controller.d.ts +6 -0
- package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +13 -2
- package/es/editor/dropdown-list/dropdown-list-editor.provider.mjs +3 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +3 -0
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -0
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +83 -0
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +382 -0
- package/es/editor/dropdown-list/index.d.ts +1 -0
- package/es/editor/dropdown-list/index.mjs +1 -0
- package/es/editor/index.mjs +10 -0
- package/es/editor/span/span/span.mjs +1 -1
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +2 -0
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +18 -5
- package/es/locale/en/index.d.ts +86 -26
- package/es/locale/en/index.mjs +69 -28
- package/es/locale/zh-CN/index.d.ts +87 -26
- package/es/locale/zh-CN/index.mjs +69 -28
- package/es/panel-component/index.mjs +2 -1
- package/es/panel-component/panel-app-header/panel-app-header.css +1 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/panel-component/user-action/user-action.css +1 -1
- package/es/panel-component/user-action/user-action.mjs +1 -5
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view/login-view/login-view.mjs +22 -15
- package/es/view/share-view/share-view.mjs +1 -6
- package/es/view-engine/custom-view.engine.d.ts +9 -0
- package/es/view-engine/custom-view.engine.mjs +17 -1
- package/es/view-engine/edit-view.engine.d.ts +6 -14
- package/es/view-engine/edit-view.engine.mjs +75 -162
- package/es/view-engine/index-view.engine.d.ts +7 -0
- package/es/view-engine/index-view.engine.mjs +17 -1
- package/es/view-engine/login-view.engine.mjs +10 -1
- package/es/view-engine/portal-view-engine.d.ts +31 -3
- package/es/view-engine/portal-view-engine.mjs +94 -2
- package/es/view-engine/tree-exp-view.engine.d.ts +14 -0
- package/es/view-engine/tree-exp-view.engine.mjs +24 -1
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +4 -0
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +4 -3
- package/es/web-app/guard/auth-guard/auth-guard.mjs +26 -8
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +9 -0
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +21 -0
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/button-list/button-list.css +1 -1
- package/lib/common/custom-theme/custom-theme-model.cjs +168 -47
- package/lib/common/custom-theme/custom-theme.cjs +188 -24
- package/lib/common/custom-theme/custom-theme.controller.cjs +235 -5
- package/lib/common/custom-theme/custom-theme.css +1 -1
- package/lib/common/nav-split/nav-split.cjs +0 -1
- package/lib/common/no-data/no-data.cjs +2 -2
- package/lib/common/no-data/no-data.css +1 -1
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/calendar/calendar-util.cjs +24 -0
- package/lib/control/calendar/calendar.cjs +94 -25
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +135 -0
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -0
- package/lib/control/calendar/components/calendar-user/index.cjs +14 -0
- package/lib/control/calendar/components/calendar-user/use-calendar-user.cjs +63 -0
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +3 -2
- package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +11 -0
- package/lib/control/calendar/components/interface/calendar-user.cjs +23 -0
- package/lib/control/calendar/components/interface/index.cjs +3 -0
- package/lib/control/caption-bar/caption-bar.css +1 -1
- package/lib/control/chart/chart.cjs +12 -5
- package/lib/control/chart/chart.css +1 -1
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +35 -15
- package/lib/control/dashboard/dashboard-design/dashboard-design.util.cjs +248 -0
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +1 -1
- package/lib/control/data-view/data-view.cjs +8 -1
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form-detail/form-item/composite-form-item/composite-form-item.cjs +98 -0
- package/lib/control/form/form-detail/form-item/form-item.cjs +48 -32
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +2 -2
- package/lib/control/grid/grid/grid.cjs +3 -2
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/lib/control/list/list.cjs +9 -2
- package/lib/control/list/list.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +24 -11
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +87 -6
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +3 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +3 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.cjs +141 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +180 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.css +1 -0
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +48 -4
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +10 -0
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +9 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +12 -3
- package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.cjs +3 -1
- package/lib/editor/data-picker/picker-editor.provider.cjs +0 -1
- package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +13 -2
- package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +3 -0
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +3 -0
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +384 -0
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -0
- package/lib/editor/dropdown-list/index.cjs +2 -0
- package/lib/editor/index.cjs +10 -0
- package/lib/editor/span/span/span.cjs +1 -1
- package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +18 -5
- package/lib/locale/en/index.cjs +69 -28
- package/lib/locale/zh-CN/index.cjs +69 -28
- package/lib/panel-component/index.cjs +1 -0
- package/lib/panel-component/panel-app-header/panel-app-header.css +1 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/panel-component/user-action/user-action.cjs +1 -5
- package/lib/panel-component/user-action/user-action.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view/login-view/login-view.cjs +20 -13
- package/lib/view/share-view/share-view.cjs +0 -5
- package/lib/view-engine/custom-view.engine.cjs +16 -0
- package/lib/view-engine/edit-view.engine.cjs +74 -161
- package/lib/view-engine/index-view.engine.cjs +17 -1
- package/lib/view-engine/login-view.engine.cjs +10 -1
- package/lib/view-engine/portal-view-engine.cjs +93 -1
- package/lib/view-engine/tree-exp-view.engine.cjs +23 -0
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -0
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +26 -8
- package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +21 -0
- package/package.json +8 -8
- package/dist/chart-DPS_XpZp.js +0 -1
- package/dist/index-CnCC-cC2.js +0 -1
- package/dist/index-Q4QqDXYJ.js +0 -4
- package/dist/index-X3QXftIl.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.43_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.43_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import { RuntimeError } from '@ibiz-template/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DEMainViewEngine, getControl, getControlsByView, calcDeCodeNameById, SysUIActionTag, ViewCallTag, ControlVO, getAppViewRef, OpenAppViewCommand, calcDynaSysParams, getDeDataMajorField, convertNavData } from '@ibiz-template/runtime';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
|
-
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __publicField = (obj, key, value) => {
|
|
8
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9
|
-
return value;
|
|
10
|
-
};
|
|
11
|
-
class EditViewEngine extends ViewEngineBase {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
/**
|
|
15
|
-
* 实体名称
|
|
16
|
-
* @author lxm
|
|
17
|
-
* @date 2024-01-31 11:05:49
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
20
|
-
__publicField(this, "deName");
|
|
21
|
-
}
|
|
5
|
+
class EditViewEngine extends DEMainViewEngine {
|
|
22
6
|
get form() {
|
|
23
7
|
return this.view.getController("form");
|
|
24
8
|
}
|
|
@@ -86,7 +70,6 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
86
70
|
this.formDataStateChange = this.formDataStateChange.bind(this);
|
|
87
71
|
const { childNames, modal } = this.view;
|
|
88
72
|
childNames.push("form");
|
|
89
|
-
this.deName = calcDeCodeNameById(this.view.model.appDataEntityId);
|
|
90
73
|
if (!this.view.slotProps.form) {
|
|
91
74
|
this.view.slotProps.form = {};
|
|
92
75
|
}
|
|
@@ -120,51 +103,52 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
120
103
|
}
|
|
121
104
|
async onMounted() {
|
|
122
105
|
await super.onMounted();
|
|
123
|
-
this.initMarkOpenData();
|
|
124
106
|
const { model, evt } = this.view;
|
|
125
|
-
this.form
|
|
126
|
-
this.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
this.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
this.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
this.view.context[deName]
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
this.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
this.view.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
107
|
+
if (this.form) {
|
|
108
|
+
this.form.evt.on("onLoadSuccess", (event) => {
|
|
109
|
+
this.formDataStateChange(event);
|
|
110
|
+
const data = event.data[0];
|
|
111
|
+
this.view.state.srfactiveviewdata = data;
|
|
112
|
+
if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
|
|
113
|
+
this.view.context.srfreadonly = data.srfreadonly;
|
|
114
|
+
}
|
|
115
|
+
evt.emit("onDataChange", { ...event, actionType: "LOAD" });
|
|
116
|
+
});
|
|
117
|
+
this.form.evt.on("onLoadDraftSuccess", (event) => {
|
|
118
|
+
this.formDataStateChange(event);
|
|
119
|
+
evt.emit("onDataChange", { ...event, actionType: "LOADDRAFT" });
|
|
120
|
+
});
|
|
121
|
+
this.form.evt.on("onSaveSuccess", (event) => {
|
|
122
|
+
this.view.state.closeOK = true;
|
|
123
|
+
const deName = calcDeCodeNameById(this.view.model.appDataEntityId);
|
|
124
|
+
const formData = event.data[0];
|
|
125
|
+
if (this.view.context[deName] !== formData.srfkey) {
|
|
126
|
+
this.view.context[deName] = formData.srfkey;
|
|
127
|
+
}
|
|
128
|
+
this.formDataStateChange(event);
|
|
129
|
+
evt.emit("onDataChange", { ...event, actionType: "SAVE" });
|
|
130
|
+
});
|
|
131
|
+
this.form.evt.on("onRemoveSuccess", (event) => {
|
|
132
|
+
this.formDataStateChange(event);
|
|
133
|
+
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
134
|
+
});
|
|
135
|
+
const appDe = await ibiz.hub.getAppDataEntity(
|
|
136
|
+
this.view.model.appDataEntityId,
|
|
137
|
+
this.view.model.appId
|
|
138
|
+
);
|
|
139
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
140
|
+
const { name, value } = event;
|
|
141
|
+
if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
|
|
142
|
+
this.view.redrawView({
|
|
143
|
+
context: this.view.context,
|
|
144
|
+
params: { srfdatatype: value, [name]: value },
|
|
145
|
+
isReloadModel: true
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
150
|
+
this.load();
|
|
164
151
|
}
|
|
165
|
-
});
|
|
166
|
-
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
167
|
-
this.load();
|
|
168
152
|
}
|
|
169
153
|
}
|
|
170
154
|
getData() {
|
|
@@ -352,128 +336,60 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
352
336
|
);
|
|
353
337
|
}
|
|
354
338
|
/**
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
* @
|
|
358
|
-
* @return {*} {void}
|
|
339
|
+
* 执行数据标记行为
|
|
340
|
+
*
|
|
341
|
+
* @memberof EditViewEngine
|
|
359
342
|
*/
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
let hasOpenConfirm = false;
|
|
367
|
-
(_a = this.coopPos) == null ? void 0 : _a.initMessageModes(modes);
|
|
368
|
-
const callback = async (data) => {
|
|
369
|
-
if (!this.view.state.activated) {
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
const dataInfo = this.form.getData()[0].srfmajortext;
|
|
373
|
-
let actionMsg = "";
|
|
374
|
-
switch (data.action) {
|
|
375
|
-
case "VIEW":
|
|
376
|
-
actionMsg = ibiz.i18n.t("viewEngine.browseMsg");
|
|
377
|
-
break;
|
|
378
|
-
case "EDIT":
|
|
379
|
-
actionMsg = ibiz.i18n.t("viewEngine.editMsg");
|
|
380
|
-
break;
|
|
381
|
-
case "UPDATE":
|
|
382
|
-
actionMsg = ibiz.i18n.t("viewEngine.updateMsg");
|
|
383
|
-
break;
|
|
384
|
-
default:
|
|
385
|
-
break;
|
|
386
|
-
}
|
|
387
|
-
const message = "".concat(data.username, " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo);
|
|
388
|
-
if (this.coopPos) {
|
|
389
|
-
this.coopPos.updateMessage({
|
|
390
|
-
title: message,
|
|
391
|
-
data
|
|
392
|
-
});
|
|
393
|
-
} else {
|
|
394
|
-
ibiz.message.notice({
|
|
395
|
-
message,
|
|
396
|
-
showClose: true,
|
|
397
|
-
duration: 3,
|
|
398
|
-
styleType: "alert"
|
|
399
|
-
});
|
|
400
|
-
}
|
|
401
|
-
if (hasOpenConfirm === false && data.action === "UPDATE" && modes.includes("NOTICERELOAD")) {
|
|
402
|
-
hasOpenConfirm = true;
|
|
403
|
-
const isReload = await this.reloadConfirm();
|
|
404
|
-
if (isReload) {
|
|
405
|
-
this.refresh();
|
|
406
|
-
}
|
|
407
|
-
hasOpenConfirm = false;
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
const doActions = [];
|
|
411
|
-
if (modes.includes("EDITDATA") || modes.includes("DISPLAYOPPERSON") || modes.includes("NOTICERELOAD")) {
|
|
412
|
-
doActions.push("EDIT", "VIEW", "UPDATE", "CLOSE");
|
|
413
|
-
} else if (modes.includes("OPENDATA")) {
|
|
414
|
-
doActions.push("VIEW", "CLOSE");
|
|
415
|
-
}
|
|
416
|
-
if (doActions.length === 0) {
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
let srfkey;
|
|
420
|
-
let hasSubscribe = false;
|
|
421
|
-
if (doActions.includes("VIEW")) {
|
|
343
|
+
doMarkDataAction() {
|
|
344
|
+
if (this.doActions.includes("VIEW")) {
|
|
345
|
+
const callback = async (data) => {
|
|
346
|
+
const dataInfo = this.form.getData()[0].srfmajortext;
|
|
347
|
+
this.markOpenDataCallback(data, dataInfo);
|
|
348
|
+
};
|
|
422
349
|
this.form.evt.on("onLoadSuccess", async (event) => {
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
const result = await ibiz.markOpenData.action(
|
|
426
|
-
this.deName,
|
|
427
|
-
srfkey,
|
|
428
|
-
"VIEW"
|
|
429
|
-
);
|
|
350
|
+
const data = event.data[0];
|
|
351
|
+
const result = await this.sendMarkDataAction("VIEW", data.srfkey);
|
|
430
352
|
if (result.ok && result.data.length > 0) {
|
|
431
353
|
result.data.forEach((item) => {
|
|
432
|
-
var
|
|
354
|
+
var _a;
|
|
433
355
|
if (item.data) {
|
|
434
|
-
(
|
|
356
|
+
(_a = this.coopPos) == null ? void 0 : _a.updateMessage({
|
|
435
357
|
data: item.data
|
|
436
358
|
});
|
|
437
359
|
}
|
|
438
360
|
});
|
|
439
361
|
}
|
|
440
|
-
|
|
441
|
-
ibiz.markOpenData.subscribe(this.deName, srfkey, callback);
|
|
442
|
-
this.view.evt.on("onDestroyed", () => {
|
|
443
|
-
ibiz.markOpenData.unsubscribe(this.deName, srfkey, callback);
|
|
444
|
-
});
|
|
445
|
-
hasSubscribe = true;
|
|
446
|
-
}
|
|
362
|
+
this.subscribeMarkDataAction(data.srfkey, callback);
|
|
447
363
|
});
|
|
448
364
|
}
|
|
449
|
-
if (doActions.includes("EDIT")) {
|
|
365
|
+
if (this.doActions.includes("EDIT")) {
|
|
450
366
|
let isWait = false;
|
|
451
|
-
|
|
452
|
-
|
|
367
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
368
|
+
const data = event.data[0];
|
|
369
|
+
if (isWait) {
|
|
453
370
|
return;
|
|
454
371
|
}
|
|
455
372
|
isWait = true;
|
|
456
|
-
|
|
373
|
+
this.sendMarkDataAction("EDIT", data.srfkey);
|
|
457
374
|
setTimeout(
|
|
458
375
|
() => {
|
|
459
376
|
isWait = false;
|
|
460
377
|
},
|
|
461
378
|
1e3 * 60 * 5
|
|
462
379
|
);
|
|
463
|
-
};
|
|
464
|
-
this.form.evt.on("onFormDataChange", actionEdit);
|
|
380
|
+
});
|
|
465
381
|
}
|
|
466
|
-
if (doActions.includes("UPDATE")) {
|
|
467
|
-
this.form.evt.on("onSaveSuccess", () => {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}
|
|
382
|
+
if (this.doActions.includes("UPDATE")) {
|
|
383
|
+
this.form.evt.on("onSaveSuccess", (event) => {
|
|
384
|
+
const data = event.data[0];
|
|
385
|
+
this.sendMarkDataAction("UPDATE", data.srfkey);
|
|
471
386
|
});
|
|
472
387
|
}
|
|
473
|
-
if (doActions.includes("CLOSE")) {
|
|
388
|
+
if (this.doActions.includes("CLOSE")) {
|
|
474
389
|
this.view.evt.on("onCloseView", () => {
|
|
475
|
-
|
|
476
|
-
|
|
390
|
+
const data = this.form.getData()[0];
|
|
391
|
+
if (data == null ? void 0 : data.srfkey) {
|
|
392
|
+
this.sendMarkDataAction("CLOSE", data.srfkey);
|
|
477
393
|
}
|
|
478
394
|
});
|
|
479
395
|
}
|
|
@@ -485,10 +401,7 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
485
401
|
* @return {*} {Promise<boolean>}
|
|
486
402
|
*/
|
|
487
403
|
async reloadConfirm() {
|
|
488
|
-
const result = await
|
|
489
|
-
title: ibiz.i18n.t("viewEngine.refreshPrompt"),
|
|
490
|
-
desc: ibiz.i18n.t("viewEngine.refreshPagePrompt")
|
|
491
|
-
});
|
|
404
|
+
const result = await super.reloadConfirm();
|
|
492
405
|
if (result && this.form.state.modified) {
|
|
493
406
|
return ibiz.confirm.warning({
|
|
494
407
|
title: ibiz.i18n.t("viewEngine.refreshRemind"),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IViewController, ViewEngineBase, IIndexViewState, IViewEvent, IAppMenuController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppIndexView } from '@ibiz/model-core';
|
|
3
|
+
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
4
|
export declare class IndexViewEngine extends ViewEngineBase {
|
|
4
5
|
protected view: IViewController<IAppIndexView, IIndexViewState, IViewEvent>;
|
|
5
6
|
get appmenu(): IAppMenuController;
|
|
@@ -11,6 +12,12 @@ export declare class IndexViewEngine extends ViewEngineBase {
|
|
|
11
12
|
* @type {boolean}
|
|
12
13
|
*/
|
|
13
14
|
get enableCollapse(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @description 路由对象
|
|
17
|
+
* @type {RouteLocationNormalizedLoaded}
|
|
18
|
+
* @memberof IndexViewEngine
|
|
19
|
+
*/
|
|
20
|
+
route: RouteLocationNormalizedLoaded;
|
|
14
21
|
initViewState(): void;
|
|
15
22
|
onCreated(): Promise<void>;
|
|
16
23
|
onMounted(): Promise<void>;
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { ViewEngineBase, OpenAppViewCommand, ViewCallTag } from '@ibiz-template/runtime';
|
|
2
|
+
import { useRoute } from 'vue-router';
|
|
2
3
|
|
|
3
4
|
"use strict";
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => {
|
|
8
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9
|
+
return value;
|
|
10
|
+
};
|
|
4
11
|
class IndexViewEngine extends ViewEngineBase {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
/**
|
|
15
|
+
* @description 路由对象
|
|
16
|
+
* @type {RouteLocationNormalizedLoaded}
|
|
17
|
+
* @memberof IndexViewEngine
|
|
18
|
+
*/
|
|
19
|
+
__publicField(this, "route", useRoute());
|
|
20
|
+
}
|
|
5
21
|
get appmenu() {
|
|
6
22
|
return this.view.getController("appmenu");
|
|
7
23
|
}
|
|
@@ -30,7 +46,7 @@ class IndexViewEngine extends ViewEngineBase {
|
|
|
30
46
|
}
|
|
31
47
|
async onMounted() {
|
|
32
48
|
await super.onMounted();
|
|
33
|
-
if (!this.isExistAndInLayout("appmenu")) {
|
|
49
|
+
if (!this.isExistAndInLayout("appmenu") && !this.route.params.view2) {
|
|
34
50
|
const { model, context, params } = this.view;
|
|
35
51
|
const { defAppViewId } = model;
|
|
36
52
|
if (defAppViewId) {
|
|
@@ -95,9 +95,18 @@ class LoginViewEngine extends ViewEngineBase {
|
|
|
95
95
|
);
|
|
96
96
|
this.view.evt.emit("onAfterLogin", { ok: bol, panelDataParent });
|
|
97
97
|
if (bol === true) {
|
|
98
|
+
const loginFailed = window.location.href.indexOf("srfthird_auth_success=false") >= 0;
|
|
98
99
|
window.location.hash = this.route.query.ru || "/";
|
|
99
100
|
window.history.pushState({}, "");
|
|
100
|
-
|
|
101
|
+
if (loginFailed) {
|
|
102
|
+
const path = window.location.href.replace(
|
|
103
|
+
"?srfthird_auth_success=false",
|
|
104
|
+
""
|
|
105
|
+
);
|
|
106
|
+
window.location.href = path;
|
|
107
|
+
} else {
|
|
108
|
+
window.location.reload();
|
|
109
|
+
}
|
|
101
110
|
}
|
|
102
111
|
}
|
|
103
112
|
async cancelChanges() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewController, IPortalViewState, IPortalViewEvent, IDashboardController, DEMainViewEngine } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppView } from '@ibiz/model-core';
|
|
3
|
-
export declare class PortalViewEngine extends
|
|
3
|
+
export declare class PortalViewEngine extends DEMainViewEngine {
|
|
4
4
|
/**
|
|
5
5
|
* 视图控制器
|
|
6
6
|
*
|
|
@@ -9,6 +9,12 @@ export declare class PortalViewEngine extends ViewEngineBase {
|
|
|
9
9
|
* @memberof PortalViewEngine
|
|
10
10
|
*/
|
|
11
11
|
protected view: ViewController<IAppView, IPortalViewState, IPortalViewEvent>;
|
|
12
|
+
/**
|
|
13
|
+
* 视图created生命周期执行逻辑
|
|
14
|
+
*
|
|
15
|
+
* @return {*} {Promise<void>}
|
|
16
|
+
* @memberof PortalViewEngine
|
|
17
|
+
*/
|
|
12
18
|
onCreated(): Promise<void>;
|
|
13
19
|
/**
|
|
14
20
|
* 数据看板部件
|
|
@@ -16,6 +22,28 @@ export declare class PortalViewEngine extends ViewEngineBase {
|
|
|
16
22
|
* @readonly
|
|
17
23
|
* @memberof PortalViewEngine
|
|
18
24
|
*/
|
|
19
|
-
get dashboard():
|
|
25
|
+
get dashboard(): IDashboardController;
|
|
26
|
+
/**
|
|
27
|
+
* 视图刷新
|
|
28
|
+
*
|
|
29
|
+
* @return {*} {Promise<void>}
|
|
30
|
+
* @memberof PortalViewEngine
|
|
31
|
+
*/
|
|
32
|
+
refresh(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* 执行视图预置界面行为能力
|
|
35
|
+
*
|
|
36
|
+
* @param {string} key
|
|
37
|
+
* @param {*} args
|
|
38
|
+
* @return {*} {(Promise<IData | null | undefined>)}
|
|
39
|
+
* @memberof PortalViewEngine
|
|
40
|
+
*/
|
|
41
|
+
call(key: string, args: any): Promise<IData | null | undefined>;
|
|
20
42
|
onMounted(): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* 执行标记数据行为
|
|
45
|
+
*
|
|
46
|
+
* @memberof PortalViewEngine
|
|
47
|
+
*/
|
|
48
|
+
doMarkDataAction(): void;
|
|
21
49
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DEMainViewEngine, SysUIActionTag } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
-
class PortalViewEngine extends
|
|
4
|
+
class PortalViewEngine extends DEMainViewEngine {
|
|
5
|
+
/**
|
|
6
|
+
* 视图created生命周期执行逻辑
|
|
7
|
+
*
|
|
8
|
+
* @return {*} {Promise<void>}
|
|
9
|
+
* @memberof PortalViewEngine
|
|
10
|
+
*/
|
|
5
11
|
async onCreated() {
|
|
6
12
|
await super.onCreated();
|
|
7
13
|
const { childNames } = this.view;
|
|
@@ -16,12 +22,98 @@ class PortalViewEngine extends ViewEngineBase {
|
|
|
16
22
|
get dashboard() {
|
|
17
23
|
return this.view.getController("dashboard");
|
|
18
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* 视图刷新
|
|
27
|
+
*
|
|
28
|
+
* @return {*} {Promise<void>}
|
|
29
|
+
* @memberof PortalViewEngine
|
|
30
|
+
*/
|
|
31
|
+
async refresh() {
|
|
32
|
+
await this.dashboard.refresh();
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 执行视图预置界面行为能力
|
|
36
|
+
*
|
|
37
|
+
* @param {string} key
|
|
38
|
+
* @param {*} args
|
|
39
|
+
* @return {*} {(Promise<IData | null | undefined>)}
|
|
40
|
+
* @memberof PortalViewEngine
|
|
41
|
+
*/
|
|
42
|
+
async call(key, args) {
|
|
43
|
+
if (key === SysUIActionTag.REFRESH) {
|
|
44
|
+
if (args.ctrl) {
|
|
45
|
+
await args.ctrl.refresh();
|
|
46
|
+
} else {
|
|
47
|
+
await this.refresh();
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return super.call(key, args);
|
|
52
|
+
}
|
|
19
53
|
async onMounted() {
|
|
20
54
|
await super.onMounted();
|
|
21
55
|
if (this.view.model.appDataEntityId) {
|
|
22
56
|
await this.loadEntityData();
|
|
23
57
|
}
|
|
24
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* 执行标记数据行为
|
|
61
|
+
*
|
|
62
|
+
* @memberof PortalViewEngine
|
|
63
|
+
*/
|
|
64
|
+
doMarkDataAction() {
|
|
65
|
+
let data;
|
|
66
|
+
if (this.doActions.includes("VIEW")) {
|
|
67
|
+
const callback = async (_data) => {
|
|
68
|
+
this.markOpenDataCallback(_data, data == null ? void 0 : data.srfmajortext);
|
|
69
|
+
};
|
|
70
|
+
this.view.evt.on("onDataChange", async (event) => {
|
|
71
|
+
data = event.data[0];
|
|
72
|
+
const result = await this.sendMarkDataAction("VIEW", data.srfkey);
|
|
73
|
+
if (result.ok && result.data.length > 0) {
|
|
74
|
+
result.data.forEach((item) => {
|
|
75
|
+
var _a;
|
|
76
|
+
if (item.data) {
|
|
77
|
+
(_a = this.coopPos) == null ? void 0 : _a.updateMessage({
|
|
78
|
+
data: item.data
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
this.subscribeMarkDataAction(data.srfkey, callback);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
if (this.doActions.includes("EDIT")) {
|
|
87
|
+
let isWait = false;
|
|
88
|
+
this.dashboard.evt.on("onConfigChange", () => {
|
|
89
|
+
if (!(data == null ? void 0 : data.srfkey) || isWait) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
isWait = true;
|
|
93
|
+
this.sendMarkDataAction("EDIT", data.srfkey);
|
|
94
|
+
setTimeout(
|
|
95
|
+
() => {
|
|
96
|
+
isWait = false;
|
|
97
|
+
},
|
|
98
|
+
1e3 * 60 * 5
|
|
99
|
+
);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
if (this.doActions.includes("UPDATE")) {
|
|
103
|
+
this.dashboard.evt.on("onSavePortlet", () => {
|
|
104
|
+
if (data == null ? void 0 : data.srfkey) {
|
|
105
|
+
this.sendMarkDataAction("UPDATE", data == null ? void 0 : data.srfkey);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
if (this.doActions.includes("CLOSE")) {
|
|
110
|
+
this.view.evt.on("onCloseView", () => {
|
|
111
|
+
if (data == null ? void 0 : data.srfkey) {
|
|
112
|
+
this.sendMarkDataAction("CLOSE", data.srfkey);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
25
117
|
}
|
|
26
118
|
|
|
27
119
|
export { PortalViewEngine };
|
|
@@ -23,4 +23,18 @@ export declare class TreeExpViewEngine extends ExpViewEngine {
|
|
|
23
23
|
*/
|
|
24
24
|
get tree(): ITreeController;
|
|
25
25
|
call(key: string, args: any): Promise<IData | null | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* 视图mounted生命周期执行逻辑
|
|
28
|
+
*
|
|
29
|
+
* @return {*} {Promise<void>}
|
|
30
|
+
* @memberof TreeExpViewEngine
|
|
31
|
+
*/
|
|
32
|
+
onMounted(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* 加载实体主数据
|
|
35
|
+
*
|
|
36
|
+
* @return {*} {Promise<void>}
|
|
37
|
+
* @memberof TreeExpViewEngine
|
|
38
|
+
*/
|
|
39
|
+
loadEntityData(): Promise<void>;
|
|
26
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SysUIActionTag } from '@ibiz-template/runtime';
|
|
1
|
+
import { SysUIActionTag, calcDeCodeNameById } from '@ibiz-template/runtime';
|
|
2
2
|
import { RuntimeError } from '@ibiz-template/core';
|
|
3
3
|
import { ExpViewEngine } from './exp-view.engine.mjs';
|
|
4
4
|
|
|
@@ -79,6 +79,29 @@ class TreeExpViewEngine extends ExpViewEngine {
|
|
|
79
79
|
}
|
|
80
80
|
return super.call(key, args);
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* 视图mounted生命周期执行逻辑
|
|
84
|
+
*
|
|
85
|
+
* @return {*} {Promise<void>}
|
|
86
|
+
* @memberof TreeExpViewEngine
|
|
87
|
+
*/
|
|
88
|
+
async onMounted() {
|
|
89
|
+
await super.onMounted();
|
|
90
|
+
await this.loadEntityData();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 加载实体主数据
|
|
94
|
+
*
|
|
95
|
+
* @return {*} {Promise<void>}
|
|
96
|
+
* @memberof TreeExpViewEngine
|
|
97
|
+
*/
|
|
98
|
+
async loadEntityData() {
|
|
99
|
+
const deName = calcDeCodeNameById(this.view.model.appDataEntityId);
|
|
100
|
+
if (!this.view.context[deName] || !this.view.model.showDataInfoBar) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
return super.loadEntityData();
|
|
104
|
+
}
|
|
82
105
|
}
|
|
83
106
|
|
|
84
107
|
export { TreeExpViewEngine };
|
|
@@ -105,6 +105,10 @@ const ModalRouterShell = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
const result = await overlay.onWillDismiss();
|
|
106
106
|
overlay = null;
|
|
107
107
|
if (isDestroyed.value === false) {
|
|
108
|
+
const historyIndex = pathHistory.indexOf(route.fullPath);
|
|
109
|
+
if (historyIndex !== -1) {
|
|
110
|
+
pathHistory.splice(historyIndex, 1);
|
|
111
|
+
}
|
|
108
112
|
if ((_a = window.history.state) == null ? void 0 : _a.back) {
|
|
109
113
|
router.back();
|
|
110
114
|
} else {
|
|
@@ -60,11 +60,12 @@ export declare class AuthGuard {
|
|
|
60
60
|
/**
|
|
61
61
|
* 加载应用数据
|
|
62
62
|
*
|
|
63
|
-
* @author
|
|
64
|
-
* @date
|
|
63
|
+
* @author tony001
|
|
64
|
+
* @date 2024-12-19 20:12:01
|
|
65
|
+
* @param {IParams} [context]
|
|
65
66
|
* @return {*} {Promise<void>}
|
|
66
67
|
*/
|
|
67
|
-
loadAppData(): Promise<void>;
|
|
68
|
+
loadAppData(context?: IParams): Promise<void>;
|
|
68
69
|
/**
|
|
69
70
|
* 加载组织数据
|
|
70
71
|
*
|