발신 번호 수정

This commit is contained in:
USER
2022-07-19 19:13:54 +09:00
parent 0bf17706a8
commit 3be9f3df5a
5 changed files with 78 additions and 32 deletions

View File

@@ -181,6 +181,7 @@ import CarryOverListPop from '../components/CarryOverListPop';
import ValidationConfirmPop from '../components/ValidationConfirmPop';
import AdminNmPop from '../components/AdminNmPop';
import commonModal from "@/components/modal/commonModal";
//import { mapGetters } from 'vuex';
export default {
name: "subsDetail",
@@ -236,11 +237,21 @@ export default {
},
created() {
console.log(this.$route.params.serviceId);
this.$store.commit("login/isLogin", true);
//console.log(this.$route.params);
this.subsDetail(this.$route.params.serviceId);
this.setMenuActive();
this.$store.commit("login/isLogin", true);
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"];
console.log('serviceId : '+serviceId);
this.subsDetail(serviceId);
}
},
destroyed() {
this.$store.commit('dataStore/updateDataStore', '');
},
methods: {
callAlert(props) {
@@ -266,22 +277,7 @@ export default {
this.row.page = 1;
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) {
this.row.serviceId = serviceId;
try {
@@ -363,13 +359,8 @@ export default {
this.$refs.carryOverListPop.carryOverListPopOpen(this.serviceId);
},
confirmPopOpen: function () {
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.commmonModal.confirmModalOpen(this.row);
if (this.doValidate()) {
this.$refs.validationConfirmPop.confirmUpdateSubOpen();
}
},