JSelectStation.vue 1.16 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: 'code',
          returnKeys: ['code', 'code'],
          listUrl: '/station/info/list',
          queryParamCode: 'code',
          queryParamText: '编号',
          columns: [
            { title: '编号', dataIndex: 'code', align: 'center', width: '20%' },
            { title: '行数', dataIndex: 'row', align: 'center', width: '20%' },
            { title: '列数', dataIndex: 'col', align: 'center', width: '20%' },
            { title: '层数', dataIndex: 'layer', align: 'center', width: '20%' },
            { title: '状态', dataIndex: 'status', align: 'center', width: '20%' },
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

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