vue-apps/com.actionsoft.apps.coe.pal/views/cooperation/CooperationUpdate.vue

32 lines
1005 B
Vue
Raw Normal View History

2022-06-28 01:29:37 +08:00
<template>
<div id="cooperationUpdate" :style="{'width': '100%', 'height': mainHeight}">
<iframe id="coopIframe" width="100%" :height="(parseInt(mainHeight) - 4) + 'px'" name="coopIframe" style="border:0;" :src="src"></iframe>
</div>
</template>
<script>
export default {
name: "CooperationUpdate",
data() {
return {
src: wHref + '?' + 'sid=' + this.$store.state.sessionId + '&mainPage=update&cmd=com.actionsoft.apps.coe.pal.cooperation_main',
mainHeight: (parseInt(this.$store.getters.getTopMainHeightFn) - 4) + 'px',
}
},
computed: {
listenTopMainHeight() {
return this.$store.getters.getTopMainHeightFn;
}
},
watch: {
listenTopMainHeight: function (newd, old) {
this.mainHeight = (parseInt(this.$store.getters.getTopMainHeightFn) - 4) + 'px';
}
}
}
</script>
<style scoped>
</style>