|
|
@ -144,7 +144,7 @@ |
|
|
|
records : [], |
|
|
|
total : 0, |
|
|
|
}, |
|
|
|
state : -1, |
|
|
|
type : -1, |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
@ -162,8 +162,8 @@ |
|
|
|
let queryParams = { |
|
|
|
...this.queryParams, |
|
|
|
} |
|
|
|
if(this.state != -1){ |
|
|
|
queryParams.state = this.state |
|
|
|
if(this.type != -1){ |
|
|
|
queryParams.type = this.type |
|
|
|
} |
|
|
|
this.$api('orderPage', queryParams, res => { |
|
|
|
if(res.code == 200){ |
|
|
@ -174,9 +174,9 @@ |
|
|
|
//点击tab栏 |
|
|
|
clickTabs({ index, name }) { |
|
|
|
if (index == 0) { |
|
|
|
this.state = -1; |
|
|
|
this.type = -1; |
|
|
|
} else { |
|
|
|
this.state = index - 1; |
|
|
|
this.type = index - 1; |
|
|
|
} |
|
|
|
this.queryParams.pageSize = 10 |
|
|
|
this.orderPage() |
|
|
|