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