flat: cityId
This commit is contained in:
@@ -103,7 +103,7 @@ export const recommendMissionSearch = (params) => {
|
||||
/*抢任务-推荐岗位*/
|
||||
export const newMissionAllSearch = (params) => {
|
||||
return request({
|
||||
url: '/api/jobslink-api/user/userrecruit/searchList',
|
||||
url: '/api/jobslink-api/user/userWork/searchList',
|
||||
method: 'get',
|
||||
params,
|
||||
headers: getHeader()
|
||||
|
||||
@@ -474,7 +474,7 @@
|
||||
areaModal,
|
||||
industryModal
|
||||
}
|
||||
console.log(this.searchData, '------');
|
||||
console.log(this.searchData, this.activeTab, '------');
|
||||
if (submitData || areaModal || industryModal) {
|
||||
this.isSearch = true;
|
||||
}
|
||||
@@ -513,9 +513,9 @@
|
||||
education: submitData["学历"],
|
||||
salary: submitData["工资"],
|
||||
industry: industryModal?.industry,
|
||||
province: areaModal?.address1[0],
|
||||
city: areaModal?.address1[1],
|
||||
cityId: areaModal?.info[areaModal?.info?.length - 2]?.id
|
||||
// province: areaModal?.address1[0],
|
||||
// city: areaModal?.address1[1],
|
||||
cityId: areaModal?.info.map((v) => v.areaName).join('-')
|
||||
}
|
||||
nearMissionSearch(params).then(res => {
|
||||
if (this.policyPage.current === 1) {
|
||||
@@ -536,15 +536,16 @@
|
||||
areaModal,
|
||||
industryModal
|
||||
} = this.searchData;
|
||||
console.log(areaModal)
|
||||
let params = {
|
||||
current: this.nearPage.current,
|
||||
size: this.nearPage.size,
|
||||
education: submitData["学历"],
|
||||
salary: submitData["工资"],
|
||||
industry: industryModal?.industry,
|
||||
province: areaModal?.address1[0],
|
||||
city: areaModal?.address1[1],
|
||||
cityId: areaModal?.info[areaModal?.info?.length - 2]?.id
|
||||
// province: areaModal?.address1[0],
|
||||
// city: areaModal?.address1[1],
|
||||
cityId: areaModal?.info.map((v) => v.areaName).join('-')
|
||||
}
|
||||
newMissionAllSearch(params).then(res => {
|
||||
if (this.nearPage.current === 1) {
|
||||
@@ -570,10 +571,10 @@
|
||||
education: submitData["学历"],
|
||||
salary: submitData["工资"],
|
||||
industry: industryModal?.info?.id,
|
||||
province: areaModal?.address1[0],
|
||||
city: areaModal?.address1[1],
|
||||
// province: areaModal?.address1[0],
|
||||
// city: areaModal?.address1[1],
|
||||
wageUnitCategory: submitData["wageUnitCategory"],
|
||||
cityId: areaModal?.info[areaModal?.info?.length - 2]?.id
|
||||
cityId: areaModal?.info.map((v) => v.areaName).join('-')
|
||||
}
|
||||
recommendMissionSearch(params).then(res => {
|
||||
if (this.newPage.current === 1) {
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
任务描述
|
||||
</view>
|
||||
<view class="prolist description">
|
||||
{{info.missionDesc || '暂无'}}
|
||||
{{info.jobDescription || '暂无'}}
|
||||
</view>
|
||||
<!-- 技能标签 start -->
|
||||
<view class="ask">
|
||||
@@ -95,7 +95,7 @@
|
||||
公司地址:{{info.companyAddress || '暂无'}}
|
||||
</view> -->
|
||||
<view class="prolist">
|
||||
工作地址:{{info.jobAddress || cityNamed || '暂无'}}
|
||||
工作地址:{{info.cityId || '暂无'}}
|
||||
</view>
|
||||
<view class="prolist">
|
||||
详细地址:{{info.address || '暂无'}}
|
||||
@@ -435,7 +435,8 @@
|
||||
},
|
||||
cityNamed() {
|
||||
console.log('val', this.info, this.area.dic)
|
||||
if (this.info && this.info.cityId !== -1 && this.area.dic) {
|
||||
if (this.info && this.info.cityId !== -1 && this.area
|
||||
.dic) {
|
||||
return this.area.dic[this.info.cityId].label
|
||||
} else {
|
||||
return '无'
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
座机号:{{info.callNumber}}
|
||||
</view> -->
|
||||
<view class="prolist">
|
||||
工作地址:{{`${info.province}${info.city}${info.county}` || info.jobAddress || '暂无'}}
|
||||
工作地址:{{ info.cityId || '暂无'}}
|
||||
</view>
|
||||
<view class="prolist">
|
||||
详细地址:{{info.address || '暂无'}}
|
||||
|
||||
@@ -116,11 +116,10 @@
|
||||
<u-form-item label="座机" prop="callNumber" borderBottom labelWidth="80" ref="item1">
|
||||
<u--input v-model="info.callNumber" border="none" placeholder="请输入座机"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item label="工作地址" labelWidth="70" prop="jobAddress" borderBottom ref="item1"
|
||||
@click="showjobAddress = true; hideKeyboard()">
|
||||
<PickerTree placeholder="请选择行业" :tree="area.data" valueName="value" :visibel="showjobAddress"
|
||||
v-model="info.jobAddress" @cancel="showjobAddress = false" border="none" returnValue="label"
|
||||
:deep="3">
|
||||
<u-form-item label="工作地址" labelWidth="70" prop="cityId" borderBottom ref="item1"
|
||||
@click="showCityId = true; hideKeyboard()">
|
||||
<PickerTree placeholder="请选择工作地址" :tree="area.data" valueName="value" :visibel="showCityId"
|
||||
v-model="info.cityId" @cancel="showCityId = false" border="none" returnValue="label" :deep="3">
|
||||
</PickerTree>
|
||||
</u-form-item>
|
||||
<u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1">
|
||||
@@ -191,7 +190,7 @@
|
||||
value: '',
|
||||
showCalendar: false,
|
||||
showStime: false,
|
||||
showjobAddress: false,
|
||||
showCityId: false,
|
||||
showEtime: false,
|
||||
info: {
|
||||
jobName: '', // 招工名称
|
||||
@@ -213,7 +212,7 @@
|
||||
ageDesc: dic.ageArr[0][0].label, // 年龄要求
|
||||
education: dic.eduArr[0][0].value, // 学历要求
|
||||
experienceDesc: dic.expeArr[0][0].label, // 经验要求
|
||||
jobAddress: '',
|
||||
cityId: '',
|
||||
jobCompanyName: '', // 企业名称
|
||||
jobCompanyScale: '', // 企业信用代码
|
||||
jobCompanyIndustry: '', // 所属行业
|
||||
@@ -318,7 +317,7 @@
|
||||
message: '请选择经验要求',
|
||||
trigger: ['change']
|
||||
},
|
||||
jobAddress: {
|
||||
cityId: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择工作地址',
|
||||
@@ -658,7 +657,7 @@
|
||||
'education',
|
||||
'educationLabel',
|
||||
'experienceDesc',
|
||||
'jobAddress',
|
||||
'cityId',
|
||||
'jobCompanyName',
|
||||
'jobCompanyScale',
|
||||
'jobCompanyIndustry',
|
||||
|
||||
@@ -120,11 +120,10 @@
|
||||
<u-form-item label="座机" prop="callNumber" borderBottom labelWidth="80" ref="item1">
|
||||
<u--input v-model="info.callNumber" border="none" placeholder="请输入座机"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item label="工作地址" labelWidth="70" prop="jobAddress" borderBottom ref="item1"
|
||||
@click="showjobAddress = true; hideKeyboard()">
|
||||
<PickerTree placeholder="请选择行业" :tree="area.data" valueName="value" :visibel="showjobAddress"
|
||||
v-model="info.jobAddress" @cancel="showjobAddress = false" border="none" returnValue="label"
|
||||
:deep="3">
|
||||
<u-form-item label="工作地址" labelWidth="70" prop="cityId" borderBottom ref="item1"
|
||||
@click="showCityId = true; hideKeyboard()">
|
||||
<PickerTree placeholder="请选择工作地址" :tree="area.data" valueName="value" :visibel="showCityId"
|
||||
v-model="info.cityId" @cancel="showCityId = false" border="none" returnValue="label" :deep="3">
|
||||
</PickerTree>
|
||||
</u-form-item>
|
||||
<u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1">
|
||||
@@ -196,7 +195,7 @@
|
||||
showCalendar: false,
|
||||
showStime: false,
|
||||
showEtime: false,
|
||||
showjobAddress: false,
|
||||
showCityId: false,
|
||||
info: {
|
||||
jobName: '', // 招工名称
|
||||
stime: '', // 发布时间
|
||||
@@ -217,7 +216,7 @@
|
||||
ageDesc: dic.ageArr[0][0].label, // 年龄要求
|
||||
education: dic.eduArr[0][0].value, // 学历要求
|
||||
experienceDesc: dic.expeArr[0][0].label, // 经验要求
|
||||
jobAddress: '',
|
||||
cityId: '',
|
||||
jobCompanyName: '', // 企业名称
|
||||
jobCompanyScale: '', // 企业信用代码
|
||||
jobCompanyIndustry: '', // 所属行业
|
||||
@@ -322,7 +321,7 @@
|
||||
message: '请选择经验要求',
|
||||
trigger: ['change']
|
||||
},
|
||||
jobAddress: {
|
||||
cityId: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择工作地址',
|
||||
@@ -663,7 +662,7 @@
|
||||
'education',
|
||||
'educationLabel',
|
||||
'experienceDesc',
|
||||
'jobAddress',
|
||||
'cityId',
|
||||
'jobCompanyName',
|
||||
'jobCompanyScale',
|
||||
'jobCompanyIndustry',
|
||||
|
||||
@@ -3,10 +3,11 @@ module.exports = {
|
||||
port: 1887,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://10.165.0.173:8000',
|
||||
target: 'http://192.168.1.101:8200',
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/'
|
||||
"^/api/jobslink-api": "/"
|
||||
}
|
||||
},
|
||||
'/qq/map': {
|
||||
|
||||
Reference in New Issue
Block a user