|  | @@ -2,11 +2,11 @@ import { getDict } from '@/hooks/web/useDictionaries'
 | 
	
		
			
				|  |  |  import commonPath from './conditionFilter/commonPath.vue'
 | 
	
		
			
				|  |  |  // import areaType from './conditionFilter/areaType.vue'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -// dictUse: 查数据回显(一维数组字典),dictShow: 用户操作的字典(用户看到的数据)
 | 
	
		
			
				|  |  | +// toFilterDictName: 查数据回显(一维数组字典),dictShow: 用户操作的字典(用户看到的数据)
 | 
	
		
			
				|  |  |  // 当type是tree类型的数据的时候需要提供dictType
 | 
	
		
			
				|  |  |  const dictList = [
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictShow: 'menduner_area_type',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    displayDictName: 'menduner_area_type',
 | 
	
		
			
				|  |  |      apiType: 'areaList',
 | 
	
		
			
				|  |  |      key: 'areaIds',
 | 
	
		
			
				|  |  |      itemKey: 'id',
 | 
	
	
		
			
				|  | @@ -15,22 +15,32 @@ const dictList = [
 | 
	
		
			
				|  |  |      path: commonPath,
 | 
	
		
			
				|  |  |      data: []
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictUse: 'menduner_industry_type',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    displayDictName: 'menduner_area_type',
 | 
	
		
			
				|  |  | +    apiType: 'areaList',
 | 
	
		
			
				|  |  | +    key: 'areaIds',
 | 
	
		
			
				|  |  | +    itemKey: 'id',
 | 
	
		
			
				|  |  | +    itemText: 'name',
 | 
	
		
			
				|  |  | +    title: '工作地点',
 | 
	
		
			
				|  |  | +    path: commonPath,
 | 
	
		
			
				|  |  | +    data: []
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    toFilterDictName: 'menduner_industry_type',
 | 
	
		
			
				|  |  |      apiType: 'industryList',
 | 
	
		
			
				|  |  | -    dictShow: 1,
 | 
	
		
			
				|  |  |      key: 'industryIds',
 | 
	
		
			
				|  |  | +    isSlot: true,
 | 
	
		
			
				|  |  |      itemKey: 'id',
 | 
	
		
			
				|  |  |      itemText: 'nameCn',
 | 
	
		
			
				|  |  |      title: '行业类型',
 | 
	
		
			
				|  |  |      path: commonPath,
 | 
	
		
			
				|  |  |      data: []
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictUse: 'positionData',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    toFilterDictName: 'positionData',
 | 
	
		
			
				|  |  |      apiType: 'positionData',
 | 
	
		
			
				|  |  | -    dictShow: 1,
 | 
	
		
			
				|  |  |      key: 'positionId',
 | 
	
		
			
				|  |  | +    isSlot: true,
 | 
	
		
			
				|  |  |      itemKey: 'id',
 | 
	
		
			
				|  |  |      itemText: 'nameCn',
 | 
	
		
			
				|  |  |      title: '职位类型',
 | 
	
	
		
			
				|  | @@ -38,8 +48,8 @@ const dictList = [
 | 
	
		
			
				|  |  |      path: commonPath,
 | 
	
		
			
				|  |  |      data: []
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictShow: 'menduner_job_type',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    displayDictName: 'menduner_job_type',
 | 
	
		
			
				|  |  |      key: 'jobType',
 | 
	
		
			
				|  |  |      itemKey: 'value',
 | 
	
		
			
				|  |  |      itemText: 'label',
 | 
	
	
		
			
				|  | @@ -47,8 +57,8 @@ const dictList = [
 | 
	
		
			
				|  |  |      path: commonPath,
 | 
	
		
			
				|  |  |      data: []
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictShow: 'menduner_exp_type',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    displayDictName: 'menduner_exp_type',
 | 
	
		
			
				|  |  |      key: 'expType',
 | 
	
		
			
				|  |  |      itemKey: 'value',
 | 
	
		
			
				|  |  |      itemText: 'label',
 | 
	
	
		
			
				|  | @@ -56,8 +66,8 @@ const dictList = [
 | 
	
		
			
				|  |  |      path: commonPath,
 | 
	
		
			
				|  |  |      data: []
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictShow: 'menduner_pay_scope',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    displayDictName: 'menduner_pay_scope',
 | 
	
		
			
				|  |  |      key: 'payScope',
 | 
	
		
			
				|  |  |      itemKey: 'value',
 | 
	
		
			
				|  |  |      itemText: 'label',
 | 
	
	
		
			
				|  | @@ -67,8 +77,8 @@ const dictList = [
 | 
	
		
			
				|  |  |      path: commonPath,
 | 
	
		
			
				|  |  |      data: []
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictShow: 'menduner_education_type',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    displayDictName: 'menduner_education_type',
 | 
	
		
			
				|  |  |      key: 'eduType',
 | 
	
		
			
				|  |  |      itemKey: 'value',
 | 
	
		
			
				|  |  |      itemText: 'label',
 | 
	
	
		
			
				|  | @@ -76,8 +86,8 @@ const dictList = [
 | 
	
		
			
				|  |  |      path: commonPath,
 | 
	
		
			
				|  |  |      data: []
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictShow: 'menduner_scale',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    displayDictName: 'menduner_scale',
 | 
	
		
			
				|  |  |      key: 'scale',
 | 
	
		
			
				|  |  |      itemKey: 'value',
 | 
	
		
			
				|  |  |      itemText: 'label',
 | 
	
	
		
			
				|  | @@ -85,8 +95,8 @@ const dictList = [
 | 
	
		
			
				|  |  |      path: commonPath,
 | 
	
		
			
				|  |  |      data: []
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  { 
 | 
	
		
			
				|  |  | -    dictShow: 'menduner_financing_status',
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    displayDictName: 'menduner_financing_status',
 | 
	
		
			
				|  |  |      key: 'financingStatus',
 | 
	
		
			
				|  |  |      itemKey: 'value',
 | 
	
		
			
				|  |  |      itemText: 'label',
 | 
	
	
		
			
				|  | @@ -100,8 +110,8 @@ export const filterList = dictList
 | 
	
		
			
				|  |  |  // 字典
 | 
	
		
			
				|  |  |  const getDictList = async () => {
 | 
	
		
			
				|  |  |    dictList.forEach(async (dictListItem) => {
 | 
	
		
			
				|  |  | -    const dictUse = dictListItem.dictUse || dictListItem.dictShow
 | 
	
		
			
				|  |  | -    const { data } = await getDict(dictUse, dictListItem.params, dictListItem.apiType)
 | 
	
		
			
				|  |  | +    const toFilterDictName = dictListItem.toFilterDictName || dictListItem.displayDictName
 | 
	
		
			
				|  |  | +    const { data } = await getDict(toFilterDictName, dictListItem.params, dictListItem.apiType)
 | 
	
		
			
				|  |  |      dictListItem.data = data
 | 
	
		
			
				|  |  |    })
 | 
	
		
			
				|  |  |  }
 |