File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<template>
<div>
</div>
</template>
<script>
import axios from 'axios';
export default {
name: "ChildWinPop",
data() {
return {
data : '',
returnData : '',
}
},
methods: {
resultData : function(param){
let vm = this;
axios({
url: '/nice/getRequestNiceData.json',
method: 'post',
hearder: {
'Content-Type': "application/json; charset=UTF-8",
},
data: param
}).then(function (response) {
vm.sendToOpener(response.data);
}).catch(function (error) {
alert('시스템 오류. 관리자에게 문의하세요');
});
},
// 부모창 데이터 전달
sendToOpener : function( sendObj ){
if( opener == null ) {
return;
}
let sendStr = JSON.stringify( sendObj );
// 부모 창에 Message를 보냄
window.opener.postMessage( sendStr, '*' );
window.close();
},
},
watch: {
},
computed: {
},
components: {
},
mounted() {
this.data = this.$route.query;
this.resultData(this.data);
this.sendToOpener(JSON.parse(this.data.EncodeData));
},
unmounted() {
},
}
</script>