유치채널관리 수정 / 정산관리 추가,수정 / 채널관리 수정 / 고객관리 수정 / 모니터링 추가 / 리스크관리 수정 / 발신번호관리

추가,수정 / 서비스관리 수정 / 발송통계 수정
This commit is contained in:
kimre
2022-07-06 16:00:09 +09:00
parent 7cdea9e61a
commit 3d05b45299
113 changed files with 6261 additions and 5039 deletions

View File

@@ -54,6 +54,9 @@ export default {
agencyNm:"",
idCheck: false,
props: {},
serviceId: '',
parentDiv: '',
serviceSeq:'',
}
},
components: {
@@ -141,6 +144,44 @@ export default {
this.formReset();
this.$refs.madangId.focus();
},
async adminIdNmChangeOk(){
// 관리자명 수정 api 호출
var params = {
"adminId": this.madangId,
"adminNm": this.userNm,
"serviceId": this.serviceId
}
console.log(params);
try {
const response = await custMgtApi.updateAdminInfo(params);
const result = response.data;
console.log(result);
if (result != null && result.retCode == "0000") {
console.log('adminNm modal close');
//alert('관리자정보 수정에 성공하였습니다.');
// adminNm modal close
var dimmed = document.getElementsByClassName('modal26');
for(var i = 0; i < dimmed.length; i++){
dimmed[i].style.display = 'none';
}
if(this.parentDiv === 'subsDetail'){
this.$parent.subsDetail(this.serviceId);
} else if(this.parentDiv === 'channelDetail'){
this.$parent.channelDetail(this.serviceSeq);
}
}else {
//alert('관리자정보 수정에 실패하였습니다.');
this.formReset();
this.$refs.madangId.focus();
}
} catch(err) {
//alert("실패 하였습니다.");
this.formReset();
this.$refs.madangId.focus();
}
},
setAuthData() {
// 권한 옵션.
api.commAuth().then(response => {
@@ -151,12 +192,16 @@ export default {
Object.assign(this.$data, this.$options.data());
},
// 모달 띄우기
ModalOpen(){
ModalOpen(target){
console.log(target);
this.formReset();
var dimmed = document.getElementsByClassName('modal26');
for(var i = 0; i < dimmed.length; i++){
dimmed[i].style.display = 'block';
}
this.serviceId = target.serviceId;
this.serviceSeq = target.serviceSeq;
this.parentDiv = target.parentDiv;
},
// 모달 끄기
ModalClose(){

View File

@@ -26,12 +26,15 @@
</thead>
<tbody>
<tr v-for="(option, i) in list" v-bind:key="i">
<td>{{ option.date }}</td>
<td>{{ option.lmtYm }}</td>
<td>{{ option.startAmount }}</td>
<td>{{ option.useAmount }}</td>
<td>{{ option.krrrAmount }}</td>
<td>{{ option.extshAmount }}</td>
</tr>
<tr v-if="list.length === 0">
<td colspan="5">검색 결과가 없습니다.</td>
</tr>
</tbody>
</table>
</form>
@@ -82,7 +85,7 @@ export default {
console.log(result);
if (result != null && result.retCode == "0000") {
this.list = result.data.list;
this.totalCnt = result.data.totalCnt;
this.totalCnt = result.data.list.length;
}
} catch(err) {
this.row.title = '청약고객관리';

View File

@@ -85,6 +85,8 @@ export default {
for(var i = 0; i < dimmed.length; i++){
dimmed[i].style.display = 'none';
}
this.$parent.adminIdNmChangeOk();
},
// 성공 모달 끄기(cancel)
searchIdModalCancelClose(){