table 设置 :row-key=“getRowKeys” 属性
js:
sizeChange (num) {
this.changePageCoreRecordData()
this.curPage = 1
this.pageNum = num
this.handleQuery()
},
currentPage (num) {
this.changePageCoreRecordData()
this.curPage = num
this.handleQuery()
},
handleSelectionChange (val) {
this.multipleSelection = val
this.changePageCoreRecordData()
},
getRowKeys (row) {
return row.bkSerial
},
handleQuery () {
this.$refs.claimForm.validate((res) => {
if (res) {
this.tableData = []
this.isSearch = true
this.$http( xxx )
.then(res => {
this.isSearch = false
this.total = get(res, 'data.total')
this.curPage = get(res, 'data.currentPage')
this.tableData = get(res, 'data.sources') || []
thi