index.vue 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <!-- <view class=""> -->
  3. <!-- <web-view :src="sendImg"></web-view> -->
  4. <!-- </view> -->
  5. <view class="handlecase">
  6. <List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :key="index"></List>
  7. <view class="emptyBox" v-if="caseList.length == 0">
  8. <luanqing-empty :show="true" textColor="#000"></luanqing-empty>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import List from './component/imList.vue'
  14. import LuanqingEmpty from "@/components/luanqing-empty.vue"
  15. import {
  16. respondentList
  17. } from '../../api/handlecase/index.js'
  18. export default {
  19. components: {
  20. List,
  21. 'luanqing-empty': LuanqingEmpty,
  22. },
  23. data() {
  24. return {
  25. name: "",
  26. sendImg: "",
  27. caseList: [],
  28. pageNum: 1,
  29. pageSize: 10
  30. }
  31. },
  32. methods:{
  33. getList(parms) {
  34. respondentList(parms).then(res => {
  35. this.caseList = res.data;
  36. this.caseList.forEach(item => {
  37. switch (item.caseStatus) {
  38. case 0:
  39. item.caseStatusName = '立案申请'
  40. break;
  41. case 1:
  42. item.caseStatusName = '待缴费'
  43. break;
  44. case 2:
  45. item.caseStatusName = '待缴费确认'
  46. break;
  47. case 3:
  48. item.caseStatusName = '待确认是否应诉'
  49. break;
  50. case 4:
  51. item.caseStatusName = '待确认证据'
  52. break;
  53. case 5:
  54. item.caseStatusName = '待确定是否指派仲裁员'
  55. break;
  56. case 6:
  57. item.caseStatusName = '待组庭'
  58. break;
  59. case 7:
  60. item.caseStatusName = '待组庭确定'
  61. break;
  62. case 8:
  63. item.caseStatusName = '待组庭审核'
  64. break;
  65. case 9:
  66. item.caseStatusName = '待选择仲裁方式'
  67. break;
  68. case 10:
  69. item.caseStatusName = '待开庭'
  70. break;
  71. case 11:
  72. item.caseStatusName = '待生成仲裁文书'
  73. break;
  74. case 12:
  75. item.caseStatusName = '待确认仲裁文书'
  76. break;
  77. case 13:
  78. item.caseStatusName = '待仲裁文书用印'
  79. break;
  80. case 14:
  81. item.caseStatusName = '待仲裁文书用印审核'
  82. break;
  83. case 15:
  84. item.caseStatusName = '待仲裁文书送达'
  85. break;
  86. case 16:
  87. item.caseStatusName = '待案件归档'
  88. break;
  89. }
  90. })
  91. })
  92. },
  93. // 触底
  94. onReachBottom() {
  95. if (this.caseList.length < 1) {
  96. return
  97. }
  98. let obj = {
  99. pageNum: this.pageNum,
  100. pageSize: this.pageSize,
  101. caseStatus:8
  102. }
  103. obj.pageNum = obj.pageNum + 1
  104. this.getList(obj)
  105. }
  106. },
  107. onLoad() {
  108. let obj = {
  109. pageNum: this.pageNum,
  110. pageSize: this.pageSize,
  111. caseStatus:8
  112. }
  113. this.getList(obj)
  114. }
  115. // onLoad: function() {
  116. // this.name = this.$store.state.user.name;
  117. // this.sendImg = `https://txroom.xayunmei.com`
  118. // // this.sendImg = `http://localhost:8080/#/?name=${this.name}`
  119. // },
  120. }
  121. </script>
  122. <style lang="scss" scoped>
  123. </style>