mooho-base-admin-plus 0.4.48 → 0.4.50
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.
|
@@ -30387,7 +30387,7 @@ const _sfc_main$J = {
|
|
|
30387
30387
|
watch: {},
|
|
30388
30388
|
methods: {
|
|
30389
30389
|
...mapActions("admin/dataView", { loadDataView: "load", saveDataViewSetting: "saveSetting" }),
|
|
30390
|
-
async init(viewCode) {
|
|
30390
|
+
async init(viewCode, callback) {
|
|
30391
30391
|
let view = await this.loadDataView(viewCode);
|
|
30392
30392
|
if (view == null) {
|
|
30393
30393
|
this.error("Front_Msg_View_Code_Not_Exist|" + viewCode);
|
|
@@ -30401,7 +30401,11 @@ const _sfc_main$J = {
|
|
|
30401
30401
|
}
|
|
30402
30402
|
setTimeout(() => {
|
|
30403
30403
|
this.chart = this.$echarts.init(document.getElementById(this.uid));
|
|
30404
|
-
|
|
30404
|
+
if (typeof callback === "function") {
|
|
30405
|
+
callback(view);
|
|
30406
|
+
} else {
|
|
30407
|
+
this.loadData();
|
|
30408
|
+
}
|
|
30405
30409
|
});
|
|
30406
30410
|
},
|
|
30407
30411
|
async initWithTable(tableView2) {
|
|
@@ -30445,7 +30449,9 @@ const _sfc_main$J = {
|
|
|
30445
30449
|
this.data = res2.data;
|
|
30446
30450
|
}
|
|
30447
30451
|
}
|
|
30448
|
-
|
|
30452
|
+
setTimeout(() => {
|
|
30453
|
+
this.loadChart();
|
|
30454
|
+
});
|
|
30449
30455
|
},
|
|
30450
30456
|
async loadChart(data2) {
|
|
30451
30457
|
if (data2) {
|