|
|
@@ -35,20 +35,21 @@ export default {
|
|
35
|
35
|
},
|
|
36
|
36
|
methods: {
|
|
37
|
37
|
async enterRoom() {
|
|
38
|
|
- if (this.roomId != this.enterRoomFrom.roomId) {
|
|
39
|
|
- this.$message({
|
|
40
|
|
- message: "房间号不是对应案件的房间号",
|
|
41
|
|
- type: "error"
|
|
42
|
|
- });
|
|
43
|
|
- return;
|
|
44
|
|
- }
|
|
|
38
|
+ // if (this.roomId != this.enterRoomFrom.roomId) {
|
|
|
39
|
+ // this.$message({
|
|
|
40
|
+ // message: "房间号不是对应案件的房间号",
|
|
|
41
|
+ // type: 'error'
|
|
|
42
|
+ // });
|
|
|
43
|
+ // return
|
|
|
44
|
+ // }
|
|
45
|
45
|
this.$router.push({
|
|
46
|
46
|
name: "Room",
|
|
47
|
47
|
query: {
|
|
48
|
48
|
userId: this.userId,
|
|
49
|
|
- roomId: this.enterRoomFrom.roomId,
|
|
|
49
|
+ roomId: this.roomId,
|
|
50
|
50
|
flag: this.roleFlag,
|
|
51
|
|
- caseId: this.caseId
|
|
|
51
|
+ caseId: this.caseId,
|
|
|
52
|
+ id: this.userCode
|
|
52
|
53
|
}
|
|
53
|
54
|
});
|
|
54
|
55
|
},
|
|
|
@@ -58,13 +59,13 @@ export default {
|
|
58
|
59
|
// 根据案件id查询主持人信息
|
|
59
|
60
|
async reserveConferenceListFn(data) {
|
|
60
|
61
|
await reserveConferenceList(data).then(res => {
|
|
61
|
|
- if (res.data.length > 1) {
|
|
|
62
|
+ if (res.data.length >= 1) {
|
|
62
|
63
|
if (this.userCode == res.data[0].userId) {
|
|
63
|
64
|
this.roleFlag = true;
|
|
64
|
65
|
} else {
|
|
65
|
66
|
this.roleFlag = false;
|
|
66
|
67
|
}
|
|
67
|
|
- } else {
|
|
|
68
|
+ }else{
|
|
68
|
69
|
this.roleFlag = false;
|
|
69
|
70
|
}
|
|
70
|
71
|
});
|
|
|
@@ -76,7 +77,6 @@ export default {
|
|
76
|
77
|
this.roomId = routeParams.roomId;
|
|
77
|
78
|
this.userCode = routeParams.userId;
|
|
78
|
79
|
this.caseId = routeParams.id;
|
|
79
|
|
- sessionStorage.setItem('type',appType);
|
|
80
|
80
|
if (this.caseId) {
|
|
81
|
81
|
await this.reserveConferenceListFn(this.caseId);
|
|
82
|
82
|
await this.enterRoom();
|