resolve comment
This commit is contained in:

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