c3eff26f7bff8e4b9da786a85060eef22aed15a4.svn-base 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
  3. </template>
  4. <script>
  5. import JSelectBizComponent from './JSelectBizComponent'
  6. export default {
  7. name: 'JSelectPosition',
  8. components: { JSelectBizComponent },
  9. props: ['value'],
  10. data() {
  11. return {
  12. settings: {
  13. name: '职务',
  14. displayKey: 'name',
  15. returnKeys: ['id', 'code'],
  16. listUrl: '/sys/position/list',
  17. queryParamCode: 'name',
  18. queryParamText: '职务名称',
  19. columns: [
  20. { title: '职务名称', dataIndex: 'name', align: 'center', width: '30%', widthRight: '70%' },
  21. { title: '职务编码', dataIndex: 'code', align: 'center', width: '35%' },
  22. { title: '职级', dataIndex: 'rank_dictText', align: 'center', width: '25%' }
  23. ]
  24. }
  25. }
  26. },
  27. computed: {
  28. configs() {
  29. return Object.assign({ value: this.value }, this.settings, this.$attrs)
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="less" scoped></style>