mooho-base-admin-plus 2.10.54 → 2.10.56

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
@@ -225,3 +225,5 @@ mooho-base-admin-plus@2.10.51 - Excel表格增加Refresh方法,组件增加事
225
225
  mooho-base-admin-plus@2.10.52 - 修复上一版本的bug
226
226
  mooho-base-admin-plus@2.10.53 - 修复上一版本的bug
227
227
  mooho-base-admin-plus@2.10.54 - 修复上一版本的bug
228
+ mooho-base-admin-plus@2.10.55 - 修复上一版本的bug
229
+ mooho-base-admin-plus@2.10.56 - 修复上一版本的bug
@@ -41683,7 +41683,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_r
41683
41683
  (a.controlType == "Table" || a.controlType == "ExcelTable") && this.$refs["table_" + a.code] ? setTimeout(async () => {
41684
41684
  if (a.tableStoreType == "Inner") {
41685
41685
  let r = this.parseData(this.data, a.code);
41686
- r ? this.$refs["table_" + a.code][0].loadData(JSON.parse(r)) : this.$refs["table_" + a.code][0].loadData([]);
41686
+ r && this.$refs["table_" + a.code][0].loadData(JSON.parse(r));
41687
41687
  } else if (this.data.id) {
41688
41688
  let r, o = {}, s = this.$refs["table_" + a.code][0].tableView, l = s.filtering;
41689
41689
  (l || "").trim() && (o = JSON.parse(l)), o[a.sourceDataCode] = this.data.id, a.isSourceCustom ? r = await customModelApi.query(a.sourceModel, o, null, s.isReturnSimple ? s : null) : r = await modelApi.query(a.sourceModel, o, null, s.isReturnSimple ? s : null, s.functionName, s.functionType), this.$refs["table_" + a.code][0].loadData(r.data);
@@ -103978,9 +103978,9 @@ const _sfc_main$o = {
103978
103978
  */
103979
103979
  async validate() {
103980
103980
  let a = [];
103981
- for (let r = 0; r < this.staticData.length - 1; r++)
103981
+ for (let r = 0; r < this.staticData.length; r++)
103982
103982
  a.push(r);
103983
- return new Promise((r) => {
103983
+ return !this.readonly && this.tableView.createEnable && a.pop(), new Promise((r) => {
103984
103984
  this.$refs.table.hotInstance.validateRows(a, (o) => {
103985
103985
  r(o);
103986
103986
  });