Просмотр исходного кода

视频审理列表,跳转仲裁会议,代办案件接口参数修改

gyj 2 лет назад
Родитель
Сommit
f02f0a9e08
5 измененных файлов: 264 добавлений и 16 удалений
  1. 7
    0
      pages.json
  2. 10
    5
      pages/handlecase/index.vue
  3. 21
    0
      pages/im/component/imHome.vue
  4. 113
    0
      pages/im/component/imList.vue
  5. 113
    11
      pages/im/index.vue

+ 7
- 0
pages.json Просмотреть файл

@@ -195,6 +195,13 @@
195 195
 				"navigationBarTitleText": "权益告知书"
196 196
 				// "enablePullDownRefresh": false
197 197
 			}
198
+		},
199
+		{
200
+			"path": "pages/im/component/imHome",
201
+			"style": {
202
+				"navigationBarTitleText": "会议",
203
+				"enablePullDownRefresh": false
204
+			}
198 205
 		}
199 206
 	    
200 207
     ],

+ 10
- 5
pages/handlecase/index.vue Просмотреть файл

@@ -22,13 +22,16 @@
22 22
 			return {
23 23
 				caseList: [],
24 24
 				pageNum: 1,
25
-				pageSize: 10
25
+				pageSize: 10,
26
+				
26 27
 			}
27
-		},
28
+		},
29
+		
28 30
 		methods: {
29 31
 			getList(parms) {
30 32
 				respondentList(parms).then(res => {
31
-					this.caseList = res.rows;
33
+					// this.caseList = res.rows;
34
+					this.caseList = res.data;
32 35
 					this.caseList.forEach(item => {
33 36
 						switch (item.caseStatus) {
34 37
 							case 0:
@@ -93,7 +96,8 @@
93 96
 				}
94 97
 				let obj = {
95 98
 					pageNum: this.pageNum,
96
-					pageSize: this.pageSize
99
+					pageSize: this.pageSize,
100
+					caseStatus:4
97 101
 				}
98 102
 				obj.pageNum = obj.pageNum + 1
99 103
 				this.getList(obj)
@@ -102,7 +106,8 @@
102 106
 		onLoad() {
103 107
 			let obj = {
104 108
 				pageNum: this.pageNum,
105
-				pageSize: this.pageSize
109
+				pageSize: this.pageSize,
110
+				caseStatus:4
106 111
 			}
107 112
 			this.getList(obj)
108 113
 		}

+ 21
- 0
pages/im/component/imHome.vue Просмотреть файл

@@ -0,0 +1,21 @@
1
+<template>
2
+<view>
3
+  <web-view :src="imUrl"></web-view>
4
+</view>
5
+</template>
6
+
7
+<script>
8
+	export default {
9
+		data(){
10
+			return{
11
+				imUrl:''
12
+			}
13
+		},
14
+		onLoad(data) {
15
+			this.imUrl = decodeURIComponent(data.imUrl)
16
+		}
17
+	}
18
+</script>
19
+
20
+<style>
21
+</style>

+ 113
- 0
pages/im/component/imList.vue Просмотреть файл

@@ -0,0 +1,113 @@
1
+<template>
2
+	<view class="list" @tap="caseDetail">
3
+		<view class="listItem">
4
+			<view class="lable">
5
+				案件编号:
6
+			</view>
7
+			<view class="main">
8
+				{{defalutVal.caseNum}}
9
+			</view>
10
+		</view>
11
+		<view class="listItem">
12
+			<view class="lable">
13
+				申请人姓名:
14
+			</view>
15
+			<view class="main">
16
+				{{defalutVal.applicantName}}
17
+			</view>
18
+		</view>
19
+		<view class="listItem">
20
+			<view class="lable">
21
+				被申请人姓名:
22
+			</view>
23
+			<view class="main">
24
+				{{defalutVal.respondentName}}
25
+			</view>
26
+		</view>
27
+		<view class="listItem">
28
+			<view class="lable">
29
+				案件状态:
30
+			</view>
31
+			<view class="main">
32
+				{{defalutVal.caseStatusName}}
33
+			</view>
34
+		</view>
35
+		<view class="listItem">
36
+			<view class="lable">
37
+				案件房间号:
38
+			</view>
39
+			<view class="main">
40
+				{{defalutVal.roomId}}
41
+			</view>
42
+		</view>
43
+		<view class="listItem">
44
+			<view class="lable">
45
+				开庭时间:
46
+			</view>
47
+			<view class="main">
48
+				{{defalutVal.scheduleStartTime}}
49
+			</view>
50
+		</view>
51
+	</view>
52
+</template>
53
+
54
+<script>
55
+	export default{
56
+		data(){
57
+			return{
58
+				
59
+			}
60
+		},
61
+		props:{
62
+			defalutVal:{
63
+				type:Object,
64
+				default:() => {}
65
+			}
66
+		},
67
+		methods:{
68
+			// 在线开庭详情以及操作
69
+			caseDetail(){
70
+				let imUrl = encodeURIComponent(`https://txroom.xayunmei.com/#/home?name=${this.$store.state.user.name}&id=${this.defalutVal.id}&userId=${this.$store.state.user.userId}&roomId=${this.defalutVal.roomId}`)
71
+				console.log(this.$store.state.user)
72
+				uni.navigateTo({url:`/pages/im/component/imHome?imUrl=${imUrl}`})
73
+				}
74
+		}
75
+	}
76
+</script>
77
+
78
+<style lang="scss" scoped>
79
+	.list {
80
+		padding: 15rpx;
81
+		display: flex;
82
+		flex-direction: column;
83
+		background-color: #ffffff;
84
+		border-radius: 30rpx;
85
+		margin-top: 20rpx;
86
+		.listItem {
87
+			width: 100%;
88
+			display: flex;
89
+			height: 50rpx;
90
+
91
+			.lable {
92
+				width: 30%;
93
+			}
94
+
95
+			.main {
96
+				width: 60%;
97
+			}
98
+		}
99
+		.btn{
100
+			margin-top: 20rpx;
101
+			width: 100%;
102
+			display: flex;
103
+			justify-content: space-between;
104
+			.btnItem{
105
+				height: 50rpx;
106
+				background-color: #5395ff;
107
+				border-radius: 10rpx;
108
+				text-align: center;
109
+				line-height: 50rpx;
110
+			}
111
+		}
112
+	}
113
+</style>

+ 113
- 11
pages/im/index.vue Просмотреть файл

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