|
@@ -8,7 +8,8 @@
|
|
|
<div class="d-flex">
|
|
|
<div class="mt-3">
|
|
|
<positionList :items="items" @selectChange="selectChange"></positionList>
|
|
|
- <div :class="['loading', {'defaultLink-i': !loadingType}]" @click="handleChangePage">{{ loadingText[loadingType] }}</div>
|
|
|
+ <div class="loading defaultLink-i" @click="router.push('/recruit/personal/position')">加载更多</div>
|
|
|
+ <div v-if="showLoadingMore" :class="['loading', {'defaultLink-i': !loadingType}]" @click="handleChangePage">{{ loadingText[loadingType] }}</div>
|
|
|
</div>
|
|
|
<div class="position-details ml-1" style="flex: 1; overflow: hidden;">
|
|
|
<div class="position-content">
|
|
@@ -34,7 +35,9 @@ import { getPromotedPosition } from '@/api/position'
|
|
|
import { dealDictArrayData } from '@/utils/position'
|
|
|
import positionList from './components/positionList'
|
|
|
import positionItemDetail from '@/views/recruit/personal/position/components/details.vue'
|
|
|
+import { useRouter } from 'vue-router'; const router = useRouter()
|
|
|
|
|
|
+const showLoadingMore = ref(false) // 只展示默认pageSize数据,加载更多跳转到职位列表
|
|
|
const jobId = ref('')
|
|
|
const showRecommendDetails = ref(false)
|
|
|
const selectChange = (item) => {
|
|
@@ -68,7 +71,7 @@ const getList = async () => {
|
|
|
getList()
|
|
|
|
|
|
const handleChangePage = () => {
|
|
|
- if (loadingType.value) return
|
|
|
+ if (loadingType.value) return // 没有更多数据了
|
|
|
// 加载更多
|
|
|
query.pageNum++
|
|
|
getList()
|