调解视频会议

This commit is contained in:
wangqiong
2024-01-20 17:32:07 +08:00
parent 215e2ef9aa
commit e2f61a0301
4 changed files with 14 additions and 12 deletions
+5 -5
View File
@@ -1,15 +1,15 @@
import axios from "@/utils/request"; import axios from "@/utils/request";
let baseUrl = 'https://api.xayunmei.com/zhongcaiapi'; // let baseUrl = 'https://api.xayunmei.com/zhongcaiapi';
// let baseUrl = 'http://121.40.189.20:8001' let baseUrl = 'http://121.40.189.20:6001'
// 获取usersig // 获取usersig
export function getUsersig(userId) { export function getUsersig(userId) {
return axios.get(`${baseUrl}/caseApplication/generateUserSign?userId=${userId}`); return axios.get(`${baseUrl}/video/generateUserSign?userId=${userId}`);
} }
// 获取房间号 // 获取房间号
export function getRoomId(caseId) { export function getRoomId(caseId) {
return axios.get(`${baseUrl}/caseApplication/createRoomId?caseId=${caseId}`); return axios.get(`${baseUrl}/video/createRoomId?caseId=${caseId}`);
} }
// 根据案件id查询相关信息 // 根据案件id查询相关信息
export function reserveConferenceList(caseId) { export function reserveConferenceList(caseId) {
return axios.get(`${baseUrl}/caseApplication/reserveConferenceList?caseId=${caseId}`); return axios.get(`${baseUrl}/video/reserveConferenceList?caseId=${caseId}`);
} }
+2 -2
View File
@@ -1,6 +1,6 @@
import axios from "@/utils/request"; import axios from "@/utils/request";
let baseUrl = 'https://api.xayunmei.com/zhongcaiapi'; // let baseUrl = 'https://api.xayunmei.com/zhongcaiapi';
// let baseUrl = 'http://121.40.189.20:8001' let baseUrl = 'http://121.40.189.20:6001'
// 开始云端录制 // 开始云端录制
export function startVideo(data) { export function startVideo(data) {
return axios.post(`${baseUrl}/video/openCloudRecording`,data); return axios.post(`${baseUrl}/video/openCloudRecording`,data);
+4 -2
View File
@@ -21,7 +21,8 @@ export default {
return { return {
roomId: null, roomId: null,
taskId: null, taskId: null,
roleFlag: false roleFlag: false,
caseId:""
}; };
}, },
methods: { methods: {
@@ -42,7 +43,7 @@ export default {
}, },
async startVideoFn() { async startVideoFn() {
await startVideo({ await startVideo({
caseId: 12865, caseId: this.caseId,
roomId: this.roomId roomId: this.roomId
}).then(res => { }).then(res => {
this.taskId = res.data.taskId this.taskId = res.data.taskId
@@ -57,6 +58,7 @@ export default {
}, },
async mounted() { async mounted() {
this.roomId = this.$route.query.roomId; this.roomId = this.$route.query.roomId;
this.caseId = this.$route.query.caseId;
let roleFlag = this.$route.query.flag; let roleFlag = this.$route.query.flag;
this.roleFlag = roleFlag; this.roleFlag = roleFlag;
if (roleFlag) { if (roleFlag) {
+3 -3
View File
@@ -273,9 +273,9 @@ export default {
message: "进房失败", message: "进房失败",
type: 'error' type: 'error'
}); });
this.$router.push({ // this.$router.push({
name: 'Home' // name: 'Home'
}) // })
} }
this.localStreamAsr = new ASR({ this.localStreamAsr = new ASR({
secretKey: 'INDrIXcT8YmomZBcsy0oNirnU0LTN4X7', secretKey: 'INDrIXcT8YmomZBcsy0oNirnU0LTN4X7',