|
|
@@ -20,7 +20,7 @@
|
|
|
<el-menu-item index="7">订单回收站</el-menu-item>
|
|
|
</el-menu>
|
|
|
|
|
|
- <el-input size="mini" placeholder="商品名称" v-model="searchKey" class="orderSearch">
|
|
|
+ <el-input size="mini" placeholder="商品名称/订单号/包名" v-model="searchKey" class="orderSearch">
|
|
|
<el-button slot="append" icon="el-icon-search" @click="currentPageChange(1)"></el-button>
|
|
|
</el-input>
|
|
|
|
|
|
@@ -73,7 +73,8 @@ export default {
|
|
|
orderList: [],
|
|
|
currentPage: 1,
|
|
|
totalNumber: 0,
|
|
|
- chooseJson: {}
|
|
|
+ chooseJson: {},
|
|
|
+ filifterJson:{}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -161,7 +162,7 @@ export default {
|
|
|
jsonp.statusFlag = 8
|
|
|
break
|
|
|
}
|
|
|
- this.chooseJson = jsonp
|
|
|
+ this.chooseJson = jsonp;
|
|
|
this.getData(jsonp);
|
|
|
},
|
|
|
getTypeName(index, now) {
|
|
|
@@ -196,10 +197,10 @@ export default {
|
|
|
search() {
|
|
|
console.log('aaaa')
|
|
|
},
|
|
|
- getData(jsonp) {
|
|
|
+ getData(json) {
|
|
|
var data = {}
|
|
|
- if (jsonp) {
|
|
|
- data = jsonp
|
|
|
+ if (json) {
|
|
|
+ data = json
|
|
|
}
|
|
|
else {
|
|
|
data = this.chooseJson
|
|
|
@@ -208,7 +209,7 @@ export default {
|
|
|
data.pageNumber = 3
|
|
|
data.currentPage = this.currentPage
|
|
|
if (this.searchKey) {
|
|
|
- data.advancedQuery = 'AND_,product_name_,like_,' + this.searchKey
|
|
|
+ data.searchKey = this.searchKey
|
|
|
}
|
|
|
this.$http.get({
|
|
|
url: '/userOrder/userPage',
|