修改疆外职位展示内容

This commit is contained in:
冯辉
2025-10-15 16:46:21 +08:00
parent 7307335487
commit 028e3202bd
2 changed files with 6 additions and 5 deletions

View File

@@ -206,11 +206,11 @@
console.log('页面类型:', pageType.value);
let resData;
alert(editData.value.id)
// 根据页面类型调用不同的接口
if (pageType.value === 'edit' && editData.value?.id) {
// 编辑模式:调用更新接口
resData = await $api.createRequest(`/app/userworkexperiences/${editData.value.id}`, params, 'put');
resData = await $api.createRequest(`/app/userworkexperiences/edit`, {...params, id: editData.value.id}, 'put');
console.log('编辑接口响应:', resData);
} else {
// 添加模式:调用新增接口

View File

@@ -95,8 +95,8 @@
<dict-Label dictType="experience" :value="job.experience"></dict-Label>
</view>
</view>
<view class="falls-card-company">
<!-- {{ config.appInfo.areaName }} -->
<view class="falls-card-company" v-show="isShowJw !== 3">
{{ config.appInfo.areaName }}
<!-- {{ job.jobLocation }} -->
<dict-Label dictType="area" :value="job.jobLocationAreaCode"></dict-Label>
</view>
@@ -340,9 +340,10 @@ function choosePosition(index) {
getJobList('refresh');
}
}
const isShowJw = ref(0);
function handelHostestSearch(val) {
console.log(val.value);
isShowJw.value = val.value;
pageState.search.order = val.value;
pageState.search.jobType = val.value === 3 ? 1 : 0;
if (state.tabIndex === 'all') {