mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 00:46:47 +09:00
수정건 수정
This commit is contained in:
@@ -210,12 +210,12 @@ export default {
|
|||||||
custTyNm: '',
|
custTyNm: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
// props: {
|
||||||
userSeq: {
|
// userSeq: {
|
||||||
type: String,
|
// type: String,
|
||||||
default: "",
|
// default: "",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
components: {
|
components: {
|
||||||
channelMgtApi,
|
channelMgtApi,
|
||||||
AdminNmPop,
|
AdminNmPop,
|
||||||
@@ -223,16 +223,17 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getExcelHeader();
|
this.getExcelHeader();
|
||||||
if(this.$route.params.userSeq != null){ //리스트에서 상세 호출
|
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/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);
|
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() {
|
destroyed() {
|
||||||
this.$store.commit('dataStore/updateUserSeq', '');
|
this.$store.commit('dataStore/updateUserSeq', '');
|
||||||
@@ -356,6 +357,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}, // end of getExcelDataDown
|
}, // end of getExcelDataDown
|
||||||
goChannelList() {
|
goChannelList() {
|
||||||
|
// this.row.userSeq = this.$route.params.userSeq;
|
||||||
|
|
||||||
|
// alert(this.row.userSeq);
|
||||||
this.$router.push({name: 'channelList'});
|
this.$router.push({name: 'channelList'});
|
||||||
},
|
},
|
||||||
searchIDPopOpen: function () {
|
searchIDPopOpen: function () {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
:picker-options="startDateOptions"
|
:picker-options="startDateOptions"
|
||||||
></vuejs-datepicker>
|
></vuejs-datepicker>
|
||||||
</span>
|
</span>
|
||||||
<span class="hypen">~</span>
|
~
|
||||||
<span class="custom_input icon_date">
|
<span class="custom_input icon_date">
|
||||||
<vuejs-datepicker
|
<vuejs-datepicker
|
||||||
:language="ko"
|
:language="ko"
|
||||||
|
|||||||
@@ -255,14 +255,15 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.$route.params.serviceId != null) {
|
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.userId = this.$route.params.serviceId;
|
||||||
this.memberDetail(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() {
|
destroyed() {
|
||||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||||
@@ -274,7 +275,7 @@ export default {
|
|||||||
searchText1: '',
|
searchText1: '',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
this.$store.commit('dataStore/updateUserId', '');
|
this.$store.commit('dataStore/updateDataStore', '');
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -375,6 +376,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 저장 후 부모창 호출.
|
// 저장 후 부모창 호출.
|
||||||
toComplete() {
|
toComplete() {
|
||||||
|
this.row.serviceId = this.userId;
|
||||||
this.$router.push({ name: 'memberList', params: this.row });
|
this.$router.push({ name: 'memberList', params: this.row });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -127,17 +127,18 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.$route.params.serviceId != null) {
|
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.userId = this.$route.params.serviceId;
|
||||||
this.memberDetail(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() {
|
destroyed() {
|
||||||
this.$store.commit('dataStore/updateUserId', '');
|
this.$store.commit('dataStore/updateDataStore', '');
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -202,6 +203,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 저장 후 부모창 호출.
|
// 저장 후 부모창 호출.
|
||||||
toComplete() {
|
toComplete() {
|
||||||
|
this.row.serviceId = this.userId;
|
||||||
this.$router.push({ name: 'memberList', params: this.row });
|
this.$router.push({ name: 'memberList', params: this.row });
|
||||||
},
|
},
|
||||||
doValidate() {
|
doValidate() {
|
||||||
|
|||||||
@@ -239,11 +239,19 @@ export default {
|
|||||||
if(this.$route.params.serviceId != null){ // 리스트에서 상세 호출시
|
if(this.$route.params.serviceId != null){ // 리스트에서 상세 호출시
|
||||||
this.$store.commit('dataStore/updateDataStore', this.$route.params.serviceId);
|
this.$store.commit('dataStore/updateDataStore', this.$route.params.serviceId);
|
||||||
this.subsDetail(this.$route.params.serviceId);
|
this.subsDetail(this.$route.params.serviceId);
|
||||||
this.setMenuActive();
|
//this.setMenuActive();
|
||||||
}else{ // 상세 화면에서 새로고침 호출시
|
|
||||||
var serviceId = this.$store.getters["dataStore/getDataStore"];
|
|
||||||
this.subsDetail(serviceId);
|
|
||||||
}
|
}
|
||||||
|
// 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() {
|
||||||
@@ -265,7 +273,8 @@ export default {
|
|||||||
this.row.startDt = '';
|
this.row.startDt = '';
|
||||||
this.row.endDt = '';
|
this.row.endDt = '';
|
||||||
this.row.page = 1;
|
this.row.page = 1;
|
||||||
|
this.row.serviceId = this.$route.params.serviceId;
|
||||||
|
console.log(this.row);
|
||||||
this.$router.push({name: 'subsList', params: this.row});
|
this.$router.push({name: 'subsList', params: this.row});
|
||||||
},
|
},
|
||||||
async subsDetail(serviceId) {
|
async subsDetail(serviceId) {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<input type="text" placeholder="발신번호명" v-model="numberInput.sendNm" maxlength="20">
|
<input type="text" placeholder="발신번호명" v-model="numberInput.sendNm" maxlength="20">
|
||||||
<input type="text" placeholder="발신번호(숫자만입력)" v-model="numberInput.sendNum" @keypress="onlyNum"
|
<input type="text" placeholder="발신번호(숫자만입력)" v-model="numberInput.sendNum" @keypress="onlyNum"
|
||||||
@input="onlyNum" maxlength="11">
|
@input="onlyNum" maxlength="11">
|
||||||
<button class="button white" @click="delNumberInput">삭제</button>
|
<button class="button white min" @click="delNumberInput"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -97,15 +97,46 @@ router.beforeEach((to, from, next) => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if((nextUrl == '/custMgt/memberList') || (nextUrl == '/custMgt/memberDetail')
|
if((nextUrl == '/custMgt/memberList') || (nextUrl == '/custMgt/memberDetail')
|
||||||
|| (nextUrl == '/custMgt/subsDetail') || (nextUrl == '/custMgt/memberAdminDetail')){
|
|| (nextUrl == '/custMgt/subsDetail') || (nextUrl == '/custMgt/memberAdminDetail')){
|
||||||
|
|
||||||
for(var i=0; i<menuUrls.length; i++){
|
for(var i=0; i<menuUrls.length; i++){
|
||||||
if(menuUrls[i] == '/custMgt/subsList'){
|
if(menuUrls[i] == '/custMgt/subsList'){
|
||||||
moveFlag = true;
|
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 유치채널
|
// url Check 유치채널
|
||||||
if((nextUrl == '/attractMgt/channelDetail')){
|
if((nextUrl == '/attractMgt/channelDetail')){
|
||||||
for(var i=0; i<menuUrls.length; i++){
|
for(var i=0; i<menuUrls.length; i++){
|
||||||
@@ -113,6 +144,14 @@ router.beforeEach((to, from, next) => {
|
|||||||
moveFlag = true;
|
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 날짜별 통계
|
// url Check 날짜별 통계
|
||||||
if((nextUrl == '/stats/dayList')){
|
if((nextUrl == '/stats/dayList')){
|
||||||
@@ -171,6 +210,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
}
|
}
|
||||||
return next(rootUrl);
|
return next(rootUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ const mutations = {
|
|||||||
},
|
},
|
||||||
updateUserSeq: (state, data) => {
|
updateUserSeq: (state, data) => {
|
||||||
state.userSeq = data;
|
state.userSeq = data;
|
||||||
|
console.log('mutate: '+state.userSeq);
|
||||||
},
|
},
|
||||||
updateUserId: (state, data) => {
|
updateUserId: (state, data) => {
|
||||||
state.userId = data;
|
state.userId = data;
|
||||||
|
|||||||
Reference in New Issue
Block a user