<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: "JSelectAlarmPart",
  components: { JSelectBizComponent },
  data() {
    return {
      settings: {
        name: '表名称',
        displayKey: 'name',
        returnKeys: ['id','id'],
        listUrl: '/sensor/alarmPart/list',
        queryParamCode: 'tableName',
        queryParamText: '表名称',
        columns: [
          { title: '表名称', dataIndex: 'tableName', align: 'center', width: '30%', widthRight: '70%' },
          { title: '关键字字段', dataIndex: 'fieldName', align: 'center', width: '35%' },
          { title: '传感器', dataIndex: 'sensorId', align: 'center', width: '25%' }
        ]
      }
    }
  },
  computed: {
    configs() {
      return Object.assign({ value: this.value }, this.settings, this.$attrs)
    }
  }
}
</script>

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