- 上传调解书
+
+
+ {{ appType == "tiaojie" ? "上传调解书" : "上传裁决书" }}
@@ -93,7 +95,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,