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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.10.54",
4
+ "version": "2.10.56",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -636,8 +636,6 @@
636
636
 
637
637
  if (json) {
638
638
  this.$refs['table_' + column.code][0].loadData(JSON.parse(json));
639
- } else {
640
- this.$refs['table_' + column.code][0].loadData([]);
641
639
  }
642
640
  } else {
643
641
  // 关联表
@@ -722,10 +722,14 @@
722
722
  async validate() {
723
723
  let rows = [];
724
724
 
725
- for (let i = 0; i < this.staticData.length - 1; i++) {
725
+ for (let i = 0; i < this.staticData.length; i++) {
726
726
  rows.push(i);
727
727
  }
728
728
 
729
+ if (!this.readonly && this.tableView.createEnable) {
730
+ rows.pop();
731
+ }
732
+
729
733
  return new Promise(resolve => {
730
734
  this.$refs.table.hotInstance.validateRows(rows, valid => {
731
735
  resolve(valid);