|
@@ -286,9 +286,14 @@ export default {
|
|
|
},
|
|
|
// 全选改变事件
|
|
|
selectedAllChange: ({ isSelected, selectedRowKeys }) => {
|
|
|
+ this.checkboxOption.selectedRowKeys = []
|
|
|
this.checkboxOption.selectedRowKeys = selectedRowKeys
|
|
|
this.selectedRowKeys = selectedRowKeys;
|
|
|
- this.selectedRows = this.shipmentListData
|
|
|
+ if(isSelected){
|
|
|
+ this.selectedRows = this.shipmentListData
|
|
|
+ }else{
|
|
|
+ this.selectedRows = []
|
|
|
+ }
|
|
|
this.selectedNumber =this.selectedRowKeys.length
|
|
|
},
|
|
|
},
|
|
@@ -696,7 +701,7 @@ export default {
|
|
|
}
|
|
|
this.shipmentListData = res.result.records
|
|
|
this.showEmpty = this.shipmentListData.length==0?true:false
|
|
|
- this.virtualScrollOption.enable = this.shipmentListData.length>0?true:false
|
|
|
+ this.virtualScrollOption.enable = this.shipmentListData.length>500?true:false
|
|
|
for (var i=0; i<this.shipmentListData.length; i++){
|
|
|
this.shipmentListData.randomId = randomUUID();
|
|
|
}
|