mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 03:28:39 +09:00
발신 번호 수정
This commit is contained in:
@@ -222,10 +222,21 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log(this.$route.params.userSeq);
|
console.log(this.$route.params.userSeq);
|
||||||
this.loginId = this.$route.params.loginId;
|
//this.$store.commit("login/isLogin", true);
|
||||||
this.getExcelHeader();
|
this.getExcelHeader();
|
||||||
|
if(this.$route.params.userSeq != null){ //리스트에서 상세 호출
|
||||||
|
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.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);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
async channelDetail(userSeq) {
|
async channelDetail(userSeq) {
|
||||||
this.row.userSeq = userSeq;
|
this.row.userSeq = userSeq;
|
||||||
|
|||||||
@@ -181,6 +181,7 @@ import CarryOverListPop from '../components/CarryOverListPop';
|
|||||||
import ValidationConfirmPop from '../components/ValidationConfirmPop';
|
import ValidationConfirmPop from '../components/ValidationConfirmPop';
|
||||||
import AdminNmPop from '../components/AdminNmPop';
|
import AdminNmPop from '../components/AdminNmPop';
|
||||||
import commonModal from "@/components/modal/commonModal";
|
import commonModal from "@/components/modal/commonModal";
|
||||||
|
//import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "subsDetail",
|
name: "subsDetail",
|
||||||
@@ -237,10 +238,20 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
console.log(this.$route.params.serviceId);
|
console.log(this.$route.params.serviceId);
|
||||||
this.$store.commit("login/isLogin", true);
|
this.$store.commit("login/isLogin", true);
|
||||||
//console.log(this.$route.params);
|
|
||||||
|
if(this.$route.params.serviceId != null){ // 리스트에서 상세 호출시
|
||||||
|
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"];
|
||||||
|
console.log('serviceId : '+serviceId);
|
||||||
|
this.subsDetail(serviceId);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
destroyed() {
|
||||||
|
this.$store.commit('dataStore/updateDataStore', '');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
callAlert(props) {
|
callAlert(props) {
|
||||||
@@ -267,21 +278,6 @@ export default {
|
|||||||
|
|
||||||
this.$router.push({name: 'subsList', params: this.row});
|
this.$router.push({name: 'subsList', params: this.row});
|
||||||
},
|
},
|
||||||
async doInsert(props) {
|
|
||||||
|
|
||||||
console.log(props);
|
|
||||||
// try {
|
|
||||||
// const response = await custMgtApi.insertTestId(this.row);
|
|
||||||
// const result = response.data;
|
|
||||||
// if (result != null && result.retCode == "0000") {
|
|
||||||
// alert('저장 하였습니다.');
|
|
||||||
// this.toComplete();
|
|
||||||
// }
|
|
||||||
// } catch(err) {
|
|
||||||
// alert("실패 하였습니다.");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
async subsDetail(serviceId) {
|
async subsDetail(serviceId) {
|
||||||
this.row.serviceId = serviceId;
|
this.row.serviceId = serviceId;
|
||||||
try {
|
try {
|
||||||
@@ -364,12 +360,7 @@ export default {
|
|||||||
},
|
},
|
||||||
confirmPopOpen: function () {
|
confirmPopOpen: function () {
|
||||||
if (this.doValidate()) {
|
if (this.doValidate()) {
|
||||||
// this.row.title = '사용자 수정 확인';
|
|
||||||
// this.row.msg = '변경된 내용을 저장하시겠습니까?';
|
|
||||||
// console.log(this.row);
|
|
||||||
// this.$refs.confirmPop.confirmModalOpen(this.row);
|
|
||||||
this.$refs.validationConfirmPop.confirmUpdateSubOpen();
|
this.$refs.validationConfirmPop.confirmUpdateSubOpen();
|
||||||
// this.$refs.commmonModal.confirmModalOpen(this.row);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
import searchcondition from './store/search-condition'
|
import searchcondition from './store/search-condition'
|
||||||
|
import dataStore from './store/dataStore'
|
||||||
import login from './modules/login/store/index'
|
import login from './modules/login/store/index'
|
||||||
import createPersistedState from 'vuex-persistedstate';
|
import createPersistedState from 'vuex-persistedstate';
|
||||||
|
|
||||||
|
|
||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
|
|
||||||
export default new Vuex.Store({
|
export default new Vuex.Store({
|
||||||
modules: {
|
modules: {
|
||||||
searchcondition,
|
searchcondition,
|
||||||
login
|
login,
|
||||||
|
dataStore
|
||||||
},
|
},
|
||||||
plugins: [createPersistedState({ paths: ["login"] })],
|
plugins: [createPersistedState({ paths: ["login","dataStore"] })],
|
||||||
})
|
})
|
||||||
|
|||||||
34
frontend/src/store/dataStore.js
Normal file
34
frontend/src/store/dataStore.js
Normal file
@@ -0,0 +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
|
||||||
|
};
|
||||||
@@ -224,6 +224,13 @@ public class SendNumMgtService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 사업자 인증 여부 Y
|
||||||
|
if(allSendNumbers.size() > 0) {
|
||||||
|
UpdateApprReqDto updateApprReqDto = new UpdateApprReqDto();
|
||||||
|
updateApprReqDto.setAdminId(adminId);
|
||||||
|
sendNumMgtMapper.updateSvcUser(updateApprReqDto);
|
||||||
|
}
|
||||||
|
|
||||||
// 사업자 인증이 안된 경우 파일업로드...
|
// 사업자 인증이 안된 경우 파일업로드...
|
||||||
if(!StringUtils.equals(Const.COMM_YES, insertNumberReqDto.getBizrAuthYn())){
|
if(!StringUtils.equals(Const.COMM_YES, insertNumberReqDto.getBizrAuthYn())){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user