|
|
|
|
@ -23,11 +23,14 @@
|
|
|
|
|
<div class="select-content-item-label">产品类别</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-cascader
|
|
|
|
|
ref="cascader"
|
|
|
|
|
:value="select.productType ? select.productType.name : ''"
|
|
|
|
|
clearable
|
|
|
|
|
:show-all-levels="false"
|
|
|
|
|
size="small"
|
|
|
|
|
:options="productTypes"
|
|
|
|
|
:props="{checkStrictly:true,label:'name'}"
|
|
|
|
|
@change="e => select.productType = e.at(-1)"></el-cascader>
|
|
|
|
|
:props="{checkStrictly:true,label:'name',value:'id'}"
|
|
|
|
|
@change="productTypeChange"></el-cascader>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@ -49,8 +52,8 @@
|
|
|
|
|
</el-tag>,
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="select.productType">
|
|
|
|
|
<el-tag effect="light" size="small" closable @close="select.merchant = ''">
|
|
|
|
|
{{select.merchant.name}}
|
|
|
|
|
<el-tag effect="light" size="small" closable @close="select.productType = ''">
|
|
|
|
|
{{select.productType.name}}
|
|
|
|
|
</el-tag>,
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="select.merchant">
|
|
|
|
|
@ -221,19 +224,14 @@ export default {
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
cityList: [
|
|
|
|
|
{
|
|
|
|
|
value: 'New York',
|
|
|
|
|
label: 'New York'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'London',
|
|
|
|
|
label: 'London'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
productTypeChange(){
|
|
|
|
|
this.select.productType = this.$refs['cascader'].getCheckedNodes()[0].data
|
|
|
|
|
console.log(this.select)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
pageChange(e){
|
|
|
|
|
this.select.page = e
|
|
|
|
|
this.getOrders()
|
|
|
|
|
@ -241,7 +239,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
async getTypes(){
|
|
|
|
|
const res = await getTypes()
|
|
|
|
|
console.log(res)
|
|
|
|
|
this.merchants = res.merchants
|
|
|
|
|
this.orderItemStates = res.order_item_states
|
|
|
|
|
this.orderStates = res.order_states
|
|
|
|
|
@ -261,7 +258,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getTypes()
|
|
|
|
|
//this.getOrders()
|
|
|
|
|
this.getOrders()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|