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

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectPosition',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: '信号触发',
          displayKey: 'specification',
          returnKeys: ['id', 'id'],
          listUrl: '/signalTrigger/signalTrigger/list',
          queryParamCode: 'signal1',
          queryParamText: '信号1',
          columns: [
            { title: '信号1', dataIndex: 'signal1', align: 'center', width: '10%' },
            { title: '信号2', dataIndex: 'signal2', align: 'center', width: '10%' },
            { title: '信号3', dataIndex: 'signal3', align: 'center', width: '10%' },
            { title: '信号4', dataIndex: 'signal4', align: 'center', width: '10%' },
            { title: '说明', dataIndex: 'specification', align: 'center', width: '60%' },
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

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