|
@@ -25,9 +25,16 @@
|
|
</div>
|
|
</div>
|
|
</el-header>
|
|
</el-header>
|
|
<el-main>
|
|
<el-main>
|
|
- <div class="height_100" style="width:100%" v-loading="loading">
|
|
|
|
|
|
+ <template v-if="evidence && evidence.systemFiles && evidence.systemFiles.length">
|
|
|
|
+ <div class="height_100" style="width:100%" v-loading="loading">
|
|
<myIframe id="checkIframe" :src="url" height="100%" frameborder="0" width="100%"></myIframe>
|
|
<myIframe id="checkIframe" :src="url" height="100%" frameborder="0" width="100%"></myIframe>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <div>
|
|
|
|
+ 暂无文件
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</el-main>
|
|
</el-main>
|
|
</el-container>
|
|
</el-container>
|
|
<contrast ref="contrast"></contrast>
|
|
<contrast ref="contrast"></contrast>
|
|
@@ -83,8 +90,12 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
getUrl(){
|
|
getUrl(){
|
|
if(Object.keys(this.evidence).length>0){
|
|
if(Object.keys(this.evidence).length>0){
|
|
- var guid = this.evidence.literatureNo
|
|
|
|
- this.url = this.$commonJS.checkGuid(guid,this.evidence.systemFile.type)
|
|
|
|
|
|
+ if(this.evidence.systemFiles && this.evidence.systemFiles.length){
|
|
|
|
+ let file = this.evidence.systemFiles[0]
|
|
|
|
+ var guid = file.guid
|
|
|
|
+ this.url = this.$commonJS.checkGuid(guid,file.type)
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
load(){
|
|
load(){
|