gyj 2 лет назад
Родитель
Сommit
0e303073df
2 измененных файлов: 18 добавлений и 33 удалений
  1. 16
    8
      src/views/caseManagement/components/mediation.vue
  2. 2
    25
      src/views/onlyoffice/onlyoffice.vue

+ 16
- 8
src/views/caseManagement/components/mediation.vue Просмотреть файл

40
           <el-form-item label="申请人案件证据:">
40
           <el-form-item label="申请人案件证据:">
41
             <div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
41
             <div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
42
             <div v-for="(item, index) in applicateArr" :key="index" v-if="item.annexType == 2">
42
             <div v-for="(item, index) in applicateArr" :key="index" v-if="item.annexType == 2">
43
-              <a href="#" @click="toFile(item, index)" style="color: blue">{{ item.annexName }}</a>
43
+              <a href="#" @click="toFile2(item.annexPath)" style="color: blue">{{ item.annexName }}</a>
44
             </div>
44
             </div>
45
           </el-form-item>
45
           </el-form-item>
46
         </el-col>
46
         </el-col>
55
             </el-radio-group>
55
             </el-radio-group>
56
           </el-form-item>
56
           </el-form-item>
57
         </el-col>
57
         </el-col>
58
-        <!-- <el-col :span="24">
59
-          <el-form-item label="是否和解" v-if="mediaResult==1">
60
-             <el-radio-group v-model="isReconci">
58
+        <el-col :span="24">
59
+          <el-form-item label="是否用印申请" v-if="formData.mediaResult == 1">
60
+             <el-radio-group v-model="sealFlag">
61
                 <el-radio :label="1">是</el-radio>
61
                 <el-radio :label="1">是</el-radio>
62
                 <el-radio :label="0">否</el-radio>
62
                 <el-radio :label="0">否</el-radio>
63
             </el-radio-group>
63
             </el-radio-group>
64
           </el-form-item>
64
           </el-form-item>
65
-        </el-col> -->
65
+        </el-col>
66
         <!-- <el-col :span="24">
66
         <!-- <el-col :span="24">
67
           <el-form-item label="被申请人案件证据:">
67
           <el-form-item label="被申请人案件证据:">
68
             <div v-if="quiltArr.length == 0">被申请人暂未提供证据!</div>
68
             <div v-if="quiltArr.length == 0">被申请人暂未提供证据!</div>
142
   props: ["mediationVisable", "mediationData", "queryParams","applicant"],
142
   props: ["mediationVisable", "mediationData", "queryParams","applicant"],
143
   data() {
143
   data() {
144
     return {
144
     return {
145
+      sealFlag:1,
145
       loanStartDate: "",
146
       loanStartDate: "",
146
       codes: null,
147
       codes: null,
147
       title: "线上调解",
148
       title: "线上调解",
260
     /** 发起会议 */
261
     /** 发起会议 */
261
     openmeeting() {
262
     openmeeting() {
262
       window.open(
263
       window.open(
263
-        // `http://localhost:8080/#/home?name=${this.user}&id=${this.formData.id}&userId=${this.userId}&roomId=${this.formData.roomId}&type=tiaojie`
264
-        `https://txroom.xayunmei.com/#/home?name=${this.user}&id=${this.formData.id}&userId=${this.userId}&roomId=${this.formData.roomId}&type=tiaojie`
264
+        // `http://localhost:8080/#/home?name=${this.user}&id=${this.formData.id}&userId=${this.userId}&roomId=${this.formData.roomId}&type=tiaojie&token=${getToken()}`
265
+        `https://txroom.xayunmei.com/#/home?name=${this.user}&id=${this.formData.id}&userId=${this.userId}&roomId=${this.formData.roomId}&type=tiaojie&token=${getToken()}`
265
       );
266
       );
266
     },
267
     },
267
     /**提交仲裁结果 */
268
     /**提交仲裁结果 */
325
       let mediationVal = {}
326
       let mediationVal = {}
326
       
327
       
327
       if (this.codes == 200) {
328
       if (this.codes == 200) {
329
+        if(this.formData.mediaResult != 1){
330
+          this.sealFlag = 0
331
+        }
328
         mediationVal = {
332
         mediationVal = {
329
           id: this.mediationData.id,
333
           id: this.mediationData.id,
330
           caseFlowId: this.mediationData.caseFlowId,
334
           caseFlowId: this.mediationData.caseFlowId,
331
           attachList: this.attachList,
335
           attachList: this.attachList,
332
-          // isReconci:this.isReconci,
336
+          sealFlag:this.sealFlag,
333
           mediaResult: this.formData.mediaResult,
337
           mediaResult: this.formData.mediaResult,
334
         }
338
         }
335
       } else {
339
       } else {
340
+        if(this.formData.mediaResult != 1){
341
+          this.sealFlag = 0
342
+        }
336
         mediationVal = {
343
         mediationVal = {
337
           id: this.mediationData.id,
344
           id: this.mediationData.id,
338
           caseFlowId: this.mediationData.caseFlowId,
345
           caseFlowId: this.mediationData.caseFlowId,
346
+          sealFlag:this.sealFlag,
339
           mediaResult: this.formData.mediaResult,
347
           mediaResult: this.formData.mediaResult,
340
         }
348
         }
341
       }
349
       }

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

26
     },
26
     },
27
     methods: {
27
     methods: {
28
         getConfig(id) {
28
         getConfig(id) {
29
-            let edit = edit;
29
+            let edit = "edit";
30
             if (this.flag == 0) {
30
             if (this.flag == 0) {
31
                 edit = 'view';
31
                 edit = 'view';
32
             } else {
32
             } else {
33
-                edit = 'edit'
33
+                edit = 'edit';
34
             }
34
             }
35
             axios.get(`http://121.40.189.20:9090/onlyOfficeConfig/${edit}/${id}/${this.userId}/desktop/true`).then(res => {
35
             axios.get(`http://121.40.189.20:9090/onlyOfficeConfig/${edit}/${id}/${this.userId}/desktop/true`).then(res => {
36
                 this.config = res.data;
36
                 this.config = res.data;
83
         websocketclose(e) {
83
         websocketclose(e) {
84
             console.log('断开连接', e)
84
             console.log('断开连接', e)
85
         },
85
         },
86
-        // 点击按钮
87
-        // btnClick() {
88
-        //     // 因为需求是每次点击都是发起不同ws连接,拿到的数据也不一致,所以连接前要先断开上次的连接
89
-        //     if (this.websock) {
90
-        //         this.websock.close() // 关闭websocket连接
91
-        //     }
92
-        //     this.initWebSocket() // 初始化weosocket,发起连接
93
-        //     // 这里使用定时器是为了等待连接后才发送数据,避免错误
94
-        //     setTimeout(() => {
95
-        //         //添加状态判断,当为OPEN时,前端发送消息给后端
96
-        //         if (this.websock.readyState === 1) {
97
-        //             // 把后台需要的参数数据传过去
98
-        //             let obj = {
99
-        //                 jobId: 111,
100
-        //                 token: 'xxxxx',
101
-        //                 message: 'send ok'
102
-        //             }
103
-        //             //发给后端的数据需要字符串化
104
-        //             this.websock.send(JSON.stringify(obj))
105
-        //         }
106
-        //     }, 500)
107
-        // }
108
     },
86
     },
109
     mounted() {
87
     mounted() {
110
         let id = this.$route.query.id;
88
         let id = this.$route.query.id;
111
         this.flag = this.$route.query.flag;
89
         this.flag = this.$route.query.flag;
112
         this.getConfig(id);
90
         this.getConfig(id);
113
         this.initWebSocket();
91
         this.initWebSocket();
114
-        console.log(this.userId, "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP");
115
     },
92
     },
116
     watch: {
93
     watch: {
117
 
94