<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: 'JSelectSensor',
  components: { JSelectBizComponent },
  props: ['value'],
  data() {
    return {
      settings: {
        name: '传感器名称',
        displayKey: 'name',
        returnKeys: ['id','id'],
        listUrl: '/sensor/buSensor/list',
        queryParamCode: 'name',
        queryParamText: '传感器名称',
        columns: [
          { title: '设备名称', dataIndex: 'deviceName', align: 'center', width: '25%' },
          { title: '传感器名称', dataIndex: 'name', align: 'center', width: '30%', widthRight: '60%' },
          { title: '传感器IP', dataIndex: 'ipAddress', align: 'center', width: '25%' }
        ]
      }
    }
  },
  computed: {
    configs() {
      return Object.assign({ value: this.value }, this.settings, this.$attrs)
    }
  }
}
</script>

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