|
@@ -148,10 +148,9 @@ export default {
|
|
// 重置表格为空
|
|
// 重置表格为空
|
|
clearTable () {
|
|
clearTable () {
|
|
this.localLoading = false
|
|
this.localLoading = false
|
|
- this.needTotalList= []
|
|
|
|
- this.selectedRows= []
|
|
|
|
- this.selectedRowKeys= []
|
|
|
|
this.localDataSource = []
|
|
this.localDataSource = []
|
|
|
|
+ this.needTotalList = []
|
|
|
|
+ this.clearSelected()
|
|
this.localPagination = Object.assign({}, {
|
|
this.localPagination = Object.assign({}, {
|
|
current: 1, pageSize: this.pageSize, total: 0
|
|
current: 1, pageSize: this.pageSize, total: 0
|
|
})
|
|
})
|
|
@@ -303,8 +302,6 @@ export default {
|
|
*/
|
|
*/
|
|
clearSelected () {
|
|
clearSelected () {
|
|
if (this.rowSelection) {
|
|
if (this.rowSelection) {
|
|
- // this.rowSelection.onChange([], [])
|
|
|
|
- // this.updateSelect([], [])
|
|
|
|
this.selectedRows = []
|
|
this.selectedRows = []
|
|
this.selectedRowKeys = []
|
|
this.selectedRowKeys = []
|
|
this.updateSelect()
|
|
this.updateSelect()
|