Files
Arbitrate-FrontendH5/src/api/room.js
T

65 lines
2.4 KiB
JavaScript
Raw Normal View History

2024-01-18 10:46:33 +08:00
import axios from "@/utils/request";
let baseUrlZC = 'https://api.xayunmei.com/zhongcaiapi';
2024-04-18 14:59:15 +08:00
let baseUrl = 'https://api.xayunmei.com/tiaojieapi';
// let baseUrl = 'http://121.40.189.20:6001';
2024-01-18 10:46:33 +08:00
// 开始云端录制
export function startVideo(data) {
let appType = sessionStorage.getItem('type');
if (appType == 'tiaojie') {
return axios.post(`${baseUrl}/video/openCloudRecording`, data);
} else {
return axios.post(`${baseUrlZC}/video/openCloudRecording`, data);
}
2024-01-18 10:46:33 +08:00
}
// 结束云端录制
export function stopVideo(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}`);
}
2024-01-18 10:46:33 +08:00
}
// 解散房间
export function destructionRoom(data) {
let appType = sessionStorage.getItem('type');
if (appType == 'tiaojie') {
return axios.post(`${baseUrl}/video/dissolveRoom`, data);
} else {
return axios.post(`${baseUrlZC}/video/dissolveRoom`, data);
}
2024-01-18 10:46:33 +08:00
}
// 根据html字符串转pdf并且和案件关联
export function 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);
}
2024-01-18 10:46:33 +08:00
}
// 根据userId查询该用户是否是秘书
2024-04-08 16:23:29 +08:00
export function secretaryRoleByUserId(userId, caseId) {
let appType = sessionStorage.getItem('type');
if (appType == 'tiaojie') {
2024-04-08 16:23:29 +08:00
return axios.get(`${baseUrl}/video/secretaryRoleByUserId?userId=${userId}&caseId=${caseId}`);
} else {
return axios.get(`${baseUrlZC}/video/secretaryRoleByUserId?userId=${userId}`);
}
2024-01-18 10:46:33 +08:00
}
2024-04-08 16:23:29 +08:00
// 获取证据列表
export function selectById(caseId) {
return axios.get(`${baseUrl}/caseApplication/selectById?id=${caseId}`);
}
// 根据案件id查询登录人是否为申请人被申请人
export function selectRoleMenuByCaseId(caseId) {
return axios.get(`${baseUrl}/video/selectRoleMenuByCaseId?caseId=${caseId}`);
}
2024-04-15 09:40:00 +08:00
// 保存onlyOffice文档
export function saveOnlyOfficeFile(data) {
return axios.post(`${baseUrl}/caseApplication/saveOnlyOfficeFile`, data);
}
//获取当前用户的操作权限
export function getMenuPermsByUser(caseId) {
return axios.get(`${baseUrl}/system/menu/getMenuPermsByUser`);
}