提交 61793f80 authored 作者: matian's avatar matian

修改省市搜索传参

上级 2022a97a
<script setup lang="ts">
import { allPrefixList, industryCategoryList, sexList } from '../prefix'
import { useArea } from '@/composables/useArea'
import { ref } from 'vue'
import { allPrefixList, industryCategoryList, sexList } from '../prefix'
import { getAlumniList, getClassList } from '../api'
const appList = ref()
// 省市
......@@ -46,10 +45,16 @@ const listOptions = {
industry: '',
workplace: ''
},
beforeRequest(params: any) {
beforeRequest(params: any, isReset: boolean) {
if (params.sex === '') {
params.sex = '999'
}
if (isReset) {
provinceValue.value = ''
cityValue.value = ''
}
params.province = provinceValue.value
params.city = cityValue.value
return params
}
},
......@@ -69,8 +74,8 @@ const listOptions = {
prop: 'project_prefix',
slots: 'filter-project'
},
{ type: 'input', prop: 'province', placeholder: '省份', slots: 'filter-province' },
{ type: 'input', prop: 'city', placeholder: '城市', slots: 'filter-city' },
{ type: 'select', prop: 'province', slots: 'filter-province' },
{ type: 'select', prop: 'city', slots: 'filter-city' },
{ type: 'select', prop: 'industry', placeholder: '所在行业', options: industryCategoryList },
{ type: 'input', prop: 'workplace', placeholder: '工作单位' }
],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论