수정건 수정

This commit is contained in:
USER
2022-09-05 15:58:44 +09:00
parent 50555507b0
commit 0360eff3b6
8 changed files with 102 additions and 44 deletions

View File

@@ -239,14 +239,22 @@ export default {
if(this.$route.params.serviceId != null){ // 리스트에서 상세 호출시
this.$store.commit('dataStore/updateDataStore', this.$route.params.serviceId);
this.subsDetail(this.$route.params.serviceId);
this.setMenuActive();
}else{ // 상세 화면에서 새로고침 호출시
var serviceId = this.$store.getters["dataStore/getDataStore"];
this.subsDetail(serviceId);
}
//this.setMenuActive();
}
// else{ // 상세 화면에서 새로고침 호출시
// var serviceId = this.$store.getters["dataStore/getDataStore"];
// //this.row.serviceId = serviceId;
// //return $router.push({ path: '/custMgt/subsDetail', params: this.row});
// //if(serviceId == ''){
// //window.top.location.href = '/custMgt/subsList';
// //this.
// //$router.push({ path: '/custMgt/subsList', params: })
// //}
// this.subsDetail(serviceId);
// }
},
destroyed() {
destroyed() {
this.$store.commit('dataStore/updateDataStore', '');
},
methods: {
@@ -265,7 +273,8 @@ export default {
this.row.startDt = '';
this.row.endDt = '';
this.row.page = 1;
this.row.serviceId = this.$route.params.serviceId;
console.log(this.row);
this.$router.push({name: 'subsList', params: this.row});
},
async subsDetail(serviceId) {