招聘网页
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <template>
  2. <a-form :model="createForm" :label-col="{span: 6}" labelAlign="right">
  3. <a-row gutter="20">
  4. <a-col span="12">
  5. <a-row>
  6. <a-col span="24">
  7. <a-form-item required label="工作经验">
  8. <a-xuanze :dict="2021" placeholder="请选择工作经验" @saveSelect="saveExperience"
  9. :select_content="addOtherForm.experience_select"></a-xuanze>
  10. </a-form-item>
  11. </a-col>
  12. <a-col span="24">
  13. <a-form-item label="学历">
  14. <a-xuanze :dict="2006" placeholder="请选择学历" @saveSelect="saveSchoolDegree"
  15. :select_content="addOtherForm.school_degree_select"></a-xuanze>
  16. </a-form-item>
  17. </a-col>
  18. <a-col span="24">
  19. <a-form-item label="含最高学历" name="degree_better">
  20. <a-radio-group v-model:value="createForm.degree_better" button-style="solid">
  21. <a-radio-button :value="1">是</a-radio-button>
  22. <a-radio-button :value="2">否</a-radio-button>
  23. </a-radio-group>
  24. </a-form-item>
  25. </a-col>
  26. <a-col span="24">
  27. <a-form-item required label="职称要求">
  28. <a-xuanze :dict="2006" placeholder="请选择职称要求" @saveSelect="saveProfelevel"
  29. :select_content="addOtherForm.profe_level_select"></a-xuanze>
  30. </a-form-item>
  31. </a-col>
  32. <a-col span="24">
  33. <a-form-item required label="技能认证">
  34. <a-xuanze :dict="2015" placeholder="请选择技能认证" @saveSelect="saveCertification"
  35. :select_content="addOtherForm.certification_select"></a-xuanze>
  36. </a-form-item>
  37. </a-col>
  38. <a-col span="24">
  39. <a-form-item label="语言要求">
  40. <a-xuanze :dict="2007" placeholder="请选择语言要求" @saveSelect="saveLanguage"
  41. :select_content="addOtherForm.language_select"></a-xuanze>
  42. </a-form-item>
  43. </a-col>
  44. <a-col span="24">
  45. <a-form-item label="掌握程度">
  46. <a-xuanze :dict="2007" placeholder="请选择掌握程度" @saveSelect="saveLanguageDegree"
  47. :select_content="addOtherForm.language_degree_select"></a-xuanze>
  48. </a-form-item>
  49. </a-col>
  50. <a-col span="24">
  51. <a-form-item label="性别要求" name="sex">
  52. <a-radio-group v-model:value="createForm.sex" button-style="solid">
  53. <a-radio-button :value="1">男</a-radio-button>
  54. <a-radio-button :value="2">女</a-radio-button>
  55. <a-radio-button :value="3">不限</a-radio-button>
  56. </a-radio-group>
  57. </a-form-item>
  58. </a-col>
  59. <a-col span="24">
  60. <a-form-item label="最小年龄" name="age_min">
  61. <a-input-number :min="0" type="number" v-model:value="createForm.age_min"
  62. placeholder="请输入最小年龄" style="width: 100%;" />
  63. </a-form-item>
  64. </a-col>
  65. <a-col span="24">
  66. <a-form-item label="最大年龄" name="age_max">
  67. <a-input-number :min="0" type="number" v-model:value="createForm.age_max"
  68. placeholder="请输入最大年龄" style="width: 100%;" />
  69. </a-form-item>
  70. </a-col>
  71. <a-col span="24">
  72. <a-form-item required label="婚姻状况" name="marital_status">
  73. <a-radio-group v-model:value="createForm.marital_status" button-style="solid">
  74. <a-radio-button :value="1">已婚</a-radio-button>
  75. <a-radio-button :value="2">未婚</a-radio-button>
  76. <a-radio-button :value="3">不限</a-radio-button>
  77. </a-radio-group>
  78. </a-form-item>
  79. </a-col>
  80. <a-col span="24">
  81. <a-form-item required label="专业" name="major">
  82. <a-input v-model:value="createForm.major" placeholder="请输入专业" />
  83. </a-form-item>
  84. </a-col>
  85. <a-col span="24">
  86. <a-form-item label="证书要求">
  87. <a-checkbox-group v-model:value="createForm.license">
  88. <a-row>
  89. <template v-for="(item, index) in licenseOption">
  90. <a-col span="8">
  91. <a-checkbox :value="item.id">{{item.name}}</a-checkbox>
  92. </a-col>
  93. </template>
  94. </a-row>
  95. </a-checkbox-group>
  96. </a-form-item>
  97. </a-col>
  98. <a-col span="24">
  99. <a-form-item label="籍贯要求" name="mandarin">
  100. <a-jilian :dict="2009" @saveCascader="compantJiguanSave" placeholder="请选择籍贯"
  101. :cascader_content="addOtherForm.company_jiguan_cascader"></a-jilian>
  102. </a-form-item>
  103. </a-col>
  104. <a-col span="24">
  105. <a-form-item label="所在地要求" name="mandarin">
  106. <a-jilian :dict="2009" @saveCascader="compantSuozaidiSave" placeholder="请选择所在地"
  107. :cascader_content="addOtherForm.company_suozaidi_cascader"></a-jilian>
  108. </a-form-item>
  109. </a-col>
  110. <a-col span="24">
  111. <a-form-item required label="保存">
  112. <a-button type="primary" block @click="sumbitForm">保存</a-button>
  113. </a-form-item>
  114. </a-col>
  115. </a-row>
  116. </a-col>
  117. </a-row>
  118. </a-form>
  119. </template>
  120. <script setup lang="ts">
  121. import { ref, onMounted, computed } from 'vue';
  122. import { GetDictTree } from '@/apis/models';
  123. let licenseOption = ref<Object[]>([])
  124. onMounted(async () => {
  125. GetDictTree({
  126. code: 2018
  127. }).then(res => {
  128. licenseOption.value = res.data.dicts
  129. })
  130. })
  131. let createForm : companyListType.addrFormType = ref({
  132. experience: 0,
  133. school_degree: 0,
  134. degree_better: 0,
  135. profelevel: 0,
  136. certification: 0,
  137. language: 0,
  138. language_degree: 0,
  139. sex: 3,
  140. age_min: 0,
  141. age_max: 0,
  142. marital_status: 3,
  143. major: '',
  144. license: [],
  145. household_province: 0,
  146. household_city: 0,
  147. location_province: 0,
  148. location_city: 0,
  149. location_town: 0,
  150. })
  151. let addOtherForm = ref<companyListType.addOtherFormType>({
  152. experience_select: '请选择工作经验',
  153. school_degree_select: '请选择学历',
  154. profe_level_select: '请选择职称要求',
  155. certification_select: '请选择技能认证',
  156. language_select: '请选择语言要求',
  157. language_degree_select: '请选择掌握程度',
  158. company_jiguan_cascader: '',
  159. company_suozaidi_cascader: '',
  160. })
  161. // 工作经验
  162. const saveExperience = (data) => {
  163. createForm.value.experience = data.val;
  164. }
  165. // 学历要求
  166. const saveSchoolDegree = (data) => {
  167. createForm.value.school_degree = data.val;
  168. }
  169. // 职称要求
  170. const saveProfelevel = (data) => {
  171. createForm.value.profelevel = data.val;
  172. }
  173. // 技能认证
  174. const saveCertification = (data) => {
  175. createForm.value.certification = data.val;
  176. }
  177. // 语言要求
  178. const saveLanguage = (data) => {
  179. createForm.value.language = data.val;
  180. }
  181. // 掌握程度
  182. const saveLanguageDegree = (data) => {
  183. createForm.value.language_degree = data.val;
  184. }
  185. // 选择籍贯
  186. const compantJiguanSave = (data) => {
  187. createForm.value.household_province = data.arr1[0] ? data.arr1[0] : 0;
  188. createForm.value.household_city = data.arr1[1] ? data.arr1[1] : 0;
  189. }
  190. // 选择所在地
  191. const compantSuozaidiSave = (data) => {
  192. createForm.value.location_province = data.arr1[0] ? data.arr1[0] : 0;
  193. createForm.value.location_city = data.arr1[1] ? data.arr1[1] : 0;
  194. createForm.value.location_town = data.arr1[2] ? data.arr1[2] : 0;
  195. }
  196. const sumbitForm = () => {
  197. console.log(createForm.value)
  198. // PostCompanyEdit(createForm.value).then(res => {
  199. // successToast('保存成功');
  200. // resetForm();
  201. // }).catch(err => {
  202. // })
  203. }
  204. const resetForm = () => {
  205. addOtherForm.value = {
  206. chengli_date: '',
  207. content: '',
  208. photo_img: '',
  209. license_img: '',
  210. company_photo_img: '',
  211. company_address_cascader: '',
  212. company_industry_cascader: '',
  213. company_nature_cascader: '',
  214. company_scale_cascader: '',
  215. }
  216. createForm.value = {
  217. experience: 0,
  218. school_degree: 0,
  219. degree_better: 0,
  220. profelevel: 0,
  221. certification: 0,
  222. language: 0,
  223. language_degree: 0,
  224. sex: 3,
  225. age_min: 0,
  226. age_max: 0,
  227. marital_status: 3,
  228. major: '',
  229. license: [],
  230. household_province: 0,
  231. household_city: 0,
  232. location_province: 0,
  233. location_city: 0,
  234. location_town: 0,
  235. }
  236. }
  237. </script>
  238. <style>
  239. </style>