fix bugs grid on popup #86
@ -129,19 +129,19 @@ let myPrgmId;
|
||||
export default {
|
||||
mixins: [mixinGlobal, resize],
|
||||
async asyncData(context) {
|
||||
console.log('----DEBUG-----ReadResultCloseMngPage--asyncData:', Utility.setFormatDate(new Date(), "YYYYMMDD"));
|
||||
// console.log('----DEBUG-----ReadResultCloseMngPage--asyncData:', Utility.setFormatDate(new Date(), "YYYYMMDD"));
|
||||
try{
|
||||
myPrgmId = context.route.query.prgmId;
|
||||
const myState = context.store.state;
|
||||
const activeMenuInfo = myState.menuData[myPrgmId];
|
||||
myTitle = activeMenuInfo.menuNm;
|
||||
|
||||
console.log('-----DEBUG----store.commit----setActiveMenuInfo:', activeMenuInfo);
|
||||
// console.log('-----DEBUG----store.commit----setActiveMenuInfo:', activeMenuInfo);
|
||||
await context.store.commit("setActiveMenuInfo", activeMenuInfo);
|
||||
myTitle = await myState.activeMenuInfo.menuNm;
|
||||
console.log('-----DEBUG----store.commit----setActiveMenuInfo---Compeleted:', myState.activeMenuInfo);
|
||||
// console.log('-----DEBUG----store.commit----setActiveMenuInfo---Compeleted:', myState.activeMenuInfo);
|
||||
}catch(err){
|
||||
console.log('-----DEBUG----err', err);
|
||||
// console.log('-----DEBUG----err', err);
|
||||
}
|
||||
},
|
||||
meta: {
|
||||
@ -217,15 +217,14 @@ export default {
|
||||
},
|
||||
},
|
||||
beforeCreate() {
|
||||
console.log('----DEBUG-----ReadResultCloseMngPage--beforeCreate:', Utility.setFormatDate(new Date(), "YYYYMMDD"));
|
||||
// console.log('----DEBUG-----ReadResultCloseMngPage--beforeCreate:', Utility.setFormatDate(new Date(), "YYYYMMDD"));
|
||||
myPrgmId = this.$route.query.prgmId;
|
||||
// const context = {
|
||||
// key: "create",
|
||||
// prgmId: myPrgmId,
|
||||
// defaultData: defaultData,
|
||||
// };
|
||||
// this.$store.dispatch("chkOpenTabList", context);
|
||||
// this.chkOpenTabList(context)
|
||||
const context = {
|
||||
key: "create",
|
||||
prgmId: myPrgmId,
|
||||
defaultData: defaultData,
|
||||
};
|
||||
this.$store.dispatch("chkOpenTabList", context);
|
||||
},
|
||||
mounted() {
|
||||
this.init();
|
||||
|
@ -513,7 +513,7 @@ export const actions = {
|
||||
//commit("pageInit", {});
|
||||
break;
|
||||
case 'create':
|
||||
console.log("---------DEBUGmyPrgmId:", myPrgmId);
|
||||
// console.log("---------DEBUGmyPrgmId:", myPrgmId);
|
||||
if (!list.some(it => it === myPrgmId)) {
|
||||
// console.log("클릭 한 메뉴가 기존 목록에 없다 => 새로 push"); // & 초기화 세팅
|
||||
localStorage.setItem('pageData', JSON.stringify(state.pageData));
|
||||
|
Reference in New Issue
Block a user