import share from "@/api/share"
export default {
data() {
return {
};
},
methods: {
sortthiscolumn (column) { //自定义排序 column参数为一个对象包含需要排序的属性和排序方法
if(column.prop == "callTimes" && column.order == "ascending"){
this.useorder = "ASC"
this.page.currentPage = 1;
this.getRunConfig(this.page.pagesize,this.page.currentPage,this.configState,this.input,this.timeorder,this.useorder,this.errororder);
}else if(column.prop == "callTimes" && column.order == "descending"){
this.useorder = "DESC"
this.page.currentPage = 1;
this.getRunConfig(this.page.pagesize,this.page.currentPage,this.configState,this.input,this.timeorder,this.useorder,this.errororder);
}else if(column.prop == "errorCount" && column.order == "ascending"){
this.errororder = "ASC"
this.page.currentPage = 1;
this.getRunConfig(this.page.pagesize,this.page.currentPage,this.configState,this.input,this.timeorder,this.useorder,this.errororder);
}else if(column.prop == "errorCount" && column.order == "descending"){
this.errororder = "DESC"
this.page.currentPage = 1;
this.getRunConfig(this.page.pagesize,this.page.currentPage,this.configState,this.input,this.timeorder,this.useorder,this.errororder);
}else{
return;
}
},
}
};