수정건 수정

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 });
},