|
|
@@ -84,7 +84,7 @@
|
|
84
|
84
|
</el-select>
|
|
85
|
85
|
</el-form-item>
|
|
86
|
86
|
</el-col> -->
|
|
87
|
|
- <el-col :span="12">
|
|
|
87
|
+ <el-col :span="12" v-if="buttonFlag">
|
|
88
|
88
|
<el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence">
|
|
89
|
89
|
<el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
|
|
90
|
90
|
:action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview"
|
|
|
@@ -97,7 +97,7 @@
|
|
97
|
97
|
</el-upload>
|
|
98
|
98
|
</el-form-item>
|
|
99
|
99
|
</el-col>
|
|
100
|
|
- <el-col :span="24" v-if="modelFlag">
|
|
|
100
|
+ <el-col :span="24" v-if="modelFlag && showEvidence">
|
|
101
|
101
|
<el-form-item label="证据:">
|
|
102
|
102
|
<div v-for="(item, index) in formData.caseAttachList" :key="index" v-if="item.annexType == 2">
|
|
103
|
103
|
<div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
|
|
|
@@ -572,6 +572,7 @@ export default {
|
|
572
|
572
|
getUserInfoList: {},
|
|
573
|
573
|
applicationFlag: null,
|
|
574
|
574
|
showmediate: false,
|
|
|
575
|
+ showEvidence: false,//是否显示证据
|
|
575
|
576
|
formZipData: {},
|
|
576
|
577
|
nationalityList: [
|
|
577
|
578
|
{
|
|
|
@@ -678,6 +679,7 @@ export default {
|
|
678
|
679
|
this.formData.caseAttachList.forEach((item) => {
|
|
679
|
680
|
if (item.annexType == 2) {
|
|
680
|
681
|
this.applicantEvidence.push(item);
|
|
|
682
|
+ this.showEvidence = true
|
|
681
|
683
|
} else if (item.annexType == 6) {
|
|
682
|
684
|
// this.respondentEvidence.push(item);
|
|
683
|
685
|
} else if (item.annexType == 7) {
|
|
|
@@ -742,9 +744,10 @@ export default {
|
|
742
|
744
|
return this.$confirm(`确定移除 ${file.name}?`);
|
|
743
|
745
|
},
|
|
744
|
746
|
handleRemove(file, fileList) {
|
|
745
|
|
- this.caseAttachListArr = this.caseAttachListArr.filter(
|
|
746
|
|
- (item) => item.annexId != file.annexId
|
|
747
|
|
- );
|
|
|
747
|
+ let newcaseAttachList = this.formData.caseAttachList.filter(item =>
|
|
|
748
|
+ item.annexId !== file.response.annexId
|
|
|
749
|
+ )
|
|
|
750
|
+ this.formData.caseAttachList = newcaseAttachList
|
|
748
|
751
|
},
|
|
749
|
752
|
handleExceedZip(files, fileList) {
|
|
750
|
753
|
this.$message.warning(`当前限制选择 1 个文件`);
|