Commit e476c783 by 李少勇

修改mt报文组件

parent 295731c7
<template>
<div>
<pre>{{ mtDocs }}</pre>
<el-dialog :fullscreen="isShowFull" :modal-append-to-body="false" :show-close="false" :visible.sync="previewVisible" @close="handleClosePreview" center class="preview" destroy-on-close ref="dialog" title="预览" v-dialogDrag v-if="previewVisible" width="70%">
<div class="preview-title-wrap" slot="title">
<div class="preview-title">预览</div>
......@@ -102,6 +103,7 @@ export default {
viewPdfUrl: "",
isShowFull: false,
smhOwnref: "",
mtDocs: ''
};
},
computed: {
......@@ -615,7 +617,15 @@ export default {
}
}
},
async getMtDcos() {
let params = {
msginr: this.$route.query.msginr
}
let res = await Api.post(`/public/quesel/showDocs`, params);
if (res.respCode === SUCCESS) {
this.mtDocs = res.data.data;
}
}
}
};
</script>
......
......@@ -3,7 +3,8 @@
<c-button class="medium_bcs" size="medium" style="margin-left: 0" type="primary" @click="showCaseInfo">
CASE信息
</c-button>
<p style="margin-top: 20px;border: 1px solid #333333;width: 100%;height: calc(100% - 60px);overflow: auto;" v-html="model.qrtp.mdtmod.msgdtl"></p>
<message-view ref="messageView"></message-view>
<!-- <p style="margin-top: 20px;border: 1px solid #333333;width: 100%;height: calc(100% - 60px);overflow: auto;" v-html="model.qrtp.mdtmod.msgdtl"></p> -->
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
title="CASE详细信息展示" destroy-on-close width="50%" @close="visible = false">
......@@ -213,10 +214,14 @@
<script>
import Api from "~/service/Api"
import Event from "../event"
import MessageView from "~/components/business/docpan/views/MessageView";
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [Event],
components: {
MessageView
},
data() {
return {
visible: false,
......@@ -238,9 +243,15 @@ export default {
this.visible = true
this.model.qrtp.roflst = rtnmsg.data
}
},
getMsgDlt () {
this.$nextTick(() => {
this.$refs.messageView.getMtDcos();
})
}
},
created: function () {
mounted () {
this.getMsgDlt()
}
}
</script>
......
......@@ -67,7 +67,7 @@ export default {
},
},
};
this.init(params);
// this.init(params);
}
}
</script>
......
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