修改排序规则
This commit is contained in:
@@ -159,6 +159,15 @@ export default {
|
||||
maxValue: maxValue,
|
||||
};
|
||||
this.items.splice(this.items.length, 0, item);
|
||||
this.items = this.items.sort((a, b) => {
|
||||
if (a.minValue > b.minValue) {
|
||||
return -1;
|
||||
} else if (a.minValue < b.minValue) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
this.renderTableInfo();
|
||||
},
|
||||
save() {
|
||||
|
Reference in New Issue
Block a user