flat: cityId

This commit is contained in:
Apcallover
2024-04-23 19:41:17 +08:00
parent 08ab1d3cea
commit 04c0c631fd
7 changed files with 36 additions and 35 deletions

View File

@@ -103,7 +103,7 @@ export const recommendMissionSearch = (params) => {
/*抢任务-推荐岗位*/ /*抢任务-推荐岗位*/
export const newMissionAllSearch = (params) => { export const newMissionAllSearch = (params) => {
return request({ return request({
url: '/api/jobslink-api/user/userrecruit/searchList', url: '/api/jobslink-api/user/userWork/searchList',
method: 'get', method: 'get',
params, params,
headers: getHeader() headers: getHeader()

View File

@@ -474,7 +474,7 @@
areaModal, areaModal,
industryModal industryModal
} }
console.log(this.searchData, '------'); console.log(this.searchData, this.activeTab, '------');
if (submitData || areaModal || industryModal) { if (submitData || areaModal || industryModal) {
this.isSearch = true; this.isSearch = true;
} }
@@ -513,9 +513,9 @@
education: submitData["学历"], education: submitData["学历"],
salary: submitData["工资"], salary: submitData["工资"],
industry: industryModal?.industry, industry: industryModal?.industry,
province: areaModal?.address1[0], // province: areaModal?.address1[0],
city: areaModal?.address1[1], // city: areaModal?.address1[1],
cityId: areaModal?.info[areaModal?.info?.length - 2]?.id cityId: areaModal?.info.map((v) => v.areaName).join('-')
} }
nearMissionSearch(params).then(res => { nearMissionSearch(params).then(res => {
if (this.policyPage.current === 1) { if (this.policyPage.current === 1) {
@@ -536,15 +536,16 @@
areaModal, areaModal,
industryModal industryModal
} = this.searchData; } = this.searchData;
console.log(areaModal)
let params = { let params = {
current: this.nearPage.current, current: this.nearPage.current,
size: this.nearPage.size, size: this.nearPage.size,
education: submitData["学历"], education: submitData["学历"],
salary: submitData["工资"], salary: submitData["工资"],
industry: industryModal?.industry, industry: industryModal?.industry,
province: areaModal?.address1[0], // province: areaModal?.address1[0],
city: areaModal?.address1[1], // city: areaModal?.address1[1],
cityId: areaModal?.info[areaModal?.info?.length - 2]?.id cityId: areaModal?.info.map((v) => v.areaName).join('-')
} }
newMissionAllSearch(params).then(res => { newMissionAllSearch(params).then(res => {
if (this.nearPage.current === 1) { if (this.nearPage.current === 1) {
@@ -570,10 +571,10 @@
education: submitData["学历"], education: submitData["学历"],
salary: submitData["工资"], salary: submitData["工资"],
industry: industryModal?.info?.id, industry: industryModal?.info?.id,
province: areaModal?.address1[0], // province: areaModal?.address1[0],
city: areaModal?.address1[1], // city: areaModal?.address1[1],
wageUnitCategory: submitData["wageUnitCategory"], wageUnitCategory: submitData["wageUnitCategory"],
cityId: areaModal?.info[areaModal?.info?.length - 2]?.id cityId: areaModal?.info.map((v) => v.areaName).join('-')
} }
recommendMissionSearch(params).then(res => { recommendMissionSearch(params).then(res => {
if (this.newPage.current === 1) { if (this.newPage.current === 1) {

View File

@@ -50,7 +50,7 @@
任务描述 任务描述
</view> </view>
<view class="prolist description"> <view class="prolist description">
{{info.missionDesc || '暂无'}} {{info.jobDescription || '暂无'}}
</view> </view>
<!-- 技能标签 start --> <!-- 技能标签 start -->
<view class="ask"> <view class="ask">
@@ -95,7 +95,7 @@
公司地址{{info.companyAddress || '暂无'}} 公司地址{{info.companyAddress || '暂无'}}
</view> --> </view> -->
<view class="prolist"> <view class="prolist">
工作地址{{info.jobAddress || cityNamed || '暂无'}} 工作地址{{info.cityId || '暂无'}}
</view> </view>
<view class="prolist"> <view class="prolist">
详细地址{{info.address || '暂无'}} 详细地址{{info.address || '暂无'}}
@@ -435,7 +435,8 @@
}, },
cityNamed() { cityNamed() {
console.log('val', this.info, this.area.dic) 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 return this.area.dic[this.info.cityId].label
} else { } else {
return '无' return '无'

View File

@@ -100,7 +100,7 @@
座机号{{info.callNumber}} 座机号{{info.callNumber}}
</view> --> </view> -->
<view class="prolist"> <view class="prolist">
工作地址{{`${info.province}${info.city}${info.county}` || info.jobAddress || '暂无'}} 工作地址{{ info.cityId || '暂无'}}
</view> </view>
<view class="prolist"> <view class="prolist">
详细地址{{info.address || '暂无'}} 详细地址{{info.address || '暂无'}}

View File

@@ -116,11 +116,10 @@
<u-form-item label="座机" prop="callNumber" borderBottom labelWidth="80" ref="item1"> <u-form-item label="座机" prop="callNumber" borderBottom labelWidth="80" ref="item1">
<u--input v-model="info.callNumber" border="none" placeholder="请输入座机"></u--input> <u--input v-model="info.callNumber" border="none" placeholder="请输入座机"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="工作地址" labelWidth="70" prop="jobAddress" borderBottom ref="item1" <u-form-item label="工作地址" labelWidth="70" prop="cityId" borderBottom ref="item1"
@click="showjobAddress = true; hideKeyboard()"> @click="showCityId = true; hideKeyboard()">
<PickerTree placeholder="请选择行业" :tree="area.data" valueName="value" :visibel="showjobAddress" <PickerTree placeholder="请选择工作地址" :tree="area.data" valueName="value" :visibel="showCityId"
v-model="info.jobAddress" @cancel="showjobAddress = false" border="none" returnValue="label" v-model="info.cityId" @cancel="showCityId = false" border="none" returnValue="label" :deep="3">
:deep="3">
</PickerTree> </PickerTree>
</u-form-item> </u-form-item>
<u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1"> <u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1">
@@ -191,7 +190,7 @@
value: '', value: '',
showCalendar: false, showCalendar: false,
showStime: false, showStime: false,
showjobAddress: false, showCityId: false,
showEtime: false, showEtime: false,
info: { info: {
jobName: '', // 招工名称 jobName: '', // 招工名称
@@ -213,7 +212,7 @@
ageDesc: dic.ageArr[0][0].label, // 年龄要求 ageDesc: dic.ageArr[0][0].label, // 年龄要求
education: dic.eduArr[0][0].value, // 学历要求 education: dic.eduArr[0][0].value, // 学历要求
experienceDesc: dic.expeArr[0][0].label, // 经验要求 experienceDesc: dic.expeArr[0][0].label, // 经验要求
jobAddress: '', cityId: '',
jobCompanyName: '', // 企业名称 jobCompanyName: '', // 企业名称
jobCompanyScale: '', // 企业信用代码 jobCompanyScale: '', // 企业信用代码
jobCompanyIndustry: '', // 所属行业 jobCompanyIndustry: '', // 所属行业
@@ -318,7 +317,7 @@
message: '请选择经验要求', message: '请选择经验要求',
trigger: ['change'] trigger: ['change']
}, },
jobAddress: { cityId: {
type: 'string', type: 'string',
required: true, required: true,
message: '请选择工作地址', message: '请选择工作地址',
@@ -658,7 +657,7 @@
'education', 'education',
'educationLabel', 'educationLabel',
'experienceDesc', 'experienceDesc',
'jobAddress', 'cityId',
'jobCompanyName', 'jobCompanyName',
'jobCompanyScale', 'jobCompanyScale',
'jobCompanyIndustry', 'jobCompanyIndustry',

View File

@@ -120,11 +120,10 @@
<u-form-item label="座机" prop="callNumber" borderBottom labelWidth="80" ref="item1"> <u-form-item label="座机" prop="callNumber" borderBottom labelWidth="80" ref="item1">
<u--input v-model="info.callNumber" border="none" placeholder="请输入座机"></u--input> <u--input v-model="info.callNumber" border="none" placeholder="请输入座机"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="工作地址" labelWidth="70" prop="jobAddress" borderBottom ref="item1" <u-form-item label="工作地址" labelWidth="70" prop="cityId" borderBottom ref="item1"
@click="showjobAddress = true; hideKeyboard()"> @click="showCityId = true; hideKeyboard()">
<PickerTree placeholder="请选择行业" :tree="area.data" valueName="value" :visibel="showjobAddress" <PickerTree placeholder="请选择工作地址" :tree="area.data" valueName="value" :visibel="showCityId"
v-model="info.jobAddress" @cancel="showjobAddress = false" border="none" returnValue="label" v-model="info.cityId" @cancel="showCityId = false" border="none" returnValue="label" :deep="3">
:deep="3">
</PickerTree> </PickerTree>
</u-form-item> </u-form-item>
<u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1"> <u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1">
@@ -196,7 +195,7 @@
showCalendar: false, showCalendar: false,
showStime: false, showStime: false,
showEtime: false, showEtime: false,
showjobAddress: false, showCityId: false,
info: { info: {
jobName: '', // 招工名称 jobName: '', // 招工名称
stime: '', // 发布时间 stime: '', // 发布时间
@@ -217,7 +216,7 @@
ageDesc: dic.ageArr[0][0].label, // 年龄要求 ageDesc: dic.ageArr[0][0].label, // 年龄要求
education: dic.eduArr[0][0].value, // 学历要求 education: dic.eduArr[0][0].value, // 学历要求
experienceDesc: dic.expeArr[0][0].label, // 经验要求 experienceDesc: dic.expeArr[0][0].label, // 经验要求
jobAddress: '', cityId: '',
jobCompanyName: '', // 企业名称 jobCompanyName: '', // 企业名称
jobCompanyScale: '', // 企业信用代码 jobCompanyScale: '', // 企业信用代码
jobCompanyIndustry: '', // 所属行业 jobCompanyIndustry: '', // 所属行业
@@ -322,7 +321,7 @@
message: '请选择经验要求', message: '请选择经验要求',
trigger: ['change'] trigger: ['change']
}, },
jobAddress: { cityId: {
type: 'string', type: 'string',
required: true, required: true,
message: '请选择工作地址', message: '请选择工作地址',
@@ -663,7 +662,7 @@
'education', 'education',
'educationLabel', 'educationLabel',
'experienceDesc', 'experienceDesc',
'jobAddress', 'cityId',
'jobCompanyName', 'jobCompanyName',
'jobCompanyScale', 'jobCompanyScale',
'jobCompanyIndustry', 'jobCompanyIndustry',

View File

@@ -3,10 +3,11 @@ module.exports = {
port: 1887, port: 1887,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://10.165.0.173:8000', target: 'http://192.168.1.101:8200',
ws: true, ws: true,
changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api': '/' "^/api/jobslink-api": "/"
} }
}, },
'/qq/map': { '/qq/map': {