JoiningEnterprise.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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" to="/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 { ref } from 'vue'
  33. defineOptions({name: 'enterprise-enterpriseRegister-joiningEnterprise'})
  34. const loginLoading = ref(false)
  35. // 企业名称下拉列表
  36. const getSchoolListData = async (name) => {
  37. const item = formItems.value.options.find(e => e.key === 'enterpriseId')
  38. if (!item) return
  39. const data = await enterpriseSearchByName({ name })
  40. item.items = data
  41. }
  42. const formItems = ref({
  43. options: [
  44. {
  45. type: 'autocomplete',
  46. key: 'enterpriseId',
  47. value: null,
  48. default: null,
  49. label: '企业名称 *',
  50. outlined: true,
  51. clearable: true,
  52. itemText: 'value',
  53. itemValue: 'key',
  54. rules: [v => !!v || '请选择企业名称'],
  55. search: getSchoolListData,
  56. items: []
  57. },
  58. {
  59. type: 'text',
  60. key: 'email',
  61. value: '',
  62. label: '职务 *',
  63. rules: [v => !!v || '请输入职务']
  64. },
  65. {
  66. type: 'text',
  67. key: 'name',
  68. value: '',
  69. label: '姓名 *',
  70. counter: 15,
  71. rules: [v => !!v || '请输入姓名']
  72. },
  73. ]
  74. })
  75. // 提交
  76. const handleCommit = () => {
  77. // await saveResumeBasicInfo({ ...baseInfo.value, avatar: data })
  78. // await userStore.getUserBaseInfos(baseInfo.value.userId)
  79. // getBasicInfo()
  80. }
  81. handleCommit()
  82. </script>
  83. <style lang="scss" scoped>
  84. .CtFormClass {
  85. margin: 0 auto;
  86. }
  87. .note {
  88. color: #666;
  89. font-size: 14px;
  90. line-height: 32px;
  91. }
  92. .file-input-box {
  93. position: relative;
  94. height: 80px;
  95. width: 100px;
  96. border: 1px solid rgb(188, 188, 188);
  97. border-radius: 5px;
  98. cursor: pointer;
  99. .icon {
  100. position: absolute;
  101. top: 45%;
  102. left: 50%;
  103. transform: translate(-50%, -50%);
  104. color: #999;
  105. }
  106. }
  107. </style>