@ibiz-template/vue3-components 0.6.9 → 0.6.10
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-Udkmmoqt.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Zc_Y0dGt.js +1 -0
- package/dist/{xlsx-util-vDgpWrEL.js → xlsx-util-2FgdNqpT.js} +1 -1
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/drbar/drbar.controller.d.ts +14 -0
- package/es/control/drbar/drbar.controller.mjs +50 -2
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drbar/drbar.mjs +3 -0
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.mjs +3 -3
- package/es/control/exp-bar/calendar-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.mjs +3 -3
- package/es/control/exp-bar/chart-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.mjs +3 -3
- package/es/control/exp-bar/data-view-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.mjs +3 -3
- package/es/control/exp-bar/grid-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.mjs +3 -3
- package/es/control/exp-bar/render-util.d.ts +2 -2
- package/es/control/exp-bar/render-util.mjs +16 -3
- package/es/control/exp-bar/tree-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.mjs +3 -3
- package/es/control/form/form/form.mjs +16 -2
- package/es/control/form/form-detail/form-item/form-item.mjs +2 -1
- package/es/control/toolbar/toolbar.mjs +12 -2
- package/es/editor/array/ibiz-array/ibiz-array.mjs +5 -5
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +3 -3
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +3 -3
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +3 -3
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.mjs +3 -3
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +3 -3
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +3 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +3 -3
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +5 -5
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +3 -3
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.css +1 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +4 -4
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +5 -5
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +4 -4
- package/es/editor/html/wang-editor/wang-editor.mjs +4 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +5 -5
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +5 -5
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +3 -3
- package/es/editor/rate/ibiz-rate/ibiz-rate.mjs +3 -3
- package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +3 -3
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +3 -3
- package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +3 -3
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +3 -3
- package/es/editor/text-box/input/input.mjs +3 -3
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +3 -3
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +3 -3
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +5 -5
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +3 -3
- package/es/view-engine/exp-view.engine.d.ts +2 -1
- package/es/view-engine/exp-view.engine.mjs +10 -0
- package/es/view-engine/index.mjs +5 -0
- package/es/view-engine/tab-search-view.engine.d.ts +61 -0
- package/es/view-engine/tab-search-view.engine.mjs +105 -0
- package/es/web-app/guard/auth-guard/auth-guard.mjs +8 -4
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/drbar/drbar.cjs +3 -0
- package/lib/control/drbar/drbar.controller.cjs +50 -2
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/exp-bar/calendar-exp-bar/calendar-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/chart-exp-bar/chart-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/grid-exp-bar/grid-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/list-exp-bar/list-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/render-util.cjs +15 -2
- package/lib/control/exp-bar/tree-exp-bar/tree-exp-bar.cjs +3 -3
- package/lib/control/form/form/form.cjs +15 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +2 -1
- package/lib/control/toolbar/toolbar.cjs +12 -2
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +4 -4
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -2
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +2 -2
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +2 -2
- package/lib/editor/check-box/ibiz-checkbox/ibiz-checkbox.cjs +2 -2
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +2 -2
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +4 -4
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +3 -3
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.css +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +4 -4
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +3 -3
- package/lib/editor/html/wang-editor/wang-editor.cjs +4 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +4 -4
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +4 -4
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +2 -2
- package/lib/editor/rate/ibiz-rate/ibiz-rate.cjs +2 -2
- package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +2 -2
- package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +2 -2
- package/lib/editor/switch/ibiz-switch/ibiz-switch.cjs +2 -2
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +2 -2
- package/lib/editor/text-box/input/input.cjs +2 -2
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +2 -2
- package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +2 -2
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +4 -4
- package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +2 -2
- package/lib/view-engine/exp-view.engine.cjs +10 -0
- package/lib/view-engine/index.cjs +5 -0
- package/lib/view-engine/tab-search-view.engine.cjs +107 -0
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +8 -4
- package/package.json +8 -8
- package/dist/index-kZU4Zro0.js +0 -4
- package/dist/wang-editor-SyWEeij2.js +0 -1
|
@@ -270,7 +270,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
270
270
|
"name": "unlock-alt"
|
|
271
271
|
}, null);
|
|
272
272
|
}
|
|
273
|
-
content = vue.createVNode(vue.resolveComponent("el-input"), {
|
|
273
|
+
content = vue.createVNode(vue.resolveComponent("el-input"), vue.mergeProps({
|
|
274
274
|
"ref": "editorRef",
|
|
275
275
|
"clearable": true,
|
|
276
276
|
"modelValue": this.currentVal,
|
|
@@ -291,7 +291,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
291
291
|
"disabled": this.disabled,
|
|
292
292
|
"show-password": this.type === "password",
|
|
293
293
|
"autocomplete": this.shouldAutoComplete
|
|
294
|
-
}, _isSlot(slots) ? slots : {
|
|
294
|
+
}, this.$attrs), _isSlot(slots) ? slots : {
|
|
295
295
|
default: () => [slots]
|
|
296
296
|
});
|
|
297
297
|
}
|
|
@@ -66,7 +66,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
66
|
return vue.createVNode("div", {
|
|
67
67
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
68
68
|
"ref": "componentRef"
|
|
69
|
-
}, [vue.createVNode(vue.resolveComponent("el-upload"), {
|
|
69
|
+
}, [vue.createVNode(vue.resolveComponent("el-upload"), vue.mergeProps({
|
|
70
70
|
"class": [this.ns.b("icon"), this.ns.is("not-show", this.noUploadIcon)],
|
|
71
71
|
"file-list": this.files,
|
|
72
72
|
"action": this.uploadUrl,
|
|
@@ -81,7 +81,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
"onError": this.onError,
|
|
82
82
|
"onRemove": this.onRemove,
|
|
83
83
|
"onPreview": this.onDownload
|
|
84
|
-
}, {
|
|
84
|
+
}, this.$attrs), {
|
|
85
85
|
default: () => [this.noUploadIcon ? null : vue.createVNode(vue.resolveComponent("el-button"), {
|
|
86
86
|
"class": [this.ns.b("button")],
|
|
87
87
|
"size": this.isGridEditor ? "small" : "default"
|
|
@@ -30,11 +30,11 @@ const IBizImagePreview = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
30
|
"onClick": (e) => {
|
|
31
31
|
e.stopPropagation();
|
|
32
32
|
}
|
|
33
|
-
}, [vue.createVNode(vue.resolveComponent("el-image"), {
|
|
33
|
+
}, [vue.createVNode(vue.resolveComponent("el-image"), vue.mergeProps({
|
|
34
34
|
"fit": "contain",
|
|
35
35
|
"src": this.value,
|
|
36
36
|
"preview-src-list": [this.value]
|
|
37
|
-
}, null)]);
|
|
37
|
+
}, this.$attrs), null)]);
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -95,7 +95,7 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
95
95
|
"class": this.ns.e("remove-icon"),
|
|
96
96
|
"onClick": () => this.onRemove(item),
|
|
97
97
|
"name": "remove"
|
|
98
|
-
}, null)])]))]), vue.createVNode(vue.resolveComponent("el-upload"), {
|
|
98
|
+
}, null)])]))]), vue.createVNode(vue.resolveComponent("el-upload"), vue.mergeProps({
|
|
99
99
|
"ref": "imageUpload",
|
|
100
100
|
"class": [this.ns.b("icon"), this.ns.is("not-show", this.noUploadIcon)],
|
|
101
101
|
"file-list": this.files,
|
|
@@ -112,19 +112,19 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
112
|
"onError": this.onError,
|
|
113
113
|
"onRemove": this.onRemove,
|
|
114
114
|
"onPreview": this.onDownload
|
|
115
|
-
}, {
|
|
115
|
+
}, this.$attrs), {
|
|
116
116
|
default: () => [vue.createVNode("ion-icon", {
|
|
117
117
|
"name": "add-outline",
|
|
118
118
|
"class": this.ns.e("image-upload-add")
|
|
119
119
|
}, null)]
|
|
120
|
-
}), this.dialogVisible ? vue.createVNode(vue.resolveComponent("el-image-viewer"), {
|
|
120
|
+
}), this.dialogVisible ? vue.createVNode(vue.resolveComponent("el-image-viewer"), vue.mergeProps({
|
|
121
121
|
"onClose": () => this.onDialogVisibleChange(false),
|
|
122
122
|
"url-list": [this.dialogImageUrl],
|
|
123
123
|
"hide-on-click-modal": true,
|
|
124
124
|
"close-on-press-escape": true,
|
|
125
125
|
"teleported": true,
|
|
126
126
|
"z-index": 9999
|
|
127
|
-
}, null) : null]);
|
|
127
|
+
}, this.$attrs), null) : null]);
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
|
|
@@ -154,7 +154,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
|
|
|
154
154
|
if (this.readonly) {
|
|
155
155
|
content = qxUtil.isNilOrEmpty(this.currentVal) ? "" : "".concat(this.currentVal);
|
|
156
156
|
} else {
|
|
157
|
-
content = [vue.createVNode(vue.resolveComponent("el-input"), {
|
|
157
|
+
content = [vue.createVNode(vue.resolveComponent("el-input"), vue.mergeProps({
|
|
158
158
|
"ref": "editorRef",
|
|
159
159
|
"class": [this.ns.b("input")],
|
|
160
160
|
"model-value": this.currentVal,
|
|
@@ -166,7 +166,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
|
|
|
166
166
|
"onFocus": this.onFocus,
|
|
167
167
|
"onBlur": this.onBlur,
|
|
168
168
|
"onKeyup": this.handleKeyUp
|
|
169
|
-
}, null), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
169
|
+
}, this.$attrs), null), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
170
170
|
"ref": "filterButtonRef",
|
|
171
171
|
"type": "primary",
|
|
172
172
|
"title": "\u7F16\u8F91",
|
|
@@ -38,6 +38,16 @@ class ExpViewEngine extends runtime.MDViewEngine {
|
|
|
38
38
|
get xdataControl() {
|
|
39
39
|
return this.expBar.xDataController;
|
|
40
40
|
}
|
|
41
|
+
constructor(view) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
const modelData = (_b = (_a = view.model.viewLayoutPanel) == null ? void 0 : _a.controls) == null ? void 0 : _b.find(
|
|
44
|
+
(item) => item.id === "searchbar"
|
|
45
|
+
);
|
|
46
|
+
if (modelData && !modelData.name) {
|
|
47
|
+
modelData.name = "searchbar";
|
|
48
|
+
}
|
|
49
|
+
super(view);
|
|
50
|
+
}
|
|
41
51
|
/**
|
|
42
52
|
* 组件创建
|
|
43
53
|
*
|
|
@@ -44,6 +44,7 @@ var reportView_engine = require('./report-view.engine.cjs');
|
|
|
44
44
|
var ganttView_engine = require('./gantt-view.engine.cjs');
|
|
45
45
|
var deIndexViewEngine = require('./de-index-view-engine.cjs');
|
|
46
46
|
var subAppRefView_engine = require('./sub-app-ref-view.engine.cjs');
|
|
47
|
+
var tabSearchView_engine = require('./tab-search-view.engine.cjs');
|
|
47
48
|
|
|
48
49
|
"use strict";
|
|
49
50
|
const IBizViewEngine = {
|
|
@@ -276,6 +277,10 @@ const IBizViewEngine = {
|
|
|
276
277
|
"VIEW_DEINDEXVIEW",
|
|
277
278
|
(c) => new deIndexViewEngine.DEIndexViewEngine(c)
|
|
278
279
|
);
|
|
280
|
+
ibiz.engine.register(
|
|
281
|
+
"VIEW_DETABSEARCHVIEW",
|
|
282
|
+
(c) => new tabSearchView_engine.TabSearchViewEngine(c)
|
|
283
|
+
);
|
|
279
284
|
}
|
|
280
285
|
};
|
|
281
286
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var tabExpView_engine = require('./tab-exp-view.engine.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
class TabSearchViewEngine extends tabExpView_engine.TabExpViewEngine {
|
|
8
|
+
/**
|
|
9
|
+
* 搜索表单控制器
|
|
10
|
+
* @author lxm
|
|
11
|
+
* @date 2023-05-22 01:56:25
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
get searchForm() {
|
|
15
|
+
return this.view.getController("searchform");
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 搜索栏控制器
|
|
19
|
+
* @author lxm
|
|
20
|
+
* @date 2023-05-22 01:56:25
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
get searchBar() {
|
|
24
|
+
return this.view.getController("searchbar");
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 分页导航面板控制器
|
|
28
|
+
* @author lxm
|
|
29
|
+
* @date 2023-05-22 01:56:25
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
get tabExpPanel() {
|
|
33
|
+
return this.view.getController("tabexppanel");
|
|
34
|
+
}
|
|
35
|
+
async onCreated() {
|
|
36
|
+
await super.onCreated();
|
|
37
|
+
const { childNames } = this.view;
|
|
38
|
+
childNames.push("searchform", "searchbar");
|
|
39
|
+
}
|
|
40
|
+
async onMounted() {
|
|
41
|
+
await super.onMounted();
|
|
42
|
+
const controller = this.viewLayoutPanel.panelItems.view_searchform;
|
|
43
|
+
if (controller) {
|
|
44
|
+
const formExists = !!this.searchForm;
|
|
45
|
+
controller.state.keepAlive = formExists;
|
|
46
|
+
controller.state.visible = formExists;
|
|
47
|
+
}
|
|
48
|
+
const searchbarC = this.viewLayoutPanel.panelItems.view_searchbar;
|
|
49
|
+
if (searchbarC) {
|
|
50
|
+
const visible = this.searchBar && !!(this.searchBar.model.enableQuickSearch || this.searchBar.model.enableGroup || this.searchBar.model.enableFilter === true);
|
|
51
|
+
searchbarC.state.visible = visible;
|
|
52
|
+
}
|
|
53
|
+
if (this.searchForm) {
|
|
54
|
+
this.searchForm.evt.on("onSearch", () => {
|
|
55
|
+
this.calcViewParams();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
if (this.searchBar) {
|
|
59
|
+
this.searchBar.evt.on("onSearch", () => {
|
|
60
|
+
this.calcViewParams();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
65
|
+
async call(key, args) {
|
|
66
|
+
if (key === runtime.SysUIActionTag.SEARCH) {
|
|
67
|
+
await this.searchForm.search();
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
if (key === runtime.SysUIActionTag.RESET) {
|
|
71
|
+
await this.searchForm.reset();
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
if (key === runtime.SysUIActionTag.REFRESH) {
|
|
75
|
+
await this.calcViewParams();
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return super.call(key, args);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 获取搜索相关的查询参数
|
|
82
|
+
* @author lxm
|
|
83
|
+
* @date 2023-05-22 03:26:04
|
|
84
|
+
* @return {*} {IParams}
|
|
85
|
+
*/
|
|
86
|
+
getSearchParams() {
|
|
87
|
+
const params = {};
|
|
88
|
+
if (this.searchForm) {
|
|
89
|
+
Object.assign(params, this.searchForm.getFilterParams());
|
|
90
|
+
}
|
|
91
|
+
if (this.searchBar) {
|
|
92
|
+
Object.assign(params, this.searchBar.getFilterParams());
|
|
93
|
+
}
|
|
94
|
+
return params;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 重新计算视图参数
|
|
98
|
+
* @author lxm
|
|
99
|
+
* @date 2024-03-18 05:00:02
|
|
100
|
+
*/
|
|
101
|
+
calcViewParams() {
|
|
102
|
+
this.tabExpPanel.state.expViewParams = this.getSearchParams();
|
|
103
|
+
this.tabExpPanel.refresh();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
exports.TabSearchViewEngine = TabSearchViewEngine;
|
|
@@ -115,11 +115,15 @@ class AuthGuard {
|
|
|
115
115
|
const remember = qxUtil.getCookie(core.CoreConst.TOKEN_REMEMBER);
|
|
116
116
|
const refreshToken = qxUtil.getCookie(core.CoreConst.REFRESH_TOKEN);
|
|
117
117
|
if (responseStatus === 401 && remember && refreshToken != null && refreshToken !== "") {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
try {
|
|
119
|
+
await ibiz.auth.refreshToken();
|
|
120
|
+
if (ibiz.env.isSaaSMode === true) {
|
|
121
|
+
await this.loadOrgData();
|
|
122
|
+
}
|
|
123
|
+
await this.loadAppData();
|
|
124
|
+
} catch (refreshTokenError) {
|
|
125
|
+
throw error;
|
|
121
126
|
}
|
|
122
|
-
await this.loadAppData();
|
|
123
127
|
} else {
|
|
124
128
|
throw error;
|
|
125
129
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.3-alpha.41",
|
|
33
|
-
"@ibiz-template/core": "0.6.
|
|
33
|
+
"@ibiz-template/core": "0.6.11",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
-
"@ibiz-template/model-helper": "0.6.
|
|
36
|
-
"@ibiz-template/runtime": "0.6.
|
|
35
|
+
"@ibiz-template/model-helper": "0.6.11",
|
|
36
|
+
"@ibiz-template/runtime": "0.6.11",
|
|
37
37
|
"@ibiz-template/theme": "^0.6.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.6.
|
|
39
|
-
"@ibiz-template/web-theme": "^1.1.
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.6.11",
|
|
39
|
+
"@ibiz-template/web-theme": "^1.1.12",
|
|
40
|
+
"@ibiz/model-core": "^0.1.17",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@ibiz-template/runtime": "^0.6.0",
|
|
101
101
|
"@ibiz-template/theme": "^0.6.0",
|
|
102
102
|
"@ibiz-template/vue3-util": "^0.6.0",
|
|
103
|
-
"@ibiz/model-core": "^0.1.
|
|
103
|
+
"@ibiz/model-core": "^0.1.17",
|
|
104
104
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
105
105
|
"@monaco-editor/loader": "^1.3.3",
|
|
106
106
|
"@wangeditor/editor": "^5.1.23",
|