<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
import JSelectBizComponent from '@comp/jeecgbiz/JSelectBizComponent/index'

export default {
  name: 'JSelectDevice',
  components: { JSelectBizComponent },
  props: ['value'],
  data() {
    return {
      settings: {
        name: '设备名称',
        displayKey: 'deviceName',
        returnKeys: ['id','id'],
        listUrl: '/device/buDevice/selectList',
        queryParamCode: 'deviceName',
        queryParamText: '设备名称',
        columns: [
          { title: '设备名称', dataIndex: 'deviceName', align: 'center', width: '30%', widthRight: '70%' },
          { title: '设备编号', dataIndex: 'deviceCode', align: 'center', width: '35%' },
          { title: '规格型号', dataIndex: 'typeId', align: 'center', width: '25%' }
        ]
      }
    }
  },
  computed: {
    configs() {
      return Object.assign({ value: this.value }, this.settings, this.$attrs)
    }
  }
}
</script>

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