Commit 93bf2a36 by 傅凯

修改面含查看

parent abae1376
<template>
<span>
<el-button type="button" size="mini" @click="showDocOrMsg">显示</el-button>
<el-dialog title="机构选择" :visible.sync="dialogOpen">
<div v-if="srcmsg">
<span>{{srcmsg}}</span>
</div>
<!-- <div v-if="isdoc">
<embed :src="realdocpath" />
</div> -->
</el-dialog>
</span>
</template>
<script>
export default {
props:['path'],
data(){
return {
dialogOpen :false,
srcmsg:""
}
},
methods:{
showDocOrMsg(){
this.dialogOpen = true
if(!this.isdoc)
{
//发出异步请求
}
else
window.open(this.realdocpath)
}
},
computed:{
isdoc(){
if(this.path.endsWith(".pdf"))
return true
else
return false
},
realdocpath(){
return '/gjjs/files'+this.path
}
}
}
</script>
\ No newline at end of file
......@@ -128,7 +128,7 @@
label="操作"
>
<template slot-scope="scope">
<el-button size="mini" @click="onRecpanButshw(scope.row)">显示</el-button>
<m-pager :path="scope.row.docpth" />
</template>
</el-table-column>
</el-table>
......@@ -276,9 +276,12 @@
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Utils from "~/utils"
import PaperShow from "./PaperShow"
export default {
components:{
"m-pager":PaperShow
},
data(){
return {
codes:{
......
......@@ -58,9 +58,7 @@ export default {
if (rtnmsg.code == SUCCESS) {
if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
let viewurl = "/gjjs/files" + rtnmsg.data.setmod_msgmod_docpth;
console.log(viewurl)
alert(viewurl)
window.location.href=viewurl
window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
else if(cortyp == 'ELC')
......@@ -72,7 +70,8 @@ export default {
}
else {
let url = "/gjjs/files" + rtnmsg.data.trnmod_trndoc_docpth;
console.log(url)
//console.log(url)
window.open(url)
// window.location.href = url
// let url = rtnmsg.data.trndoc_docpth;
// let viewurl = "/psbcfront/pdfjs/web/viewer.html";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment