This commit is contained in:
zhutianqi
2021-12-21 14:13:10 +08:00
parent 20edc0acfa
commit e53f550e2f
@@ -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()