temp: dc重构(部分)

This commit is contained in:
陈劲松
2020-07-15 22:11:33 +08:00
parent 9a9f44779f
commit 44769006d0
4 changed files with 53 additions and 69 deletions

View File

@@ -338,7 +338,7 @@
this.showSubList = true;
},
add() {
this.cleanPromServer();
this.promServer = this.newPromServer();
this.rightBox.show = true;
},
closeRightBox(refresh) {
@@ -378,8 +378,8 @@
}
})
},
cleanPromServer() {
this.promServer = JSON.parse(JSON.stringify(this.blankPromServer));
newPromServer() {
return JSON.parse(JSON.stringify(this.blankPromServer));
},
pageNo(val) {
this.pageObj.pageNo = val;
@@ -443,12 +443,12 @@
},
// 数据排序
tableDataSort(item){
let orderBy='';
if(item.order==='ascending'){
orderBy=item.prop;
let orderBy = '';
if(item.order === 'ascending') {
orderBy = item.prop;
}
if(item.order==='descending'){
orderBy='-'+item.prop;
if(item.order === 'descending') {
orderBy = '-' + item.prop;
}
this.$set(this.searchLabel, "orderBy", orderBy);
this.getTableData();