mooho-base-admin-plus 2.5.16 → 2.5.17

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/history.md CHANGED
@@ -110,3 +110,4 @@ mooho-base-admin-plus@2.5.13 - 修复弹出自定义表单只读的bug
110
110
  mooho-base-admin-plus@2.5.14 - 修复上一版本的bug
111
111
  mooho-base-admin-plus@2.5.15 - 修复上一版本的bug
112
112
  mooho-base-admin-plus@2.5.16 - 修复上一版本的bug
113
+ mooho-base-admin-plus@2.5.17 - 增加表格导出记录数上限和是否禁止自动加载设置
@@ -11048,7 +11048,7 @@ const saveAs = /* @__PURE__ */ getDefaultExportFromCjs(FileSaver_minExports), mo
11048
11048
  r.functionName != null && r.functionName != "" && (o = r.functionName), r.functionType != null && r.functionType != "" && (s = r.functionType);
11049
11049
  let l = {
11050
11050
  ...a,
11051
- per: 1e6,
11051
+ per: r.maxExportCount == null ? 1e6 : r.maxExportCount,
11052
11052
  returnType: 1,
11053
11053
  viewCode: (r.exportDataViewCode || "").trim() ? r.exportDataViewCode : r.code
11054
11054
  }, u;
@@ -21276,7 +21276,7 @@ const processType = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_r
21276
21276
  let o = {
21277
21277
  ...a,
21278
21278
  modelName: r.model,
21279
- per: 1e5,
21279
+ per: r.maxExportCount == null ? 1e6 : r.maxExportCount,
21280
21280
  returnType: 1,
21281
21281
  viewCode: (r.exportDataViewCode || "").trim() ? r.exportDataViewCode : r.code
21282
21282
  }, s;
@@ -25832,7 +25832,7 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O]
25832
25832
  let a = await this.loadPage(r);
25833
25833
  this.page = a.customPage, setTimeout(() => {
25834
25834
  this.allow("all") || (this.filter.createUserID = this.info.id), this.$refs.table.init(this.page.tableViewCode, () => {
25835
- this.$refs.table.loadData();
25835
+ this.$refs.table.tableView.autoLoadDisable || this.$refs.table.loadData();
25836
25836
  }), (this.page.formViewCode || "").trim() && this.$refs.form.init(this.page.formViewCode), ((this.page.formViewCode || "").trim() || (this.page.showViewCode || "").trim()) && this.$refs.showForm.init((this.page.showViewCode || "").trim() ? this.page.showViewCode : this.page.formViewCode);
25837
25837
  });
25838
25838
  },
@@ -26131,7 +26131,7 @@ const processPage = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_re
26131
26131
  async exportExcel(r, a, o = "query") {
26132
26132
  let s = {
26133
26133
  ...a,
26134
- per: 1e5,
26134
+ per: r.maxExportCount == null ? 1e6 : r.maxExportCount,
26135
26135
  returnType: 1,
26136
26136
  viewCode: (r.exportDataViewCode || "").trim() ? r.exportDataViewCode : r.code,
26137
26137
  dataSource: r.dataSource
@@ -26545,7 +26545,7 @@ const viewChart = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_rend
26545
26545
  let a = await this.loadPage(r);
26546
26546
  this.page = a.customPage, a = await this.loadView(this.page.tableViewCode), this.tableView = a.dataView, setTimeout(() => {
26547
26547
  this.$refs.table.init(this.page.tableViewCode, () => {
26548
- this.$refs.table.loadData();
26548
+ this.$refs.table.tableView.autoLoadDisable || this.$refs.table.loadData();
26549
26549
  }), this.$refs.chart.initWithTable(this.tableView, this.$refs.table.data);
26550
26550
  });
26551
26551
  },
@@ -26620,7 +26620,7 @@ const reportPage = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_ren
26620
26620
  let a = await this.loadPage(r);
26621
26621
  this.page = a.customPage, setTimeout(() => {
26622
26622
  this.$refs.table.init(this.page.tableViewCode, () => {
26623
- this.$refs.table.loadData();
26623
+ this.$refs.table.tableView.autoLoadDisable || this.$refs.table.loadData();
26624
26624
  }), (this.page.formViewCode || "").trim() && this.$refs.form.init(this.page.formViewCode), (this.page.showViewCode || "").trim() ? this.$refs.showForm.init(this.page.showViewCode) : (this.page.formViewCode || "").trim() && this.$refs.showForm.init(this.page.formViewCode), this.page.controls = a.customPageControls.filter((o) => o.customPageComponentID == null), this.tables = a.customPageComponents.filter((o) => o.componentType === "Table"), this.tables.forEach((o) => {
26625
26625
  o.controls = a.customPageControls.filter((s) => s.customPageComponentID === o.id);
26626
26626
  }), this.forms = a.customPageComponents.filter((o) => o.componentType === "Form");
@@ -40200,8 +40200,8 @@ const _sfc_main$n = {
40200
40200
  },
40201
40201
  async created() {
40202
40202
  this.viewCode && setTimeout(async () => {
40203
- await this.init(this.viewCode), this.$emit("after-init");
40204
- }), this.viewCode && this.autoLoad && this.loadData();
40203
+ await this.init(this.viewCode), this.$emit("after-init"), this.autoLoad && !this.tableView.autoLoadDisable && this.loadData();
40204
+ });
40205
40205
  },
40206
40206
  activated() {
40207
40207
  },
@@ -42019,7 +42019,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
42019
42019
  ], 2)
42020
42020
  ], 2);
42021
42021
  }
42022
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-e36cb0be"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42022
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-6fc88d75"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42023
42023
  __proto__: null,
42024
42024
  default: viewTable
42025
42025
  }, Symbol.toStringTag, { value: "Module" })), res$1 = "Task", taskApi = {