resolve comment
This commit is contained in:

parent
20211168e9
commit
cd1abec719
@ -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();
|
||||
|
Reference in New Issue
Block a user