<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: "JSelectSensorType",
  components: { JSelectBizComponent },
  data() {
    return {
      settings: {
        name: '传感器类型名称',
        displayKey: 'name',
        returnKeys: ['id','id'],
        listUrl: '/sensor/buSensorType/list',
        queryParamCode: 'name',
        queryParamText: '传感器类型名称',
        columns: [
          { title: '传感器类型名称', dataIndex: 'name', align: 'center', width: '30%', widthRight: '70%' },
          { title: '传感器厂家', dataIndex: 'factory', align: 'center', width: '35%' },
          { title: '传感器型号', dataIndex: 'model', align: 'center', width: '25%' }
        ]
      }
    }
  },
  computed: {
    configs() {
      return Object.assign({ value: this.value }, this.settings, this.$attrs)
    }
  }
}
</script>

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