Commit 8d12264f by liuyunfeng

查看面函

parent a36c6ee9
{4:
-}
\ No newline at end of file
......@@ -25,8 +25,11 @@
<el-table-column
prop="op"
label="操作">
<template slot-scope="scope">
<el-button size="small" type="primary"
@click="detail">明细</el-button>
@click="detail(scope.row)">明细</el-button>
</template>
</el-table-column>
</el-table>
</div>
......@@ -40,8 +43,9 @@ import Utils from "~/utils"
export default {
props:['model'],
methods:{
async detail(){
async detail(row){
let cortyp = row.cortyp
let rtnmsg
if (cortyp == 'SWT'|| cortyp == 'FMT' || cortyp == 'CMT') {
this.model.msgmod_doccod = row.id
rtnmsg = await Api.post('cptopn/msgmod_butshw', { data: Utils.flatObject(this.model) })
......@@ -50,10 +54,11 @@ export default {
this.model.trndoc_cortyp = cortyp
rtnmsg = await Api.post('cptopn/trndoc_butshw', { data: Utils.flatObject(this.model) })
}
console.log(rtnmsg)
if (rtnmsg.code == SUCCESS) {
if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
let viewurl = "/psbcfront" + rtnmsg.data.msgmod_docpth;
let viewurl = "/gjjs/files" + rtnmsg.data.setmod_msgmod_docpth;
console.log(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')
......
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