|
|
@ -11,13 +11,14 @@ |
|
|
|
:options="options" |
|
|
|
v-if="role" |
|
|
|
@clickSwipeAction="clickSwipeAction" |
|
|
|
:list="list2"/> |
|
|
|
:list="list"/> |
|
|
|
|
|
|
|
<workListSwipe |
|
|
|
:options="options" |
|
|
|
v-else |
|
|
|
keyName="employJob" |
|
|
|
@clickSwipeAction="clickSwipeAction" |
|
|
|
:list="list2"/> |
|
|
|
:list="list"/> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
@ -58,19 +59,19 @@ |
|
|
|
clickSwipeAction({e, item}){ |
|
|
|
console.log(e, item); |
|
|
|
}, |
|
|
|
getDataThen(list, total, result){ |
|
|
|
let l = [] |
|
|
|
result.forEach(res => { |
|
|
|
if(this.role){ |
|
|
|
res.employResume.collection = res.employCollectionResume |
|
|
|
l.push(res.employResume) |
|
|
|
}else{ |
|
|
|
res.employJob.collection = res.employCollectionJob |
|
|
|
l.push(res.employJob) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.list2 = l |
|
|
|
}, |
|
|
|
// getDataThen(list, total, result){ |
|
|
|
// let l = [] |
|
|
|
// result.forEach(res => { |
|
|
|
// if(this.role){ |
|
|
|
// res.employResume.collection = res.employCollectionResume |
|
|
|
// l.push(res.employResume) |
|
|
|
// }else{ |
|
|
|
// res.employJob.collection = res.employCollectionJob |
|
|
|
// l.push(res.employJob) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// this.list2 = l |
|
|
|
// }, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|