From b4cf7b9be6bacfcf76e68092c5828d085aeb4af4 Mon Sep 17 00:00:00 2001 From: monkeyhouyi Date: Sat, 12 Oct 2024 16:29:10 +0800 Subject: [PATCH] 案件处理 --- src/views/baseCaseHandling/Form.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+), 0 deletions(-) diff --git a/src/views/baseCaseHandling/Form.vue b/src/views/baseCaseHandling/Form.vue index e884450..15f6305 100644 --- a/src/views/baseCaseHandling/Form.vue +++ b/src/views/baseCaseHandling/Form.vue @@ -539,6 +539,22 @@ export default { }).then(async (res) => { res.data.districtCountyName = this.areaOptions.find(item => item.id == res.data.districtCounty).fullName; res.data.categoryName = this.platformTypeOptions.find(v => v.Id == res.data.category || v.FullName == res.data.category).FullName; + this.isEmpty(res.data.registerApproval) && (res.data.registerApproval = ''); + !res.data.registerApprovalFileModel && (res.data.registerApprovalFileModel = []); + this.isEmpty(res.data.record) && (res.data.record = ''); + !res.data.recordFileModel && (res.data.recordFileModel = []); + this.isEmpty(res.data.caseHandlingOpinions) && (res.data.caseHandlingOpinions = ''); + !res.data.caseHandlingOpinionsFileModel && (res.data.caseHandlingOpinionsFileModel = []); + this.isEmpty(res.data.enforcementRecords) && (res.data.enforcementRecords = ''); + !res.data.enforcementRecordsFileModel && (res.data.enforcementRecordsFileModel = []); + this.isEmpty(res.data.noticeLetter) && (res.data.noticeLetter = ''); + !res.data.noticeLetterFileModel && (res.data.noticeLetterFileModel = []); + this.isEmpty(res.data.punishmentDecision) && (res.data.punishmentDecision = ''); + !res.data.punishmentDecisionFileModel && (res.data.punishmentDecisionFileModel = []); + this.isEmpty(res.data.closingReport) && (res.data.closingReport = ''); + !res.data.closingReportFileModel && (res.data.closingReportFileModel = []); + this.isEmpty(res.data.other) && (res.data.other = ''); + !res.data.otherFileModel && (res.data.otherFileModel = []); this.dataForm = res.data; this.loading = false; }).catch(() => { @@ -547,6 +563,9 @@ export default { } }); }, + isEmpty(val) { + return !val || val == 'null' + }, // 上报/下派 submit(type) { // type: 1 上报 0 保存 -- libgit2 0.21.4