视频会议解决无法判断仲裁还是调解bug

This commit is contained in:
wangqiong
2024-01-26 16:06:09 +08:00
parent e2f61a0301
commit b1c1cde3c9
20 changed files with 290 additions and 319 deletions
BIN
View File
Binary file not shown.
-1
View File
@@ -1 +0,0 @@
.homepage[data-v-f23aeb60]{width:100%;height:100vh;background-color:#302e2e;display:flex;align-items:center;justify-content:space-around}#video[data-v-f23aeb60]{width:40%;height:50%}.enterRoom[data-v-f23aeb60],.reservation[data-v-f23aeb60]{width:20%;height:50%;background-color:#1c1b1b}.title[data-v-f23aeb60]{width:100%;text-align:center;color:#3f1ab7;line-height:30px;font-size:18px;margin-bottom:20px}.enterForm[data-v-f23aeb60]{width:100%;display:flex;justify-content:center}.homepage[data-v-66f2b650]{width:100%;height:100vh;background-color:#302e2e;display:flex;flex-direction:column;align-items:center}#video[data-v-66f2b650]{width:90%;height:50%}.enterRoom[data-v-66f2b650]{margin-top:30px;width:90%;height:10%}.reservation[data-v-66f2b650]{width:20%;height:50%;background-color:#1c1b1b}.title[data-v-66f2b650]{width:100%;text-align:center;color:#3f1ab7;line-height:30px;font-size:18px;margin-bottom:20px}.enterForm[data-v-66f2b650]{width:100%;display:flex;justify-content:center}
-22
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>nouiroom</title><script defer="defer" src="/js/chunk-vendors.b16260de.js"></script><script defer="defer" src="/js/app.b526e971.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.b59bb92e.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but nouiroom doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>nouiroom</title><script defer="defer" src="/js/chunk-vendors.5307e452.js"></script><script defer="defer" src="/js/app.f09cb758.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.b59bb92e.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but nouiroom doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
-2
View File
@@ -1,2 +0,0 @@
"use strict";(self["webpackChunknouiroom"]=self["webpackChunknouiroom"]||[]).push([[104],{5104:function(e,o,t){t.r(o),t.d(o,{default:function(){return k}});var r=function(){var e=this,o=e._self._c;return o("div",{staticClass:"homepage"},[e.modileFlag?o("homepc"):e._e(),e.modileFlag?e._e():o("homePhone")],1)},s=[],i=function(){var e=this,o=e._self._c;return o("div",{staticClass:"homepage"},[o("div",{attrs:{id:"video"}}),o("div",{staticClass:"enterRoom"},[o("div",{staticClass:"title"},[e._v(" 仲裁会议室 ")]),o("div",{staticClass:"enterForm"},[o("el-form",{ref:"enterRoomFrom",attrs:{model:e.enterRoomFrom}},[o("el-form-item",[o("el-input",{attrs:{placeholder:"请输入房间号"},model:{value:e.enterRoomFrom.roomId,callback:function(o){e.$set(e.enterRoomFrom,"roomId",o)},expression:"enterRoomFrom.roomId"}},[o("template",{slot:"append"},[o("el-button",{attrs:{type:"primary",icon:"el-icon-right"},on:{click:e.enterRoom}},[e._v("进入")])],1)],2)],1)],1)],1)])])},l=[],n=(t(560),t(2268)),a=t(2799),m=t.n(a);let d=null;var u={name:"App",data(){return{formLabelAlign:{},enterRoomFrom:{},trtc:null,userId:null,userCode:null,caseId:null,roleFlag:!1}},methods:{async enterRoom(){this.roomId==this.enterRoomFrom.roomId?this.$router.push({name:"Room",query:{userId:this.userId,roomId:this.enterRoomFrom.roomId,flag:this.roleFlag,caseId:this.caseId,id:this.userCode}}):this.$message({message:"房间号不是对应案件的房间号",type:"error"})},submitRoom(){this.$refs["formLabelAlign"].validate((e=>{}))},reserveConferenceListFn(e){(0,n.Je)(e).then((e=>{this.userCode==e.data[0].userId?this.roleFlag=!0:this.roleFlag=!1}))}},async mounted(){let e=this.$route.query;this.userId=e.name,this.roomId=e.roomId,this.userCode=e.userId,this.caseId=e.id,this.caseId&&this.reserveConferenceListFn(this.caseId),d=m().create();const o={view:document.getElementById("video"),publish:!1};await d.startLocalVideo(o)}},h=u,c=t(1001),I=(0,c.Z)(h,i,l,!1,null,"f23aeb60",null),p=I.exports,v=function(){var e=this,o=e._self._c;return o("div",{staticClass:"homepage"},[o("div",{staticClass:"title"},[e._v(" 仲裁会议室 ")]),o("div",{attrs:{id:"video"}}),o("div",{staticClass:"enterRoom"},[o("el-form",{ref:"enterRoomFrom",attrs:{model:e.enterRoomFrom}},[o("el-form-item",[o("el-input",{attrs:{placeholder:"请输入房间号"},model:{value:e.enterRoomFrom.roomId,callback:function(o){e.$set(e.enterRoomFrom,"roomId",o)},expression:"enterRoomFrom.roomId"}},[o("template",{slot:"append"},[o("el-button",{attrs:{type:"primary",icon:"el-icon-right"},on:{click:e.enterRoom}},[e._v("进入")])],1)],2)],1)],1)],1)])},f=[];let F=null;var g={name:"App",data(){return{formLabelAlign:{},enterRoomFrom:{},trtc:null,userId:null,userCode:null,caseId:null,roleFlag:!1}},methods:{async enterRoom(){this.roomId==this.enterRoomFrom.roomId?this.$router.push({name:"Room",query:{userId:this.userId,roomId:this.enterRoomFrom.roomId,flag:this.roleFlag,caseId:this.caseId}}):this.$message({message:"房间号不是对应案件的房间号",type:"error"})},submitRoom(){this.$refs["formLabelAlign"].validate((e=>{}))},reserveConferenceListFn(e){(0,n.Je)(e).then((e=>{this.userCode==e.data[0].userId?this.roleFlag=!0:this.roleFlag=!1}))}},async mounted(){let e=this.$route.query;this.userId=e.name,this.roomId=e.roomId,this.userCode=e.userId,this.caseId=e.id,this.caseId&&this.reserveConferenceListFn(this.caseId),F=m().create();const o={view:document.getElementById("video"),publish:!1};await F.startLocalVideo(o)}},R=g,C=(0,c.Z)(R,v,f,!1,null,"66f2b650",null),b=C.exports,y=t(6097),_={name:"App",components:{homepc:p,homePhone:b},data(){return{modileFlag:!1}},methods:{},mounted(){this.modileFlag=(0,y.Qv)()}},L=_,$=(0,c.Z)(L,r,s,!1,null,"d34b2652",null),k=$.exports}}]);
//# sourceMappingURL=104.15b7bedb.js.map
-1
View File
File diff suppressed because one or more lines are too long
-2
View File
File diff suppressed because one or more lines are too long
-1
View File
File diff suppressed because one or more lines are too long
-17
View File
File diff suppressed because one or more lines are too long
-1
View File
File diff suppressed because one or more lines are too long
-2
View File
File diff suppressed because one or more lines are too long
-1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
View File
@@ -9,6 +9,9 @@
export default {
name: 'App',
components: {
},
created(){
}
}
</script>
+22 -5
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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>