mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 20:08:41 +09:00
수정건 수정
This commit is contained in:
@@ -210,12 +210,12 @@ export default {
|
||||
custTyNm: '',
|
||||
}
|
||||
},
|
||||
props: {
|
||||
userSeq: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
// props: {
|
||||
// userSeq: {
|
||||
// type: String,
|
||||
// default: "",
|
||||
// },
|
||||
// },
|
||||
components: {
|
||||
channelMgtApi,
|
||||
AdminNmPop,
|
||||
@@ -223,16 +223,17 @@ export default {
|
||||
created() {
|
||||
this.getExcelHeader();
|
||||
if(this.$route.params.userSeq != null){ //리스트에서 상세 호출
|
||||
this.loginId = this.$route.params.loginId;
|
||||
//this.loginId = this.$route.params.loginId;
|
||||
this.$store.commit('dataStore/updateUserSeq', this.$route.params.userSeq);
|
||||
this.$store.commit('dataStore/updateUserId', this.$route.params.userId);
|
||||
//this.$store.commit('dataStore/updateUserId', this.$route.params.userId);
|
||||
this.channelDetail(this.$route.params.userSeq);
|
||||
}else{
|
||||
var userSeq = this.$store.getters["dataStore/getUserSeq"];
|
||||
var userId = this.$store.getters["dataStore/getUserId"];
|
||||
this.loginId = userId;
|
||||
this.channelDetail(userSeq);
|
||||
}
|
||||
// else{
|
||||
// var userSeq = this.$store.getters["dataStore/getUserSeq"];
|
||||
// var userId = this.$store.getters["dataStore/getUserId"];
|
||||
// this.loginId = userId;
|
||||
// this.channelDetail(userSeq);
|
||||
// }
|
||||
},
|
||||
destroyed() {
|
||||
this.$store.commit('dataStore/updateUserSeq', '');
|
||||
@@ -356,6 +357,9 @@ export default {
|
||||
}
|
||||
}, // end of getExcelDataDown
|
||||
goChannelList() {
|
||||
// this.row.userSeq = this.$route.params.userSeq;
|
||||
|
||||
// alert(this.row.userSeq);
|
||||
this.$router.push({name: 'channelList'});
|
||||
},
|
||||
searchIDPopOpen: function () {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
:picker-options="startDateOptions"
|
||||
></vuejs-datepicker>
|
||||
</span>
|
||||
<span class="hypen">~</span>
|
||||
~
|
||||
<span class="custom_input icon_date">
|
||||
<vuejs-datepicker
|
||||
:language="ko"
|
||||
|
||||
@@ -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 });
|
||||
},
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -239,11 +239,19 @@ 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() {
|
||||
@@ -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) {
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<input type="text" placeholder="발신번호명" v-model="numberInput.sendNm" maxlength="20">
|
||||
<input type="text" placeholder="발신번호(숫자만입력)" v-model="numberInput.sendNum" @keypress="onlyNum"
|
||||
@input="onlyNum" maxlength="11">
|
||||
<button class="button white" @click="delNumberInput">삭제</button>
|
||||
<button class="button white min" @click="delNumberInput"></button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -97,6 +97,8 @@ router.beforeEach((to, from, next) => {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if((nextUrl == '/custMgt/memberList') || (nextUrl == '/custMgt/memberDetail')
|
||||
|| (nextUrl == '/custMgt/subsDetail') || (nextUrl == '/custMgt/memberAdminDetail')){
|
||||
|
||||
@@ -105,7 +107,36 @@ router.beforeEach((to, from, next) => {
|
||||
moveFlag = true;
|
||||
}
|
||||
}
|
||||
|
||||
// 청약 관리 상세
|
||||
if(nextUrl == '/custMgt/subsDetail'){
|
||||
var serviceId = store.getters["dataStore/getDataStore"];
|
||||
console.log('serviceId : '+serviceId);
|
||||
if(to.params.serviceId == undefined){
|
||||
|
||||
if(serviceId == ''){
|
||||
return next('/custMgt/subsList');
|
||||
}else{
|
||||
to.params.serviceId = serviceId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 회원관리 사용자/어드민 상세
|
||||
if((nextUrl == '/custMgt/memberDetail') || (nextUrl == '/custMgt/memberAdminDetail')){
|
||||
var serviceId = store.getters["dataStore/getDataStore"];
|
||||
if(to.params.serviceId == undefined){
|
||||
|
||||
if(serviceId == ''){
|
||||
return next('/custMgt/memberList');
|
||||
}else{
|
||||
to.params.serviceId = serviceId;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// url Check 유치채널
|
||||
if((nextUrl == '/attractMgt/channelDetail')){
|
||||
for(var i=0; i<menuUrls.length; i++){
|
||||
@@ -113,6 +144,14 @@ router.beforeEach((to, from, next) => {
|
||||
moveFlag = true;
|
||||
}
|
||||
}
|
||||
var userSeq = store.getters["dataStore/getUserSeq"];
|
||||
if(to.params.userSeq == undefined){
|
||||
if(userSeq == ''){
|
||||
return next('/attractMgt/channelList');
|
||||
}else{
|
||||
to.params.userSeq = userSeq;
|
||||
}
|
||||
}
|
||||
}
|
||||
// url Check 날짜별 통계
|
||||
if((nextUrl == '/stats/dayList')){
|
||||
@@ -171,6 +210,7 @@ router.beforeEach((to, from, next) => {
|
||||
}
|
||||
return next(rootUrl);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ const mutations = {
|
||||
},
|
||||
updateUserSeq: (state, data) => {
|
||||
state.userSeq = data;
|
||||
console.log('mutate: '+state.userSeq);
|
||||
},
|
||||
updateUserId: (state, data) => {
|
||||
state.userId = data;
|
||||
|
||||
Reference in New Issue
Block a user