fix bugs grid on popup

This commit is contained in:
Tran Van Dung/(Tran Van Dung)/현장대리인/SK
2025-08-21 10:37:17 +07:00
parent 85a14633be
commit 20211168e9
7 changed files with 68 additions and 22 deletions

View File

@ -129,10 +129,20 @@ let myPrgmId;
export default {
mixins: [mixinGlobal, resize],
async asyncData(context) {
const myState = context.store.state;
myPrgmId = context.route.query.prgmId;
await context.store.commit("setActiveMenuInfo", myState.menuData[myPrgmId]);
myTitle = await myState.activeMenuInfo.menuNm;
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);
await context.store.commit("setActiveMenuInfo", activeMenuInfo);
myTitle = await myState.activeMenuInfo.menuNm;
console.log('-----DEBUG----store.commit----setActiveMenuInfo---Compeleted:', myState.activeMenuInfo);
}catch(err){
console.log('-----DEBUG----err', err);
}
},
meta: {
title: () => {
@ -206,18 +216,22 @@ export default {
this.setPageData({ isFind: true });
},
},
async beforeCreate() {
beforeCreate() {
console.log('----DEBUG-----ReadResultCloseMngPage--beforeCreate:', Utility.setFormatDate(new Date(), "YYYYMMDD"));
myPrgmId = this.$route.query.prgmId;
await this.$store.dispatch("chkOpenTabList", {
key: "create",
prgmId: myPrgmId,
defaultData: defaultData,
});
// const context = {
// key: "create",
// prgmId: myPrgmId,
// defaultData: defaultData,
// };
// this.$store.dispatch("chkOpenTabList", context);
// this.chkOpenTabList(context)
},
mounted() {
this.init();
},
created() {},
created() {
},
methods: {
...mapMutations({
setPageData: "setPageData",