hanchaobo 2 лет назад
Родитель
Сommit
1479708eb6
5 измененных файлов: 130 добавлений и 45 удалений
  1. 6
    1
      src/api/home.js
  2. 4
    2
      src/views/components/footerPhone.vue
  3. 3
    1
      src/views/components/roomFooter.vue
  4. 116
    40
      src/views/room.vue
  5. 1
    1
      vue.config.js

+ 6
- 1
src/api/home.js Просмотреть файл

48
   }
48
   }
49
 // 确定会议结果
49
 // 确定会议结果
50
 export function confirmMeetingResult(data) {
50
 export function confirmMeetingResult(data) {
51
-    return axios.post(`tjformal/caseApplication/confirmMeetingResult`, data);
51
+    let appType = sessionStorage.getItem('type');
52
+    if (appType == 'tiaojie') {
53
+        return axios.post(`tjformal/caseApplication/confirmMeetingResult`, data);
54
+    } else {
55
+        return axios.post(`zhongcai/caseApplication/confirmMeetingResult`, data);
56
+    }
52
 }
57
 }

+ 4
- 2
src/views/components/footerPhone.vue Просмотреть файл

16
 
16
 
17
         </div> -->
17
         </div> -->
18
         <div class="mediationPop">
18
         <div class="mediationPop">
19
-            <el-button type="warning" @click="mediationPop">调解</el-button>
19
+            <el-button type="warning" @click="mediationPop">{{ appType == "tiaojie" ? "调解" : "仲裁" }}</el-button>
20
         </div>
20
         </div>
21
         <div class="outRoom">
21
         <div class="outRoom">
22
             <el-button type="danger" @click="exitRoom" v-if="!roleFlag">退出</el-button>
22
             <el-button type="danger" @click="exitRoom" v-if="!roleFlag">退出</el-button>
38
             roomId: null,
38
             roomId: null,
39
             taskId: null,
39
             taskId: null,
40
             roleFlag: false,
40
             roleFlag: false,
41
-            caseId:""
41
+            caseId:"",
42
+            appType:"tiaojie"
42
         };
43
         };
43
     },
44
     },
44
     methods: {
45
     methods: {
102
         },
103
         },
103
     },
104
     },
104
     async mounted() {
105
     async mounted() {
106
+        this.appType = sessionStorage.getItem('type');
105
         this.roomId = this.$route.query.roomId;
107
         this.roomId = this.$route.query.roomId;
106
         let roleFlag = this.$route.query.flag;
108
         let roleFlag = this.$route.query.flag;
107
         this.caseId = this.$route.query.caseId;
109
         this.caseId = this.$route.query.caseId;

+ 3
- 1
src/views/components/roomFooter.vue Просмотреть файл

19
 
19
 
20
       </div>
20
       </div>
21
       <div class="mediationPop">
21
       <div class="mediationPop">
22
-        <el-button type="warning" @click="mediationPop">调解</el-button>
22
+        <el-button type="warning" @click="mediationPop">{{ appType == "tiaojie" ? "调解" : "仲裁" }}</el-button>
23
       </div>
23
       </div>
24
     </div>
24
     </div>
25
   </div>
25
   </div>
37
       taskId: null,
37
       taskId: null,
38
       roleFlag: true,
38
       roleFlag: true,
39
       caseId: "",
39
       caseId: "",
40
+      appType:"tiaojie"
40
     };
41
     };
41
   },
42
   },
42
   methods: {
43
   methods: {
100
     },
101
     },
101
   },
102
   },
102
   async mounted() {
103
   async mounted() {
104
+    this.appType = sessionStorage.getItem('type');
103
     this.roomId = this.$route.query.roomId;
105
     this.roomId = this.$route.query.roomId;
104
     this.caseId = this.$route.query.caseId;
106
     this.caseId = this.$route.query.caseId;
105
     let roleFlag = this.$route.query.flag;
107
     let roleFlag = this.$route.query.flag;

+ 116
- 40
src/views/room.vue Просмотреть файл

67
           :on-change="beforeUpload" :on-success="handlSuccess" :file-list="fileList" v-if="appFlag">
67
           :on-change="beforeUpload" :on-success="handlSuccess" :file-list="fileList" v-if="appFlag">
68
           <el-button slot="trigger" size="small" type="primary">申请人上传证据</el-button>
68
           <el-button slot="trigger" size="small" type="primary">申请人上传证据</el-button>
69
         </el-upload>
69
         </el-upload>
70
-        <el-upload ref="upload1" :limit="1" :action="UploadUrl()" :headers="headers1" :data="filedata1"
71
-          :on-change="beforeUpload1" :on-success="handlSuccess1" :file-list="fileList1" v-if="resFlag">
70
+        <el-upload ref="upload1" :limit="1" :action="UploadUrl()" :headers="headers1"
71
+          :data="appType == 'tiaojie' ? filedata1 : filedataz1" :on-change="beforeUpload1" :on-success="handlSuccess1"
72
+          :file-list="fileList1" v-if="resFlag">
72
           <el-button slot="trigger" size="small" type="primary">被申请人上传证据</el-button>
73
           <el-button slot="trigger" size="small" type="primary">被申请人上传证据</el-button>
73
         </el-upload>
74
         </el-upload>
74
-        <el-upload ref="upload3" :limit="1" :action="UploadUrl()" :headers="headers3" :data="filedata3"
75
-          :on-change="beforeUpload3" :on-success="handlSuccess3" :file-list="fileList3" accept=".doc,.docx"
76
-          v-if="updataFlag">
77
-          <el-button slot="trigger" size="small" type="primary">上传调解书</el-button>
75
+        <el-upload ref="upload3" :limit="1" :action="UploadUrl()" :headers="headers3"
76
+          :data="appType == 'tiaojie' ? filedata3 : filedataz3" :on-change="beforeUpload3" :on-success="handlSuccess3"
77
+          :file-list="fileList3" accept=".doc,.docx" v-if="updataFlag">
78
+          <!-- <el-button slot="trigger" size="small" type="primary">上传调解书</el-button> -->
79
+          <el-button slot="trigger" size="small" type="primary">{{ appType == "tiaojie" ? "上传调解书" : "上传裁决书" }}</el-button>
78
         </el-upload>
80
         </el-upload>
79
       </div>
81
       </div>
80
       <div class="list">
82
       <div class="list">
93
           </div>
95
           </div>
94
         </div>
96
         </div>
95
         <div class="mediate" v-if="mediateFile.length > 0">
97
         <div class="mediate" v-if="mediateFile.length > 0">
96
-          <div style="font-size: 20px;margin-bottom: 10PX;">调解书:</div>
98
+          <div style="font-size: 20px;margin-bottom: 10PX;">{{ appType == "tiaojie" ? "调解书" : "裁决书" }}</div>
97
           <div style="color: #104fad; cursor: pointer" v-for="(item, index) in mediateFile" :key="index"
99
           <div style="color: #104fad; cursor: pointer" v-for="(item, index) in mediateFile" :key="index"
98
             @click="preview(item, 1)">
100
             @click="preview(item, 1)">
99
             {{ item.annexName }}
101
             {{ item.annexName }}
101
         </div>
103
         </div>
102
       </div>
104
       </div>
103
       <div v-if="modileFlag && updataFlag">
105
       <div v-if="modileFlag && updataFlag">
104
-        <el-form label-width="100px">
106
+        <el-form label-width="100px" v-if="appType == 'tiaojie'">
105
           <el-col :span="24">
107
           <el-col :span="24">
106
             <el-form-item label="调解结果:">
108
             <el-form-item label="调解结果:">
107
               <el-radio-group v-model="formData.mediaResult">
109
               <el-radio-group v-model="formData.mediaResult">
113
               </el-radio-group>
115
               </el-radio-group>
114
             </el-form-item>
116
             </el-form-item>
115
           </el-col>
117
           </el-col>
116
-          <el-col :span="24" v-if="formData.mediaResult == 1"> 
118
+          <el-col :span="24" v-if="formData.mediaResult == 1">
117
             <el-form-item label="是否用印申请:">
119
             <el-form-item label="是否用印申请:">
118
               <el-radio-group v-model="formData.sealFlag">
120
               <el-radio-group v-model="formData.sealFlag">
119
                 <el-radio :label="1">是</el-radio>
121
                 <el-radio :label="1">是</el-radio>
122
             </el-form-item>
124
             </el-form-item>
123
           </el-col>
125
           </el-col>
124
         </el-form>
126
         </el-form>
127
+        <el-form v-if="appType == 'zhongcai'">
128
+          <el-col :span="24">
129
+            <el-form-item label="被申请人是否缺席:">
130
+              <el-radio-group v-model="formData1.appliIsAbsen">
131
+                <el-radio :label="1">是</el-radio>
132
+                <el-radio :label="0">否</el-radio>
133
+              </el-radio-group>
134
+            </el-form-item>
135
+          </el-col>
136
+          <el-col :span="24">
137
+            <el-form-item label="申请人是否缺席:">
138
+              <el-radio-group v-model="formData1.isAbsence">
139
+                <el-radio :label="1">是</el-radio>
140
+                <el-radio :label="0">否</el-radio>
141
+              </el-radio-group>
142
+            </el-form-item>
143
+          </el-col>
144
+          <el-col :span="24">
145
+            <el-form-item label="被申请人对上述材料的质证意见">
146
+              <el-input type="textarea" v-model="formData1.respondentOpinion" placeholder="请输入" />
147
+            </el-form-item>
148
+          </el-col>
149
+          <el-col :span="24">
150
+            <el-form-item label="申请人对上述材料的质证意见">
151
+              <el-input type="textarea" v-model="formData1.applicantOpinion" placeholder="请输入" />
152
+            </el-form-item>
153
+          </el-col>
154
+        </el-form>
125
       </div>
155
       </div>
126
       <div v-if="modileFlag && updataFlag">
156
       <div v-if="modileFlag && updataFlag">
127
         <el-button style="width:100%;" type="primary" @click="determineMeeting" :disabled="!updataFlag">确定</el-button>
157
         <el-button style="width:100%;" type="primary" @click="determineMeeting" :disabled="!updataFlag">确定</el-button>
194
       mediateFile: [],
224
       mediateFile: [],
195
       formData: {
225
       formData: {
196
         mediaResult: 1,
226
         mediaResult: 1,
197
-        sealFlag: 1
227
+        sealFlag: 1,
228
+      },
229
+      formData1: {
230
+        appliIsAbsen: 0,
231
+        isAbsence: 0,
198
       },
232
       },
199
       caseFlowId: null,
233
       caseFlowId: null,
200
       headers: {
234
       headers: {
216
         officeFlag: 0,
250
         officeFlag: 0,
217
         caseId: null,
251
         caseId: null,
218
       },
252
       },
253
+      filedataz1: {
254
+        annexType: 6,
255
+        officeFlag: 0,
256
+        caseId: null,
257
+      },
219
       fileList1: [],
258
       fileList1: [],
220
       headers3: {
259
       headers3: {
221
         // Authorization: "Bearer " + token,
260
         // Authorization: "Bearer " + token,
227
         isMediaBook: 1,
266
         isMediaBook: 1,
228
         caseId: null,
267
         caseId: null,
229
       },
268
       },
269
+      filedataz3: {
270
+        annexType: 3,
271
+        officeFlag: 0,
272
+        isMediaBook: 1,
273
+        caseId: null,
274
+      },
230
       fileList3: [],
275
       fileList3: [],
231
       editFlag: false,
276
       editFlag: false,
232
       micFlag: true,
277
       micFlag: true,
233
       videoFlag: true,
278
       videoFlag: true,
234
       sharFlag: true,
279
       sharFlag: true,
280
+      appType: "tiaojie",
281
+      timer: null
235
     };
282
     };
236
   },
283
   },
237
   methods: {
284
   methods: {
238
     UploadUrl() {
285
     UploadUrl() {
239
-      return window.location.origin + "/tjformal/video/upload";
286
+      if (this.appType == "tiaojie") {
287
+        return window.location.origin + "/tjformal/video/upload";
288
+      } else if (this.appType == "zhongcai") {
289
+        return window.location.origin + "/zhongcai/video/upload";
290
+      }
240
     },
291
     },
241
     /**移动端点击换出/隐藏视频列表 */
292
     /**移动端点击换出/隐藏视频列表 */
242
     checkList(data) {
293
     checkList(data) {
350
       this.fileList1 = fileList;
401
       this.fileList1 = fileList;
351
       if (file.name.indexOf("docx") == -1) {
402
       if (file.name.indexOf("docx") == -1) {
352
         this.filedata1.officeFlag = 0;
403
         this.filedata1.officeFlag = 0;
404
+        this.filedataz1.officeFlag = 0;
353
       } else {
405
       } else {
354
         this.filedata1.officeFlag = 1;
406
         this.filedata1.officeFlag = 1;
407
+        this.filedataz1.officeFlag = 1;
355
       }
408
       }
356
     },
409
     },
357
     // 文件上传成功
410
     // 文件上传成功
366
     beforeUpload3(file, fileList) {
419
     beforeUpload3(file, fileList) {
367
       this.fileList3 = fileList;
420
       this.fileList3 = fileList;
368
       this.filedata3.officeFlag = 1;
421
       this.filedata3.officeFlag = 1;
422
+      this.filedataz3.officeFlag = 1;
369
     },
423
     },
370
     // 文件上传成功
424
     // 文件上传成功
371
     handlSuccess3(res, file) {
425
     handlSuccess3(res, file) {
377
       this.selectByIdFn(this.caseId);
431
       this.selectByIdFn(this.caseId);
378
     },
432
     },
379
     preview(item, type) {
433
     preview(item, type) {
380
-      if (this.modileFlag) {
381
-        if (item.onlyOfficeFileId) {
382
-          // this.$router.push({
383
-          //   path: "/onlyoffice",
384
-          //   query: { id: item.onlyOfficeFileId, flag: flag },
385
-          // });
386
-          let flag = 1;
387
-          if (this.editFlag && type != 0) {
388
-            flag = 1;
389
-          } else {
390
-            flag = 0;
391
-          }
392
-          let token = sessionStorage.getItem("token");
434
+      if (this.modileFlag && item.onlyOfficeFileId) {
435
+        let flag = 1;
436
+        if (this.editFlag && type != 0) {
437
+          flag = 1;
438
+        } else {
439
+          flag = 0;
440
+        }
441
+        let token = sessionStorage.getItem("token");
442
+        if (this.appType == "tiaojie") {
393
           window.open(
443
           window.open(
394
             `http://121.40.189.20:9002/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`,
444
             `http://121.40.189.20:9002/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`,
395
             "_black"
445
             "_black"
396
             // `http://localhost:81/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`,
446
             // `http://localhost:81/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`,
397
             // "_black"
447
             // "_black"
398
           );
448
           );
399
-        } else {
400
-          window.open(window.location.origin + '/tjformal' + item.annexPath, "_black");
449
+        }else if(this.appType == "zhongcai"){
450
+          window.open(
451
+            `http://121.40.189.20:8000/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`,
452
+            "_black"
453
+            // `http://localhost:81/onlyoffice?id=${item.onlyOfficeFileId}&flag=${flag}&token=${token}`,
454
+            // "_black"
455
+          );
401
         }
456
         }
402
-      }else{
457
+
458
+      } else {
403
         window.open(window.location.origin + '/tjformal' + item.annexPath, "_black");
459
         window.open(window.location.origin + '/tjformal' + item.annexPath, "_black");
404
       }
460
       }
405
 
461
 
461
         this.mediateFile = [];
517
         this.mediateFile = [];
462
         let fileList = res.data.caseAttachList;
518
         let fileList = res.data.caseAttachList;
463
         fileList.forEach((item) => {
519
         fileList.forEach((item) => {
464
-          if (item.annexType == 2) {
465
-            this.applicantFile.push(item);
466
-          } else if (item.annexType == 12) {
467
-            this.resFile.push(item);
468
-          } else if (item.annexType == 7) {
469
-            this.mediateFile.push(item);
520
+          if (this.appType == "tiaojie") {
521
+            if (item.annexType == 2) {
522
+              this.applicantFile.push(item);
523
+            } else if (item.annexType == 12) {
524
+              this.resFile.push(item);
525
+            } else if (item.annexType == 7) {
526
+              this.mediateFile.push(item);
527
+            }
528
+          } else if (this.appType == "zhongcai") {
529
+            if (item.annexType == 2) {
530
+              this.applicantFile.push(item);
531
+            } else if (item.annexType == 6) {
532
+              this.resFile.push(item);
533
+            } else if (item.annexType == 3) {
534
+              this.mediateFile.push(item);
535
+            }
470
           }
536
           }
471
         });
537
         });
472
       });
538
       });
480
     },
546
     },
481
     async exitRoom() {
547
     async exitRoom() {
482
       // // 关闭识别
548
       // // 关闭识别
549
+      clearInterval(this.timer)
483
       Object.keys(this.asrList).forEach((key) => {
550
       Object.keys(this.asrList).forEach((key) => {
484
         this.asrList[key].stop();
551
         this.asrList[key].stop();
485
       });
552
       });
629
     mediationPop() {
696
     mediationPop() {
630
       this.drawerMediatio = true;
697
       this.drawerMediatio = true;
631
       this.selectByIdFn(this.caseId);
698
       this.selectByIdFn(this.caseId);
632
-      setInterval(() => {
699
+      this.timer = setInterval(() => {
633
         this.selectByIdFn(this.caseId);
700
         this.selectByIdFn(this.caseId);
634
       }, 8000);
701
       }, 8000);
635
       this.selectRoleMenuByCaseIdFn(this.caseId);
702
       this.selectRoleMenuByCaseIdFn(this.caseId);
637
     },
704
     },
638
     // 确定会议结果
705
     // 确定会议结果
639
     determineMeeting() {
706
     determineMeeting() {
640
-      let valueMeeting = {
641
-        id: this.caseId,
642
-        mediaResult: this.formData.mediaResult,
643
-        sealFlag: this.formData.sealFlag,
644
-        caseFlowId: this.caseFlowId
707
+      let valueMeeting = {};
708
+      if (this.appType == "tiaojie") {
709
+        valueMeeting = {
710
+          id: this.caseId,
711
+          mediaResult: this.formData.mediaResult,
712
+          sealFlag: this.formData.sealFlag,
713
+          caseFlowId: this.caseFlowId
714
+        }
715
+      } else if (this.appType == "zhongcai") {
716
+        this.formData1.caseAppliId = this.caseId;
717
+        valueMeeting = this.formData1;
645
       }
718
       }
646
       confirmMeetingResult(valueMeeting).then(res => {
719
       confirmMeetingResult(valueMeeting).then(res => {
647
         if (res.code == 200) {
720
         if (res.code == 200) {
685
           this.drawerSize = "75%"
758
           this.drawerSize = "75%"
686
         }
759
         }
687
       }
760
       }
688
-    }
761
+    },
689
   },
762
   },
690
   async mounted() {
763
   async mounted() {
691
     if (this.userList.length == 1) {
764
     if (this.userList.length == 1) {
712
     this.headers3.Authorization = "Bearer " + this.token;
785
     this.headers3.Authorization = "Bearer " + this.token;
713
     this.filedata.caseId = this.caseId;
786
     this.filedata.caseId = this.caseId;
714
     this.filedata1.caseId = this.caseId;
787
     this.filedata1.caseId = this.caseId;
788
+    this.filedataz1.caseId = this.caseId;
715
     this.filedata3.caseId = this.caseId;
789
     this.filedata3.caseId = this.caseId;
790
+    this.filedataz3.caseId = this.caseId;
716
     window.sessionStorage.setItem("token", this.token);
791
     window.sessionStorage.setItem("token", this.token);
717
     window.sessionStorage.setItem("userId", this.id);
792
     window.sessionStorage.setItem("userId", this.id);
718
     this.secretaryRoleByUserIdFn(this.id, this.caseId);
793
     this.secretaryRoleByUserIdFn(this.id, this.caseId);
781
     };
856
     };
782
   },
857
   },
783
   created() {
858
   created() {
859
+    this.appType = sessionStorage.getItem('type');
784
     trtc = TRTC.create();
860
     trtc = TRTC.create();
785
   },
861
   },
786
 };
862
 };

+ 1
- 1
vue.config.js Просмотреть файл

29
           '^/zhongcai': '' // 将/api前缀重写为空字符串
29
           '^/zhongcai': '' // 将/api前缀重写为空字符串
30
         },
30
         },
31
       },
31
       },
32
-      '/zhongcaiz': {
32
+      '/zhongcaiprod': {
33
         target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址
33
         target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址
34
         changeOrigin: true, // 是否改变Origin头信息
34
         changeOrigin: true, // 是否改变Origin头信息
35
         secure : false,
35
         secure : false,