mooho-base-admin-plus 2.0.49 → 2.0.51
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/package/mooho-base-admin-plus.min.esm.js +42 -16
- package/package/mooho-base-admin-plus.min.js +48 -48
- package/package.json +1 -1
- package/src/components/input/dialog-select.vue +8 -2
- package/src/components/view/column-edit.vue +1 -1
- package/src/components/view/filter-edit.vue +1 -1
- package/src/components/view/form-setting-layout.vue +5 -0
- package/src/components/view/modal-form-filter.vue +1 -1
- package/src/components/view/modal-form-sort.vue +2 -2
- package/src/components/view/modal-table.vue +6 -3
- package/src/components/view/table-filter.vue +1 -1
- package/src/components/view/view-form.vue +11 -0
- package/src/components/view/view-table.vue +16 -0
- package/src/index.js +1 -3
- package/src/pages/system/rolePropertyEdit.vue +1 -1
|
@@ -29027,7 +29027,7 @@ const _sfc_main$Z = {
|
|
|
29027
29027
|
paramOpen() {
|
|
29028
29028
|
this.params = [];
|
|
29029
29029
|
this.paramOpened = true;
|
|
29030
|
-
if (this.data.param != null && this.data.param
|
|
29030
|
+
if (this.data.param != null && this.data.param !== "") {
|
|
29031
29031
|
let obj = JSON.parse(this.data.param);
|
|
29032
29032
|
for (let key in obj) {
|
|
29033
29033
|
this.params.push({
|
|
@@ -30911,7 +30911,7 @@ const _sfc_main$T = {
|
|
|
30911
30911
|
paramOpen() {
|
|
30912
30912
|
this.params = [];
|
|
30913
30913
|
this.paramOpened = true;
|
|
30914
|
-
if (this.data.param != null && this.data.param
|
|
30914
|
+
if (this.data.param != null && this.data.param !== "") {
|
|
30915
30915
|
let obj = JSON.parse(this.data.param);
|
|
30916
30916
|
for (let key in obj) {
|
|
30917
30917
|
let type = "\u53D8\u91CF";
|
|
@@ -35549,7 +35549,12 @@ const _sfc_main$C = {
|
|
|
35549
35549
|
this.$refs.dialogTable.setSelected([]);
|
|
35550
35550
|
}
|
|
35551
35551
|
}
|
|
35552
|
-
|
|
35552
|
+
if (this.param) {
|
|
35553
|
+
this.$refs.dialogTable.open(this.param);
|
|
35554
|
+
} else {
|
|
35555
|
+
this.$refs.dialogTable.clear();
|
|
35556
|
+
this.$refs.dialogTable.opened = true;
|
|
35557
|
+
}
|
|
35553
35558
|
});
|
|
35554
35559
|
}
|
|
35555
35560
|
},
|
|
@@ -35615,7 +35620,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35615
35620
|
ref: "dialogTable",
|
|
35616
35621
|
"view-code": $props.source,
|
|
35617
35622
|
selectEnable: $props.multi,
|
|
35618
|
-
"check-cross-page":
|
|
35623
|
+
"check-cross-page": true,
|
|
35619
35624
|
"footer-enable": $props.multi
|
|
35620
35625
|
}, {
|
|
35621
35626
|
command: withCtx(({ row }) => [
|
|
@@ -37035,6 +37040,13 @@ const _sfc_main$w = {
|
|
|
37035
37040
|
item.needClear = true;
|
|
37036
37041
|
});
|
|
37037
37042
|
}
|
|
37043
|
+
} else if (column.controlType === "DialogSelect" || column.controlType === "MultiDialogSelect") {
|
|
37044
|
+
if (param == null) {
|
|
37045
|
+
this.setData(this.data, column.code, null);
|
|
37046
|
+
column.triggers.forEach((item) => {
|
|
37047
|
+
item.needClear = true;
|
|
37048
|
+
});
|
|
37049
|
+
}
|
|
37038
37050
|
} else if (column.controlType === "List") {
|
|
37039
37051
|
if (param != null) {
|
|
37040
37052
|
let res2;
|
|
@@ -37907,7 +37919,7 @@ const _sfc_main$v = {
|
|
|
37907
37919
|
paramOpen() {
|
|
37908
37920
|
this.params = [];
|
|
37909
37921
|
this.paramOpened = true;
|
|
37910
|
-
if (this.data.param != null && this.data.param
|
|
37922
|
+
if (this.data.param != null && this.data.param !== "") {
|
|
37911
37923
|
let obj = JSON.parse(this.data.param);
|
|
37912
37924
|
for (let key in obj) {
|
|
37913
37925
|
let type = "\u53D8\u91CF";
|
|
@@ -39599,7 +39611,7 @@ const _sfc_main$u = {
|
|
|
39599
39611
|
},
|
|
39600
39612
|
toData() {
|
|
39601
39613
|
let array = [];
|
|
39602
|
-
if (this.sort
|
|
39614
|
+
if (this.sort !== "" && this.sort != null) {
|
|
39603
39615
|
let json = JSON.parse(this.sort);
|
|
39604
39616
|
for (let key in json) {
|
|
39605
39617
|
array.push({
|
|
@@ -39611,7 +39623,7 @@ const _sfc_main$u = {
|
|
|
39611
39623
|
this.dataSorting = array;
|
|
39612
39624
|
},
|
|
39613
39625
|
async saveSortingForm() {
|
|
39614
|
-
if (this.data.code
|
|
39626
|
+
if (this.data.code !== "" && this.data.code != null && this.data.rule != null && this.data.rule !== "") {
|
|
39615
39627
|
let checkSort = false;
|
|
39616
39628
|
this.dataSorting.forEach((item) => {
|
|
39617
39629
|
if (item.column == this.data.code) {
|
|
@@ -39952,7 +39964,7 @@ const _sfc_main$t = {
|
|
|
39952
39964
|
},
|
|
39953
39965
|
toData() {
|
|
39954
39966
|
let filterArr = [];
|
|
39955
|
-
if (this.filter
|
|
39967
|
+
if (this.filter !== "" && this.filter != null) {
|
|
39956
39968
|
let json = JSON.parse(this.filter);
|
|
39957
39969
|
for (let key in json) {
|
|
39958
39970
|
let operatorArr = [];
|
|
@@ -41293,7 +41305,7 @@ const _sfc_main$r = {
|
|
|
41293
41305
|
parseArrayFilterData(model2, column) {
|
|
41294
41306
|
let data2 = [];
|
|
41295
41307
|
let value = this.parseFilterData(model2, column);
|
|
41296
|
-
if (value != null && value
|
|
41308
|
+
if (value != null && value !== "") {
|
|
41297
41309
|
data2 = value.split(",");
|
|
41298
41310
|
}
|
|
41299
41311
|
return data2;
|
|
@@ -42615,6 +42627,13 @@ const _sfc_main$q = {
|
|
|
42615
42627
|
data2._needClear[item.code] = true;
|
|
42616
42628
|
});
|
|
42617
42629
|
}
|
|
42630
|
+
} else if (column.controlType === "DialogSelect" || column.controlType === "MultiDialogSelect") {
|
|
42631
|
+
if (param == null) {
|
|
42632
|
+
this.setData(data2, column.code, null);
|
|
42633
|
+
column.triggers.forEach((item) => {
|
|
42634
|
+
data2._needClear[item.code] = true;
|
|
42635
|
+
});
|
|
42636
|
+
}
|
|
42618
42637
|
}
|
|
42619
42638
|
}
|
|
42620
42639
|
data2._needClear[column.code] = false;
|
|
@@ -43024,6 +43043,10 @@ const _sfc_main$q = {
|
|
|
43024
43043
|
this.loadData(data2);
|
|
43025
43044
|
}
|
|
43026
43045
|
},
|
|
43046
|
+
clear() {
|
|
43047
|
+
this.staticData = [];
|
|
43048
|
+
this.data = [];
|
|
43049
|
+
},
|
|
43027
43050
|
parseDataWithOther(model2, column) {
|
|
43028
43051
|
let expression2 = column.code;
|
|
43029
43052
|
let selectValue = this.parseData(model2, expression2 + "_o");
|
|
@@ -51592,6 +51615,9 @@ const _sfc_main$n = {
|
|
|
51592
51615
|
},
|
|
51593
51616
|
edit(row, index2) {
|
|
51594
51617
|
this.$refs.columnEdit.open(row, index2, this.$refs.form.columns, (data2) => {
|
|
51618
|
+
if (lodash$1.exports.get(this.$refs.form.data, data2.code) == null) {
|
|
51619
|
+
lodash$1.exports.set(this.$refs.form.data, data2.code, null);
|
|
51620
|
+
}
|
|
51595
51621
|
let columns = this.$refs.form.columns;
|
|
51596
51622
|
columns.splice(index2, 1, data2);
|
|
51597
51623
|
});
|
|
@@ -52529,6 +52555,9 @@ const _sfc_main$l = {
|
|
|
52529
52555
|
selectAllCancel() {
|
|
52530
52556
|
this.setSelected([]);
|
|
52531
52557
|
},
|
|
52558
|
+
clear() {
|
|
52559
|
+
this.$refs.table.clear();
|
|
52560
|
+
},
|
|
52532
52561
|
dragDrop(args) {
|
|
52533
52562
|
this.$emit("on-drag-drop", args);
|
|
52534
52563
|
},
|
|
@@ -52607,10 +52636,9 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52607
52636
|
static: this.static,
|
|
52608
52637
|
filter: $data.tableFilter,
|
|
52609
52638
|
"setting-enable": $props.settingEnable,
|
|
52639
|
+
"auto-load": false,
|
|
52610
52640
|
"select-enable": $props.selectEnable,
|
|
52611
|
-
|
|
52612
|
-
selectEnable: $props.selectEnable,
|
|
52613
|
-
checkCrossPage: $props.checkCrossPage,
|
|
52641
|
+
"check-cross-page": $props.checkCrossPage,
|
|
52614
52642
|
"tree-enable": $props.treeEnable,
|
|
52615
52643
|
"tree-load": $props.treeLoad,
|
|
52616
52644
|
"has-children": $props.hasChildren,
|
|
@@ -52685,7 +52713,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52685
52713
|
})
|
|
52686
52714
|
]),
|
|
52687
52715
|
_: 3
|
|
52688
|
-
}, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "
|
|
52716
|
+
}, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
|
|
52689
52717
|
])
|
|
52690
52718
|
]),
|
|
52691
52719
|
_: 3
|
|
@@ -127364,9 +127392,7 @@ const install = function(app) {
|
|
|
127364
127392
|
app.use(router$1);
|
|
127365
127393
|
app.use(store);
|
|
127366
127394
|
app.use(i18n$1);
|
|
127367
|
-
app.use(ViewUIPlus
|
|
127368
|
-
i18n: i18n$1
|
|
127369
|
-
});
|
|
127395
|
+
app.use(ViewUIPlus);
|
|
127370
127396
|
app.mixin(mixinApp);
|
|
127371
127397
|
Object.keys(components).forEach((key) => {
|
|
127372
127398
|
app.component(key, components[key]);
|