Merge branch 'hcb' of SH-Arbitrate/Arbitrate-FrontendH5 into master

This commit was merged in pull request #10.
This commit is contained in:
2024-05-14 17:39:39 +08:00
committed by Gitea
5 changed files with 130 additions and 45 deletions
+5
View File
@@ -48,5 +48,10 @@ export function fileList(caseAppliId) {
} }
// 确定会议结果 // 确定会议结果
export function confirmMeetingResult(data) { export function confirmMeetingResult(data) {
let appType = sessionStorage.getItem('type');
if (appType == 'tiaojie') {
return axios.post(`tjformal/caseApplication/confirmMeetingResult`, data); return axios.post(`tjformal/caseApplication/confirmMeetingResult`, data);
} else {
return axios.post(`zhongcai/caseApplication/confirmMeetingResult`, data);
}
} }
+4 -2
View File
@@ -16,7 +16,7 @@
</div> --> </div> -->
<div class="mediationPop"> <div class="mediationPop">
<el-button type="warning" @click="mediationPop">调解</el-button> <el-button type="warning" @click="mediationPop">{{ appType == "tiaojie" ? "调解" : "仲裁" }}</el-button>
</div> </div>
<div class="outRoom"> <div class="outRoom">
<el-button type="danger" @click="exitRoom" v-if="!roleFlag">退出</el-button> <el-button type="danger" @click="exitRoom" v-if="!roleFlag">退出</el-button>
@@ -38,7 +38,8 @@ export default {
roomId: null, roomId: null,
taskId: null, taskId: null,
roleFlag: false, roleFlag: false,
caseId:"" caseId:"",
appType:"tiaojie"
}; };
}, },
methods: { methods: {
@@ -102,6 +103,7 @@ export default {
}, },
}, },
async mounted() { async mounted() {
this.appType = sessionStorage.getItem('type');
this.roomId = this.$route.query.roomId; this.roomId = this.$route.query.roomId;
let roleFlag = this.$route.query.flag; let roleFlag = this.$route.query.flag;
this.caseId = this.$route.query.caseId; this.caseId = this.$route.query.caseId;
+3 -1
View File
@@ -19,7 +19,7 @@
</div> </div>
<div class="mediationPop"> <div class="mediationPop">
<el-button type="warning" @click="mediationPop">调解</el-button> <el-button type="warning" @click="mediationPop">{{ appType == "tiaojie" ? "调解" : "仲裁" }}</el-button>
</div> </div>
</div> </div>
</div> </div>
@@ -37,6 +37,7 @@ export default {
taskId: null, taskId: null,
roleFlag: true, roleFlag: true,
caseId: "", caseId: "",
appType:"tiaojie"
}; };
}, },
methods: { methods: {
@@ -100,6 +101,7 @@ export default {
}, },
}, },
async mounted() { async mounted() {
this.appType = sessionStorage.getItem('type');
this.roomId = this.$route.query.roomId; this.roomId = this.$route.query.roomId;
this.caseId = this.$route.query.caseId; this.caseId = this.$route.query.caseId;
let roleFlag = this.$route.query.flag; let roleFlag = this.$route.query.flag;
+97 -21
View File
@@ -67,14 +67,16 @@
:on-change="beforeUpload" :on-success="handlSuccess" :file-list="fileList" v-if="appFlag"> :on-change="beforeUpload" :on-success="handlSuccess" :file-list="fileList" v-if="appFlag">
<el-button slot="trigger" size="small" type="primary">申请人上传证据</el-button> <el-button slot="trigger" size="small" type="primary">申请人上传证据</el-button>
</el-upload> </el-upload>
<el-upload ref="upload1" :limit="1" :action="UploadUrl()" :headers="headers1" :data="filedata1" <el-upload ref="upload1" :limit="1" :action="UploadUrl()" :headers="headers1"
:on-change="beforeUpload1" :on-success="handlSuccess1" :file-list="fileList1" v-if="resFlag"> :data="appType == 'tiaojie' ? filedata1 : filedataz1" :on-change="beforeUpload1" :on-success="handlSuccess1"
:file-list="fileList1" v-if="resFlag">
<el-button slot="trigger" size="small" type="primary">被申请人上传证据</el-button> <el-button slot="trigger" size="small" type="primary">被申请人上传证据</el-button>
</el-upload> </el-upload>
<el-upload ref="upload3" :limit="1" :action="UploadUrl()" :headers="headers3" :data="filedata3" <el-upload ref="upload3" :limit="1" :action="UploadUrl()" :headers="headers3"
:on-change="beforeUpload3" :on-success="handlSuccess3" :file-list="fileList3" accept=".doc,.docx" :data="appType == 'tiaojie' ? filedata3 : filedataz3" :on-change="beforeUpload3" :on-success="handlSuccess3"
v-if="updataFlag"> :file-list="fileList3" accept=".doc,.docx" v-if="updataFlag">
<el-button slot="trigger" size="small" type="primary">上传调解书</el-button> <!-- <el-button slot="trigger" size="small" type="primary">上传调解书</el-button> -->
<el-button slot="trigger" size="small" type="primary">{{ appType == "tiaojie" ? "上传调解书" : "上传裁决书" }}</el-button>
</el-upload> </el-upload>
</div> </div>
<div class="list"> <div class="list">
@@ -93,7 +95,7 @@
</div> </div>
</div> </div>
<div class="mediate" v-if="mediateFile.length > 0"> <div class="mediate" v-if="mediateFile.length > 0">
<div style="font-size: 20px;margin-bottom: 10PX;">调解书:</div> <div style="font-size: 20px;margin-bottom: 10PX;">{{ appType == "tiaojie" ? "调解书" : "裁决书" }}</div>
<div style="color: #104fad; cursor: pointer" v-for="(item, index) in mediateFile" :key="index" <div style="color: #104fad; cursor: pointer" v-for="(item, index) in mediateFile" :key="index"
@click="preview(item, 1)"> @click="preview(item, 1)">
{{ item.annexName }} {{ item.annexName }}
@@ -101,7 +103,7 @@
</div> </div>
</div> </div>
<div v-if="modileFlag && updataFlag"> <div v-if="modileFlag && updataFlag">
<el-form label-width="100px"> <el-form label-width="100px" v-if="appType == 'tiaojie'">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="调解结果:"> <el-form-item label="调解结果:">
<el-radio-group v-model="formData.mediaResult"> <el-radio-group v-model="formData.mediaResult">
@@ -122,6 +124,34 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-form> </el-form>
<el-form v-if="appType == 'zhongcai'">
<el-col :span="24">
<el-form-item label="被申请人是否缺席:">
<el-radio-group v-model="formData1.appliIsAbsen">
<el-radio :label="1">是</el-radio>
<el-radio :label="0">否</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="申请人是否缺席:">
<el-radio-group v-model="formData1.isAbsence">
<el-radio :label="1">是</el-radio>
<el-radio :label="0">否</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="被申请人对上述材料的质证意见">
<el-input type="textarea" v-model="formData1.respondentOpinion" placeholder="请输入" />
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="申请人对上述材料的质证意见">
<el-input type="textarea" v-model="formData1.applicantOpinion" placeholder="请输入" />
</el-form-item>
</el-col>
</el-form>
</div> </div>
<div v-if="modileFlag && updataFlag"> <div v-if="modileFlag && updataFlag">
<el-button style="width:100%;" type="primary" @click="determineMeeting" :disabled="!updataFlag">确定</el-button> <el-button style="width:100%;" type="primary" @click="determineMeeting" :disabled="!updataFlag">确定</el-button>
@@ -194,7 +224,11 @@ export default {
mediateFile: [], mediateFile: [],
formData: { formData: {
mediaResult: 1, mediaResult: 1,
sealFlag: 1 sealFlag: 1,
},
formData1: {
appliIsAbsen: 0,
isAbsence: 0,
}, },
caseFlowId: null, caseFlowId: null,
headers: { headers: {
@@ -216,6 +250,11 @@ export default {
officeFlag: 0, officeFlag: 0,
caseId: null, caseId: null,
}, },
filedataz1: {
annexType: 6,
officeFlag: 0,
caseId: null,
},
fileList1: [], fileList1: [],
headers3: { headers3: {
// Authorization: "Bearer " + token, // Authorization: "Bearer " + token,
@@ -227,16 +266,28 @@ export default {
isMediaBook: 1, isMediaBook: 1,
caseId: null, caseId: null,
}, },
filedataz3: {
annexType: 3,
officeFlag: 0,
isMediaBook: 1,
caseId: null,
},
fileList3: [], fileList3: [],
editFlag: false, editFlag: false,
micFlag: true, micFlag: true,
videoFlag: true, videoFlag: true,
sharFlag: true, sharFlag: true,
appType: "tiaojie",
timer: null
}; };
}, },
methods: { methods: {
UploadUrl() { UploadUrl() {
if (this.appType == "tiaojie") {
return window.location.origin + "/tjformal/video/upload"; return window.location.origin + "/tjformal/video/upload";
} else if (this.appType == "zhongcai") {
return window.location.origin + "/zhongcai/video/upload";
}
}, },
/**移动端点击换出/隐藏视频列表 */ /**移动端点击换出/隐藏视频列表 */
checkList(data) { checkList(data) {
@@ -350,8 +401,10 @@ export default {
this.fileList1 = fileList; this.fileList1 = fileList;
if (file.name.indexOf("docx") == -1) { if (file.name.indexOf("docx") == -1) {
this.filedata1.officeFlag = 0; this.filedata1.officeFlag = 0;
this.filedataz1.officeFlag = 0;
} else { } else {
this.filedata1.officeFlag = 1; this.filedata1.officeFlag = 1;
this.filedataz1.officeFlag = 1;
} }
}, },
// 文件上传成功 // 文件上传成功
@@ -366,6 +419,7 @@ export default {
beforeUpload3(file, fileList) { beforeUpload3(file, fileList) {
this.fileList3 = fileList; this.fileList3 = fileList;
this.filedata3.officeFlag = 1; this.filedata3.officeFlag = 1;
this.filedataz3.officeFlag = 1;
}, },
// 文件上传成功 // 文件上传成功
handlSuccess3(res, file) { handlSuccess3(res, file) {
@@ -377,12 +431,7 @@ export default {
this.selectByIdFn(this.caseId); this.selectByIdFn(this.caseId);
}, },
preview(item, type) { preview(item, type) {
if (this.modileFlag) { if (this.modileFlag && item.onlyOfficeFileId) {
if (item.onlyOfficeFileId) {
// this.$router.push({
// path: "/onlyoffice",
// query: { id: item.onlyOfficeFileId, flag: flag },
// });
let flag = 1; let flag = 1;
if (this.editFlag && type != 0) { if (this.editFlag && type != 0) {
flag = 1; flag = 1;
@@ -390,16 +439,23 @@ export default {
flag = 0; flag = 0;
} }
let token = sessionStorage.getItem("token"); let token = sessionStorage.getItem("token");
if (this.appType == "tiaojie") {
window.open( window.open(
`http://121.40.189.20:9002/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`, `http://121.40.189.20:9002/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`,
"_black" "_black"
// `http://localhost:81/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`, // `http://localhost:81/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`,
// "_black" // "_black"
); );
} else { }else if(this.appType == "zhongcai"){
window.open(window.location.origin + '/tjformal' + item.annexPath, "_black"); 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"); window.open(window.location.origin + '/tjformal' + item.annexPath, "_black");
} }
@@ -461,6 +517,7 @@ export default {
this.mediateFile = []; this.mediateFile = [];
let fileList = res.data.caseAttachList; let fileList = res.data.caseAttachList;
fileList.forEach((item) => { fileList.forEach((item) => {
if (this.appType == "tiaojie") {
if (item.annexType == 2) { if (item.annexType == 2) {
this.applicantFile.push(item); this.applicantFile.push(item);
} else if (item.annexType == 12) { } else if (item.annexType == 12) {
@@ -468,6 +525,15 @@ export default {
} else if (item.annexType == 7) { } else if (item.annexType == 7) {
this.mediateFile.push(item); 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() { async exitRoom() {
// // 关闭识别 // // 关闭识别
clearInterval(this.timer)
Object.keys(this.asrList).forEach((key) => { Object.keys(this.asrList).forEach((key) => {
this.asrList[key].stop(); this.asrList[key].stop();
}); });
@@ -629,7 +696,7 @@ export default {
mediationPop() { mediationPop() {
this.drawerMediatio = true; this.drawerMediatio = true;
this.selectByIdFn(this.caseId); this.selectByIdFn(this.caseId);
setInterval(() => { this.timer = setInterval(() => {
this.selectByIdFn(this.caseId); this.selectByIdFn(this.caseId);
}, 8000); }, 8000);
this.selectRoleMenuByCaseIdFn(this.caseId); this.selectRoleMenuByCaseIdFn(this.caseId);
@@ -637,12 +704,18 @@ export default {
}, },
// 确定会议结果 // 确定会议结果
determineMeeting() { determineMeeting() {
let valueMeeting = { let valueMeeting = {};
if (this.appType == "tiaojie") {
valueMeeting = {
id: this.caseId, id: this.caseId,
mediaResult: this.formData.mediaResult, mediaResult: this.formData.mediaResult,
sealFlag: this.formData.sealFlag, sealFlag: this.formData.sealFlag,
caseFlowId: this.caseFlowId caseFlowId: this.caseFlowId
} }
} else if (this.appType == "zhongcai") {
this.formData1.caseAppliId = this.caseId;
valueMeeting = this.formData1;
}
confirmMeetingResult(valueMeeting).then(res => { confirmMeetingResult(valueMeeting).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$message({ this.$message({
@@ -685,7 +758,7 @@ export default {
this.drawerSize = "75%" this.drawerSize = "75%"
} }
} }
} },
}, },
async mounted() { async mounted() {
if (this.userList.length == 1) { if (this.userList.length == 1) {
@@ -712,7 +785,9 @@ export default {
this.headers3.Authorization = "Bearer " + this.token; this.headers3.Authorization = "Bearer " + this.token;
this.filedata.caseId = this.caseId; this.filedata.caseId = this.caseId;
this.filedata1.caseId = this.caseId; this.filedata1.caseId = this.caseId;
this.filedataz1.caseId = this.caseId;
this.filedata3.caseId = this.caseId; this.filedata3.caseId = this.caseId;
this.filedataz3.caseId = this.caseId;
window.sessionStorage.setItem("token", this.token); window.sessionStorage.setItem("token", this.token);
window.sessionStorage.setItem("userId", this.id); window.sessionStorage.setItem("userId", this.id);
this.secretaryRoleByUserIdFn(this.id, this.caseId); this.secretaryRoleByUserIdFn(this.id, this.caseId);
@@ -781,6 +856,7 @@ export default {
}; };
}, },
created() { created() {
this.appType = sessionStorage.getItem('type');
trtc = TRTC.create(); trtc = TRTC.create();
}, },
}; };
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = defineConfig({
'^/zhongcai': '' // 将/api前缀重写为空字符串 '^/zhongcai': '' // 将/api前缀重写为空字符串
}, },
}, },
'/zhongcaiz': { '/zhongcaiprod': {
target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址 target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址
changeOrigin: true, // 是否改变Origin头信息 changeOrigin: true, // 是否改变Origin头信息
secure : false, secure : false,