mooho-base-admin-plus 2.10.11 → 2.10.13
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
|
@@ -833,6 +833,12 @@
|
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
+
// 必填表格增加一行
|
|
837
|
+
let tables = this.columns.filter(item => item.controlType == 'Table' && item.isRequired);
|
|
838
|
+
for (let column of tables) {
|
|
839
|
+
this.$refs['table_' + column.code][0].addNew();
|
|
840
|
+
}
|
|
841
|
+
|
|
836
842
|
this.clearValidate();
|
|
837
843
|
},
|
|
838
844
|
/**
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
width: widthSetting[item.code] ? widthSetting[item.code] : item.controlWidth,
|
|
715
715
|
minWidth: 100,
|
|
716
716
|
align: item.align ? item.align.toLowerCase() : 'center',
|
|
717
|
-
sortable: !view.dataView.sortDisable && !item.sortDisable && (!item.isVirtual || isStatic) ? 'custom' : false,
|
|
717
|
+
sortable: !view.dataView.sortDisable && !view.dataView.adjustEnable && !item.sortDisable && (!item.isVirtual || isStatic) ? 'custom' : false,
|
|
718
718
|
resizable: true,
|
|
719
719
|
slot: 'normal'
|
|
720
720
|
};
|
|
@@ -1724,14 +1724,24 @@
|
|
|
1724
1724
|
}
|
|
1725
1725
|
|
|
1726
1726
|
data.forEach(item => {
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
delete item._disabled;
|
|
1727
|
+
for (let key in item) {
|
|
1728
|
+
if (key.startsWith('_')) {
|
|
1729
|
+
delete item[key];
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1733
1732
|
});
|
|
1734
1733
|
|
|
1734
|
+
console.log('data', data);
|
|
1735
|
+
|
|
1736
|
+
// 调整顺序
|
|
1737
|
+
if (this.tableView.adjustEnable) {
|
|
1738
|
+
let i = 0;
|
|
1739
|
+
for (let item of data) {
|
|
1740
|
+
item.orderNo = i;
|
|
1741
|
+
i += 10;
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1735
1745
|
return data;
|
|
1736
1746
|
},
|
|
1737
1747
|
/**
|
|
@@ -2798,9 +2808,9 @@
|
|
|
2798
2808
|
data.splice(index, 1);
|
|
2799
2809
|
data.splice(index - 1, 0, row);
|
|
2800
2810
|
|
|
2801
|
-
for (let item of data) {
|
|
2802
|
-
|
|
2803
|
-
}
|
|
2811
|
+
// for (let item of data) {
|
|
2812
|
+
// delete item.id;
|
|
2813
|
+
// }
|
|
2804
2814
|
|
|
2805
2815
|
this.loadData(data);
|
|
2806
2816
|
}
|
|
@@ -2812,9 +2822,9 @@
|
|
|
2812
2822
|
data.splice(index, 1);
|
|
2813
2823
|
data.splice(index + 1, 0, row);
|
|
2814
2824
|
|
|
2815
|
-
for (let item of data) {
|
|
2816
|
-
|
|
2817
|
-
}
|
|
2825
|
+
// for (let item of data) {
|
|
2826
|
+
// delete item.id;
|
|
2827
|
+
// }
|
|
2818
2828
|
|
|
2819
2829
|
this.loadData(data);
|
|
2820
2830
|
}
|