JSelectMultiUser.vue 982 字节
Newer Older
1
<template>
2 3
  <j-select-biz-component
    :value="value"
4

5 6 7 8 9 10 11 12 13 14 15
    name="用户"
    displayKey="realname"

    :returnKeys="returnKeys"
    :listUrl="url.list"
    :columns="columns"
    queryParamText="账号"

    v-on="$listeners"
    v-bind="$attrs"
  />
16 17 18
</template>

<script>
19 20
  import JSelectBizComponent from './JSelectBizComponent'

21 22
  export default {
    name: 'JSelectMultiUser',
23 24 25
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
26
      return {
27 28 29 30 31 32 33 34
        returnKeys: ['id', 'username'],
        url: { list: '/sys/user/list' },
        columns: [
          { title: '姓名', align: 'center', width: 100, dataIndex: 'realname' },
          { title: '账号', align: 'center', width: 100, dataIndex: 'username' },
          { title: '电话', align: 'center', width: 100, dataIndex: 'phone' },
          { title: '出生日期', align: 'center', width: 100, dataIndex: 'birthday' }
        ]
35 36 37 38
      }
    }
  }
</script>
39 40

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