JSelectRole.vue 831 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <j-select-biz-component
  3. :value="value"
  4. name="角色"
  5. displayKey="roleName"
  6. :returnKeys="returnKeys"
  7. :listUrl="url.list"
  8. :columns="columns"
  9. queryParamText="角色名称"
  10. v-on="$listeners"
  11. v-bind="$attrs"
  12. />
  13. </template>
  14. <script>
  15. import JSelectBizComponent from './JSelectBizComponent'
  16. export default {
  17. name: 'JSelectMultiUser',
  18. components: { JSelectBizComponent },
  19. props: ['value'],
  20. data() {
  21. return {
  22. returnKeys: ['id', 'roleCode'],
  23. url: { list: '/sys/role/list' },
  24. columns: [
  25. { title: '角色名称', dataIndex: 'roleName', align: 'center', width: 120 },
  26. { title: '角色编码', dataIndex: 'roleCode', align: 'center', width: 120 }
  27. ]
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="less" scoped></style>