@ibiz-template/vue3-components 0.6.9 → 0.6.11
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-oPRPtU0q.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-5X-82uzW.js} +1 -1
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/drbar/drbar.controller.d.ts +15 -1
- package/es/control/drbar/drbar.controller.mjs +53 -4
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drbar/drbar.d.ts +0 -1
- package/es/control/drbar/drbar.mjs +8 -13
- package/es/control/drbar/index.d.ts +0 -1
- 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/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +3 -0
- package/es/control/grid/grid/grid.mjs +18 -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-field-edit-column.mjs +2 -1
- package/es/control/toolbar/toolbar.mjs +12 -2
- package/es/control/tree-grid/tree-grid.mjs +14 -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.css +1 -1
- 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/util/message-util/message-util.d.ts +13 -1
- package/es/util/message-util/message-util.mjs +50 -0
- package/es/view-engine/edit-view.engine.mjs +7 -7
- 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/App.css +1 -1
- 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 +7 -12
- package/lib/control/drbar/drbar.controller.cjs +53 -4
- 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/grid/grid/grid.cjs +17 -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-field-edit-column.cjs +2 -1
- package/lib/control/toolbar/toolbar.cjs +12 -2
- package/lib/control/tree-grid/tree-grid.cjs +14 -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/text-box/input/input.css +1 -1
- 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/util/message-util/message-util.cjs +50 -0
- package/lib/view-engine/edit-view.engine.cjs +6 -6
- 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/App.css +1 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +8 -4
- package/package.json +9 -9
- package/dist/index-kZU4Zro0.js +0 -4
- package/dist/wang-editor-SyWEeij2.js +0 -1
|
@@ -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",
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
3
4
|
var ElementPlus = require('element-plus');
|
|
5
|
+
var ramda = require('ramda');
|
|
4
6
|
|
|
5
7
|
"use strict";
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __publicField = (obj, key, value) => {
|
|
11
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
12
|
+
return value;
|
|
13
|
+
};
|
|
6
14
|
class MessageUtil {
|
|
15
|
+
constructor() {
|
|
16
|
+
__publicField(this, "ns", vue3Util.useNamespace("message"));
|
|
17
|
+
}
|
|
7
18
|
info(msg, duration, closable) {
|
|
8
19
|
ElementPlus.ElMessage.info({
|
|
9
20
|
message: msg,
|
|
@@ -32,6 +43,45 @@ class MessageUtil {
|
|
|
32
43
|
showClose: closable
|
|
33
44
|
});
|
|
34
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* 格式化参数
|
|
48
|
+
* @author lxm
|
|
49
|
+
* @date 2024-03-21 02:22:27
|
|
50
|
+
* @protected
|
|
51
|
+
* @param {IMessageParams} params
|
|
52
|
+
* @return {*} {MessageOptions}
|
|
53
|
+
*/
|
|
54
|
+
formatParams(params) {
|
|
55
|
+
const paramsWithDefault = ramda.mergeRight(
|
|
56
|
+
{
|
|
57
|
+
type: "info"
|
|
58
|
+
},
|
|
59
|
+
params
|
|
60
|
+
);
|
|
61
|
+
const messageOpts = {};
|
|
62
|
+
Object.keys(paramsWithDefault).forEach((key) => {
|
|
63
|
+
const value = paramsWithDefault[key];
|
|
64
|
+
switch (key) {
|
|
65
|
+
case "duration":
|
|
66
|
+
if (!ramda.isNil(value)) {
|
|
67
|
+
messageOpts.duration = value * 1e3;
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
case "styleType":
|
|
71
|
+
if (!ramda.isNil(value)) {
|
|
72
|
+
messageOpts.customClass = this.ns.m(value);
|
|
73
|
+
}
|
|
74
|
+
break;
|
|
75
|
+
default:
|
|
76
|
+
messageOpts[key] = value;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
return messageOpts;
|
|
81
|
+
}
|
|
82
|
+
notice(params) {
|
|
83
|
+
ElementPlus.ElMessage(this.formatParams(params));
|
|
84
|
+
}
|
|
35
85
|
}
|
|
36
86
|
|
|
37
87
|
exports.MessageUtil = MessageUtil;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var core = require('@ibiz-template/core');
|
|
4
4
|
var runtime = require('@ibiz-template/runtime');
|
|
5
|
-
var ramda = require('ramda');
|
|
6
5
|
|
|
7
6
|
"use strict";
|
|
8
7
|
var __defProp = Object.defineProperty;
|
|
@@ -273,7 +272,7 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
273
272
|
* @return {*} {void}
|
|
274
273
|
*/
|
|
275
274
|
initMarkOpenData() {
|
|
276
|
-
if (
|
|
275
|
+
if (![runtime.ViewMode.ROUTE, runtime.ViewMode.ROUTE_MODAL].includes(this.view.modal.mode) || !this.view.model.markOpenDataMode) {
|
|
277
276
|
return;
|
|
278
277
|
}
|
|
279
278
|
const modes = this.view.model.markOpenDataMode.split(";");
|
|
@@ -297,10 +296,11 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
297
296
|
default:
|
|
298
297
|
break;
|
|
299
298
|
}
|
|
300
|
-
ibiz.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
299
|
+
ibiz.message.notice({
|
|
300
|
+
message: "".concat(modes.includes("DISPLAYOPPERSON") ? data.username : "\u6709\u4EBA", " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo),
|
|
301
|
+
showClose: true,
|
|
302
|
+
duration: 3,
|
|
303
|
+
styleType: "alert"
|
|
304
304
|
});
|
|
305
305
|
if (hasOpenConfirm === false && data.action === "UPDATE" && modes.includes("NOTICERELOAD")) {
|
|
306
306
|
hasOpenConfirm = true;
|
|
@@ -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;
|
package/lib/web-app/App.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#app{width:100vw;height:100vh;background-color:var(--ibiz-color-bg-0)}body,html{padding:0;margin:0;border:0}
|
|
1
|
+
#app{width:100vw;height:100vh;background-color:var(--ibiz-color-bg-0)}body,html{padding:0;margin:0;border:0}.ibiz-message--alert.el-message{--el-message-padding:8px 16px}.ibiz-message--alert.el-message .el-message__content,.ibiz-message--alert.el-message .el-message__icon{color:inherit}.ibiz-message--alert.el-message .el-message__closeBtn{color:#a8abb2}.ibiz-message--alert .el-message__content{line-height:24px}.ibiz-message--alert.el-message--info{color:#909399;background-color:#f4f4f5}.ibiz-message--alert.el-message--success{color:#67c23a;background-color:#f0f9eb}.ibiz-message--alert.el-message--warning{color:#e6a23c;background-color:#fdf6ec}.ibiz-message--alert.el-message--error{color:#f56c6c;background-color:#fef0f0}
|
|
@@ -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.11",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
32
|
-
"@ibiz-template-plugin/gantt": "0.1.3-alpha.
|
|
33
|
-
"@ibiz-template/core": "0.6.
|
|
32
|
+
"@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
|
|
33
|
+
"@ibiz-template/core": "0.6.12",
|
|
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.12",
|
|
36
|
+
"@ibiz-template/runtime": "0.6.12",
|
|
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.12",
|
|
39
|
+
"@ibiz-template/web-theme": "^1.1.12",
|
|
40
|
+
"@ibiz/model-core": "^0.1.18",
|
|
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",
|