<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: 'JSelectRiskItem',
  components: { JSelectBizComponent },
  props: ['value'],
  data() {
    return {
      settings: {
        name: '风险项名称',
        displayKey: 'riskName',
        returnKeys: ['id','id'],
        listUrl: '/device/buRiskItem/selectList',
        queryParamCode: 'riskName',
        queryParamText: '风险项名称',
        columns: [
          { title: '设备名称', dataIndex: 'riskName', align: 'center', width: '60%' },
          { title: '传感器类名', dataIndex: 'sensorType', align: 'center', width: '40%', widthRight: '60%' }
        ]
      }
    }
  },
  computed: {
    configs() {
      return Object.assign({ value: this.value }, this.settings, this.$attrs)
    }
  }
}
</script>

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