mooho-base-admin-plus 2.0.52 → 2.0.54
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 +32 -14
- package/package/mooho-base-admin-plus.min.js +5 -5
- package/package.json +1 -1
- package/src/components/input/dialog-select.vue +8 -5
- package/src/components/view/modal-table.vue +8 -0
- package/src/components/view/view-form.vue +13 -10
- package/src/components/view/view-table.vue +13 -0
|
@@ -35421,7 +35421,8 @@ const _sfc_main$C = {
|
|
|
35421
35421
|
return {
|
|
35422
35422
|
selected: null,
|
|
35423
35423
|
selectedData: null,
|
|
35424
|
-
dialogActive: false
|
|
35424
|
+
dialogActive: false,
|
|
35425
|
+
loadDataEnable: true
|
|
35425
35426
|
};
|
|
35426
35427
|
},
|
|
35427
35428
|
props: {
|
|
@@ -35553,11 +35554,11 @@ const _sfc_main$C = {
|
|
|
35553
35554
|
}
|
|
35554
35555
|
}
|
|
35555
35556
|
if (this.param) {
|
|
35556
|
-
this
|
|
35557
|
+
this.loadDataEnable = true;
|
|
35557
35558
|
} else {
|
|
35558
|
-
this
|
|
35559
|
-
this.$refs.dialogTable.opened = true;
|
|
35559
|
+
this.loadDataEnable = false;
|
|
35560
35560
|
}
|
|
35561
|
+
this.$refs.dialogTable.open(this.param);
|
|
35561
35562
|
});
|
|
35562
35563
|
}
|
|
35563
35564
|
},
|
|
@@ -35624,7 +35625,8 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35624
35625
|
"view-code": $props.source,
|
|
35625
35626
|
selectEnable: $props.multi,
|
|
35626
35627
|
"check-cross-page": true,
|
|
35627
|
-
"footer-enable": $props.multi
|
|
35628
|
+
"footer-enable": $props.multi,
|
|
35629
|
+
"load-data-enable": $data.loadDataEnable
|
|
35628
35630
|
}, {
|
|
35629
35631
|
command: withCtx(({ row }) => [
|
|
35630
35632
|
!$props.multi ? (openBlock(), createBlock(_component_Button, {
|
|
@@ -35663,7 +35665,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35663
35665
|
})
|
|
35664
35666
|
]),
|
|
35665
35667
|
_: 1
|
|
35666
|
-
}, 8, ["view-code", "selectEnable", "footer-enable"])) : createCommentVNode("v-if", true)
|
|
35668
|
+
}, 8, ["view-code", "selectEnable", "footer-enable", "load-data-enable"])) : createCommentVNode("v-if", true)
|
|
35667
35669
|
]);
|
|
35668
35670
|
}
|
|
35669
35671
|
var DialogSelect = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__file", "D:/Project/Mooho/FrontEnd/mooho-base-admin-plus/src/components/input/dialog-select.vue"]]);
|
|
@@ -36941,7 +36943,11 @@ const _sfc_main$w = {
|
|
|
36941
36943
|
}
|
|
36942
36944
|
}
|
|
36943
36945
|
if (code2) {
|
|
36944
|
-
|
|
36946
|
+
let objModel = model2;
|
|
36947
|
+
if (sender.sourceDataCode.endsWith("ID")) {
|
|
36948
|
+
objModel = this.parseData(model2, sender.sourceDataCode.substr(0, sender.sourceDataCode.length - 2));
|
|
36949
|
+
}
|
|
36950
|
+
this.setData(this.data, code2, objModel);
|
|
36945
36951
|
}
|
|
36946
36952
|
this.onDataChange(sender, model2);
|
|
36947
36953
|
},
|
|
@@ -37044,12 +37050,10 @@ const _sfc_main$w = {
|
|
|
37044
37050
|
});
|
|
37045
37051
|
}
|
|
37046
37052
|
} else if (column.controlType === "DialogSelect" || column.controlType === "MultiDialogSelect") {
|
|
37047
|
-
|
|
37048
|
-
|
|
37049
|
-
|
|
37050
|
-
|
|
37051
|
-
});
|
|
37052
|
-
}
|
|
37053
|
+
this.setData(this.data, column.code, null);
|
|
37054
|
+
column.triggers.forEach((item) => {
|
|
37055
|
+
item.needClear = true;
|
|
37056
|
+
});
|
|
37053
37057
|
} else if (column.controlType === "List") {
|
|
37054
37058
|
if (param != null) {
|
|
37055
37059
|
let res2;
|
|
@@ -41915,6 +41919,10 @@ const _sfc_main$q = {
|
|
|
41915
41919
|
},
|
|
41916
41920
|
spanMethod: {
|
|
41917
41921
|
type: Function
|
|
41922
|
+
},
|
|
41923
|
+
loadDataEnable: {
|
|
41924
|
+
type: Boolean,
|
|
41925
|
+
default: true
|
|
41918
41926
|
}
|
|
41919
41927
|
},
|
|
41920
41928
|
computed: {
|
|
@@ -42088,6 +42096,11 @@ const _sfc_main$q = {
|
|
|
42088
42096
|
});
|
|
42089
42097
|
},
|
|
42090
42098
|
async loadData(staticData) {
|
|
42099
|
+
if (!this.loadDataEnable) {
|
|
42100
|
+
this.total = 0;
|
|
42101
|
+
this.data = [];
|
|
42102
|
+
return;
|
|
42103
|
+
}
|
|
42091
42104
|
if (!this.inited) {
|
|
42092
42105
|
await this.init(this.viewCode);
|
|
42093
42106
|
if (!this.inited) {
|
|
@@ -52476,6 +52489,10 @@ const _sfc_main$l = {
|
|
|
52476
52489
|
},
|
|
52477
52490
|
spanMethod: {
|
|
52478
52491
|
type: Function
|
|
52492
|
+
},
|
|
52493
|
+
loadDataEnable: {
|
|
52494
|
+
type: Boolean,
|
|
52495
|
+
default: true
|
|
52479
52496
|
}
|
|
52480
52497
|
},
|
|
52481
52498
|
computed: {
|
|
@@ -52657,6 +52674,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52657
52674
|
"summary-method": $props.summaryMethod,
|
|
52658
52675
|
"page-size-opts": $props.pageSizeOpts,
|
|
52659
52676
|
"span-method": $props.spanMethod,
|
|
52677
|
+
"load-data-enable": $props.loadDataEnable,
|
|
52660
52678
|
onCreate: $options.create,
|
|
52661
52679
|
onEdit: $options.edit,
|
|
52662
52680
|
onOnReady: $options.onReady,
|
|
@@ -52716,7 +52734,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52716
52734
|
})
|
|
52717
52735
|
]),
|
|
52718
52736
|
_: 3
|
|
52719
|
-
}, 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"])
|
|
52737
|
+
}, 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", "load-data-enable", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
|
|
52720
52738
|
])
|
|
52721
52739
|
]),
|
|
52722
52740
|
_: 3
|