|
@@ -47,7 +47,7 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
- <a-col :span="6" style="text-align: left">
|
|
|
+ <a-col :span="6" style="text-align: right">
|
|
|
<a-button type="primary" html-type="submit" @click="onSearch">查询</a-button>
|
|
|
<a-button
|
|
|
style="margin: 0 8px"
|
|
@@ -55,14 +55,17 @@
|
|
|
() => {
|
|
|
searchParams.pageIndex = 1;
|
|
|
searchParams.pageSize = 10;
|
|
|
- searchParams.userName= '';
|
|
|
- searchParams.keyPersonType= null;
|
|
|
- searchParams.parentProfessionID= '';
|
|
|
+ searchParams.userName = '';
|
|
|
+ searchParams.keyPersonType = null;
|
|
|
+ searchParams.parentProfessionID = '';
|
|
|
+ searchParams.huntProfessionName = null;
|
|
|
searchParams.checkParentProfessionID = false;
|
|
|
- searchParams.cultureRank= null;
|
|
|
- searchParams.workYear= null;
|
|
|
- searchParams.minSalary= null;
|
|
|
- searchParams.maxSalary= null;
|
|
|
+ searchParams.cultureRank = null;
|
|
|
+ searchParams.workYear = null;
|
|
|
+ searchParams.regionCode = null;
|
|
|
+ searchParams.siteID = null;
|
|
|
+ searchParams.minSalary = null;
|
|
|
+ searchParams.maxSalary = null;
|
|
|
loadData();
|
|
|
}
|
|
|
">重置
|
|
@@ -111,25 +114,48 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24" v-show="expand">
|
|
|
+
|
|
|
<a-col :span="6">
|
|
|
<a-form-item label="工作年限" :label-col="{ span: 8 }" name="workYear">
|
|
|
<a-input v-model:value="searchParams.workYear" placeholder=""/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="薪资要求" :label-col="{span:4}" name="maxSalary">
|
|
|
- <a-input type="number" v-model:value="searchParams.minSalary" style="width:120px;" placeholder=""/>
|
|
|
- <label style="margin:10px;">-</label>
|
|
|
- <a-input type="number" v-model:value="searchParams.maxSalary" style="width:120px;" placeholder=""/>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24" v-show="expand">
|
|
|
+ <a-col :span="6">
|
|
|
+ <a-form-item label="所属区县" :label-col="{ span: 8 }" name="regionCode">
|
|
|
+ <a-select
|
|
|
+ ref="select"
|
|
|
+ v-model:value="searchParams.regionCode"
|
|
|
+ :options="regionList"
|
|
|
+ :field-names="{ label: 'name', value: 'code' }"
|
|
|
+ :allow-clear="true"
|
|
|
+ @change="loadData"
|
|
|
+ >
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="6">
|
|
|
+ <a-form-item label="所属驿站" :label-col="{ span: 8 }" name="siteID">
|
|
|
+ <a-select
|
|
|
+ ref="select"
|
|
|
+ v-model:value="searchParams.siteID"
|
|
|
+ :options="siteList"
|
|
|
+ :field-names="{ label: 'siteName', value: 'siteID' }"
|
|
|
+ :allow-clear="true"
|
|
|
+ @change="loadData"
|
|
|
+ >
|
|
|
+ </a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :span="3" v-if="searchParams.type===0">
|
|
|
- <a-form-item label="" name="checkParentProfessionID">
|
|
|
- <a-checkbox
|
|
|
- v-model:checked="searchParams.checkParentProfessionID"
|
|
|
- @change="onSearch">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="薪资要求" :label-col="{span:4}" name="maxSalary">
|
|
|
+ <a-input type="number" v-model:value="searchParams.minSalary" style="width:120px;" placeholder=""/>
|
|
|
+ <label style="margin:10px;">-</label>
|
|
|
+ <a-input type="number" v-model:value="searchParams.maxSalary" style="width:120px;" placeholder=""/>
|
|
|
+ <a-checkbox v-if="searchParams.type===0" style="float: right;"
|
|
|
+ v-model:checked="searchParams.checkParentProfessionID"
|
|
|
+ @change="onSearch">
|
|
|
相关行业
|
|
|
</a-checkbox>
|
|
|
</a-form-item>
|
|
@@ -171,6 +197,8 @@ import type {SelectProps} from "ant-design-vue";
|
|
|
import {getSysDictionaryList} from "@/api/system/dictionary";
|
|
|
import {message} from "ant-design-vue";
|
|
|
import {debounce} from "lodash-es";
|
|
|
+import {getSiteList} from "@/api/baseSettings/siteInfo";
|
|
|
+import {get} from "@/api/common";
|
|
|
export default defineComponent({
|
|
|
name: 'RecommendJobList',
|
|
|
setup() {
|
|
@@ -179,6 +207,8 @@ export default defineComponent({
|
|
|
const formRef = ref<FormInstance>();
|
|
|
const expand = ref(false);
|
|
|
const title = ref<string>('');
|
|
|
+ const siteList = ref<any>([]);
|
|
|
+ const regionList = ref<SelectProps['options']>();
|
|
|
const searchParams = reactive({
|
|
|
pageIndex: 1,
|
|
|
pageSize: 10,
|
|
@@ -194,6 +224,8 @@ export default defineComponent({
|
|
|
checkParentProfessionID: false,
|
|
|
cultureRank: null,
|
|
|
workYear: null,
|
|
|
+ regionCode: null,
|
|
|
+ siteID:null,
|
|
|
minSalary: null,
|
|
|
maxSalary: null
|
|
|
});
|
|
@@ -218,6 +250,7 @@ export default defineComponent({
|
|
|
{title: '求职人员姓名', dataIndex: 'userName', key: 'userName', align: "center",},
|
|
|
{title: '求职岗位', dataIndex: 'professionName', key: 'professionName', align: "center",},
|
|
|
{title: '联系电话', dataIndex: 'userMobile', key: 'userMobile', align: "center",},
|
|
|
+ {title: '所属区县', dataIndex: 'regionName', key: 'regionName', align: "center",},
|
|
|
{title: '所属驿站', dataIndex: 'siteName', key: 'siteName', align: "center",},
|
|
|
{title: '工作年限', dataIndex: 'workYear', key: 'workYear', align: "center",},
|
|
|
{
|
|
@@ -241,6 +274,12 @@ export default defineComponent({
|
|
|
const dataList = ref([]);
|
|
|
const addRecommendList = ref([] as any);
|
|
|
|
|
|
+ const getAllSites = () => {
|
|
|
+ getSiteList({pageIndex:1,pageSize:9999}).then((result :any) => {
|
|
|
+ siteList.value = result.list;
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
const onSelectChange = (selectedRowKeys: any) => {
|
|
|
console.log(selectedRowKeys)
|
|
|
formState.selectedRowKeys = selectedRowKeys;
|
|
@@ -286,8 +325,13 @@ export default defineComponent({
|
|
|
loadData();
|
|
|
}
|
|
|
|
|
|
+ get('system/area/getCityList', {}).then(data => {
|
|
|
+ regionList.value = data;
|
|
|
+ });
|
|
|
+
|
|
|
const loadData = async function () {
|
|
|
formState.loading = true;
|
|
|
+ getAllSites();
|
|
|
const result: any = await getRecommendJobList(searchParams);
|
|
|
dataList.value = result.list;
|
|
|
console.log(dataList);
|
|
@@ -400,11 +444,14 @@ export default defineComponent({
|
|
|
formState,
|
|
|
columns,
|
|
|
pagination,
|
|
|
+ siteList,
|
|
|
+ regionList,
|
|
|
dataList,
|
|
|
professionList,
|
|
|
cultureLevelList,
|
|
|
addRecommendList,
|
|
|
keyPersonTypeList,
|
|
|
+ getAllSites,
|
|
|
show,
|
|
|
formatStr,
|
|
|
professionChange,
|