@ibiz-template/mob-vue3-components 0.0.16-dev.0 → 0.0.17-sz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +2 -2
- package/dist/index.system.min.js.map +1 -1
- package/es/mob-app/router/index.mjs +16 -1
- package/es/view-engine/mob-wf-dyna-edit-view.engine.d.ts +1 -0
- package/es/view-engine/mob-wf-dyna-edit-view.engine.mjs +19 -1
- package/lib/mob-app/router/index.cjs +16 -1
- package/lib/view-engine/mob-wf-dyna-edit-view.engine.cjs +18 -0
- package/package.json +5 -5
|
@@ -48,7 +48,22 @@ class AppRouter {
|
|
|
48
48
|
}
|
|
49
49
|
const authority = await AuthGuard();
|
|
50
50
|
if (authority) {
|
|
51
|
-
|
|
51
|
+
const url = window.appRedirectViewUrl;
|
|
52
|
+
if (url) {
|
|
53
|
+
delete window.appRedirectViewUrl;
|
|
54
|
+
const i = url.lastIndexOf("?");
|
|
55
|
+
if (i !== -1) {
|
|
56
|
+
Object.assign(window, {
|
|
57
|
+
appRedirectViewQuery: url.slice(i)
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
next({
|
|
61
|
+
path: `/${url}`,
|
|
62
|
+
replace: true
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
next();
|
|
66
|
+
}
|
|
52
67
|
} else {
|
|
53
68
|
next(false);
|
|
54
69
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuntimeModelError } from '@ibiz-template/core';
|
|
1
|
+
import { RuntimeModelError, findRecursiveChild } from '@ibiz-template/core';
|
|
2
2
|
import { getControl, getWFSubmitViewId, OpenAppViewCommand } from '@ibiz-template/runtime';
|
|
3
3
|
import { createUUID } from 'qx-util';
|
|
4
4
|
import { MobEditViewEngine } from './mob-edit-view.engine.mjs';
|
|
@@ -277,6 +277,24 @@ class MobWFDynaEditViewEngine extends MobEditViewEngine {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
+
calcViewFooterVisible() {
|
|
281
|
+
let showFooter = false;
|
|
282
|
+
if (this.isExistAndInLayout("footertoolbar")) {
|
|
283
|
+
showFooter = true;
|
|
284
|
+
} else {
|
|
285
|
+
const layout = this.view.model.viewLayoutPanel;
|
|
286
|
+
if (layout) {
|
|
287
|
+
const ins = findRecursiveChild(layout, "wf_action_button", {
|
|
288
|
+
compareField: "id",
|
|
289
|
+
childrenFields: ["panelItems", "rootPanelItems"]
|
|
290
|
+
});
|
|
291
|
+
if (ins) {
|
|
292
|
+
showFooter = true;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return showFooter;
|
|
297
|
+
}
|
|
280
298
|
}
|
|
281
299
|
|
|
282
300
|
export { MobWFDynaEditViewEngine };
|
|
@@ -50,7 +50,22 @@ class AppRouter {
|
|
|
50
50
|
}
|
|
51
51
|
const authority = await authGuard.AuthGuard();
|
|
52
52
|
if (authority) {
|
|
53
|
-
|
|
53
|
+
const url = window.appRedirectViewUrl;
|
|
54
|
+
if (url) {
|
|
55
|
+
delete window.appRedirectViewUrl;
|
|
56
|
+
const i = url.lastIndexOf("?");
|
|
57
|
+
if (i !== -1) {
|
|
58
|
+
Object.assign(window, {
|
|
59
|
+
appRedirectViewQuery: url.slice(i)
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
next({
|
|
63
|
+
path: `/${url}`,
|
|
64
|
+
replace: true
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
next();
|
|
68
|
+
}
|
|
54
69
|
} else {
|
|
55
70
|
next(false);
|
|
56
71
|
}
|
|
@@ -279,6 +279,24 @@ class MobWFDynaEditViewEngine extends mobEditView_engine.MobEditViewEngine {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
+
calcViewFooterVisible() {
|
|
283
|
+
let showFooter = false;
|
|
284
|
+
if (this.isExistAndInLayout("footertoolbar")) {
|
|
285
|
+
showFooter = true;
|
|
286
|
+
} else {
|
|
287
|
+
const layout = this.view.model.viewLayoutPanel;
|
|
288
|
+
if (layout) {
|
|
289
|
+
const ins = core.findRecursiveChild(layout, "wf_action_button", {
|
|
290
|
+
compareField: "id",
|
|
291
|
+
childrenFields: ["panelItems", "rootPanelItems"]
|
|
292
|
+
});
|
|
293
|
+
if (ins) {
|
|
294
|
+
showFooter = true;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return showFooter;
|
|
299
|
+
}
|
|
282
300
|
}
|
|
283
301
|
|
|
284
302
|
exports.MobWFDynaEditViewEngine = MobWFDynaEditViewEngine;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/mob-vue3-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17-sz",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@ibiz-template-package/vs-tree-ex": "^0.1.1",
|
|
27
|
-
"@ibiz-template/core": "^0.6.3",
|
|
28
|
-
"@ibiz-template/model-helper": "^0.6.3",
|
|
29
|
-
"@ibiz-template/runtime": "^0.6.3",
|
|
27
|
+
"@ibiz-template/core": "^0.6.3-sz",
|
|
28
|
+
"@ibiz-template/model-helper": "^0.6.3-sz",
|
|
29
|
+
"@ibiz-template/runtime": "^0.6.3-sz",
|
|
30
30
|
"@ibiz-template/theme": "^0.6.0",
|
|
31
|
-
"@ibiz-template/vue3-util": "^0.6.3",
|
|
31
|
+
"@ibiz-template/vue3-util": "^0.6.3-sz",
|
|
32
32
|
"@ibiz/model-core": "^0.1.14",
|
|
33
33
|
"@ibiz-template/mob-theme": "^0.2.12",
|
|
34
34
|
"async-validator": "^4.2.5",
|