mooho-base-admin-plus 2.3.8 → 2.3.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/history.md +2 -0
- package/package/mooho-base-admin-plus.min.esm.js +14 -16
- package/package/mooho-base-admin-plus.min.js +6 -6
- package/package.json +1 -1
- package/src/components/view/table-filter.vue +1 -12
- package/src/components/view/view-form-draggable.vue +1 -1
- package/src/components/view/view-form.vue +1 -1
- package/src/components/view/view-table.vue +8 -3
package/history.md
CHANGED
|
@@ -37553,7 +37553,7 @@ const _sfc_main$w = {
|
|
|
37553
37553
|
if (column.isStaticItem || column.dataType && column.dataType.startsWith("Enum:")) {
|
|
37554
37554
|
return;
|
|
37555
37555
|
}
|
|
37556
|
-
if (this.$refs["control_" + column.code]) {
|
|
37556
|
+
if (this.$refs["control_" + column.code] && data2) {
|
|
37557
37557
|
let values = this.$refs["control_" + column.code][0].$data.values;
|
|
37558
37558
|
let pendings = [];
|
|
37559
37559
|
if (column.controlType == "MultiComboSelect") {
|
|
@@ -41581,9 +41581,6 @@ const _sfc_main$r = {
|
|
|
41581
41581
|
tableView: {
|
|
41582
41582
|
type: Object
|
|
41583
41583
|
},
|
|
41584
|
-
filter: {
|
|
41585
|
-
type: Object
|
|
41586
|
-
},
|
|
41587
41584
|
columns: {
|
|
41588
41585
|
type: Array
|
|
41589
41586
|
}
|
|
@@ -41597,10 +41594,6 @@ const _sfc_main$r = {
|
|
|
41597
41594
|
methods: {
|
|
41598
41595
|
init() {
|
|
41599
41596
|
let data2 = this.data;
|
|
41600
|
-
if (this.filter) {
|
|
41601
|
-
lodash$1.exports.defaultsDeep(data2, this.filter);
|
|
41602
|
-
lodash$1.exports.assign(this.filter, data2);
|
|
41603
|
-
}
|
|
41604
41597
|
this.columns.forEach((item) => {
|
|
41605
41598
|
if (item.defaultValue) {
|
|
41606
41599
|
if (item.defaultValue == "{today}") {
|
|
@@ -42009,7 +42002,7 @@ const _sfc_main$r = {
|
|
|
42009
42002
|
if (column.isStaticItem || column.dataType && column.dataType.startsWith("Enum:")) {
|
|
42010
42003
|
return;
|
|
42011
42004
|
}
|
|
42012
|
-
if (this.$refs["control_" + column.code]) {
|
|
42005
|
+
if (this.$refs["control_" + column.code] && data2) {
|
|
42013
42006
|
let values = this.$refs["control_" + column.code][0].$data.values;
|
|
42014
42007
|
let pendings = [];
|
|
42015
42008
|
if (column.controlType == "MultiComboSelect") {
|
|
@@ -43432,10 +43425,11 @@ const _sfc_main$q = {
|
|
|
43432
43425
|
this.search();
|
|
43433
43426
|
},
|
|
43434
43427
|
getAllFilter() {
|
|
43435
|
-
var _a2;
|
|
43428
|
+
var _a2, _b2;
|
|
43436
43429
|
let filter2 = {
|
|
43437
43430
|
...this.viewFilter,
|
|
43438
|
-
...(_a2 = this.
|
|
43431
|
+
...(_a2 = this.filter) != null ? _a2 : {},
|
|
43432
|
+
...(_b2 = this.filterData) != null ? _b2 : {}
|
|
43439
43433
|
};
|
|
43440
43434
|
for (let key in filter2) {
|
|
43441
43435
|
if (this.isJSON(filter2[key])) {
|
|
@@ -43447,9 +43441,14 @@ const _sfc_main$q = {
|
|
|
43447
43441
|
return filter2;
|
|
43448
43442
|
},
|
|
43449
43443
|
getFilterResult() {
|
|
43444
|
+
var _a2, _b2;
|
|
43450
43445
|
let data2 = this.staticData;
|
|
43451
43446
|
if (!this.filterDisable) {
|
|
43452
|
-
let filter2 =
|
|
43447
|
+
let filter2 = {
|
|
43448
|
+
...this.viewFilter,
|
|
43449
|
+
...(_a2 = this.filter) != null ? _a2 : {},
|
|
43450
|
+
...(_b2 = this.filterData) != null ? _b2 : {}
|
|
43451
|
+
};
|
|
43453
43452
|
for (let key in filter2) {
|
|
43454
43453
|
let column = key;
|
|
43455
43454
|
let value = filter2[key];
|
|
@@ -43851,7 +43850,7 @@ const _sfc_main$q = {
|
|
|
43851
43850
|
if (column.isStaticItem || column.dataType && column.dataType.startsWith("Enum:")) {
|
|
43852
43851
|
return;
|
|
43853
43852
|
}
|
|
43854
|
-
if (this.$refs["control_" + column.code + "_" + index2]) {
|
|
43853
|
+
if (this.$refs["control_" + column.code + "_" + index2] && data2) {
|
|
43855
43854
|
let values = this.$refs["control_" + column.code + "_" + index2].$data.values;
|
|
43856
43855
|
let pendings = [];
|
|
43857
43856
|
if (column.controlType == "MultiComboSelect") {
|
|
@@ -43983,7 +43982,6 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43983
43982
|
renderSlot(_ctx.$slots, "customFilter", {}, void 0, true),
|
|
43984
43983
|
createVNode$1(_component_table_filter, {
|
|
43985
43984
|
ref: "tableFilter",
|
|
43986
|
-
filter: $props.filter,
|
|
43987
43985
|
columns: $data.filterColumns,
|
|
43988
43986
|
"table-view": $data.tableView,
|
|
43989
43987
|
onOnKeyup: $options.onKeyup
|
|
@@ -43996,7 +43994,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43996
43994
|
}, void 0, true)
|
|
43997
43995
|
]),
|
|
43998
43996
|
_: 3
|
|
43999
|
-
}, 8, ["
|
|
43997
|
+
}, 8, ["columns", "table-view", "onOnKeyup"]),
|
|
44000
43998
|
createVNode$1(_component_Col, mergeProps(_ctx.getGrid($data.tableView.filterWidth), {
|
|
44001
43999
|
style: { "text-align": $data.tableView.filterAlign == null ? "left" : $data.tableView.filterAlign.toLowerCase() }
|
|
44002
44000
|
}), {
|
|
@@ -51886,7 +51884,7 @@ const _sfc_main$o = {
|
|
|
51886
51884
|
if (column.isStaticItem || column.dataType && column.dataType.startsWith("Enum:")) {
|
|
51887
51885
|
return;
|
|
51888
51886
|
}
|
|
51889
|
-
if (this.$refs["control_" + column.code]) {
|
|
51887
|
+
if (this.$refs["control_" + column.code] && data2) {
|
|
51890
51888
|
let values = this.$refs["control_" + column.code][0].$data.values;
|
|
51891
51889
|
let pendings = [];
|
|
51892
51890
|
if (column.controlType == "MultiComboSelect") {
|