仲裁视频会议H5

room.js 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import axios from "@/utils/request";
  2. let baseUrlZC = 'https://api.xayunmei.com/zhongcaiapi';
  3. let baseUrl = 'https://api.xayunmei.com/tiaojieapi';
  4. // let baseUrl = 'http://121.40.189.20:6001';
  5. // 开始云端录制
  6. export function startVideo(data) {
  7. let appType = sessionStorage.getItem('type');
  8. if (appType == 'tiaojie') {
  9. return axios.post(`${baseUrl}/video/openCloudRecording`, data);
  10. } else {
  11. return axios.post(`${baseUrlZC}/video/openCloudRecording`, data);
  12. }
  13. }
  14. // 结束云端录制
  15. export function stopVideo(data) {
  16. let appType = sessionStorage.getItem('type');
  17. if (appType == 'tiaojie') {
  18. return axios.post(`${baseUrl}/video/closeDeleteCloudRecording?taskId=${data}`);
  19. } else {
  20. return axios.post(`${baseUrlZC}/video/closeDeleteCloudRecording?taskId=${data}`);
  21. }
  22. }
  23. // 解散房间
  24. export function destructionRoom(data) {
  25. let appType = sessionStorage.getItem('type');
  26. if (appType == 'tiaojie') {
  27. return axios.post(`${baseUrl}/video/dissolveRoom`, data);
  28. } else {
  29. return axios.post(`${baseUrlZC}/video/dissolveRoom`, data);
  30. }
  31. }
  32. // 根据html字符串转pdf并且和案件关联
  33. export function htmlToPDF(data) {
  34. let appType = sessionStorage.getItem('type');
  35. if (appType == 'tiaojie') {
  36. return axios.post(`${baseUrl}/video/htmlToPDF`, data);
  37. } else {
  38. return axios.post(`${baseUrlZC}/video/htmlToPDF`, data);
  39. }
  40. }
  41. // 根据userId查询该用户是否是秘书
  42. export function secretaryRoleByUserId(userId, caseId) {
  43. let appType = sessionStorage.getItem('type');
  44. if (appType == 'tiaojie') {
  45. return axios.get(`${baseUrl}/video/secretaryRoleByUserId?userId=${userId}&caseId=${caseId}`);
  46. } else {
  47. return axios.get(`${baseUrlZC}/video/secretaryRoleByUserId?userId=${userId}`);
  48. }
  49. }
  50. // 获取证据列表
  51. export function selectById(caseId) {
  52. return axios.get(`${baseUrl}/caseApplication/selectById?id=${caseId}`);
  53. }
  54. // 根据案件id查询登录人是否为申请人被申请人
  55. export function selectRoleMenuByCaseId(caseId) {
  56. return axios.get(`${baseUrl}/video/selectRoleMenuByCaseId?caseId=${caseId}`);
  57. }
  58. // 保存onlyOffice文档
  59. export function saveOnlyOfficeFile(data) {
  60. return axios.post(`${baseUrl}/caseApplication/saveOnlyOfficeFile`, data);
  61. }
  62. //获取当前用户的操作权限
  63. export function getMenuPermsByUser(caseId) {
  64. return axios.get(`${baseUrl}/system/menu/getMenuPermsByUser`);
  65. }