|
@@ -69,6 +69,9 @@
|
|
|
<el-form-item label="详情地址" prop="address">
|
|
|
<el-input v-model="formData.address" placeholder="请输入工作地址" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="职位关键字" prop="tagList">
|
|
|
+ <el-cascader v-model="formData.tagList" :options="tagTreeData" :props="{ label: 'nameCn', value: 'nameCn', emitPath: false, multiple: true }" class="!w-240px" />
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
|
@@ -82,6 +85,7 @@ import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
|
import { JobAdvertisedApi, JobAdvertisedVO } from '@/api/menduner/system/job'
|
|
|
import { commissionCalculation } from '@/utils/transform/position'
|
|
|
import * as CommissionRatioApi from '@/api/menduner/system/hire/commissionRatio/index'
|
|
|
+import { dictApi } from '@/api/menduner/common/useDictionaries'
|
|
|
|
|
|
/** 门墩儿-招聘职位 表单 */
|
|
|
defineOptions({ name: 'JobAdvertisedForm' })
|
|
@@ -111,7 +115,7 @@ const formData = ref({
|
|
|
payTo: 8000,
|
|
|
hirePrice: 10,
|
|
|
payUnit: undefined,
|
|
|
- // tagList: undefined,
|
|
|
+ tagList: undefined,
|
|
|
content: undefined,
|
|
|
requirement: undefined,
|
|
|
address: undefined
|
|
@@ -176,7 +180,13 @@ const getRatio = async () => {
|
|
|
}
|
|
|
getRatio()
|
|
|
|
|
|
-
|
|
|
+// 职位标签
|
|
|
+const tagTreeData = ref([])
|
|
|
+const getTagList = async () => {
|
|
|
+ const data = await dictApi.getTagTreeDataApi({ type: 2 })
|
|
|
+ tagTreeData.value = data || []
|
|
|
+}
|
|
|
+getTagList()
|
|
|
|
|
|
// 职位模板填充
|
|
|
const handleSearchTemplate = async () => {
|
|
@@ -261,9 +271,9 @@ const resetForm = () => {
|
|
|
expireTime: undefined,
|
|
|
eduType: undefined,
|
|
|
payFrom: 6000,
|
|
|
+ tagList: undefined,
|
|
|
hirePrice: 10,
|
|
|
payTo: 8000,
|
|
|
- // tagList: undefined,
|
|
|
content: undefined,
|
|
|
requirement: undefined,
|
|
|
address: undefined
|