JSelectSignal.vue
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<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>