43 lines
986 B
Vue
43 lines
986 B
Vue
<template>
|
|
<el-select class="w-100" v-model="value" multiple placeholder="订单状态过滤:可多选过滤条件(空置显示全部状态订单)">
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-select>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data () {
|
|
return {
|
|
options: [{
|
|
value: 'unpaid',
|
|
label: '未付款'
|
|
}, {
|
|
value: 'pending',
|
|
label: '待处理'
|
|
}, {
|
|
value: 'processing',
|
|
label: '备货处理中'
|
|
}, {
|
|
value: 'shipped',
|
|
label: '已发货'
|
|
}, {
|
|
value: 'completed',
|
|
label: '已送达'
|
|
}, {
|
|
value: 'closed',
|
|
label: '交易关闭'
|
|
}],
|
|
value: this.$store.getters['app/getOrderSerch'].status
|
|
}
|
|
},
|
|
watch: {
|
|
value (val) {
|
|
this.$store.commit('app/setOrderSerch', { status: val })
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|