mooho-base-admin-plus 0.4.49 → 0.4.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.
@@ -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,12 @@ const _sfc_main$J = {
30401
30401
  }
30402
30402
  setTimeout(() => {
30403
30403
  this.chart = this.$echarts.init(document.getElementById(this.uid));
30404
- this.loadData();
30404
+ this.$emit("on-ready", view);
30405
+ if (typeof callback === "function") {
30406
+ callback(view);
30407
+ } else {
30408
+ this.loadData();
30409
+ }
30405
30410
  });
30406
30411
  },
30407
30412
  async initWithTable(tableView2) {