浏览代码

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 7 月之前
父节点
当前提交
89770aca40

+ 2 - 1
src/components/Enterprise/components/positions.vue

@@ -123,7 +123,7 @@ const show = ref(false)
 const showFilterList = ref([
 const showFilterList = ref([
   { key: 'expType', isSingle: false },
   { key: 'expType', isSingle: false },
   { key: 'eduType', isSingle: true },
   { key: 'eduType', isSingle: true },
-  { key: 'payType', isSingle: true },
+  { key: 'payScope', isSingle: true },
 ])
 ])
 const getProvideData = (list) => {
 const getProvideData = (list) => {
   if (!list?.length) return
   if (!list?.length) return
@@ -184,6 +184,7 @@ const dealRouteQuery = () => {
 const handleSearch = (key, { values = [] }) => {
 const handleSearch = (key, { values = [] }) => {
   if (key) {
   if (key) {
     if (values === -1 || !values || values[0] === -1 || !values.length) delete query[key]
     if (values === -1 || !values || values[0] === -1 || !values.length) delete query[key]
+    else if (key === 'payScope') query[key] = values?.length ? values[values.length-1] : '' // 单选且传递字符串
     else query[key] = values
     else query[key] = values
   }
   }
   dealRouteQuery()
   dealRouteQuery()

+ 2 - 1
src/views/recruit/personal/position/components/dict.js

@@ -58,11 +58,12 @@ const dictList = [
   },
   },
   { 
   { 
     dictShow: 'menduner_pay_scope',
     dictShow: 'menduner_pay_scope',
-    key: 'payType',
+    key: 'payScope',
     itemKey: 'value',
     itemKey: 'value',
     itemText: 'label',
     itemText: 'label',
     title: '薪资待遇',
     title: '薪资待遇',
     isSingle: true,
     isSingle: true,
+    isString: true,
     path: commonPath,
     path: commonPath,
     data: []
     data: []
   },
   },

+ 2 - 2
src/views/recruit/personal/position/index.vue

@@ -53,7 +53,7 @@ const showFilterList = [
   { key: 'positionId', isSingle: true },
   { key: 'positionId', isSingle: true },
   { key: 'jobType' },
   { key: 'jobType' },
   { key: 'expType' },
   { key: 'expType' },
-  { key: 'payType' },
+  { key: 'payScope' },
   { key: 'eduType' },
   { key: 'eduType' },
   { key: 'scale' },
   { key: 'scale' },
   { key: 'financingStatus' },
   { key: 'financingStatus' },
@@ -72,7 +72,7 @@ const getData = async () => {
   const pageReqVO = { ...pageInfo }
   const pageReqVO = { ...pageInfo }
   // route.query参数
   // route.query参数
   if (routeQuery && Object.keys(routeQuery).length) {
   if (routeQuery && Object.keys(routeQuery).length) {
-    const passingStrings = ['content'] // 传递字符串
+    const passingStrings = ['content', 'payScope'] // 单选且传递字符串
     const passingOneId = ['positionId'] // 单选且传递整型
     const passingOneId = ['positionId'] // 单选且传递整型
     Object.keys(routeQuery).forEach(key => {
     Object.keys(routeQuery).forEach(key => {
       if (routeQuery[key] === '') return
       if (routeQuery[key] === '') return