|
|
@@ -71,7 +71,7 @@
|
|
71
|
71
|
<el-upload
|
|
72
|
72
|
ref="upload"
|
|
73
|
73
|
:limit="1"
|
|
74
|
|
- action="https://api.xayunmei.com/tiaojieapi/video/upload"
|
|
|
74
|
+ action="https://api.xayunmei.com/tiaojieapitest/video/upload"
|
|
75
|
75
|
:headers="headers"
|
|
76
|
76
|
:data="filedata"
|
|
77
|
77
|
:on-change="beforeUpload"
|
|
|
@@ -87,7 +87,7 @@
|
|
87
|
87
|
v-if="resFlag"
|
|
88
|
88
|
ref="upload1"
|
|
89
|
89
|
:limit="1"
|
|
90
|
|
- action="https://api.xayunmei.com/tiaojieapi/video/upload"
|
|
|
90
|
+ action="https://api.xayunmei.com/tiaojieapitest/video/upload"
|
|
91
|
91
|
:headers="headers1"
|
|
92
|
92
|
:data="filedata1"
|
|
93
|
93
|
:on-change="beforeUpload1"
|
|
|
@@ -99,10 +99,11 @@
|
|
99
|
99
|
>
|
|
100
|
100
|
</el-upload>
|
|
101
|
101
|
<el-upload
|
|
102
|
|
- v-if="editFlag"
|
|
|
102
|
+ v-if="updataFlag"
|
|
103
|
103
|
ref="upload3"
|
|
104
|
104
|
:limit="1"
|
|
105
|
|
- action="https://api.xayunmei.com/tiaojieapi/video/upload"
|
|
|
105
|
+ action=""
|
|
|
106
|
+ :http-request="upload3"
|
|
106
|
107
|
:headers="headers3"
|
|
107
|
108
|
:data="filedata3"
|
|
108
|
109
|
:on-change="beforeUpload3"
|
|
|
@@ -114,6 +115,7 @@
|
|
114
|
115
|
>上传调解书</el-button
|
|
115
|
116
|
>
|
|
116
|
117
|
</el-upload>
|
|
|
118
|
+ <!-- https://api.xayunmei.com/tiaojieapitest/video/upload -->
|
|
117
|
119
|
</div>
|
|
118
|
120
|
<div class="list">
|
|
119
|
121
|
<div class="applicant" v-if="applicantFile.length > 0">
|
|
|
@@ -178,6 +180,7 @@ import {
|
|
178
|
180
|
selectById,
|
|
179
|
181
|
selectRoleMenuByCaseId,
|
|
180
|
182
|
getMenuPermsByUser,
|
|
|
183
|
+ videoUpload
|
|
181
|
184
|
} from "@/api/room";
|
|
182
|
185
|
import { getWidth, getHeight, getWidthPhone, getModile } from "@/utils/utils";
|
|
183
|
186
|
import roomFooter from "./components/roomFooter.vue";
|
|
|
@@ -314,10 +317,12 @@ export default {
|
|
314
|
317
|
this.sharFlag = true;
|
|
315
|
318
|
this.videoList = "videoList";
|
|
316
|
319
|
this.screenShareFlag = false;
|
|
317
|
|
- if(this.userList.length >= 1){
|
|
|
320
|
+ if (this.userList.length > 1) {
|
|
318
|
321
|
this.videoClass = "videoItem1";
|
|
319
|
|
- }else{
|
|
|
322
|
+ } else if (this.userList.length < 1) {
|
|
320
|
323
|
this.videoClass = "videoItem";
|
|
|
324
|
+ } else if (this.userList.length == 1) {
|
|
|
325
|
+ this.videoClass = "videoItem3";
|
|
321
|
326
|
}
|
|
322
|
327
|
},
|
|
323
|
328
|
/**获取当前用户操作权限 */
|
|
|
@@ -373,15 +378,47 @@ export default {
|
|
373
|
378
|
this.$refs.upload3.clearFiles();
|
|
374
|
379
|
this.selectByIdFn(this.caseId);
|
|
375
|
380
|
},
|
|
|
381
|
+ upload3(param){
|
|
|
382
|
+ const formData = new FormData()
|
|
|
383
|
+ formData.append('file', param.file);
|
|
|
384
|
+ formData.append('annexType', 7);
|
|
|
385
|
+ formData.append('officeFlag', 1);
|
|
|
386
|
+ formData.append('caseId', this.caseId);
|
|
|
387
|
+ videoUpload(formData).then(res=>{
|
|
|
388
|
+ console.log('上传图片成功')
|
|
|
389
|
+ })
|
|
|
390
|
+ // axios.post(url, formData).then(response => {
|
|
|
391
|
+ // //根据返回值进行判断是否上传成功
|
|
|
392
|
+ // if(response.data.flag){
|
|
|
393
|
+ // //上传成功
|
|
|
394
|
+ // console.log('上传图片成功')
|
|
|
395
|
+ // }else{
|
|
|
396
|
+ // //上传失败
|
|
|
397
|
+ // console.log('图片上传失败')
|
|
|
398
|
+ // }
|
|
|
399
|
+ // }).catch(response => {
|
|
|
400
|
+ // console.log('异常处理')
|
|
|
401
|
+ // })
|
|
|
402
|
+ },
|
|
376
|
403
|
preview(item, flag) {
|
|
377
|
404
|
if (item.onlyOfficeFileId) {
|
|
378
|
|
- this.$router.push({
|
|
379
|
|
- path: "/onlyoffice",
|
|
380
|
|
- query: { id: item.onlyOfficeFileId, flag: flag },
|
|
381
|
|
- });
|
|
|
405
|
+ // this.$router.push({
|
|
|
406
|
+ // path: "/onlyoffice",
|
|
|
407
|
+ // query: { id: item.onlyOfficeFileId, flag: flag },
|
|
|
408
|
+ // });
|
|
|
409
|
+ let flag = 1;
|
|
|
410
|
+ if(this.editFlag){
|
|
|
411
|
+ flag = 1
|
|
|
412
|
+ }else{
|
|
|
413
|
+ flag = 0
|
|
|
414
|
+ }
|
|
|
415
|
+ window.open(
|
|
|
416
|
+ `http://121.40.189.20:8002/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}`,
|
|
|
417
|
+ "_black"
|
|
|
418
|
+ );
|
|
382
|
419
|
} else {
|
|
383
|
420
|
window.open(
|
|
384
|
|
- "https://api.xayunmei.com/tiaojieapi" + item.annexPath,
|
|
|
421
|
+ "http://121.40.189.20:6001" + item.annexPath,
|
|
385
|
422
|
"_black"
|
|
386
|
423
|
);
|
|
387
|
424
|
}
|
|
|
@@ -536,7 +573,7 @@ export default {
|
|
536
|
573
|
this.userList.splice(deleteIndex, 1);
|
|
537
|
574
|
}
|
|
538
|
575
|
if (this.modileFlag) {
|
|
539
|
|
- this.userHeight = getHeight(this.userList);
|
|
|
576
|
+ // this.userHeight = getHeight(this.userList);
|
|
540
|
577
|
} else {
|
|
541
|
578
|
this.userClassPhone = getWidthPhone(this.userList);
|
|
542
|
579
|
}
|
|
|
@@ -575,11 +612,24 @@ export default {
|
|
575
|
612
|
return this.$refs.myQuillEditor.quill;
|
|
576
|
613
|
},
|
|
577
|
614
|
},
|
|
|
615
|
+ watch: {
|
|
|
616
|
+ userList(value) {
|
|
|
617
|
+ if (value.length == 1) {
|
|
|
618
|
+ this.videoClass = "videoItem3";
|
|
|
619
|
+ } else if (value.length > 1) {
|
|
|
620
|
+ this.videoClass = "videoItem1";
|
|
|
621
|
+ } else if (value.length < 1) {
|
|
|
622
|
+ this.videoClass = "videoItem";
|
|
|
623
|
+ }
|
|
|
624
|
+ },
|
|
|
625
|
+ },
|
|
578
|
626
|
async mounted() {
|
|
579
|
627
|
if (this.userList.length == 1) {
|
|
580
|
|
- this.videoClass = "videoItem";
|
|
|
628
|
+ this.videoClass = "videoItem3";
|
|
581
|
629
|
} else if (this.userList.length > 1) {
|
|
582
|
630
|
this.videoClass = "videoItem1";
|
|
|
631
|
+ } else if (this.userList.length < 1) {
|
|
|
632
|
+ this.videoClass = "videoItem";
|
|
583
|
633
|
}
|
|
584
|
634
|
// 判断设备类型
|
|
585
|
635
|
this.modileFlag = getModile();
|
|
|
@@ -722,6 +772,12 @@ export default {
|
|
722
|
772
|
background: red;
|
|
723
|
773
|
border-radius: 20px;
|
|
724
|
774
|
}
|
|
|
775
|
+.videoItem3 {
|
|
|
776
|
+ width: 48%;
|
|
|
777
|
+ height: 100%;
|
|
|
778
|
+ background: red;
|
|
|
779
|
+ border-radius: 20px;
|
|
|
780
|
+}
|
|
725
|
781
|
.videoItem2 {
|
|
726
|
782
|
width: 90%;
|
|
727
|
783
|
height: 25%;
|