|
|
@@ -79,6 +79,22 @@
|
|
79
|
79
|
>被申请人上传证据</el-button
|
|
80
|
80
|
>
|
|
81
|
81
|
</el-upload>
|
|
|
82
|
+ <el-upload
|
|
|
83
|
+ v-if="editFlag"
|
|
|
84
|
+ ref="upload3"
|
|
|
85
|
+ :limit="1"
|
|
|
86
|
+ action="https://api.xayunmei.com/tiaojieapi/video/upload"
|
|
|
87
|
+ :headers="headers3"
|
|
|
88
|
+ :data="filedata3"
|
|
|
89
|
+ :on-change="beforeUpload3"
|
|
|
90
|
+ :on-success="handlSuccess3"
|
|
|
91
|
+ :file-list="fileList3"
|
|
|
92
|
+ accept=".doc,.docx"
|
|
|
93
|
+ >
|
|
|
94
|
+ <el-button slot="trigger" size="small" type="primary"
|
|
|
95
|
+ >上传调解书</el-button
|
|
|
96
|
+ >
|
|
|
97
|
+ </el-upload>
|
|
82
|
98
|
</div>
|
|
83
|
99
|
<div class="list">
|
|
84
|
100
|
<div class="applicant" v-if="applicantFile.length > 0">
|
|
|
@@ -87,7 +103,7 @@
|
|
87
|
103
|
style="color: #104fad; cursor: pointer"
|
|
88
|
104
|
v-for="(item, index) in applicantFile"
|
|
89
|
105
|
:key="index"
|
|
90
|
|
- @click="preview(item)"
|
|
|
106
|
+ @click="preview(item,0)"
|
|
91
|
107
|
>
|
|
92
|
108
|
{{ item.annexName }}
|
|
93
|
109
|
</div>
|
|
|
@@ -98,7 +114,18 @@
|
|
98
|
114
|
style="color: #104fad; cursor: pointer"
|
|
99
|
115
|
v-for="(item, index) in resFile"
|
|
100
|
116
|
:key="index"
|
|
101
|
|
- @click="preview(item)"
|
|
|
117
|
+ @click="preview(item,0)"
|
|
|
118
|
+ >
|
|
|
119
|
+ {{ item.annexName }}
|
|
|
120
|
+ </div>
|
|
|
121
|
+ </div>
|
|
|
122
|
+ <div class="mediate" v-if="mediateFile.length > 0">
|
|
|
123
|
+ <div>调解书</div>
|
|
|
124
|
+ <div
|
|
|
125
|
+ style="color: #104fad; cursor: pointer"
|
|
|
126
|
+ v-for="(item, index) in mediateFile"
|
|
|
127
|
+ :key="index"
|
|
|
128
|
+ @click="preview(item,1)"
|
|
102
|
129
|
>
|
|
103
|
130
|
{{ item.annexName }}
|
|
104
|
131
|
</div>
|
|
|
@@ -131,6 +158,7 @@ import {
|
|
131
|
158
|
htmlToPDF,
|
|
132
|
159
|
selectById,
|
|
133
|
160
|
selectRoleMenuByCaseId,
|
|
|
161
|
+ getMenuPermsByUser,
|
|
134
|
162
|
} from "@/api/room";
|
|
135
|
163
|
import { getWidth, getHeight, getWidthPhone, getModile } from "@/utils/utils";
|
|
136
|
164
|
import roomFooter from "./components/roomFooter.vue";
|
|
|
@@ -175,6 +203,7 @@ export default {
|
|
175
|
203
|
token: "",
|
|
176
|
204
|
applicantFile: [],
|
|
177
|
205
|
resFile: [],
|
|
|
206
|
+ mediateFile:[],
|
|
178
|
207
|
headers: {
|
|
179
|
208
|
// Authorization: "Bearer " + token,
|
|
180
|
209
|
Authorization: "",
|
|
|
@@ -195,9 +224,27 @@ export default {
|
|
195
|
224
|
caseId: null,
|
|
196
|
225
|
},
|
|
197
|
226
|
fileList1: [],
|
|
|
227
|
+ headers3: {
|
|
|
228
|
+ // Authorization: "Bearer " + token,
|
|
|
229
|
+ Authorization: "",
|
|
|
230
|
+ },
|
|
|
231
|
+ filedata3: {
|
|
|
232
|
+ annexType: 7,
|
|
|
233
|
+ officeFlag: 0,
|
|
|
234
|
+ caseId: null,
|
|
|
235
|
+ },
|
|
|
236
|
+ fileList3: [],
|
|
|
237
|
+ editFlag: false,
|
|
198
|
238
|
};
|
|
199
|
239
|
},
|
|
200
|
240
|
methods: {
|
|
|
241
|
+ /**获取当前用户操作权限 */
|
|
|
242
|
+ getMenuPermsByUserFn() {
|
|
|
243
|
+ getMenuPermsByUser().then((res) => {
|
|
|
244
|
+ // console.log(res.perms, "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKK");
|
|
|
245
|
+ this.editFlag = res.perms.includes("caseManagement:list:editOffice");
|
|
|
246
|
+ });
|
|
|
247
|
+ },
|
|
201
|
248
|
beforeUpload(file, fileList) {
|
|
202
|
249
|
this.fileList = fileList;
|
|
203
|
250
|
if (file.name.indexOf("docx") == -1) {
|
|
|
@@ -232,11 +279,24 @@ export default {
|
|
232
|
279
|
this.$refs.upload1.clearFiles();
|
|
233
|
280
|
this.selectByIdFn(this.caseId);
|
|
234
|
281
|
},
|
|
235
|
|
- preview(item) {
|
|
|
282
|
+ beforeUpload3(file, fileList) {
|
|
|
283
|
+ this.fileList3 = fileList;
|
|
|
284
|
+ this.filedata3.officeFlag = 1;
|
|
|
285
|
+ },
|
|
|
286
|
+ // 文件上传成功
|
|
|
287
|
+ handlSuccess3(res, file) {
|
|
|
288
|
+ this.$message({
|
|
|
289
|
+ message: "上传成功",
|
|
|
290
|
+ type: "success",
|
|
|
291
|
+ });
|
|
|
292
|
+ this.$refs.upload3.clearFiles();
|
|
|
293
|
+ this.selectByIdFn(this.caseId);
|
|
|
294
|
+ },
|
|
|
295
|
+ preview(item,flag) {
|
|
236
|
296
|
if (item.onlyOfficeFileId) {
|
|
237
|
297
|
this.$router.push({
|
|
238
|
298
|
path: "/onlyoffice",
|
|
239
|
|
- query: { id: item.onlyOfficeFileId },
|
|
|
299
|
+ query: { id: item.onlyOfficeFileId,flag:flag },
|
|
240
|
300
|
});
|
|
241
|
301
|
} else {
|
|
242
|
302
|
window.open(
|
|
|
@@ -290,18 +350,22 @@ export default {
|
|
290
|
350
|
this.selectByIdFn(this.caseId);
|
|
291
|
351
|
}, 8000);
|
|
292
|
352
|
this.selectRoleMenuByCaseIdFn(this.caseId);
|
|
|
353
|
+ this.getMenuPermsByUserFn();
|
|
293
|
354
|
},
|
|
294
|
355
|
/** 获取证据列表 */
|
|
295
|
356
|
selectByIdFn(id) {
|
|
296
|
357
|
selectById(id).then((res) => {
|
|
297
|
358
|
this.applicantFile = [];
|
|
298
|
359
|
this.resFile = [];
|
|
|
360
|
+ this.mediateFile = [];
|
|
299
|
361
|
let fileList = res.data.caseAttachList;
|
|
300
|
362
|
fileList.forEach((item) => {
|
|
301
|
363
|
if (item.annexType == 2) {
|
|
302
|
364
|
this.applicantFile.push(item);
|
|
303
|
365
|
} else if (item.annexType == 12) {
|
|
304
|
366
|
this.resFile.push(item);
|
|
|
367
|
+ }else if (item.annexType == 7){
|
|
|
368
|
+ this.mediateFile.push(item)
|
|
305
|
369
|
}
|
|
306
|
370
|
});
|
|
307
|
371
|
});
|
|
|
@@ -423,7 +487,6 @@ export default {
|
|
423
|
487
|
/**获取申请人被申请人权限 */
|
|
424
|
488
|
selectRoleMenuByCaseIdFn(caseId) {
|
|
425
|
489
|
selectRoleMenuByCaseId(caseId).then((res) => {
|
|
426
|
|
- console.log(res, "LLLLLLLLLLLLLLLLLLLLLLLLLL");
|
|
427
|
490
|
if (res.appFlag && res.appFlag == "1") {
|
|
428
|
491
|
this.appFlag = true;
|
|
429
|
492
|
this.resFlag = false;
|
|
|
@@ -451,8 +514,10 @@ export default {
|
|
451
|
514
|
this.token = this.$route.query.token;
|
|
452
|
515
|
this.headers.Authorization = "Bearer " + this.token;
|
|
453
|
516
|
this.headers1.Authorization = "Bearer " + this.token;
|
|
|
517
|
+ this.headers3.Authorization = "Bearer " + this.token;
|
|
454
|
518
|
this.filedata.caseId = this.caseId;
|
|
455
|
519
|
this.filedata1.caseId = this.caseId;
|
|
|
520
|
+ this.filedata3.caseId = this.caseId;
|
|
456
|
521
|
window.sessionStorage.setItem("token", this.token);
|
|
457
|
522
|
window.sessionStorage.setItem("userId", this.id);
|
|
458
|
523
|
this.secretaryRoleByUserIdFn(this.id, this.caseId);
|
|
|
@@ -675,7 +740,8 @@ export default {
|
|
675
|
740
|
flex-wrap: wrap;
|
|
676
|
741
|
}
|
|
677
|
742
|
.applicant,
|
|
678
|
|
-.res {
|
|
|
743
|
+.res,
|
|
|
744
|
+.mediate {
|
|
679
|
745
|
width: 100%;
|
|
680
|
746
|
margin-left: 20px;
|
|
681
|
747
|
margin-bottom: 10px;
|