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

update

parent 8804fa40
......@@ -17,6 +17,7 @@
class="table-auto-height"
ref="multipleTable"
:data="tableData"
:row-key="getRowKey"
highlight-current-row
tooltip-effect="dark"
style="width: 100%"
......@@ -263,6 +264,9 @@ export default {
console.log('err',err)
})
},
getRowKey (row) {
return row.ID
},
// 保存变量
saveData (data, type) {
this.$refs.linePop[type] = data.Name
......@@ -443,6 +447,7 @@ export default {
}else{
this.tableData = this.AllTableData.slice((num-1)*this.PageSize,this.PageSize*num)
}
this.section()
},
//上一页颜色
lastColor(text){
......@@ -497,7 +502,7 @@ export default {
this.lastColor('2')
this.pageFun(this.PageIndex)
},
//一页
//一页
next(){
if(this.PageIndex<this.TotalPage){
this.nextColor('2')
......@@ -733,9 +738,11 @@ export default {
},
section () {
var $this = this
$this.$nextTick(() => {
$this.AllTableData.forEach(row => {
$this.$refs.multipleTable.toggleRowSelection(row, row.ID === this.currentRow[0].ID)
})
})
},
//下移
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