mooho-base-admin-plus 2.10.53 → 2.10.54
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
|
@@ -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
|
-
|
|
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
|
|
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
|
|
103976
|
-
a.push(
|
|
103977
|
-
return
|
|
103978
|
-
|
|
103979
|
-
|
|
103981
|
+
for (let r = 0; r < this.staticData.length - 1; r++)
|
|
103982
|
+
a.push(r);
|
|
103983
|
+
return new Promise((r) => {
|
|
103984
|
+
this.$refs.table.hotInstance.validateRows(a, (o) => {
|
|
103985
|
+
r(o);
|
|
103986
|
+
});
|
|
103987
|
+
});
|
|
103980
103988
|
},
|
|
103981
103989
|
/**
|
|
103982
103990
|
* 获取数据
|