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

90 lines
1.8 KiB

4 months ago
4 months ago
4 months ago
4 months ago
3 weeks ago
4 months ago
3 weeks 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
2 months ago
4 months ago
  1. <template>
  2. <!-- 谁看过我 -->
  3. <view class="page">
  4. <navbar :title="role ? '谁看过我的招工' : '谁看过我的简历'"
  5. bgColor="#3796F8"
  6. leftClick
  7. color="#fff"
  8. @leftClick="$utils.navigateBack"/>
  9. <!-- <statisticsNumber title="简历被查看量" /> -->
  10. <statisticsNumber :title="role ? '招工被查看量' : '简历被查看量'" :num="total"/>
  11. <userList :api="mixinsListApi" ref="list"
  12. @total="e => total = e"
  13. v-if="role" keyName="employResume"/>
  14. <bossList :api="mixinsListApi"
  15. @total="e => total = e"
  16. ref="list" v-else/>
  17. </view>
  18. </template>
  19. <script>
  20. import bossList from '@/components/list/bossList/index.vue'
  21. import userList from '@/components/list/userList/index.vue'
  22. import statisticsNumber from '../components/statistics/statisticsNumber.vue'
  23. // import mixinList from '@/mixins/list.js'
  24. import { mapState } from 'vuex'
  25. export default {
  26. // mixins : [mixinList],
  27. components : {
  28. statisticsNumber,
  29. bossList,
  30. userList,
  31. },
  32. data() {
  33. return {
  34. options: [
  35. {
  36. text: '修改',
  37. style: {
  38. backgroundColor: '#ffa12c'
  39. }
  40. },
  41. {
  42. text: '删除',
  43. style: {
  44. backgroundColor: '#FA5A0A'
  45. }
  46. },
  47. ],
  48. mixinsListApi : '',
  49. total : 0,
  50. }
  51. },
  52. computed : {
  53. ...mapState([
  54. 'role',
  55. ]),
  56. },
  57. onLoad() {
  58. this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryWatchMe'
  59. },
  60. onShow() {
  61. this.$nextTick(() => {
  62. this.$refs.list.getData()
  63. })
  64. },
  65. onReachBottom() {
  66. this.$refs.list.loadMoreData()
  67. },
  68. onPullDownRefresh(){
  69. this.$refs.list.getData()
  70. },
  71. methods: {
  72. clickSwipeAction({e, item}){
  73. console.log(e, item);
  74. },
  75. }
  76. }
  77. </script>
  78. <style scoped lang="scss">
  79. .page{
  80. /deep/ .uv-swipe-action{
  81. width: 100%;
  82. }
  83. }
  84. </style>