|
|
|
@ -289,7 +289,7 @@ export default { |
|
|
|
console.info(data) |
|
|
|
rankingSort(data).then(res=>{ |
|
|
|
if(res.code==200){ |
|
|
|
this.$message.success(type==1?'上移':'下移'+'成功!'); |
|
|
|
this.$message.success(type==1?'上移成功!':'下移成功!'); |
|
|
|
this.getList() |
|
|
|
this.selectedRowKeys1=[] |
|
|
|
}else{ |
|
|
|
@ -355,12 +355,14 @@ export default { |
|
|
|
this.active=val-1 |
|
|
|
this.selectedRowKeys1=[] |
|
|
|
if(this.active==2){ |
|
|
|
let data={ |
|
|
|
title: '操作', |
|
|
|
scopedSlots: { customRender: 'operation' }, |
|
|
|
// align:'center' |
|
|
|
if(this.columns[this.columns.length - 1].title!='操作'){ |
|
|
|
let data={ |
|
|
|
title: '操作', |
|
|
|
scopedSlots: { customRender: 'operation' }, |
|
|
|
// align:'center' |
|
|
|
} |
|
|
|
this.columns.push(data) |
|
|
|
} |
|
|
|
this.columns.push(data) |
|
|
|
}else{ |
|
|
|
for (let i=0; i<this.columns.length; i++){ |
|
|
|
if (this.columns[i].title == '操作'){ |
|
|
|
|