mooho-base-admin-plus 2.10.53 → 2.10.55

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
@@ -224,3 +224,5 @@ mooho-base-admin-plus@2.10.50 - 修复Excel表格验证功能
224
224
  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
+ mooho-base-admin-plus@2.10.54 - 修复上一版本的bug
228
+ mooho-base-admin-plus@2.10.55 - 修复上一版本的bug
@@ -41784,8 +41784,14 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_r
41784
41784
  *
41785
41785
  * @public
41786
41786
  */
41787
- validate() {
41788
- return this.$refs.form.validate();
41787
+ async validate() {
41788
+ let a = await this.$refs.form.validate();
41789
+ for (let r of this.columns)
41790
+ if (r.controlType == "ExcelTable" && !r.isReadonly && r.isShow) {
41791
+ let o = await this.$refs["table_" + r.code][0].validate();
41792
+ a = a && o;
41793
+ }
41794
+ return a;
41789
41795
  },
41790
41796
  /**
41791
41797
  * 获取完整数据
@@ -41802,8 +41808,8 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_r
41802
41808
  let o = this.$refs["table_" + r.code][0].getData();
41803
41809
  if (r.isRequired && o.length == 0)
41804
41810
  return this.error("Front_Msg_Row_Required|" + this.getNameI18n(r)), !1;
41805
- if (!this.$refs["table_" + r.code][0].validate())
41806
- return console.log("invalid", "table_" + r.code), !1;
41811
+ if (r.controlType == "Table" && !this.$refs["table_" + r.code][0].validate())
41812
+ return !1;
41807
41813
  r.tableStoreType == "Inner" ? a[r.code] = JSON.stringify(o) : a.tableData.push({
41808
41814
  model: r.sourceModel,
41809
41815
  sourceDataCode: r.sourceDataCode,
@@ -103970,13 +103976,15 @@ const _sfc_main$o = {
103970
103976
  *
103971
103977
  * @public
103972
103978
  */
103973
- validate() {
103979
+ async validate() {
103974
103980
  let a = [];
103975
- for (let o = 0; o < this.staticData.length - 1; o++)
103976
- a.push(o);
103977
- return this.$refs.table.hotInstance.validateRows(a, (o) => {
103978
- console.log("valid", o);
103979
- }) ? !0 : (this.error("Front_Msg_Form_Validate_Fail"), !1);
103981
+ for (let r = 0; r < this.staticData.length; r++)
103982
+ a.push(r);
103983
+ return !this.readonly && this.tableView.createEnable && a.pop(), new Promise((r) => {
103984
+ this.$refs.table.hotInstance.validateRows(a, (o) => {
103985
+ r(o);
103986
+ });
103987
+ });
103980
103988
  },
103981
103989
  /**
103982
103990
  * 获取数据