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() { mounted() {
this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles) if (JSON.parse(this.$route.query.item.wkfiles).length) {
let json = JSON.parse(this.$route.query.item.files)[0] this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles)
this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', { } else {
standId: json.standId, this.fileInfoLists = []
fileType: json.standFileClassify, }
pageSize: 9999, if (JSON.parse(this.$route.query.item.files).length) {
page: 1 let json = JSON.parse(this.$route.query.item.files)[0]
}, {}, res => { this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', {
if (res.ok) { standId: json.standId,
this.options = res.data.list fileType: json.standFileClassify,
} pageSize: 9999,
}, e => { page: 1
}) }, {}, res => {
if (res.ok) {
this.options = res.data.list
}
}, e => {
})
} else {
this.options = []
}
this.getList() this.getList()
this.getIdeaKey() this.getIdeaKey()
this.getFileInfo() this.getFileInfo()