|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div v-if="items.length">
|
|
|
- <LongStrip :items="items" :showCancelBtn="true" @refresh="getPositionList"></LongStrip>
|
|
|
+ <LongStrip :items="items" :showCancelBtn="true" @refresh="handleCancelCollect"></LongStrip>
|
|
|
<CtPagination
|
|
|
:total="total"
|
|
|
:page="page.pageNo"
|
|
@@ -20,6 +20,7 @@ import { ref } from 'vue'
|
|
|
import { dealDictObjData } from '@/utils/position'
|
|
|
import { getJobFavoriteList } from '@/api/position'
|
|
|
|
|
|
+const emit = defineEmits(['cancelCollect'])
|
|
|
const total = ref(0)
|
|
|
const items = ref([])
|
|
|
const page = ref({
|
|
@@ -41,6 +42,11 @@ const getPositionList = async () => {
|
|
|
}
|
|
|
getPositionList()
|
|
|
|
|
|
+const handleCancelCollect = () => {
|
|
|
+ emit('cancelCollect', 0)
|
|
|
+ getPositionList()
|
|
|
+}
|
|
|
+
|
|
|
const handleChangePage = (index) => {
|
|
|
page.value.pageNo = index
|
|
|
getPositionList()
|