特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.3 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="我的收藏"
  4. bgColor="#3796F8"
  5. leftClick
  6. color="#fff"
  7. @leftClick="$utils.navigateBack"/>
  8. <workListSwipe
  9. :options="options"
  10. @clickSwipeAction="clickSwipeAction"
  11. :list="list2"/>
  12. </view>
  13. </template>
  14. <script>
  15. import workListSwipe from '@/components/list/workList/workListSwipe.vue'
  16. import mixinList from '@/mixins/list.js'
  17. import { mapState } from 'vuex'
  18. export default {
  19. mixins : [mixinList],
  20. components : {
  21. workListSwipe
  22. },
  23. data() {
  24. return {
  25. options: [
  26. {
  27. text: '删除',
  28. style: {
  29. backgroundColor: '#FA5A0A'
  30. }
  31. },
  32. ],
  33. mixinsListApi : 'employeeQueryCollectionJobList',
  34. list2 : [],
  35. }
  36. },
  37. computed : {
  38. ...mapState([
  39. 'role',
  40. ]),
  41. },
  42. onLoad() {
  43. this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryCollectionJobList'
  44. },
  45. methods: {
  46. clickSwipeAction({e, item}){
  47. console.log(e, item);
  48. },
  49. getDataThen(list, total, result){
  50. let l = []
  51. result.forEach(res => {
  52. res.employJob.employCollectionJob = res.employCollectionJob
  53. l.push(res.employJob)
  54. })
  55. this.list2 = l
  56. },
  57. }
  58. }
  59. </script>
  60. <style scoped lang="scss">
  61. .page{
  62. /deep/ .uv-swipe-action{
  63. width: 100%;
  64. }
  65. }
  66. </style>