From 1479708eb6a18e1f3941916eabc44fcaaf48cc35 Mon Sep 17 00:00:00 2001 From: hanchaobo Date: Tue, 14 May 2024 17:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=B2=E8=A3=81=E8=A7=86=E9=A2=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home.js | 7 +- src/views/components/footerPhone.vue | 6 +- src/views/components/roomFooter.vue | 4 +- src/views/room.vue | 156 ++++++++++++++++++++------- vue.config.js | 2 +- 5 files changed, 130 insertions(+), 45 deletions(-) diff --git a/src/api/home.js b/src/api/home.js index f29d56a9..c72418c8 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -48,5 +48,10 @@ export function fileList(caseAppliId) { } // 确定会议结果 export function confirmMeetingResult(data) { - return axios.post(`tjformal/caseApplication/confirmMeetingResult`, data); + let appType = sessionStorage.getItem('type'); + if (appType == 'tiaojie') { + return axios.post(`tjformal/caseApplication/confirmMeetingResult`, data); + } else { + return axios.post(`zhongcai/caseApplication/confirmMeetingResult`, data); + } } diff --git a/src/views/components/footerPhone.vue b/src/views/components/footerPhone.vue index bce72a05..5f7a3db0 100644 --- a/src/views/components/footerPhone.vue +++ b/src/views/components/footerPhone.vue @@ -16,7 +16,7 @@ -->
- 调解 + {{ appType == "tiaojie" ? "调解" : "仲裁" }}
退出 @@ -38,7 +38,8 @@ export default { roomId: null, taskId: null, roleFlag: false, - caseId:"" + caseId:"", + appType:"tiaojie" }; }, methods: { @@ -102,6 +103,7 @@ export default { }, }, async mounted() { + this.appType = sessionStorage.getItem('type'); this.roomId = this.$route.query.roomId; let roleFlag = this.$route.query.flag; this.caseId = this.$route.query.caseId; diff --git a/src/views/components/roomFooter.vue b/src/views/components/roomFooter.vue index e21b7ca9..d2d0914f 100644 --- a/src/views/components/roomFooter.vue +++ b/src/views/components/roomFooter.vue @@ -19,7 +19,7 @@
- 调解 + {{ appType == "tiaojie" ? "调解" : "仲裁" }}
@@ -37,6 +37,7 @@ export default { taskId: null, roleFlag: true, caseId: "", + appType:"tiaojie" }; }, methods: { @@ -100,6 +101,7 @@ export default { }, }, async mounted() { + this.appType = sessionStorage.getItem('type'); this.roomId = this.$route.query.roomId; this.caseId = this.$route.query.caseId; let roleFlag = this.$route.query.flag; diff --git a/src/views/room.vue b/src/views/room.vue index c209b7ec..224286c6 100644 --- a/src/views/room.vue +++ b/src/views/room.vue @@ -67,14 +67,16 @@ :on-change="beforeUpload" :on-success="handlSuccess" :file-list="fileList" v-if="appFlag"> 申请人上传证据 - + 被申请人上传证据 - - 上传调解书 + + + {{ appType == "tiaojie" ? "上传调解书" : "上传裁决书" }}
@@ -93,7 +95,7 @@
-
调解书:
+
{{ appType == "tiaojie" ? "调解书" : "裁决书" }}
{{ item.annexName }} @@ -101,7 +103,7 @@
- + @@ -113,7 +115,7 @@ - + 是 @@ -122,6 +124,34 @@ + + + + + 是 + 否 + + + + + + + 是 + 否 + + + + + + + + + + + + + +
确定 @@ -194,7 +224,11 @@ export default { mediateFile: [], formData: { mediaResult: 1, - sealFlag: 1 + sealFlag: 1, + }, + formData1: { + appliIsAbsen: 0, + isAbsence: 0, }, caseFlowId: null, headers: { @@ -216,6 +250,11 @@ export default { officeFlag: 0, caseId: null, }, + filedataz1: { + annexType: 6, + officeFlag: 0, + caseId: null, + }, fileList1: [], headers3: { // Authorization: "Bearer " + token, @@ -227,16 +266,28 @@ export default { isMediaBook: 1, caseId: null, }, + filedataz3: { + annexType: 3, + officeFlag: 0, + isMediaBook: 1, + caseId: null, + }, fileList3: [], editFlag: false, micFlag: true, videoFlag: true, sharFlag: true, + appType: "tiaojie", + timer: null }; }, methods: { UploadUrl() { - return window.location.origin + "/tjformal/video/upload"; + if (this.appType == "tiaojie") { + return window.location.origin + "/tjformal/video/upload"; + } else if (this.appType == "zhongcai") { + return window.location.origin + "/zhongcai/video/upload"; + } }, /**移动端点击换出/隐藏视频列表 */ checkList(data) { @@ -350,8 +401,10 @@ export default { this.fileList1 = fileList; if (file.name.indexOf("docx") == -1) { this.filedata1.officeFlag = 0; + this.filedataz1.officeFlag = 0; } else { this.filedata1.officeFlag = 1; + this.filedataz1.officeFlag = 1; } }, // 文件上传成功 @@ -366,6 +419,7 @@ export default { beforeUpload3(file, fileList) { this.fileList3 = fileList; this.filedata3.officeFlag = 1; + this.filedataz3.officeFlag = 1; }, // 文件上传成功 handlSuccess3(res, file) { @@ -377,29 +431,31 @@ export default { this.selectByIdFn(this.caseId); }, preview(item, type) { - if (this.modileFlag) { - if (item.onlyOfficeFileId) { - // this.$router.push({ - // path: "/onlyoffice", - // query: { id: item.onlyOfficeFileId, flag: flag }, - // }); - let flag = 1; - if (this.editFlag && type != 0) { - flag = 1; - } else { - flag = 0; - } - let token = sessionStorage.getItem("token"); + if (this.modileFlag && item.onlyOfficeFileId) { + let flag = 1; + if (this.editFlag && type != 0) { + flag = 1; + } else { + flag = 0; + } + let token = sessionStorage.getItem("token"); + if (this.appType == "tiaojie") { window.open( `http://121.40.189.20:9002/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`, "_black" // `http://localhost:81/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`, // "_black" ); - } else { - window.open(window.location.origin + '/tjformal' + item.annexPath, "_black"); + }else if(this.appType == "zhongcai"){ + window.open( + `http://121.40.189.20:8000/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`, + "_black" + // `http://localhost:81/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`, + // "_black" + ); } - }else{ + + } else { window.open(window.location.origin + '/tjformal' + item.annexPath, "_black"); } @@ -461,12 +517,22 @@ export default { this.mediateFile = []; let fileList = res.data.caseAttachList; fileList.forEach((item) => { - if (item.annexType == 2) { - this.applicantFile.push(item); - } else if (item.annexType == 12) { - this.resFile.push(item); - } else if (item.annexType == 7) { - this.mediateFile.push(item); + if (this.appType == "tiaojie") { + if (item.annexType == 2) { + this.applicantFile.push(item); + } else if (item.annexType == 12) { + this.resFile.push(item); + } else if (item.annexType == 7) { + this.mediateFile.push(item); + } + } else if (this.appType == "zhongcai") { + if (item.annexType == 2) { + this.applicantFile.push(item); + } else if (item.annexType == 6) { + this.resFile.push(item); + } else if (item.annexType == 3) { + this.mediateFile.push(item); + } } }); }); @@ -480,6 +546,7 @@ export default { }, async exitRoom() { // // 关闭识别 + clearInterval(this.timer) Object.keys(this.asrList).forEach((key) => { this.asrList[key].stop(); }); @@ -629,7 +696,7 @@ export default { mediationPop() { this.drawerMediatio = true; this.selectByIdFn(this.caseId); - setInterval(() => { + this.timer = setInterval(() => { this.selectByIdFn(this.caseId); }, 8000); this.selectRoleMenuByCaseIdFn(this.caseId); @@ -637,11 +704,17 @@ export default { }, // 确定会议结果 determineMeeting() { - let valueMeeting = { - id: this.caseId, - mediaResult: this.formData.mediaResult, - sealFlag: this.formData.sealFlag, - caseFlowId: this.caseFlowId + let valueMeeting = {}; + if (this.appType == "tiaojie") { + valueMeeting = { + id: this.caseId, + mediaResult: this.formData.mediaResult, + sealFlag: this.formData.sealFlag, + caseFlowId: this.caseFlowId + } + } else if (this.appType == "zhongcai") { + this.formData1.caseAppliId = this.caseId; + valueMeeting = this.formData1; } confirmMeetingResult(valueMeeting).then(res => { if (res.code == 200) { @@ -685,7 +758,7 @@ export default { this.drawerSize = "75%" } } - } + }, }, async mounted() { if (this.userList.length == 1) { @@ -712,7 +785,9 @@ export default { this.headers3.Authorization = "Bearer " + this.token; this.filedata.caseId = this.caseId; this.filedata1.caseId = this.caseId; + this.filedataz1.caseId = this.caseId; this.filedata3.caseId = this.caseId; + this.filedataz3.caseId = this.caseId; window.sessionStorage.setItem("token", this.token); window.sessionStorage.setItem("userId", this.id); this.secretaryRoleByUserIdFn(this.id, this.caseId); @@ -781,6 +856,7 @@ export default { }; }, created() { + this.appType = sessionStorage.getItem('type'); trtc = TRTC.create(); }, }; diff --git a/vue.config.js b/vue.config.js index 9579c982..98dee3f9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -29,7 +29,7 @@ module.exports = defineConfig({ '^/zhongcai': '' // 将/api前缀重写为空字符串 }, }, - '/zhongcaiz': { + '/zhongcaiprod': { target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址 changeOrigin: true, // 是否改变Origin头信息 secure : false,