index.vue 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. parms.mediationMethod = 1;
  99. delete parms.caseStatus;
  100. caseApplicationTj(parms).then(res => {
  101. // this.caseList = res.rows;
  102. if (res.rows) {
  103. this.caseList = res.rows;
  104. } else {
  105. this.caseList = []
  106. }
  107. })
  108. }
  109. },
  110. // 触底
  111. onReachBottom() {
  112. if (this.caseList.length < 1) {
  113. return
  114. }
  115. let obj = {
  116. pageNum: this.pageNum,
  117. pageSize: this.pageSize,
  118. caseStatus: 8
  119. }
  120. obj.pageNum = obj.pageNum + 1
  121. this.getList(obj)
  122. }
  123. },
  124. onLoad() {
  125. this.sysType = uni.getStorageSync('sysType');
  126. let obj = {
  127. pageNum: this.pageNum,
  128. pageSize: this.pageSize,
  129. caseStatus: 8
  130. }
  131. this.getList(obj)
  132. }
  133. // onLoad: function() {
  134. // this.name = this.$store.state.user.name;
  135. // this.sendImg = `https://txroom.xayunmei.com`
  136. // // this.sendImg = `http://localhost:8080/#/?name=${this.name}`
  137. // },
  138. }
  139. </script>
  140. <style lang="scss" scoped>
  141. </style>