特易招,招聘小程序
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.

61 lines
1.0 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 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="list"/>
  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. }
  35. },
  36. computed : {
  37. ...mapState([
  38. 'role',
  39. ]),
  40. },
  41. onLoad() {
  42. this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryCollectionJobList'
  43. },
  44. methods: {
  45. clickSwipeAction({e, item}){
  46. console.log(e, item);
  47. },
  48. }
  49. }
  50. </script>
  51. <style scoped lang="scss">
  52. .page{
  53. /deep/ .uv-swipe-action{
  54. width: 100%;
  55. }
  56. }
  57. </style>