Commit e345b51a authored by 徐来柯's avatar 徐来柯

update

parent 8804fa40
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
class="table-auto-height" class="table-auto-height"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
:row-key="getRowKey"
highlight-current-row highlight-current-row
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
...@@ -263,6 +264,9 @@ export default { ...@@ -263,6 +264,9 @@ export default {
console.log('err',err) console.log('err',err)
}) })
}, },
getRowKey (row) {
return row.ID
},
// 保存变量 // 保存变量
saveData (data, type) { saveData (data, type) {
this.$refs.linePop[type] = data.Name this.$refs.linePop[type] = data.Name
...@@ -443,6 +447,7 @@ export default { ...@@ -443,6 +447,7 @@ export default {
}else{ }else{
this.tableData = this.AllTableData.slice((num-1)*this.PageSize,this.PageSize*num) this.tableData = this.AllTableData.slice((num-1)*this.PageSize,this.PageSize*num)
} }
this.section()
}, },
//上一页颜色 //上一页颜色
lastColor(text){ lastColor(text){
...@@ -497,7 +502,7 @@ export default { ...@@ -497,7 +502,7 @@ export default {
this.lastColor('2') this.lastColor('2')
this.pageFun(this.PageIndex) this.pageFun(this.PageIndex)
}, },
//一页 //一页
next(){ next(){
if(this.PageIndex<this.TotalPage){ if(this.PageIndex<this.TotalPage){
this.nextColor('2') this.nextColor('2')
...@@ -733,9 +738,11 @@ export default { ...@@ -733,9 +738,11 @@ export default {
}, },
section () { section () {
var $this = this var $this = this
$this.$nextTick(() => {
$this.AllTableData.forEach(row => { $this.AllTableData.forEach(row => {
$this.$refs.multipleTable.toggleRowSelection(row, row.ID === this.currentRow[0].ID) $this.$refs.multipleTable.toggleRowSelection(row, row.ID === this.currentRow[0].ID)
}) })
})
}, },
//下移 //下移
async MoveDown(){ async MoveDown(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment