index.vue 2.8KB

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