From e53f550e2f19c8b8a73e91237e2ea7681e6a5369 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Tue, 21 Dec 2021 14:13:10 +0800 Subject: [PATCH] commit --- .../pags/consultationDetails.vue | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue index def0339eb..2dc31a08e 100644 --- a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue +++ b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue @@ -475,19 +475,27 @@ export default { } }, mounted() { - this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles) - let json = JSON.parse(this.$route.query.item.files)[0] - this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', { - standId: json.standId, - fileType: json.standFileClassify, - pageSize: 9999, - page: 1 - }, {}, res => { - if (res.ok) { - this.options = res.data.list - } - }, e => { - }) + if (JSON.parse(this.$route.query.item.wkfiles).length) { + this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles) + } else { + this.fileInfoLists = [] + } + if (JSON.parse(this.$route.query.item.files).length) { + let json = JSON.parse(this.$route.query.item.files)[0] + this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', { + standId: json.standId, + fileType: json.standFileClassify, + pageSize: 9999, + page: 1 + }, {}, res => { + if (res.ok) { + this.options = res.data.list + } + }, e => { + }) + } else { + this.options = [] + } this.getList() this.getIdeaKey() this.getFileInfo()