|
|
@@ -124,6 +124,31 @@
|
|
124
|
124
|
</el-form>
|
|
125
|
125
|
<el-button @click="openmeeting" type="primary">发起会议</el-button>
|
|
126
|
126
|
<el-button @click="openArbitrationresults" type="primary" v-if="this.recordArr.length <= 0">确认会议结果</el-button>
|
|
|
127
|
+ <div style="margin-top:20px;width:250px">
|
|
|
128
|
+ <el-upload
|
|
|
129
|
+ class="upload-demo"
|
|
|
130
|
+ ref="fileupload"
|
|
|
131
|
+ accept=".doc,.docx"
|
|
|
132
|
+ :action="UploadUrl()"
|
|
|
133
|
+ :on-success="handlSuccess"
|
|
|
134
|
+ :on-remove="handleRemove"
|
|
|
135
|
+ :on-preview="handlePreview"
|
|
|
136
|
+ :before-remove="beforeRemove"
|
|
|
137
|
+ :headers="headers"
|
|
|
138
|
+ :data="filedata"
|
|
|
139
|
+ multiple
|
|
|
140
|
+ :limit="3"
|
|
|
141
|
+ :on-exceed="handleExceed"
|
|
|
142
|
+ :before-upload="beforeAvatarUpload"
|
|
|
143
|
+ :file-list="fileList"
|
|
|
144
|
+ >
|
|
|
145
|
+ <el-button type="primary">上传案件笔录</el-button>
|
|
|
146
|
+ <div slot="tip" class="el-upload__tip">
|
|
|
147
|
+ 文件支持上传.doc,docx文件
|
|
|
148
|
+ </div>
|
|
|
149
|
+ </el-upload>
|
|
|
150
|
+ </div>
|
|
|
151
|
+
|
|
127
|
152
|
<div slot="footer" class="dialog-footer">
|
|
128
|
153
|
<el-button class="endbutton" :disabled="showsubmit && recordArr.length == 0" @click="submitResults">提交</el-button>
|
|
129
|
154
|
<el-button @click="cancel" class="endbutton1"><span>关 闭</span></el-button>
|
|
|
@@ -294,6 +319,7 @@
|
|
294
|
319
|
</template>
|
|
295
|
320
|
|
|
296
|
321
|
<script>
|
|
|
322
|
+import { getToken } from "@/utils/auth";
|
|
297
|
323
|
import { getUserProfile } from "@/api/system/user";
|
|
298
|
324
|
import {
|
|
299
|
325
|
writtenHear,
|
|
|
@@ -307,6 +333,14 @@ export default {
|
|
307
|
333
|
data() {
|
|
308
|
334
|
return {
|
|
309
|
335
|
formData: {},
|
|
|
336
|
+ headers: {
|
|
|
337
|
+ Authorization: "Bearer " + getToken(),
|
|
|
338
|
+ },
|
|
|
339
|
+ filedata: {
|
|
|
340
|
+ annexType: 7,
|
|
|
341
|
+ id:0
|
|
|
342
|
+ },
|
|
|
343
|
+ upLife:'',
|
|
310
|
344
|
user: "",
|
|
311
|
345
|
userId: 1,
|
|
312
|
346
|
showArbitrationresults: false,
|
|
|
@@ -321,7 +355,8 @@ export default {
|
|
321
|
355
|
annexName: "", //笔录文件名
|
|
322
|
356
|
annexPath: "", //笔录文件地址
|
|
323
|
357
|
roomId:null,
|
|
324
|
|
- startTime:""
|
|
|
358
|
+ startTime:"",
|
|
|
359
|
+ fileList:[]
|
|
325
|
360
|
};
|
|
326
|
361
|
},
|
|
327
|
362
|
watch: {
|
|
|
@@ -331,6 +366,7 @@ export default {
|
|
331
|
366
|
this.reserveConferenceListFn({caseId:this.form.id});
|
|
332
|
367
|
this.getUser();
|
|
333
|
368
|
this.formData = this.form;
|
|
|
369
|
+ console.log(this.formData)
|
|
334
|
370
|
this.applicateArr = [];
|
|
335
|
371
|
this.quiltArr = [];
|
|
336
|
372
|
this.recordArr = [];
|
|
|
@@ -467,18 +503,55 @@ export default {
|
|
467
|
503
|
},
|
|
468
|
504
|
// 提交开庭审理结果
|
|
469
|
505
|
submitResults() {
|
|
470
|
|
- console.log(this.formData.id, "this.formData.id");
|
|
471
|
|
- let id = this.formData.id;
|
|
|
506
|
+ if(this.fileList.length==0){
|
|
|
507
|
+ this.$message({
|
|
|
508
|
+ showClose: true,
|
|
|
509
|
+ message: '请先上传案件笔录',
|
|
|
510
|
+ type:'warning'
|
|
|
511
|
+ });
|
|
|
512
|
+ }else{
|
|
|
513
|
+ let id = this.formData.id;
|
|
472
|
514
|
document({
|
|
473
|
515
|
id: id,
|
|
474
|
516
|
}).then((res) => {
|
|
475
|
|
- console.log(res, "提交开庭审理结果");
|
|
476
|
517
|
if (res.code == 200) {
|
|
477
|
518
|
this.$emit("getcaseApply", this.queryParams);
|
|
478
|
519
|
this.cancel();
|
|
|
520
|
+ this.fileList =[]
|
|
479
|
521
|
}
|
|
480
|
522
|
});
|
|
|
523
|
+ }
|
|
|
524
|
+
|
|
|
525
|
+ },
|
|
|
526
|
+ // 上传庭审笔录
|
|
|
527
|
+ UploadUrl() {
|
|
|
528
|
+ return window.location.origin + "/API/evidence/uploadRecord";
|
|
|
529
|
+ },
|
|
|
530
|
+ // 文件上传成功
|
|
|
531
|
+ handlSuccess(res, file) {
|
|
|
532
|
+ this.fileList.push(file)
|
|
|
533
|
+ },
|
|
|
534
|
+ // 文件列表移除文件时的钩子
|
|
|
535
|
+ handleRemove(file, fileList) {
|
|
|
536
|
+
|
|
|
537
|
+ },
|
|
|
538
|
+ handlePreview(file) {
|
|
|
539
|
+
|
|
|
540
|
+ },
|
|
|
541
|
+ // 删除文件之前的钩子,参数为上传的文件和文件列表,若返回 false 或者返回 Promise 且被 reject,则停止删除。
|
|
|
542
|
+ beforeRemove(file, fileList) {
|
|
|
543
|
+ return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
544
|
+ },
|
|
|
545
|
+ // 文件超出个数限制时的钩子
|
|
|
546
|
+ handleExceed(files, fileList) {
|
|
|
547
|
+ this.$message.warning(
|
|
|
548
|
+ `当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length
|
|
|
549
|
+ } 个文件`
|
|
|
550
|
+ );
|
|
481
|
551
|
},
|
|
|
552
|
+ beforeAvatarUpload(file){
|
|
|
553
|
+ this.filedata.id =this.formData.id
|
|
|
554
|
+ }
|
|
482
|
555
|
},
|
|
483
|
556
|
};
|
|
484
|
557
|
</script>
|