|
@@ -21,28 +21,37 @@
|
|
|
<div class="bw-vue-list">
|
|
|
<div class="list-content">
|
|
|
<ion-list>
|
|
|
- <ion-item v-for="(record,key) in dataList" :key="key">
|
|
|
- <ion-label>
|
|
|
- <div class="multi-title">
|
|
|
- <h2>{{ record.jobUserName }}</h2>
|
|
|
- <h2>{{ record.professionName }}</h2>
|
|
|
- </div>
|
|
|
- <p>人才类型:{{ record.jobUserTypeStr }}</p>
|
|
|
- <div class="multi-title">
|
|
|
- <p>
|
|
|
- 工作年限:{{ record.workYear }}
|
|
|
- </p>
|
|
|
- <p>
|
|
|
- 求职类型:{{ record.jobHuntTypeStr }}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <p>月薪要求:{{ record.minSalary }}至{{ record.maxSalary }}元</p>
|
|
|
- </ion-label>
|
|
|
- <ion-avatar @click="onRecommendJob(record);$event.preventDefault();$event.stopPropagation();"
|
|
|
- aria-hidden="true" class="container" slot="end">
|
|
|
- <ion-button size="small" fill="outline">推荐</ion-button>
|
|
|
- </ion-avatar>
|
|
|
- </ion-item>
|
|
|
+ <div v-for="(record,key) in dataList" :key="key" detail>
|
|
|
+ <ion-item-sliding>
|
|
|
+ <ion-item>
|
|
|
+ <ion-label>
|
|
|
+ <div class="multi-title">
|
|
|
+ <h2>{{ record.jobUserName }}</h2>
|
|
|
+ <h2>{{ record.professionName }}</h2>
|
|
|
+ </div>
|
|
|
+ <p>人才类型:{{ record.jobUserTypeStr }}</p>
|
|
|
+ <div class="multi-title">
|
|
|
+ <p>
|
|
|
+ 工作年限:{{ record.workYear }}
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 求职类型:{{ record.jobHuntTypeStr }}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <p>月薪要求:{{ record.minSalary }}至{{ record.maxSalary }}元</p>
|
|
|
+ </ion-label>
|
|
|
+ <ion-avatar @click="onRecommendJob(record);$event.preventDefault();$event.stopPropagation();"
|
|
|
+ aria-hidden="true" class="container" slot="end">
|
|
|
+ <ion-button size="small" fill="outline">推荐</ion-button>
|
|
|
+ </ion-avatar>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item-options>
|
|
|
+ <ion-item-option color="danger" @click="onDel(record.jobHuntID)">
|
|
|
+ <ion-icon :icon="trashOutline"></ion-icon>
|
|
|
+ </ion-item-option>
|
|
|
+ </ion-item-options>
|
|
|
+ </ion-item-sliding>
|
|
|
+ </div>
|
|
|
</ion-list>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -62,10 +71,10 @@
|
|
|
import {computed, defineComponent, reactive, ref} from 'vue';
|
|
|
import dayjs from "dayjs";
|
|
|
import {useRoute, useRouter} from "vue-router";
|
|
|
-import {arrowBackOutline} from 'ionicons/icons';
|
|
|
-import {IonIcon, onIonViewDidEnter} from '@ionic/vue';
|
|
|
+import {arrowBackOutline,trashOutline} from 'ionicons/icons';
|
|
|
+import {alertController, IonIcon, onIonViewDidEnter} from '@ionic/vue';
|
|
|
import BEmpty from "@/components/empty.vue";
|
|
|
-import {getJobHuntList} from '@/api/jobHuntInfo/index'
|
|
|
+import {getJobHuntList, deleteJobHuntAndRecommendMgt} from '@/api/jobHuntInfo/index'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'RecommendCompanyPostList',
|
|
@@ -130,6 +139,30 @@ export default defineComponent({
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ const onDel = async (id: any) => {
|
|
|
+ const alert = await alertController.create({
|
|
|
+ header: '提示!',
|
|
|
+ message: '是否确认删除?',
|
|
|
+ buttons: [
|
|
|
+ {
|
|
|
+ text: '取消',
|
|
|
+ role: 'cancel'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '确认删除',
|
|
|
+ handler: () => {
|
|
|
+ deleteJobHuntAndRecommendMgt(id).then(result => {
|
|
|
+ if (result)
|
|
|
+ reload();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ });
|
|
|
+
|
|
|
+ await alert.present();
|
|
|
+ }
|
|
|
+
|
|
|
const onBack = () => {
|
|
|
router.push('../../');
|
|
|
}
|
|
@@ -140,16 +173,18 @@ export default defineComponent({
|
|
|
|
|
|
return {
|
|
|
arrowBackOutline,
|
|
|
+ trashOutline,
|
|
|
router,
|
|
|
total,
|
|
|
loading,
|
|
|
dataList,
|
|
|
pagination,
|
|
|
searchParams,
|
|
|
+ loadData,
|
|
|
onBack,
|
|
|
onRecommendJob,
|
|
|
+ onDel,
|
|
|
onScroll,
|
|
|
- loadData,
|
|
|
reload,
|
|
|
dayjs,
|
|
|
}
|