Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

add.vue 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. <template>
  2. <a-modal v-model:visible="openAddModel" title="职位信息" ok-text="提交" cancel-text="取消" @ok="sumbitForm"
  3. @cancel="cancelModal" width="60%" style="top: 20px">
  4. <a-form :model="createForm" layout="vertical">
  5. <a-steps :current="current" :items="steps"></a-steps>
  6. <div class="steps-content">
  7. <div v-show="current == 0">
  8. <a-row gutter="20">
  9. <!-- <a-col span="24">
  10. <a-form-item label="职位状态" name="status">
  11. <a-radio-group v-model:value="createForm.status" button-style="solid">
  12. <a-radio-button :value="1">发布中</a-radio-button>
  13. <a-radio-button :value="2">未发布</a-radio-button>
  14. <a-radio-button :value="3">暂停</a-radio-button>
  15. <a-radio-button :value="4">锁定</a-radio-button>
  16. <a-radio-button :value="5">回收站</a-radio-button>
  17. <a-radio-button :value="6">已过期</a-radio-button>
  18. </a-radio-group>
  19. </a-form-item>
  20. </a-col> -->
  21. <a-col span="12">
  22. <a-form-item required label="到期日期">
  23. <a-date-picker v-model:value="addOtherForm.daoqi_date" @Change="disabledDateChange"
  24. style="width: 100%;" />
  25. </a-form-item>
  26. </a-col>
  27. <a-col span="12">
  28. <a-form-item required label="有效天数" name="useful_life">
  29. <a-input-number :min="1" type="number" v-model:value="createForm.useful_life"
  30. placeholder="请输入有效天数" style="width: 100%;" />
  31. </a-form-item>
  32. </a-col>
  33. <a-col span="24">
  34. <a-form-item label="是否紧急" name="urgent">
  35. <a-radio-group v-model:value="createForm.urgent" button-style="solid">
  36. <a-radio-button :value="1">是</a-radio-button>
  37. <a-radio-button :value="2">否</a-radio-button>
  38. </a-radio-group>
  39. </a-form-item>
  40. </a-col>
  41. <a-col span="12">
  42. <a-form-item required label="选择企业" name="company_id">
  43. <search-select placeholder="请选择企业" :list="company_list" :select_value="companyVal"
  44. @searchData="companySearch" @getSelectValue="getCompanyValue"></search-select>
  45. </a-form-item>
  46. </a-col>
  47. <a-col span="12">
  48. <a-form-item label="选择部门" name="department_id">
  49. <search-select placeholder="请选择部门" :list="department_list" :select_value="departmentVal"
  50. @searchData="departmentSearch" @getSelectValue="getDepartmentValue"></search-select>
  51. </a-form-item>
  52. </a-col>
  53. <a-col span="12">
  54. <a-form-item required label="职位名称" name="name">
  55. <a-input v-model:value="createForm.name" placeholder="请输入职位名称" />
  56. </a-form-item>
  57. </a-col>
  58. <a-col span="12">
  59. <a-form-item label="招聘人数" name="invite_count">
  60. <a-input v-model:value="createForm.invite_count" placeholder="请输入招聘人数" />
  61. </a-form-item>
  62. </a-col>
  63. <a-col span="24">
  64. <a-form-item required label="职位类别">
  65. <a-shujilian :dict="2004" placeholder="职位类别(最多三个,多选只取前三)" @saveTreeNode="jobTypeChange"
  66. :tree_content="createForm.job_type"></a-shujilian>
  67. </a-form-item>
  68. </a-col>
  69. <a-col span="24">
  70. <a-form-item required label="工作区域">
  71. <a-shujilian :dict="2009" placeholder="工作区域(最多四个,多选只取前四)"
  72. @saveTreeNode="jobAddressChange"
  73. :tree_content="createForm.job_location"></a-shujilian>
  74. </a-form-item>
  75. </a-col>
  76. <a-col span="24">
  77. <a-form-item required label="职位描述" name="describe_text">
  78. <QuillEditor theme="snow" :options="options" toolbar="full"
  79. v-model:content="addOtherForm.describe_content"
  80. @update:content="onEditorDescribeUpdate($event)" contentType="html" />
  81. </a-form-item>
  82. </a-col>
  83. <a-col span="12">
  84. <a-form-item label="薪资范围" name="pay_range">
  85. <a-xuanze :dict="2005" placeholder="请选择月薪要求范围" @saveSelect="savePayRange"
  86. :select_content="createForm.pay_range"></a-xuanze>
  87. </a-form-item>
  88. </a-col>
  89. <a-col span="12">
  90. <a-form-item label="关键词">
  91. <a-input v-model:value="createForm.key_word" placeholder="请输入关键词" />
  92. </a-form-item>
  93. </a-col>
  94. <a-col span="8">
  95. <a-form-item label="是否全职" name="fulltime">
  96. <a-radio-group v-model:value="createForm.fulltime" button-style="solid">
  97. <a-radio-button :value="1">是</a-radio-button>
  98. <a-radio-button :value="2">否</a-radio-button>
  99. </a-radio-group>
  100. </a-form-item>
  101. </a-col>
  102. <a-col span="8">
  103. <a-form-item label="是否兼职" name="parttime">
  104. <a-radio-group v-model:value="createForm.parttime" button-style="solid">
  105. <a-radio-button :value="1">是</a-radio-button>
  106. <a-radio-button :value="2">否</a-radio-button>
  107. </a-radio-group>
  108. </a-form-item>
  109. </a-col>
  110. <a-col span="8">
  111. <a-form-item label="是否临时" name="casual">
  112. <a-radio-group v-model:value="createForm.casual" button-style="solid">
  113. <a-radio-button :value="1">是</a-radio-button>
  114. <a-radio-button :value="2">否</a-radio-button>
  115. </a-radio-group>
  116. </a-form-item>
  117. </a-col>
  118. <a-col span="8">
  119. <a-form-item label="是否实习" name="practical">
  120. <a-radio-group v-model:value="createForm.practical" button-style="solid">
  121. <a-radio-button :value="1">是</a-radio-button>
  122. <a-radio-button :value="2">否</a-radio-button>
  123. </a-radio-group>
  124. </a-form-item>
  125. </a-col>
  126. <a-col span="8">
  127. <a-form-item label="校园招聘" name="campus">
  128. <a-radio-group v-model:value="createForm.campus" button-style="solid">
  129. <a-radio-button :value="1">是</a-radio-button>
  130. <a-radio-button :value="2">否</a-radio-button>
  131. </a-radio-group>
  132. </a-form-item>
  133. </a-col>
  134. <a-col span="12">
  135. <a-form-item required label="食宿要求">
  136. <a-xuanze :dict="2016" placeholder="请选择食宿要求" @saveSelect="saveShisu"
  137. :select_content="createForm.shisu"></a-xuanze>
  138. </a-form-item>
  139. </a-col>
  140. <a-col span="12">
  141. <a-form-item required label="节假日休息情况">
  142. <a-xuanze :dict="2017" placeholder="节假日休息情况" @saveSelect="saveHolidays"
  143. :select_content="createForm.holidays"></a-xuanze>
  144. </a-form-item>
  145. </a-col>
  146. </a-row>
  147. </div>
  148. <div v-show="current == 1">
  149. <a-row gutter="20">
  150. <a-col span="12">
  151. <a-form-item required label="工作经验">
  152. <a-xuanze :dict="2021" placeholder="请选择工作经验" @saveSelect="saveExperience"
  153. :select_content="createForm.experience"></a-xuanze>
  154. </a-form-item>
  155. </a-col>
  156. <a-col span="12">
  157. <a-form-item label="学历">
  158. <a-xuanze :dict="2006" placeholder="请选择学历" @saveSelect="saveSchoolDegree"
  159. :select_content="createForm.school_degree"></a-xuanze>
  160. </a-form-item>
  161. </a-col>
  162. <a-col span="24">
  163. <a-form-item label="含最高学历" name="degree_better">
  164. <a-radio-group v-model:value="createForm.degree_better" button-style="solid">
  165. <a-radio-button :value="1">是</a-radio-button>
  166. <a-radio-button :value="2">否</a-radio-button>
  167. </a-radio-group>
  168. </a-form-item>
  169. </a-col>
  170. <a-col span="12">
  171. <a-form-item required label="职称要求">
  172. <a-xuanze :dict="2014" placeholder="请选择职称要求" @saveSelect="saveProfelevel"
  173. :select_content="createForm.profelevel"></a-xuanze>
  174. </a-form-item>
  175. </a-col>
  176. <a-col span="12">
  177. <a-form-item required label="技能认证">
  178. <a-xuanze :dict="2015" placeholder="请选择技能认证" @saveSelect="saveCertification"
  179. :select_content="createForm.certification"></a-xuanze>
  180. </a-form-item>
  181. </a-col>
  182. <a-col span="12">
  183. <a-form-item label="语言要求">
  184. <a-xuanze :dict="2007" placeholder="请选择语言要求" @saveSelect="saveLanguage"
  185. :select_content="createForm.language"></a-xuanze>
  186. </a-form-item>
  187. </a-col>
  188. <a-col span="12">
  189. <a-form-item label="掌握程度">
  190. <a-xuanze :dict="2008" placeholder="请选择掌握程度" @saveSelect="saveLanguageDegree"
  191. :select_content="createForm.language_degree"></a-xuanze>
  192. </a-form-item>
  193. </a-col>
  194. <a-col span="12">
  195. <a-form-item required label="专业" name="major">
  196. <a-input v-model:value="createForm.major" placeholder="请输入专业" />
  197. </a-form-item>
  198. </a-col>
  199. <a-col span="12">
  200. <a-form-item label="籍贯要求" name="mandarin">
  201. <a-c-cascader :dict="2009" @saveCascader="compantJiguanSave" placeholder="请选择籍贯"
  202. :cascader_content="addOtherForm.company_jiguan_cascader"></a-c-cascader>
  203. </a-form-item>
  204. </a-col>
  205. <a-col span="8">
  206. <a-form-item required label="婚姻状况" name="marital_status">
  207. <a-radio-group v-model:value="createForm.marital_status" button-style="solid">
  208. <a-radio-button :value="1">已婚</a-radio-button>
  209. <a-radio-button :value="2">未婚</a-radio-button>
  210. <a-radio-button :value="3">不限</a-radio-button>
  211. </a-radio-group>
  212. <!-- <a-c-select :dict="2011" placeholder="请选择婚姻状况" @saveSelect="saveMandarinStatus"></a-c-select> -->
  213. </a-form-item>
  214. </a-col>
  215. <a-col span="8">
  216. <a-form-item label="性别要求" name="sex">
  217. <a-radio-group v-model:value="createForm.sex" button-style="solid">
  218. <a-radio-button :value="1">男</a-radio-button>
  219. <a-radio-button :value="2">女</a-radio-button>
  220. <a-radio-button :value="3">不限</a-radio-button>
  221. </a-radio-group>
  222. </a-form-item>
  223. </a-col>
  224. <a-col span="4">
  225. <a-form-item label="最小年龄" name="age_min">
  226. <a-input-number :min="0" type="number" v-model:value="createForm.age_min"
  227. placeholder="请输入最小年龄" style="width: 100%;" />
  228. </a-form-item>
  229. </a-col>
  230. <a-col span="4">
  231. <a-form-item label="最大年龄" name="age_max">
  232. <a-input-number :min="0" type="number" v-model:value="createForm.age_max"
  233. placeholder="请输入最大年龄" style="width: 100%;" />
  234. </a-form-item>
  235. </a-col>
  236. <a-col span="24">
  237. <a-form-item label="证书要求">
  238. <a-checkbox-group v-model:value="createForm.license" @change="licenseChange">
  239. <template v-for="(item, index) in licenseOption">
  240. <a-checkbox :value="item.id">{{item.name}}</a-checkbox>
  241. </template>
  242. </a-checkbox-group>
  243. </a-form-item>
  244. </a-col>
  245. <a-col span="12">
  246. <a-form-item label="所在地要求" name="mandarin">
  247. <a-c-cascader :dict="2009" @saveCascader="compantSuozaidiSave" placeholder="请选择所在地"
  248. :cascader_content="addOtherForm.company_suozaidi_cascader"></a-c-cascader>
  249. </a-form-item>
  250. </a-col>
  251. </a-row>
  252. </div>
  253. <div v-show="current == 2">
  254. <a-row gutter="20">
  255. <a-col span="12">
  256. <a-form-item required label="联系人" name="contact">
  257. <a-input v-model:value="createForm.contact" placeholder="请输入联系人" />
  258. </a-form-item>
  259. </a-col>
  260. <a-col span="12">
  261. <a-form-item label="联系人职位" name="possession">
  262. <a-input v-model:value="createForm.possession" placeholder="请输入联系人职位" />
  263. </a-form-item>
  264. </a-col>
  265. <a-col span="12">
  266. <a-form-item required label="联系电话" name="phone">
  267. <a-input v-model:value="createForm.phone" placeholder="请输入联系电话" />
  268. </a-form-item>
  269. </a-col>
  270. <a-col span="12">
  271. <a-form-item label="是否公开联系电话" name="phone_public">
  272. <a-radio-group v-model:value="createForm.phone_public" button-style="solid">
  273. <a-radio-button :value="1">是</a-radio-button>
  274. <a-radio-button :value="2">否</a-radio-button>
  275. </a-radio-group>
  276. </a-form-item>
  277. </a-col>
  278. <a-col span="12">
  279. <a-form-item label="手机" name="mobile">
  280. <a-input v-model:value="createForm.mobile" placeholder="请输入手机" />
  281. </a-form-item>
  282. </a-col>
  283. <a-col span="12">
  284. <a-form-item label="是否公开手机" name="mobile_public">
  285. <a-radio-group v-model:value="createForm.mobile_public" button-style="solid">
  286. <a-radio-button :value="1">是</a-radio-button>
  287. <a-radio-button :value="2">否</a-radio-button>
  288. </a-radio-group>
  289. </a-form-item>
  290. </a-col>
  291. <a-col span="12">
  292. <a-form-item label="邮箱" name="email">
  293. <a-input v-model:value="createForm.email" placeholder="请输入邮箱" />
  294. </a-form-item>
  295. </a-col>
  296. <a-col span="12">
  297. <a-form-item label="是否公开邮箱" name="email_public">
  298. <a-radio-group v-model:value="createForm.email_public" button-style="solid">
  299. <a-radio-button :value="1">是</a-radio-button>
  300. <a-radio-button :value="2">否</a-radio-button>
  301. </a-radio-group>
  302. </a-form-item>
  303. </a-col>
  304. <a-col span="12">
  305. <a-form-item label="传真" name="fax">
  306. <a-input v-model:value="createForm.fax" placeholder="请输入传真" />
  307. </a-form-item>
  308. </a-col>
  309. <a-col span="12">
  310. <a-form-item label="是否公开传真" name="fax_public">
  311. <a-radio-group v-model:value="createForm.fax_public" button-style="solid">
  312. <a-radio-button :value="1">是</a-radio-button>
  313. <a-radio-button :value="2">否</a-radio-button>
  314. </a-radio-group>
  315. </a-form-item>
  316. </a-col>
  317. <a-col span="12">
  318. <a-form-item label="其他地址" name="other_address">
  319. <a-input v-model:value="createForm.other_address" placeholder="请输入其他地址" />
  320. </a-form-item>
  321. </a-col>
  322. <a-col span="12">
  323. <a-form-item label="面试地址" name="interview_address">
  324. <a-input v-model:value="createForm.interview_address" placeholder="请输入面试地址" />
  325. </a-form-item>
  326. </a-col>
  327. </a-row>
  328. </div>
  329. </div>
  330. <div class="steps-action">
  331. <a-button v-if="current > 0" @click="prev">上一步</a-button>
  332. <a-button v-if="current < steps.length - 1" type="primary" style="margin-left: 12px"
  333. @click="next">下一步</a-button>
  334. </div>
  335. </a-form>
  336. </a-modal>
  337. </template>
  338. <script setup lang="ts">
  339. import { ref, onMounted, computed, defineProps, watch, defineEmits } from 'vue';
  340. import { getCompanyList, GetCompanyDepartmentList, GetDictTree, PostCompanyJobAdd, PostCompanyJobEdit, PostCompanyJobInfo } from '@/apis/models';
  341. import { intersectionAlike } from '@/utils/dataHelper';
  342. import { steps, dataForm, otherDataForm, reset } from '@/views/company/position/add/data.js';
  343. import { useCommon } from '@/hooks/useCommon';
  344. let { store, openAddModel, hideModal, dayjs, richOption, message } = useCommon();
  345. const dayjsRef = ref(dayjs);
  346. let props = defineProps(['edit_record']);
  347. const emit = defineEmits();
  348. const current = ref<number>(0);
  349. const next = () => {
  350. current.value++;
  351. };
  352. const prev = () => {
  353. current.value--;
  354. };
  355. const options = ref(richOption)
  356. let createForm = ref<companyListType.addFormType>(dataForm)
  357. let addOtherForm = ref<companyListType.addOtherFormType>(otherDataForm)
  358. let licenseOption = ref<Object[]>([])
  359. onMounted(async () => {
  360. companySearch({ page: 1, pagesize: 10 })
  361. GetDictTree({
  362. code: 2018
  363. }).then((res : object) => {
  364. licenseOption.value = res.data.dicts
  365. })
  366. })
  367. // 选择企业
  368. let company_list = ref<Object[]>([])
  369. let companyVal = ref<string>('')
  370. const companySearch = (val : Object) => {
  371. getCompanyList(val).then((res : object) => {
  372. const data = res.data.list.map((item : object) => ({
  373. label: item.full_name,
  374. value: item.id,
  375. }));
  376. company_list.value = data;
  377. })
  378. }
  379. const getCompanyValue = (val : Object) => {
  380. createForm.value.company_id = val.key;
  381. departmentSearch(val)
  382. }
  383. // 选择部门
  384. const department_list = ref<Object[]>([]);
  385. let departmentVal = ref<string>('')
  386. const departmentSearch = (val) => {
  387. GetCompanyDepartmentList({ company_id: val.key }).then(res => {
  388. const data = res.data.rows.map((item : object) => ({
  389. label: item.name,
  390. value: item.id,
  391. }));
  392. department_list.value = data;
  393. })
  394. }
  395. const getDepartmentValue = (val : Object) => {
  396. createForm.value.department_id = val.key;
  397. }
  398. // 职位类别
  399. const jobTypeChange = (data) => {
  400. createForm.value.job_type = data.arr1.slice(0, 3);
  401. }
  402. // 工作区域
  403. const jobAddressChange = (data) => {
  404. createForm.value.job_location = data.arr1.slice(0, 4);
  405. }
  406. // 职位描述
  407. const onEditorDescribeUpdate = (data) => {
  408. createForm.value.describe_text = data
  409. }
  410. // 薪资范围
  411. const savePayRange = (data) => {
  412. createForm.value.pay_range = data.val.key;
  413. }
  414. // 到期日期
  415. const disabledDateChange = (val) => {
  416. createForm.value.disabled_date = dayjsRef.value(val).format('YYYY-MM-DD');
  417. }
  418. // 食宿要求
  419. const saveShisu = (data) => {
  420. createForm.value.shisu = data.val.key;
  421. }
  422. // 节假日要求
  423. const saveHolidays = (data) => {
  424. createForm.value.holidays = data.val.key;
  425. }
  426. // 工作经验
  427. const saveExperience = (data) => {
  428. createForm.value.experience = data.val.key;
  429. }
  430. // 学历要求
  431. const saveSchoolDegree = (data) => {
  432. createForm.value.school_degree = data.val.keyl;
  433. }
  434. // 职称要求
  435. const saveProfelevel = (data) => {
  436. createForm.value.profelevel = data.val.key;
  437. }
  438. // 技能认证
  439. const saveCertification = (data) => {
  440. createForm.value.certification = data.val.key;
  441. }
  442. // 语言要求
  443. const saveLanguage = (data) => {
  444. createForm.value.language = data.val.key;
  445. }
  446. // 掌握程度
  447. const saveLanguageDegree = (data) => {
  448. createForm.value.language_degree = data.val.key;
  449. }
  450. // 婚姻状况
  451. const saveMandarinStatus = (data) => {
  452. createForm.value.marital_status = data.val;
  453. }
  454. // 选择籍贯
  455. const compantJiguanSave = (data) => {
  456. createForm.value.household_province = data.arr1[0] ? data.arr1[0] : 0;
  457. createForm.value.household_city = data.arr1[1] ? data.arr1[1] : 0;
  458. }
  459. // 选择所在地
  460. const compantSuozaidiSave = (data) => {
  461. createForm.value.location_province = data.arr1[0] ? data.arr1[0] : 0;
  462. createForm.value.location_city = data.arr1[1] ? data.arr1[1] : 0;
  463. createForm.value.location_town = data.arr1[2] ? data.arr1[2] : 0;
  464. }
  465. // 证书
  466. const licenseChange = (val) => {
  467. console.log(val)
  468. }
  469. const sumbitForm = () => {
  470. console.log(createForm.value)
  471. if (!createForm.value.id) {
  472. PostCompanyJobAdd(createForm.value).then(res => {
  473. message.success('新增职位成功');
  474. hideModal();
  475. resetForm();
  476. emit('successAdd');
  477. }).catch(err => {
  478. })
  479. } else {
  480. PostCompanyJobEdit(createForm.value).then(res => {
  481. message.success('修改职位信息成功');
  482. hideModal();
  483. resetForm();
  484. emit('successAdd');
  485. }).catch(err => {
  486. })
  487. }
  488. }
  489. const resetForm = () => {
  490. addOtherForm.value = reset().otherDataForm;
  491. createForm.value = reset().dataForm;
  492. }
  493. const cancelModal = () => {
  494. current.value = 0
  495. emit('closeAdd');
  496. resetForm();
  497. hideModal();
  498. }
  499. openAddModel = computed(() => {
  500. return store.state.openAddModel;
  501. })
  502. const addToLocationArray = (data) => {
  503. let locationArray = [];
  504. if (data.location_province !== 0) {
  505. locationArray.push(data.location_province);
  506. }
  507. if (data.location_city !== 0) {
  508. locationArray.push(data.location_city);
  509. }
  510. if (data.location_town !== 0) {
  511. locationArray.push(data.location_town);
  512. }
  513. return locationArray;
  514. }
  515. watch(() => props.edit_record, (newVal1) => {
  516. if (newVal1) {
  517. PostCompanyJobInfo({ id: newVal1.id }).then(res => {
  518. let resData = res.data;
  519. createForm.value = intersectionAlike(createForm.value, res.data)
  520. createForm.value.id = resData.id;
  521. createForm.value.status = newVal1.status;
  522. addOtherForm.value = {
  523. department_name: resData.department_id,
  524. describe_content: resData.describe_text,
  525. daoqi_date: dayjsRef.value(resData.disabled_date),
  526. pay_range_cascader: resData.pay_range,
  527. shisu_select: resData.shisu,
  528. holidays_select: resData.holidays,
  529. company_jiguan_cascader: [resData.household_province, resData.household_city],
  530. company_suozaidi_cascader: addToLocationArray(resData)
  531. }
  532. if (resData.fulltime == 1) {
  533. addOtherForm.value.job_nature = 1
  534. } else if (resData.parttime == 1) {
  535. addOtherForm.value.job_nature = 2
  536. } else if (resData.casual == 1) {
  537. addOtherForm.value.job_nature = 3
  538. } else if (resData.practical == 1) {
  539. addOtherForm.value.job_nature = 4
  540. } else if (resData.campus == 1) {
  541. addOtherForm.value.job_nature = 5
  542. }
  543. })
  544. }
  545. })
  546. </script>
  547. <style scoped>
  548. .steps-content {
  549. margin-top: 16px;
  550. border: 1px dashed #e9e9e9;
  551. border-radius: 6px;
  552. background-color: #fafafa;
  553. min-height: 200px;
  554. padding: 20px;
  555. }
  556. .steps-action {
  557. margin-top: 12px;
  558. }
  559. </style>