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