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

82 lines
1.6 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <!-- 我发布的招工 -->
  3. <view class="page">
  4. <navbar title="我的找活"
  5. :title="role ? '我的招工' : '我的找活'"
  6. bgColor="#3796F8"
  7. leftClick
  8. color="#fff"
  9. @leftClick="$utils.navigateBack"/>
  10. <statisticsNumber :title="role ? '您当前的招工' : '您当前的找活'" :num="total"/>
  11. <workListSwipe
  12. :options="options"
  13. v-if="role"
  14. @clickSwipeAction="clickSwipeAction"
  15. :list="list"/>
  16. <userListSwipe
  17. :options="options"
  18. v-else
  19. @clickSwipeAction="clickSwipeAction"
  20. :list="list"/>
  21. </view>
  22. </template>
  23. <script>
  24. import userListSwipe from '@/components/list/userList/userListSwipe.vue'
  25. import workListSwipe from '@/components/list/workList/workListSwipe.vue'
  26. import statisticsNumber from '../components/statistics/statisticsNumber.vue'
  27. import mixinList from '@/mixins/list.js'
  28. import { mapState } from 'vuex'
  29. export default {
  30. mixins : [mixinList],
  31. components : {
  32. userListSwipe,
  33. statisticsNumber,
  34. workListSwipe
  35. },
  36. data() {
  37. return {
  38. options: [
  39. {
  40. text: '修改',
  41. style: {
  42. backgroundColor: '#ffa12c'
  43. }
  44. },
  45. {
  46. text: '删除',
  47. style: {
  48. backgroundColor: '#FA5A0A'
  49. }
  50. },
  51. ],
  52. mixinsListApi : 'employeeQueryResumeByUserId',
  53. }
  54. },
  55. computed : {
  56. ...mapState([
  57. 'role',
  58. ]),
  59. },
  60. onLoad() {
  61. this.mixinsListApi = this.role ? 'bossQueryJobListByUserId' : 'employeeQueryResumeByUserId'
  62. },
  63. methods: {
  64. clickSwipeAction({e, item}){
  65. console.log(e, item);
  66. },
  67. }
  68. }
  69. </script>
  70. <style scoped lang="scss">
  71. .page{
  72. /deep/ .uv-swipe-action{
  73. width: 100%;
  74. }
  75. }
  76. </style>