Files
miniapp/pages/handlecase/index.vue
T

139 lines
3.0 KiB
Vue
Raw Normal View History

2023-09-14 09:42:52 +08:00
<template>
<view class="handlecase">
2023-09-14 18:11:50 +08:00
<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :key="index"></List>
2023-09-21 14:32:29 +08:00
<view class="emptyBox" v-if="caseList.length == 0">
<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
</view>
2023-09-14 09:42:52 +08:00
</view>
</template>
<script>
import List from './component/list.vue'
2023-09-26 17:53:59 +08:00
import {
respondentList
} from '../../api/handlecase/index.js'
2023-09-21 14:32:29 +08:00
import LuanqingEmpty from "@/components/luanqing-empty.vue"
2023-09-14 09:42:52 +08:00
export default {
components: {
List,
2023-09-21 14:32:29 +08:00
'luanqing-empty': LuanqingEmpty,
2023-09-14 09:42:52 +08:00
},
data() {
return {
2023-09-26 17:53:59 +08:00
caseList: [],
pageNum: 1,
pageSize: 10,
2023-09-14 09:42:52 +08:00
}
2023-12-26 17:14:58 +08:00
},
2023-09-14 09:42:52 +08:00
methods: {
2023-09-26 17:53:59 +08:00
getList(parms) {
respondentList(parms).then(res => {
// this.caseList = res.rows;
2023-12-26 17:14:58 +08:00
if(res.data){
this.caseList = res.data;
}else{
this.caseList = []
}
2023-09-26 17:53:59 +08:00
this.caseList.forEach(item => {
switch (item.caseStatus) {
2023-09-14 18:11:50 +08:00
case 0:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '立案申请'
2023-09-14 18:11:50 +08:00
break;
case 1:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待缴费'
2023-09-14 18:11:50 +08:00
break;
case 2:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待缴费确认'
2023-09-14 18:11:50 +08:00
break;
case 3:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待确认是否应诉'
2023-09-14 18:11:50 +08:00
break;
case 4:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待确认证据'
2023-09-14 18:11:50 +08:00
break;
case 5:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待确定是否指派仲裁员'
2023-09-14 18:11:50 +08:00
break;
case 6:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待组庭'
2023-09-14 18:11:50 +08:00
break;
case 7:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待组庭确定'
2023-09-14 18:11:50 +08:00
break;
case 8:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待组庭审核'
2023-09-14 18:11:50 +08:00
break;
case 9:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待选择仲裁方式'
2023-09-14 18:11:50 +08:00
break;
case 10:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待开庭'
2023-09-14 18:11:50 +08:00
break;
case 11:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待生成仲裁文书'
2023-09-14 18:11:50 +08:00
break;
case 12:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待确认仲裁文书'
2023-09-14 18:11:50 +08:00
break;
case 13:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待仲裁文书用印'
2023-09-14 18:11:50 +08:00
break;
case 14:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待仲裁文书用印审核'
break;
2023-09-14 18:11:50 +08:00
case 15:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待仲裁文书送达'
break;
2023-09-14 18:11:50 +08:00
case 16:
2023-09-26 17:53:59 +08:00
item.caseStatusName = '待案件归档'
break;
2023-09-14 18:11:50 +08:00
}
})
2023-09-14 09:42:52 +08:00
})
2023-09-21 14:32:29 +08:00
},
// 触底
onReachBottom() {
2023-09-26 17:53:59 +08:00
if (this.caseList.length < 1) {
2023-09-21 14:32:29 +08:00
return
}
let obj = {
2023-09-26 17:53:59 +08:00
pageNum: this.pageNum,
pageSize: this.pageSize,
caseStatus:4
2023-09-21 14:32:29 +08:00
}
obj.pageNum = obj.pageNum + 1
this.getList(obj)
2023-09-14 09:42:52 +08:00
}
2023-12-26 17:14:58 +08:00
},
onShow() {
let obj = {
pageNum: this.pageNum,
pageSize: this.pageSize,
2023-12-26 17:14:58 +08:00
caseStatus:4
}
this.getList(obj)
},
// onLoad() {
// let obj = {
// pageNum: this.pageNum,
// pageSize: this.pageSize,
// caseStatus:4
// }
// this.getList(obj)
// }
2023-09-14 09:42:52 +08:00
}
</script>
<style lang="scss">
2023-09-26 17:53:59 +08:00
.handlecase {
.caseList {
2023-09-14 09:42:52 +08:00
// height: 360rpx;
// background-color: #ffffff;
// border-radius: 30rpx;
// margin-top: 20rpx;
}
}
</style>