TC 수정

This commit is contained in:
kimre
2022-07-19 19:52:34 +09:00
parent 3be9f3df5a
commit 0f953fb620
6 changed files with 56 additions and 40 deletions

View File

@@ -236,7 +236,10 @@ export default {
this.channelDetail(userSeq);
}
},
destroyed() {
this.$store.commit('dataStore/updateUserSeq', '');
this.$store.commit('dataStore/updateUserId', '');
},
methods: {
async channelDetail(userSeq) {
this.row.userSeq = userSeq;

View File

@@ -253,7 +253,13 @@ export default {
ValidationConfirmPop,
},
created() {
this.memberDetail(this.$route.params.serviceId);
if(this.$route.params.serviceId != null){
this.$store.commit('dataStore/updateUserId', this.$route.params.serviceId);
this.memberDetail(this.$route.params.serviceId);
}else{
var userId = this.$store.getters["dataStore/getUserId"];
this.memberDetail(userId);
}
},
destroyed() {
this.$store.commit('searchcondition/updateSearchCondition', {
@@ -265,6 +271,7 @@ export default {
searchText1: '',
},
});
this.$store.commit('dataStore/updateUserId', '');
},
mounted() {},
computed: {

View File

@@ -133,10 +133,16 @@ export default {
ValidationConfirmPop,
},
created(){
this.memberDetail(this.$route.params.serviceId);
if(this.$route.params.serviceId != null){
this.$store.commit('dataStore/updateUserId', this.$route.params.serviceId);
this.memberDetail(this.$route.params.serviceId);
}else{
var userId = this.$store.getters["dataStore/getUserId"];
this.memberDetail(userId);
}
},
destroyed() {
this.$store.commit('dataStore/updateUserId', '');
},
mounted() {

View File

@@ -46,7 +46,7 @@
<span>{{ numList.length }}</span>
</div>
<div class="radio_group">
<input type="radio" name="state" ref="apprRadio" value="01" id="popup_radio13" @change="allApprSttus($event)">
<input type="radio" name="state" ref="apprRadio" value="02" id="popup_radio13" @change="allApprSttus($event)">
<label for="popup_radio13">전체승인</label>
<input type="radio" name="state" ref="rejRadio" value="03" id="popup_radio14" @change="allApprSttus($event)">
<label for="popup_radio14">전체반려</label>
@@ -55,7 +55,7 @@
<ul>
<li v-for="(item, idx) in numList">{{idx+1}}. {{ item.sndrno }}
<div class="select-btn">
<button :class="{'btn-pcolor' : item.sttusCd === '01' || item.sttusCd === '02', 'btn-default' : item.sttusCd === '03'}" @click="change(idx, '01')">승인</button>
<button :class="{'btn-pcolor' : item.sttusCd === '02', 'btn-default' : item.sttusCd === '01' || item.sttusCd === '03'}" @click="change(idx, '02')">승인</button>
<button :class="{'btn-pcolor' : item.sttusCd === '03', 'btn-default' : item.sttusCd === '01' || item.sttusCd === '02'}" @click="change(idx, '03')">반려</button>
</div>
</li>

View File

@@ -1,34 +1,34 @@
const state = {
dataStore: ''
,userSeq: ''
,userId: ''
}
const getters = {
getDataStore: state => state.dataStore,
getUserSeq: state => state.userSeq,
getUserId: state => state.userId,
}
const mutations = {
updateDataStore: (state, data) => {
state.dataStore = data;
},
updateUserSeq: (state, data) => {
state.userSeq = data;
},
updateUserId: (state, data) => {
state.userId = data;
}
}
const actions = {
}
export default {
namespaced: true,
state,
getters,
mutations,
actions
const state = {
dataStore: ''
,userSeq: ''
,userId: ''
}
const getters = {
getDataStore: state => state.dataStore,
getUserSeq: state => state.userSeq,
getUserId: state => state.userId,
}
const mutations = {
updateDataStore: (state, data) => {
state.dataStore = data;
},
updateUserSeq: (state, data) => {
state.userSeq = data;
},
updateUserId: (state, data) => {
state.userId = data;
}
}
const actions = {
}
export default {
namespaced: true,
state,
getters,
mutations,
actions
};