mooho-base-admin-plus 0.1.56 → 0.1.60

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.
@@ -15965,7 +15965,7 @@ var mixinPage = {
15965
15965
  return Setting.layout;
15966
15966
  },
15967
15967
  apiBaseURL() {
15968
- return window === "development" ? Setting.apiBaseURL.dev : Setting.apiBaseURL.prd;
15968
+ return window.$mode === "development" ? Setting.apiBaseURL.dev : Setting.apiBaseURL.prd;
15969
15969
  },
15970
15970
  uploadURL() {
15971
15971
  return this.apiBaseURL + "api/Attachment/add";
@@ -26173,29 +26173,24 @@ const _sfc_main$K = {
26173
26173
  };
26174
26174
  },
26175
26175
  computed: {},
26176
- async created() {
26176
+ async mounted() {
26177
26177
  this.init(this.$route.meta.data.id);
26178
26178
  },
26179
- watch: {
26180
- $route() {
26181
- if (this.$route.meta.data.id) {
26182
- this.init(this.$route.meta.data.id);
26183
- }
26184
- }
26185
- },
26186
26179
  methods: __spreadProps(__spreadValues({}, mapActions("admin/viewPage", { loadPage: "load" })), {
26187
26180
  async init(pageID) {
26188
26181
  let res2 = await this.loadPage(pageID);
26189
26182
  this.page = res2.customPage;
26190
- this.$refs.table.init(this.page.tableViewCode, () => {
26191
- this.$refs.table.loadData();
26183
+ setTimeout(() => {
26184
+ this.$refs.table.init(this.page.tableViewCode, () => {
26185
+ this.$refs.table.loadData();
26186
+ });
26187
+ if (!!(this.page.formViewCode || "").trim()) {
26188
+ this.$refs.form.init(this.page.formViewCode);
26189
+ }
26190
+ if (!!(this.page.formViewCode || "").trim() || !!(this.page.showViewCode || "").trim()) {
26191
+ this.$refs.showForm.init(!(this.page.showViewCode || "").trim() ? this.page.formViewCode : this.page.showViewCode);
26192
+ }
26192
26193
  });
26193
- if (!!(this.page.formViewCode || "").trim()) {
26194
- this.$refs.form.init(this.page.formViewCode);
26195
- }
26196
- if (!!(this.page.formViewCode || "").trim() || !!(this.page.showViewCode || "").trim()) {
26197
- this.$refs.showForm.init(!(this.page.showViewCode || "").trim() ? this.page.formViewCode : this.page.showViewCode);
26198
- }
26199
26194
  },
26200
26195
  create() {
26201
26196
  let application = {
@@ -26955,26 +26950,21 @@ const _sfc_main$I = {
26955
26950
  };
26956
26951
  },
26957
26952
  computed: {},
26958
- created() {
26953
+ mounted() {
26959
26954
  this.init(this.$route.meta.data.id);
26960
26955
  },
26961
- watch: {
26962
- $route() {
26963
- if (this.$route.meta.data.id) {
26964
- this.init(this.$route.meta.data.id);
26965
- }
26966
- }
26967
- },
26968
26956
  methods: __spreadProps(__spreadValues(__spreadValues({}, mapActions("admin/viewPage", { loadPage: "load" })), mapActions("admin/dataView", { loadView: "load" })), {
26969
26957
  async init(pageID) {
26970
26958
  let res2 = await this.loadPage(pageID);
26971
26959
  this.page = res2.customPage;
26972
26960
  res2 = await this.loadView(this.page.tableViewCode);
26973
26961
  this.tableView = res2.dataView;
26974
- this.$refs.table.init(this.page.tableViewCode, () => {
26975
- this.$refs.table.loadData();
26962
+ setTimeout(() => {
26963
+ this.$refs.table.init(this.page.tableViewCode, () => {
26964
+ this.$refs.table.loadData();
26965
+ });
26966
+ this.$refs.chart.initWithTable(this.tableView, this.$refs.table.data);
26976
26967
  });
26977
- this.$refs.chart.initWithTable(this.tableView, this.$refs.table.data);
26978
26968
  },
26979
26969
  onLoadData() {
26980
26970
  this.$refs.chart.loadChart(this.$refs.table.data);
@@ -27001,8 +26991,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
27001
26991
  class: "ivu-mt"
27002
26992
  }, {
27003
26993
  default: withCtx(() => [
27004
- $data.page ? (openBlock(), createBlock(_component_view_table, {
27005
- key: 0,
26994
+ createVNode$1(_component_view_table, {
27006
26995
  ref: "table",
27007
26996
  onOnLoadData: $options.onLoadData
27008
26997
  }, {
@@ -27012,7 +27001,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
27012
27001
  ])
27013
27002
  ]),
27014
27003
  _: 1
27015
- }, 8, ["onOnLoadData"])) : createCommentVNode("", true)
27004
+ }, 8, ["onOnLoadData"])
27016
27005
  ]),
27017
27006
  _: 1
27018
27007
  })
@@ -27038,36 +27027,31 @@ const _sfc_main$H = {
27038
27027
  mounted() {
27039
27028
  this.init(this.$route.meta.data.id);
27040
27029
  },
27041
- watch: {
27042
- $route() {
27043
- if (this.$route.meta.data.id) {
27044
- this.init(this.$route.meta.data.id);
27045
- }
27046
- }
27047
- },
27048
27030
  methods: __spreadProps(__spreadValues({}, mapActions("admin/viewPage", { loadPage: "load" })), {
27049
27031
  async init(pageID) {
27050
27032
  let res2 = await this.loadPage(pageID);
27051
27033
  this.page = res2.customPage;
27052
- this.$refs.table.init(this.page.tableViewCode, () => {
27053
- this.$refs.table.loadData();
27054
- });
27055
- if (!!(this.page.formViewCode || "").trim()) {
27056
- this.$refs.form.init(this.page.formViewCode);
27057
- }
27058
- this.page.controls = res2.customPageControls.filter((item) => {
27059
- return item.customPageComponentID == null;
27060
- });
27061
- this.tables = res2.customPageComponents.filter((item) => {
27062
- return item.componentType === "Table";
27063
- });
27064
- this.tables.forEach((component) => {
27065
- component.controls = res2.customPageControls.filter((item) => {
27066
- return item.customPageComponentID === component.id;
27034
+ setTimeout(() => {
27035
+ this.$refs.table.init(this.page.tableViewCode, () => {
27036
+ this.$refs.table.loadData();
27037
+ });
27038
+ if (!!(this.page.formViewCode || "").trim()) {
27039
+ this.$refs.form.init(this.page.formViewCode);
27040
+ }
27041
+ this.page.controls = res2.customPageControls.filter((item) => {
27042
+ return item.customPageComponentID == null;
27043
+ });
27044
+ this.tables = res2.customPageComponents.filter((item) => {
27045
+ return item.componentType === "Table";
27046
+ });
27047
+ this.tables.forEach((component) => {
27048
+ component.controls = res2.customPageControls.filter((item) => {
27049
+ return item.customPageComponentID === component.id;
27050
+ });
27051
+ });
27052
+ this.forms = res2.customPageComponents.filter((item) => {
27053
+ return item.componentType === "Form";
27067
27054
  });
27068
- });
27069
- this.forms = res2.customPageComponents.filter((item) => {
27070
- return item.componentType === "Form";
27071
27055
  });
27072
27056
  },
27073
27057
  controlClick(data2, targetCode, param) {