<template>
  <bi-status-select
    v-model="innerValue"
    :editable="editable"
    :items="statusOptions"
  ></bi-status-select>
</template>
<script>
export default {
  name: 'BiReportWorkStatusSelect',
  props: {
    value: {
      type: [String, Number],
      default: undefined
    },
    editable: {
      type: Boolean
    }
  },
  computed: {
    innerValue: {
      get() {
        return this.value
      },
      set(val) {
        this.$emit('input', val)
      }
    },
    statusOptions() {
      return [{
        text: '待解决',
        value: 1,
        type: 'primary'
      }, {
        text: '处理中',
        value: 0,
        type: 'warning'
      }, {
        text: '已完成',
        value: 2,
        type: 'success'
      }]
    }
  }
}
</script>
