فهرست منبع

众聘职位-职位关键字

Xiao_123 7 ماه پیش
والد
کامیت
c54db02f19
2فایلهای تغییر یافته به همراه17 افزوده شده و 3 حذف شده
  1. 4 0
      src/api/menduner/common/useDictionaries.ts
  2. 13 3
      src/views/menduner/system/job/JobAdvertisedForm.vue

+ 4 - 0
src/api/menduner/common/useDictionaries.ts

@@ -18,4 +18,8 @@ export const dictApi = {
   getAreaTreeData: async (params: any) => {
     return await request.get({ url: `/menduner/system/area/get/tree`, params })
   },
+  // 标签树状
+  getTagTreeDataApi: async (params: any) => {
+    return await request.get({ url: `/menduner/system/tag/get/by/type`, params })
+  }
 }

+ 13 - 3
src/views/menduner/system/job/JobAdvertisedForm.vue

@@ -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