|
|
|
@ -3,10 +3,10 @@
|
|
|
|
|
<!-- <span>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</span> -->
|
|
|
|
|
<!-- <iframe src="https://dev-mssm-liaoning.imian.org.cn/ggfw/#/firmContent/drugInfo" frameborder="0" style="width: 100%;height: 100%;"></iframe> -->
|
|
|
|
|
<iframe
|
|
|
|
|
:src="url"
|
|
|
|
|
:src="Url"
|
|
|
|
|
frameborder="0"
|
|
|
|
|
style="width: 100%; height: 100%"
|
|
|
|
|
id="iframes"
|
|
|
|
|
ref="iframes"
|
|
|
|
|
></iframe>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -17,28 +17,28 @@ export default {
|
|
|
|
|
iframViewStyle: {
|
|
|
|
|
height: "",
|
|
|
|
|
},
|
|
|
|
|
// url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation?type=${
|
|
|
|
|
// this.$route.query.type
|
|
|
|
|
// }&flag=${this.$route.query.flag}&data=${
|
|
|
|
|
// this.$route.query.data
|
|
|
|
|
// }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`,
|
|
|
|
|
url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation`
|
|
|
|
|
Url: `${location.origin}/ggfw-iframe/#/productinformation?type=${
|
|
|
|
|
this.$route.query.type
|
|
|
|
|
}&flag=${this.$route.query.flag}&data=${
|
|
|
|
|
this.$route.query.data
|
|
|
|
|
}&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`,
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {},
|
|
|
|
|
methods: {},
|
|
|
|
|
created() {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
let oFrame = this.$refs.iframes;
|
|
|
|
|
oFrame.contentWindow.postMessage(
|
|
|
|
|
{
|
|
|
|
|
type: this.$route.query.type,
|
|
|
|
|
flag: this.$route.query.flag,
|
|
|
|
|
data: this.$route.query.data,
|
|
|
|
|
token: localStorage.getItem("MSSM-LIAONING__TOKEN"),
|
|
|
|
|
},
|
|
|
|
|
"*"
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// let oFrame = this.$refs.iframes;
|
|
|
|
|
// oFrame.contentWindow.postMessage(
|
|
|
|
|
// {
|
|
|
|
|
// type: this.$route.query.type,
|
|
|
|
|
// flag: this.$route.query.flag,
|
|
|
|
|
// data: this.$route.query.data,
|
|
|
|
|
// token: localStorage.getItem("MSSM-LIAONING__TOKEN"),
|
|
|
|
|
// },
|
|
|
|
|
// "*"
|
|
|
|
|
// );
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
methods: {},
|
|
|
|
|
mounted() {
|
|
|
|
|