JoiningEnterprise.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <div class="pt-5">
  3. <v-card class="default-width pa-5">
  4. <!-- 标题 -->
  5. <div class="resume-header">
  6. <div class="resume-title">{{ $t('enterprise.joiningEnterprise') }}</div>
  7. </div>
  8. <!-- 表单 -->
  9. <div class="CtFormClass" style="width: 600px;">
  10. <CtForm ref="CtFormRef" :items="formItems" style="width: 100%;"></CtForm>
  11. </div>
  12. <div class="text-center">
  13. <!-- 完成 -->
  14. <v-btn
  15. :loading="loginLoading"
  16. color="primary" class="white--text mt-8" min-width="350"
  17. to="/enterprise/talentPool"
  18. >
  19. {{ $t('common.complete') }}
  20. </v-btn>
  21. </div>
  22. <!-- 底部 -->
  23. <div class="text-center mt-5">
  24. <v-btn color="primary" variant="text" @click="router.push({ path: '/enterprise/register' })">{{ $t('enterprise.registeringNewEnterprise') }}</v-btn>
  25. </div>
  26. </v-card>
  27. </div>
  28. </template>
  29. <script setup>
  30. import CtForm from '@/components/CtForm'
  31. import { enterpriseSearchByName } from '@/api/resume'
  32. import { useRouter } from 'vue-router'
  33. import { ref } from 'vue'
  34. defineOptions({name: 'enterprise-enterpriseRegister-joiningEnterprise'})
  35. const router = useRouter()
  36. const loginLoading = ref(false)
  37. // 企业名称下拉列表
  38. const getSchoolListData = async (name) => {
  39. const item = formItems.value.options.find(e => e.key === 'enterpriseId')
  40. if (!item) return
  41. const data = await enterpriseSearchByName({ name })
  42. item.items = data
  43. }
  44. const formItems = ref({
  45. options: [
  46. {
  47. type: 'autocomplete',
  48. key: 'enterpriseId',
  49. value: null,
  50. default: null,
  51. label: '企业名称 *',
  52. outlined: true,
  53. clearable: true,
  54. itemText: 'value',
  55. itemValue: 'key',
  56. rules: [v => !!v || '请选择企业名称'],
  57. search: getSchoolListData,
  58. items: []
  59. },
  60. {
  61. type: 'text',
  62. key: 'email',
  63. value: '',
  64. label: '职务 *',
  65. rules: [v => !!v || '请输入职务']
  66. },
  67. {
  68. type: 'text',
  69. key: 'name',
  70. value: '',
  71. label: '姓名 *',
  72. counter: 15,
  73. rules: [v => !!v || '请输入姓名']
  74. },
  75. ]
  76. })
  77. // 提交
  78. const handleCommit = () => {
  79. // await saveResumeBasicInfo({ ...baseInfo.value, avatar: data })
  80. // await userStore.getUserBaseInfos(baseInfo.value.userId)
  81. // getBasicInfo()
  82. }
  83. handleCommit()
  84. </script>
  85. <style lang="scss" scoped>
  86. .CtFormClass {
  87. margin: 0 auto;
  88. }
  89. .note {
  90. color: #666;
  91. font-size: 14px;
  92. line-height: 32px;
  93. }
  94. .file-input-box {
  95. position: relative;
  96. height: 80px;
  97. width: 100px;
  98. border: 1px solid rgb(188, 188, 188);
  99. border-radius: 5px;
  100. cursor: pointer;
  101. .icon {
  102. position: absolute;
  103. top: 45%;
  104. left: 50%;
  105. transform: translate(-50%, -50%);
  106. color: #999;
  107. }
  108. }
  109. </style>