index.vue 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. if(res.data){
  32. this.caseList = res.data;
  33. }else{
  34. this.caseList = []
  35. }
  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:4
  102. }
  103. obj.pageNum = obj.pageNum + 1
  104. this.getList(obj)
  105. }
  106. },
  107. onShow() {
  108. let obj = {
  109. pageNum: this.pageNum,
  110. pageSize: this.pageSize,
  111. caseStatus:4
  112. }
  113. this.getList(obj)
  114. },
  115. // onLoad() {
  116. // let obj = {
  117. // pageNum: this.pageNum,
  118. // pageSize: this.pageSize,
  119. // caseStatus:4
  120. // }
  121. // this.getList(obj)
  122. // }
  123. }
  124. </script>
  125. <style lang="scss">
  126. .handlecase {
  127. .caseList {
  128. // height: 360rpx;
  129. // background-color: #ffffff;
  130. // border-radius: 30rpx;
  131. // margin-top: 20rpx;
  132. }
  133. }
  134. </style>