JSelectPosition.vue 1.0 KB
Newer Older
1
<template>
JEECG低代码平台's avatar
JEECG低代码平台 已提交
2
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectPosition',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: '职务',
          displayKey: 'name',
          returnKeys: ['id', 'code'],
          listUrl: '/sys/position/list',
JEECG低代码平台's avatar
JEECG低代码平台 已提交
19 20
          queryParamCode: 'name',
          queryParamText: '职务名称',
21
          columns: [
JEECG低代码平台's avatar
JEECG低代码平台 已提交
22 23 24
            { title: '职务名称', dataIndex: 'name', align: 'center', width: '30%', widthRight: '70%' },
            { title: '职务编码', dataIndex: 'code', align: 'center', width: '35%' },
            { title: '职级', dataIndex: 'rank_dictText', align: 'center', width: '25%' }
25 26 27 28 29 30 31 32 33 34 35 36 37
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

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