瀏覽代碼

自定义下拉数据

lifanagju_citu 7 月之前
父節點
當前提交
dd1f319e2e

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

@@ -126,7 +126,7 @@ const showFilterList = ref([
   { key: 'payScope', isSingle: true },
 ])
 const getProvideData = (list) => {
-  if (!list?.length) return
+  if (!list?.length) return show.value = true
   getDict('menduner_area_type', {}, 'areaList').then(({ data }) => {
     data = data?.length && data || []
     const arr = list.map(e => {

+ 6 - 0
src/views/recruit/personal/position/components/dict.js

@@ -20,6 +20,12 @@ const dictList = [
     path: commonPath,
     toFilterDictDataList: []
   },
+  {
+    key: 'areaIds',
+    title: '工作城市',
+    path: commonPath,
+    provideData: []
+  },
   {
     toFilterDictName: 'menduner_industry_type',
     toFilterApiType: 'industryList',