수정건 수정

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

@@ -255,14 +255,15 @@ export default {
},
created() {
if (this.$route.params.serviceId != null) {
this.$store.commit('dataStore/updateUserId', this.$route.params.serviceId);
this.$store.commit('dataStore/updateDataStore', this.$route.params.serviceId);
this.userId = this.$route.params.serviceId;
this.memberDetail(this.$route.params.serviceId);
} else {
var userId2 = this.$store.getters['dataStore/getUserId'];
this.userId = userId2;
this.memberDetail(this.userId);
}
}
// else {
// var userId2 = this.$store.getters['dataStore/getUserId'];
// this.userId = userId2;
// this.memberDetail(this.userId);
// }
},
destroyed() {
this.$store.commit('searchcondition/updateSearchCondition', {
@@ -274,7 +275,7 @@ export default {
searchText1: '',
},
});
this.$store.commit('dataStore/updateUserId', '');
this.$store.commit('dataStore/updateDataStore', '');
},
mounted() {},
computed: {
@@ -375,6 +376,7 @@ export default {
},
// 저장 후 부모창 호출.
toComplete() {
this.row.serviceId = this.userId;
this.$router.push({ name: 'memberList', params: this.row });
},

View File

@@ -127,17 +127,18 @@ export default {
},
created() {
if (this.$route.params.serviceId != null) {
this.$store.commit('dataStore/updateUserId', this.$route.params.serviceId);
this.$store.commit('dataStore/updateDataStore', this.$route.params.serviceId);
this.userId = this.$route.params.serviceId;
this.memberDetail(this.$route.params.serviceId);
} else {
var userId2 = this.$store.getters['dataStore/getUserId'];
this.userId = userId2;
this.memberDetail(this.userId);
}
}
// else {
// var userId2 = this.$store.getters['dataStore/getUserId'];
// this.userId = userId2;
// this.memberDetail(this.userId);
// }
},
destroyed() {
this.$store.commit('dataStore/updateUserId', '');
this.$store.commit('dataStore/updateDataStore', '');
},
mounted() {},
methods: {
@@ -202,6 +203,7 @@ export default {
},
// 저장 후 부모창 호출.
toComplete() {
this.row.serviceId = this.userId;
this.$router.push({ name: 'memberList', params: this.row });
},
doValidate() {

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) {