视频会议解决无法判断仲裁还是调解bug
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
},
|
||||
created(){
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
+22
-5
@@ -1,15 +1,32 @@
|
||||
import axios from "@/utils/request";
|
||||
// let baseUrl = 'https://api.xayunmei.com/zhongcaiapi';
|
||||
let baseUrl = 'http://121.40.189.20:6001'
|
||||
let baseUrlZc = 'https://api.xayunmei.com/zhongcaiapi';
|
||||
let baseUrl = 'https://api.xayunmei.com/tiaojieapitest';
|
||||
// let baseUrl = 'http://121.40.189.20:6001';
|
||||
// 获取usersig
|
||||
export function getUsersig(userId) {
|
||||
return axios.get(`${baseUrl}/video/generateUserSign?userId=${userId}`);
|
||||
let appType = sessionStorage.getItem('type');
|
||||
if (appType == 'tiaojie') {
|
||||
return axios.get(`${baseUrl}/caseApplication/generateUserSign?userId=${userId}`);
|
||||
} else {
|
||||
return axios.get(`${baseUrlZc}/caseApplication/generateUserSign?userId=${userId}`);
|
||||
}
|
||||
}
|
||||
// 获取房间号
|
||||
export function getRoomId(caseId) {
|
||||
return axios.get(`${baseUrl}/video/createRoomId?caseId=${caseId}`);
|
||||
let appType = sessionStorage.getItem('type');
|
||||
if (appType == 'tiaojie') {
|
||||
return axios.get(`${baseUrl}/caseApplication/createRoomId?caseId=${caseId}`);
|
||||
} else {
|
||||
return axios.get(`${baseUrlZc}/caseApplication/createRoomId?caseId=${caseId}`);
|
||||
}
|
||||
}
|
||||
// 根据案件id查询相关信息
|
||||
export function reserveConferenceList(caseId) {
|
||||
return axios.get(`${baseUrl}/video/reserveConferenceList?caseId=${caseId}`);
|
||||
let appType = sessionStorage.getItem('type');
|
||||
if (appType == 'tiaojie') {
|
||||
return axios.get(`${baseUrl}/caseApplication/reserveConferenceList?caseId=${caseId}`);
|
||||
} else {
|
||||
return axios.get(`${baseUrlZc}/caseApplication/reserveConferenceList?caseId=${caseId}`);
|
||||
}
|
||||
|
||||
}
|
||||
+33
-7
@@ -1,23 +1,49 @@
|
||||
import axios from "@/utils/request";
|
||||
// let baseUrl = 'https://api.xayunmei.com/zhongcaiapi';
|
||||
let baseUrl = 'http://121.40.189.20:6001'
|
||||
let baseUrlZC = 'https://api.xayunmei.com/zhongcaiapi';
|
||||
let baseUrl = 'https://api.xayunmei.com/tiaojieapitest';
|
||||
// let baseUrl = 'http://121.40.189.20:6001';
|
||||
// 开始云端录制
|
||||
export function startVideo(data) {
|
||||
return axios.post(`${baseUrl}/video/openCloudRecording`,data);
|
||||
let appType = sessionStorage.getItem('type');
|
||||
if (appType == 'tiaojie') {
|
||||
return axios.post(`${baseUrl}/video/openCloudRecording`, data);
|
||||
} else {
|
||||
return axios.post(`${baseUrlZC}/video/openCloudRecording`, data);
|
||||
}
|
||||
}
|
||||
// 结束云端录制
|
||||
export function stopVideo(data) {
|
||||
return axios.post(`${baseUrl}/video/closeDeleteCloudRecording?taskId=${data}`);
|
||||
let appType = sessionStorage.getItem('type');
|
||||
if (appType == 'tiaojie') {
|
||||
return axios.post(`${baseUrl}/video/closeDeleteCloudRecording?taskId=${data}`);
|
||||
} else {
|
||||
return axios.post(`${baseUrlZC}/video/closeDeleteCloudRecording?taskId=${data}`);
|
||||
}
|
||||
}
|
||||
// 解散房间
|
||||
export function destructionRoom(data) {
|
||||
return axios.post(`${baseUrl}/video/dissolveRoom`,data);
|
||||
let appType = sessionStorage.getItem('type');
|
||||
if (appType == 'tiaojie') {
|
||||
return axios.post(`${baseUrl}/video/dissolveRoom`, data);
|
||||
} else {
|
||||
return axios.post(`${baseUrlZC}/video/dissolveRoom`, data);
|
||||
}
|
||||
}
|
||||
// 根据html字符串转pdf并且和案件关联
|
||||
export function htmlToPDF(data) {
|
||||
return axios.post(`${baseUrl}/video/htmlToPDF`,data);
|
||||
let appType = sessionStorage.getItem('type');
|
||||
if (appType == 'tiaojie') {
|
||||
return axios.post(`${baseUrl}/video/htmlToPDF`, data);
|
||||
} else {
|
||||
return axios.post(`${baseUrlZC}/video/htmlToPDF`, data);
|
||||
}
|
||||
}
|
||||
// 根据userId查询该用户是否是秘书
|
||||
export function secretaryRoleByUserId(userId) {
|
||||
return axios.get(`${baseUrl}/video/secretaryRoleByUserId?userId=${userId}`);
|
||||
let appType = sessionStorage.getItem('type');
|
||||
if (appType == 'tiaojie') {
|
||||
return axios.get(`${baseUrl}/video/secretaryRoleByUserId?userId=${userId}`);
|
||||
} else {
|
||||
return axios.get(`${baseUrlZC}/video/secretaryRoleByUserId?userId=${userId}`);
|
||||
}
|
||||
}
|
||||
|
||||
+102
-101
@@ -1,134 +1,135 @@
|
||||
<template>
|
||||
<div class="homepage">
|
||||
<div class="title">
|
||||
仲裁会议室
|
||||
</div>
|
||||
<div id="video">
|
||||
|
||||
</div>
|
||||
<div class="enterRoom">
|
||||
<el-form :model="enterRoomFrom" ref="enterRoomFrom">
|
||||
<el-form-item>
|
||||
<el-input placeholder="请输入房间号" v-model="enterRoomFrom.roomId">
|
||||
<template slot="append"><el-button type="primary" @click="enterRoom"
|
||||
icon="el-icon-right">进入</el-button></template></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="homepage">
|
||||
<div class="title">仲裁会议室</div>
|
||||
<div id="video"></div>
|
||||
<div class="enterRoom">
|
||||
<el-form :model="enterRoomFrom" ref="enterRoomFrom">
|
||||
<el-form-item>
|
||||
<el-input placeholder="请输入房间号" v-model="enterRoomFrom.roomId">
|
||||
<template slot="append">
|
||||
<el-button type="primary" @click="enterRoom" icon="el-icon-right">进入</el-button>
|
||||
</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reserveConferenceList } from '@/api/home.js'
|
||||
import TRTC from 'trtc-sdk-v5';
|
||||
import { reserveConferenceList } from "@/api/home.js";
|
||||
import TRTC from "trtc-sdk-v5";
|
||||
let trtc = null;
|
||||
export default {
|
||||
name: 'App',
|
||||
data() {
|
||||
return {
|
||||
formLabelAlign: {},
|
||||
enterRoomFrom: {},
|
||||
trtc: null,
|
||||
userId: null,
|
||||
userCode: null,
|
||||
caseId: null,
|
||||
roleFlag: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async enterRoom() {
|
||||
if (this.roomId != this.enterRoomFrom.roomId) {
|
||||
this.$message({
|
||||
message: "房间号不是对应案件的房间号",
|
||||
type: 'error'
|
||||
});
|
||||
return
|
||||
}
|
||||
this.$router.push({
|
||||
name: 'Room',
|
||||
query: {
|
||||
userId: this.userId,
|
||||
roomId: this.enterRoomFrom.roomId,
|
||||
flag: this.roleFlag,
|
||||
caseId: this.caseId
|
||||
}
|
||||
})
|
||||
},
|
||||
submitRoom() {
|
||||
this.$refs["formLabelAlign"].validate((valid) => {
|
||||
|
||||
})
|
||||
},
|
||||
// 根据案件id查询主持人信息
|
||||
reserveConferenceListFn(data) {
|
||||
reserveConferenceList(data).then(res => {
|
||||
if (this.userCode == res.data[0].userId) {
|
||||
this.roleFlag = true;
|
||||
} else {
|
||||
this.roleFlag = false;
|
||||
}
|
||||
})
|
||||
name: "App",
|
||||
data() {
|
||||
return {
|
||||
formLabelAlign: {},
|
||||
enterRoomFrom: {},
|
||||
trtc: null,
|
||||
userId: null,
|
||||
userCode: null,
|
||||
caseId: null,
|
||||
roleFlag: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async enterRoom() {
|
||||
if (this.roomId != this.enterRoomFrom.roomId) {
|
||||
this.$message({
|
||||
message: "房间号不是对应案件的房间号",
|
||||
type: "error"
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.$router.push({
|
||||
name: "Room",
|
||||
query: {
|
||||
userId: this.userId,
|
||||
roomId: this.enterRoomFrom.roomId,
|
||||
flag: this.roleFlag,
|
||||
caseId: this.caseId
|
||||
}
|
||||
});
|
||||
},
|
||||
async mounted() {
|
||||
let routeParams = this.$route.query;
|
||||
this.userId = routeParams.name;
|
||||
this.roomId = routeParams.roomId;
|
||||
this.userCode = routeParams.userId;
|
||||
this.caseId = routeParams.id;
|
||||
if (this.caseId) {
|
||||
this.reserveConferenceListFn(this.caseId);
|
||||
}
|
||||
trtc = TRTC.create()
|
||||
const config = {
|
||||
view: document.getElementById('video'),
|
||||
publish: false
|
||||
}
|
||||
await trtc.startLocalVideo(config);
|
||||
submitRoom() {
|
||||
this.$refs["formLabelAlign"].validate(valid => {});
|
||||
},
|
||||
// 根据案件id查询主持人信息
|
||||
async reserveConferenceListFn(data) {
|
||||
await reserveConferenceList(data).then(res => {
|
||||
if (res.data.length > 1) {
|
||||
if (this.userCode == res.data[0].userId) {
|
||||
this.roleFlag = true;
|
||||
} else {
|
||||
this.roleFlag = false;
|
||||
}
|
||||
} else {
|
||||
this.roleFlag = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
let routeParams = this.$route.query;
|
||||
this.userId = routeParams.name;
|
||||
this.roomId = routeParams.roomId;
|
||||
this.userCode = routeParams.userId;
|
||||
this.caseId = routeParams.id;
|
||||
sessionStorage.setItem('type',appType);
|
||||
if (this.caseId) {
|
||||
await this.reserveConferenceListFn(this.caseId);
|
||||
}
|
||||
trtc = TRTC.create();
|
||||
const config = {
|
||||
view: document.getElementById("video"),
|
||||
publish: false
|
||||
};
|
||||
await trtc.startLocalVideo(config);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.homepage {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #302e2e;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #302e2e;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#video {
|
||||
width: 90%;
|
||||
height: 50%;
|
||||
width: 90%;
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
.enterRoom {
|
||||
margin-top: 30px;
|
||||
width: 90%;
|
||||
height: 10%;
|
||||
margin-top: 30px;
|
||||
width: 90%;
|
||||
height: 10%;
|
||||
}
|
||||
|
||||
.reservation {
|
||||
width: 20%;
|
||||
height: 50%;
|
||||
background-color: #1c1b1b;
|
||||
width: 20%;
|
||||
height: 50%;
|
||||
background-color: #1c1b1b;
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #3f1ab7;
|
||||
line-height: 30px;
|
||||
font-size: 18px;
|
||||
margin-bottom: 20px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #3f1ab7;
|
||||
line-height: 30px;
|
||||
font-size: 18px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.enterForm {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
+105
-105
@@ -1,138 +1,138 @@
|
||||
<template>
|
||||
<div class="homepage">
|
||||
<div id="video">
|
||||
|
||||
</div>
|
||||
<div class="enterRoom">
|
||||
<div class="title">
|
||||
仲裁会议室
|
||||
</div>
|
||||
<div class="enterForm">
|
||||
<el-form :model="enterRoomFrom" ref="enterRoomFrom">
|
||||
<el-form-item>
|
||||
<el-input placeholder="请输入房间号" v-model="enterRoomFrom.roomId">
|
||||
<template slot="append"><el-button type="primary" @click="enterRoom"
|
||||
icon="el-icon-right">进入</el-button></template></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="homepage">
|
||||
<div id="video"></div>
|
||||
<div class="enterRoom">
|
||||
<div class="title">仲裁会议室</div>
|
||||
<div class="enterForm">
|
||||
<el-form :model="enterRoomFrom" ref="enterRoomFrom">
|
||||
<el-form-item>
|
||||
<el-input placeholder="请输入房间号" v-model="enterRoomFrom.roomId">
|
||||
<template slot="append">
|
||||
<el-button type="primary" @click="enterRoom" icon="el-icon-right">进入</el-button>
|
||||
</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reserveConferenceList } from '@/api/home.js'
|
||||
import TRTC from 'trtc-sdk-v5';
|
||||
import { reserveConferenceList } from "@/api/home.js";
|
||||
import TRTC from "trtc-sdk-v5";
|
||||
let trtc = null;
|
||||
export default {
|
||||
name: 'App',
|
||||
data() {
|
||||
return {
|
||||
formLabelAlign: {},
|
||||
enterRoomFrom: {},
|
||||
trtc: null,
|
||||
userId: null,
|
||||
userCode: null,
|
||||
caseId: null,
|
||||
roleFlag: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async enterRoom() {
|
||||
// if (this.roomId != this.enterRoomFrom.roomId) {
|
||||
// this.$message({
|
||||
// message: "房间号不是对应案件的房间号",
|
||||
// type: 'error'
|
||||
// });
|
||||
// return
|
||||
// }
|
||||
this.$router.push({
|
||||
name: 'Room',
|
||||
query: {
|
||||
userId: this.userId,
|
||||
roomId: this.roomId,
|
||||
flag: this.roleFlag,
|
||||
caseId: this.caseId,
|
||||
id: this.userCode
|
||||
}
|
||||
})
|
||||
},
|
||||
submitRoom() {
|
||||
this.$refs["formLabelAlign"].validate((valid) => {
|
||||
|
||||
})
|
||||
},
|
||||
// 根据案件id查询主持人信息
|
||||
async reserveConferenceListFn(data) {
|
||||
await reserveConferenceList(data).then(res => {
|
||||
if (this.userCode == res.data[0].userId) {
|
||||
this.roleFlag = true;
|
||||
} else {
|
||||
this.roleFlag = false;
|
||||
}
|
||||
})
|
||||
name: "App",
|
||||
data() {
|
||||
return {
|
||||
formLabelAlign: {},
|
||||
enterRoomFrom: {},
|
||||
trtc: null,
|
||||
userId: null,
|
||||
userCode: null,
|
||||
caseId: null,
|
||||
roleFlag: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async enterRoom() {
|
||||
// if (this.roomId != this.enterRoomFrom.roomId) {
|
||||
// this.$message({
|
||||
// message: "房间号不是对应案件的房间号",
|
||||
// type: 'error'
|
||||
// });
|
||||
// return
|
||||
// }
|
||||
this.$router.push({
|
||||
name: "Room",
|
||||
query: {
|
||||
userId: this.userId,
|
||||
roomId: this.roomId,
|
||||
flag: this.roleFlag,
|
||||
caseId: this.caseId,
|
||||
id: this.userCode
|
||||
}
|
||||
});
|
||||
},
|
||||
async mounted() {
|
||||
let routeParams = this.$route.query;
|
||||
this.userId = routeParams.name;
|
||||
this.roomId = routeParams.roomId;
|
||||
this.userCode = routeParams.userId;
|
||||
this.caseId = routeParams.id;
|
||||
if (this.caseId) {
|
||||
await this.reserveConferenceListFn(this.caseId);
|
||||
await this.enterRoom()
|
||||
}
|
||||
trtc = TRTC.create()
|
||||
const config = {
|
||||
view: document.getElementById('video'),
|
||||
publish: false
|
||||
}
|
||||
await trtc.startLocalVideo(config);
|
||||
submitRoom() {
|
||||
this.$refs["formLabelAlign"].validate(valid => {});
|
||||
},
|
||||
// 根据案件id查询主持人信息
|
||||
async reserveConferenceListFn(data) {
|
||||
await reserveConferenceList(data).then(res => {
|
||||
if (res.data.length > 1) {
|
||||
if (this.userCode == res.data[0].userId) {
|
||||
this.roleFlag = true;
|
||||
} else {
|
||||
this.roleFlag = false;
|
||||
}
|
||||
}else{
|
||||
this.roleFlag = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
let routeParams = this.$route.query;
|
||||
this.userId = routeParams.name;
|
||||
this.roomId = routeParams.roomId;
|
||||
this.userCode = routeParams.userId;
|
||||
this.caseId = routeParams.id;
|
||||
if (this.caseId) {
|
||||
await this.reserveConferenceListFn(this.caseId);
|
||||
await this.enterRoom();
|
||||
}
|
||||
trtc = TRTC.create();
|
||||
const config = {
|
||||
view: document.getElementById("video"),
|
||||
publish: false
|
||||
};
|
||||
await trtc.startLocalVideo(config);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.homepage {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #302e2e;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #302e2e;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
#video {
|
||||
width: 40%;
|
||||
height: 50%;
|
||||
width: 40%;
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
.enterRoom {
|
||||
width: 20%;
|
||||
height: 50%;
|
||||
background-color: #1c1b1b;
|
||||
width: 20%;
|
||||
height: 50%;
|
||||
background-color: #1c1b1b;
|
||||
}
|
||||
|
||||
.reservation {
|
||||
width: 20%;
|
||||
height: 50%;
|
||||
background-color: #1c1b1b;
|
||||
width: 20%;
|
||||
height: 50%;
|
||||
background-color: #1c1b1b;
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #3f1ab7;
|
||||
line-height: 30px;
|
||||
font-size: 18px;
|
||||
margin-bottom: 20px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #3f1ab7;
|
||||
line-height: 30px;
|
||||
font-size: 18px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.enterForm {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
+24
-24
@@ -4,38 +4,38 @@
|
||||
* @LastEditTime: 2022-03-29 17:01:32
|
||||
-->
|
||||
<template>
|
||||
<div class="homepage">
|
||||
<homepc v-if="modileFlag"></homepc>
|
||||
<homePhone v-if="!modileFlag"></homePhone>
|
||||
</div>
|
||||
<div class="homepage">
|
||||
<homepc v-if="modileFlag"></homepc>
|
||||
<homePhone v-if="!modileFlag"></homePhone>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import homepc from '@/components/homepc.vue';
|
||||
import homePhone from '@/components/homeh5.vue';
|
||||
import { getModile } from '@/utils/utils'
|
||||
import homepc from "@/components/homepc.vue";
|
||||
import homePhone from "@/components/homeh5.vue";
|
||||
import { getModile } from "@/utils/utils";
|
||||
export default {
|
||||
name: 'App',
|
||||
components:{
|
||||
homepc,
|
||||
homePhone
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
modileFlag:false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.modileFlag = getModile()
|
||||
},
|
||||
name: "App",
|
||||
components: {
|
||||
homepc,
|
||||
homePhone
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
modileFlag: false
|
||||
};
|
||||
},
|
||||
methods: {},
|
||||
created() {
|
||||
this.modileFlag = getModile();
|
||||
let routeParams = this.$route.query;
|
||||
let appType = routeParams.type;
|
||||
sessionStorage.setItem("type", appType);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user