123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. caseApplicationList
  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. uni.showLoading()
  30. caseApplicationList(parms).then(res => {
  31. uni.hideLoading()
  32. this.caseList = res.rows;
  33. this.caseList.forEach(item => {
  34. switch (item.caseStatus) {
  35. case 0:
  36. item.caseStatusName = '立案申请'
  37. break;
  38. case 1:
  39. item.caseStatusName = '待缴费'
  40. break;
  41. case 2:
  42. item.caseStatusName = '待缴费确认'
  43. break;
  44. case 3:
  45. item.caseStatusName = '待确认是否应诉'
  46. break;
  47. case 4:
  48. item.caseStatusName = '待确认证据'
  49. break;
  50. case 5:
  51. item.caseStatusName = '待确定是否指派仲裁员'
  52. break;
  53. case 6:
  54. item.caseStatusName = '待组庭'
  55. break;
  56. case 7:
  57. item.caseStatusName = '待组庭确定'
  58. break;
  59. case 8:
  60. item.caseStatusName = '待组庭审核'
  61. break;
  62. case 9:
  63. item.caseStatusName = '待选择仲裁方式'
  64. break;
  65. case 10:
  66. item.caseStatusName = '待开庭'
  67. break;
  68. case 11:
  69. item.caseStatusName = '待生成仲裁文书'
  70. break;
  71. case 12:
  72. item.caseStatusName = '待确认仲裁文书'
  73. break;
  74. case 13:
  75. item.caseStatusName = '待仲裁文书用印'
  76. break;
  77. case 14:
  78. item.caseStatusName = '待仲裁文书用印审核'
  79. break;
  80. case 15:
  81. item.caseStatusName = '待仲裁文书送达'
  82. break;
  83. case 16:
  84. item.caseStatusName = '待案件归档'
  85. break;
  86. }
  87. })
  88. })
  89. },
  90. // 触底
  91. onReachBottom() {
  92. if (this.caseList.length < 1) {
  93. return
  94. }
  95. let obj = {
  96. caseStatusList: [16],
  97. pageNum: this.pageNum,
  98. pageSize: this.pageSize
  99. }
  100. obj.pageNum = obj.pageNum + 1
  101. this.getList(obj)
  102. }
  103. },
  104. onLoad() {
  105. let obj = {
  106. caseStatusList: [16],
  107. pageNum: this.pageNum,
  108. pageSize: this.pageSize
  109. }
  110. this.getList(obj)
  111. }
  112. }
  113. </script>
  114. <style lang="scss">
  115. .handlecase {
  116. .caseList {
  117. // height: 360rpx;
  118. // background-color: #ffffff;
  119. // border-radius: 30rpx;
  120. // margin-top: 20rpx;
  121. }
  122. }
  123. </style>