|
@@ -4,7 +4,11 @@
|
|
|
<div class="Sankunginfo-title">三公费用明细</div>
|
|
|
</div>
|
|
|
<div class="Sankunginfo-box">
|
|
|
- <iframe style="border:none" :src='src' width="100%" :height="heights"></iframe>
|
|
|
+ <div class="Sankunginfo-btn">
|
|
|
+ <el-button @click="thislink" size="mini" type="primary">主要按钮</el-button>
|
|
|
+ <el-button @click="thislink" size="mini" type="primary">确认</el-button>
|
|
|
+ </div>
|
|
|
+ <iframe v-if="iframeft" style="border:none" :src='src' width="100%" :height="heights"></iframe>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -16,7 +20,16 @@ export default {
|
|
|
heights:0,
|
|
|
id:0,
|
|
|
fileName:'',
|
|
|
- src:''
|
|
|
+ src:'',
|
|
|
+ iframeft:false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ thislink(){
|
|
|
+ this.iframeft=true;
|
|
|
+ this.src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/"+this.fileName
|
|
|
+ // window.open("http://132.232.92.186:24/Office/Word/EnterExitCost/File/"+this.fileName)
|
|
|
+ // this.$router.push({path: "http://132.232.92.186:24/Office/Word/EnterExitCost/File/"+this.fileName});
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
@@ -31,8 +44,8 @@ export default {
|
|
|
this.heights=clientHeight;
|
|
|
this.fileName = this.$route.query.fileName;
|
|
|
this.id = this.$route.query.sign;
|
|
|
- this.src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/%E6%B5%8B%E8%AF%95%E4%B8%B4%E6%97%B6%E7%AE%97%E8%B4%B9%E7%94%A8-%E5%87%BA%E5%85%A5%E5%A2%83%E8%B4%B9%E7%94%A8434b8d9f-d7a3-420e-82f4-04c83834fc3c.pdf"
|
|
|
- // this.src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/"+this.fileName;
|
|
|
+ // this.src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/%E6%B5%8B%E8%AF%95%E4%B8%B4%E6%97%B6%E7%AE%97%E8%B4%B9%E7%94%A8-%E5%87%BA%E5%85%A5%E5%A2%83%E8%B4%B9%E7%94%A8434b8d9f-d7a3-420e-82f4-04c83834fc3c.pdf"
|
|
|
+ this.src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/"+this.fileName;
|
|
|
console.log(this.src);
|
|
|
}
|
|
|
}
|
|
@@ -61,4 +74,8 @@ export default {
|
|
|
.Sankunginfo-box{
|
|
|
padding-top: 43px;
|
|
|
}
|
|
|
+.Sankunginfo-btn{
|
|
|
+ text-align: right;
|
|
|
+ margin: 10px 0;
|
|
|
+}
|
|
|
</style>
|