<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: '未付款',
        label: '未付款'
      }, {
        value: '已付款',
        label: '已付款'
      }, {
        value: '已退款',
        label: '已退款'
      }, {
        value: '已完成',
        label: '已完成'
      }],
      value: this.$store.getters['app/getOrderSerch'].main_status
    }
  },
  watch: {
    value (val) {
      this.$store.commit('app/setOrderSerch', { main_status: val })
    }
  }
}
</script>

<style lang="scss" scoped></style>
