Blame view

ant-design-vue-jeecg/src/components/jeecgbiz/JSelectPosition.vue 996 Bytes
肖超群 authored
1
2
3
4
5
<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
肖超群 authored
6
import JSelectBizComponent from './JSelectBizComponent'
肖超群 authored
7
肖超群 authored
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export default {
  name: 'JSelectPosition',
  components: {JSelectBizComponent},
  props: ['value'],
  data() {
    return {
      settings: {
        name: '职务',
        displayKey: 'name',
        returnKeys: ['id', 'code'],
        listUrl: '/sys/position/list',
        queryParamCode: 'name',
        queryParamText: '职务名称',
        columns: [
          {title: '职务名称', dataIndex: 'name', align: 'center', width: '30%', widthRight: '70%'},
          {title: '职务编码', dataIndex: 'code', align: 'center', width: '35%'},
          {title: '职级', dataIndex: 'rank_dictText', align: 'center', width: '25%'}
        ]
肖超群 authored
26
27
      }
    }
肖超群 authored
28
29
30
31
32
  },
  computed: {
    configs() {
      return Object.assign({value: this.value}, this.settings, this.$attrs)
    }
肖超群 authored
33
  }
肖超群 authored
34
}
肖超群 authored
35
36
37
</script>

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