Browse Source

Merge branch 'gyj' of SH-Arbitrate/Mediation-Frontend into dev

gaogaoyujie 2 years ago
parent
commit
570ffbfee8

+ 16
- 8
src/views/caseManagement/components/mediation.vue View File

@@ -40,7 +40,7 @@
40 40
           <el-form-item label="申请人案件证据:">
41 41
             <div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
42 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 44
             </div>
45 45
           </el-form-item>
46 46
         </el-col>
@@ -55,14 +55,14 @@
55 55
             </el-radio-group>
56 56
           </el-form-item>
57 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 61
                 <el-radio :label="1">是</el-radio>
62 62
                 <el-radio :label="0">否</el-radio>
63 63
             </el-radio-group>
64 64
           </el-form-item>
65
-        </el-col> -->
65
+        </el-col>
66 66
         <!-- <el-col :span="24">
67 67
           <el-form-item label="被申请人案件证据:">
68 68
             <div v-if="quiltArr.length == 0">被申请人暂未提供证据!</div>
@@ -142,6 +142,7 @@ export default {
142 142
   props: ["mediationVisable", "mediationData", "queryParams","applicant"],
143 143
   data() {
144 144
     return {
145
+      sealFlag:1,
145 146
       loanStartDate: "",
146 147
       codes: null,
147 148
       title: "线上调解",
@@ -260,8 +261,8 @@ export default {
260 261
     /** 发起会议 */
261 262
     openmeeting() {
262 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,17 +326,24 @@ export default {
325 326
       let mediationVal = {}
326 327
       
327 328
       if (this.codes == 200) {
329
+        if(this.formData.mediaResult != 1){
330
+          this.sealFlag = 0
331
+        }
328 332
         mediationVal = {
329 333
           id: this.mediationData.id,
330 334
           caseFlowId: this.mediationData.caseFlowId,
331 335
           attachList: this.attachList,
332
-          // isReconci:this.isReconci,
336
+          sealFlag:this.sealFlag,
333 337
           mediaResult: this.formData.mediaResult,
334 338
         }
335 339
       } else {
340
+        if(this.formData.mediaResult != 1){
341
+          this.sealFlag = 0
342
+        }
336 343
         mediationVal = {
337 344
           id: this.mediationData.id,
338 345
           caseFlowId: this.mediationData.caseFlowId,
346
+          sealFlag:this.sealFlag,
339 347
           mediaResult: this.formData.mediaResult,
340 348
         }
341 349
       }

+ 2
- 25
src/views/onlyoffice/onlyoffice.vue View File

@@ -26,11 +26,11 @@ export default {
26 26
     },
27 27
     methods: {
28 28
         getConfig(id) {
29
-            let edit = edit;
29
+            let edit = "edit";
30 30
             if (this.flag == 0) {
31 31
                 edit = 'view';
32 32
             } else {
33
-                edit = 'edit'
33
+                edit = 'edit';
34 34
             }
35 35
             axios.get(`http://121.40.189.20:9090/onlyOfficeConfig/${edit}/${id}/${this.userId}/desktop/true`).then(res => {
36 36
                 this.config = res.data;
@@ -83,35 +83,12 @@ export default {
83 83
         websocketclose(e) {
84 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 87
     mounted() {
110 88
         let id = this.$route.query.id;
111 89
         this.flag = this.$route.query.flag;
112 90
         this.getConfig(id);
113 91
         this.initWebSocket();
114
-        console.log(this.userId, "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP");
115 92
     },
116 93
     watch: {
117 94