'证据修改显隐问题调整'

This commit is contained in:
hhl123456789
2024-03-18 11:41:50 +08:00
parent 81ac5528a1
commit 6a0a382963
@@ -84,7 +84,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> --> </el-col> -->
<el-col :span="12"> <el-col :span="12" v-if="buttonFlag">
<el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence"> <el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence">
<el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf" <el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
:action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview" :action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview"
@@ -97,7 +97,7 @@
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="modelFlag"> <el-col :span="24" v-if="modelFlag && showEvidence">
<el-form-item label="证据:"> <el-form-item label="证据:">
<div v-for="(item, index) in formData.caseAttachList" :key="index" v-if="item.annexType == 2"> <div v-for="(item, index) in formData.caseAttachList" :key="index" v-if="item.annexType == 2">
<div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)"> <div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
@@ -578,6 +578,7 @@ export default {
getUserInfoList: {}, getUserInfoList: {},
applicationFlag: null, applicationFlag: null,
showmediate: false, showmediate: false,
showEvidence: false,//是否显示证据
formZipData: {}, formZipData: {},
nationalityList: [ nationalityList: [
{ {
@@ -671,12 +672,14 @@ export default {
caseApplicationSelectByIdFn(data) { caseApplicationSelectByIdFn(data) {
this.applicantEvidence = []; this.applicantEvidence = [];
this.respondentEvidence = []; this.respondentEvidence = [];
this.showEvidence = false;
caseApplicationSelectById({ id: data }).then((res) => { caseApplicationSelectById({ id: data }).then((res) => {
res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex) res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
this.formData = res.data; this.formData = res.data;
this.formData.caseAttachList.forEach((item) => { this.formData.caseAttachList.forEach((item) => {
if (item.annexType == 2) { if (item.annexType == 2) {
this.applicantEvidence.push(item); this.applicantEvidence.push(item);
this.showEvidence = true
} else if (item.annexType == 6) { } else if (item.annexType == 6) {
// this.respondentEvidence.push(item); // this.respondentEvidence.push(item);
} else if (item.annexType == 7) { } else if (item.annexType == 7) {
@@ -740,9 +743,10 @@ export default {
return this.$confirm(`确定移除 ${file.name}?`); return this.$confirm(`确定移除 ${file.name}?`);
}, },
handleRemove(file, fileList) { handleRemove(file, fileList) {
this.caseAttachListArr = this.caseAttachListArr.filter( let newcaseAttachList = this.formData.caseAttachList.filter(item =>
(item) => item.annexId != file.annexId item.annexId !== file.response.annexId
); )
this.formData.caseAttachList = newcaseAttachList
}, },
handleExceedZip(files, fileList) { handleExceedZip(files, fileList) {
this.$message.warning(`当前限制选择 1 个文件`); this.$message.warning(`当前限制选择 1 个文件`);