mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-08 21:28:35 +09:00
TC 기능 수정 / 디자인 수정 변경
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -167,6 +167,14 @@ export default {
|
||||
this.$parent.channelDetail(this.serviceSeq);
|
||||
}
|
||||
|
||||
}else if(result != null && result.retCode == "1009"){
|
||||
this.row.title = '관리자명 조회';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.madangId.focus();
|
||||
this.formReset();
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}else {
|
||||
//alert('관리자정보 수정에 실패하였습니다.');
|
||||
this.formReset();
|
||||
|
||||
@@ -9,27 +9,27 @@
|
||||
</div>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>관리자 ID</th>
|
||||
<td>{{ adminId }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>사용자 ID 업로드</th>
|
||||
<td>
|
||||
<div class="popup-btn2 bulk">
|
||||
<input
|
||||
<tr>
|
||||
<th>관리자 ID</th>
|
||||
<td>{{ adminId }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>사용자 ID 업로드</th>
|
||||
<td>
|
||||
<div class="popup-btn2 bulk">
|
||||
<input
|
||||
type="file"
|
||||
ref="file"
|
||||
style="display: none"
|
||||
@change="readFile"
|
||||
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
||||
/>
|
||||
<button class="btn-default" @click="sampleDown">샘플 다운로드</button>
|
||||
<button class="button btn-p2color" @click="$refs.file.click()">파일 업로드</button>
|
||||
</div>
|
||||
<p class="file" id="uploadFile"></p>
|
||||
</td>
|
||||
</tr>
|
||||
/>
|
||||
<button class="btn-default" @click="sampleDown">샘플 다운로드</button>
|
||||
<button class="button btn-p2color" @click="$refs.file.click()">파일 업로드</button>
|
||||
</div>
|
||||
<p class="file" id="uploadFile"></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="popup-btn2">
|
||||
@@ -37,7 +37,7 @@
|
||||
<button class="btn-default" @click="excelPopClose">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
<validationConfirm-modal ref="validationConfirmPop"></validationConfirm-modal>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -45,11 +45,11 @@
|
||||
<script>
|
||||
import api from '@/service/api';
|
||||
import custMgtApi from '../service/custMgtApi.js';
|
||||
import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import {utils_mixin, chkPattern2} from '../service/mixins';
|
||||
import xlsx from '@/common/excel';
|
||||
import moment from 'moment';
|
||||
import XLSX from 'xlsx';
|
||||
import commonModal from './commonModal';
|
||||
import ValidationConfirmPop from "@/modules/custMgt/components/ValidationConfirmPop";
|
||||
|
||||
export default {
|
||||
name: 'memberBulkRegPop',
|
||||
@@ -68,7 +68,7 @@ export default {
|
||||
};
|
||||
},
|
||||
components: {
|
||||
commonModal,
|
||||
ValidationConfirmPop,
|
||||
},
|
||||
created() {
|
||||
this.getExcelHeader();
|
||||
@@ -98,13 +98,13 @@ export default {
|
||||
}
|
||||
},
|
||||
// 저장 후 부모창 호출.
|
||||
toComplete() {
|
||||
toComplete() {
|
||||
this.row.serviceId = this.adminId;
|
||||
// 팝업으로 교체 예정
|
||||
if (confirm('정상 업로드 되었습니다.')){
|
||||
this.excelPopClose();
|
||||
this.$parent.memberDetail(this.adminId);
|
||||
}
|
||||
// 팝업으로 교체 예정
|
||||
if (confirm('정상 업로드 되었습니다.')) {
|
||||
this.excelPopClose();
|
||||
this.$parent.memberDetail(this.adminId);
|
||||
}
|
||||
},
|
||||
async doInsert() {
|
||||
if (this.doValidate() && window.confirm('등록 하시겠습니까?')) {
|
||||
@@ -132,7 +132,8 @@ export default {
|
||||
header: this.excelHeader,
|
||||
dataOrder: 'header',
|
||||
};
|
||||
xlsx.export([], saveFileName, options).then(() => {});
|
||||
xlsx.export([], saveFileName, options).then(() => {
|
||||
});
|
||||
},
|
||||
getExcelHeader() {
|
||||
// 헤더를 mockup으로 관리한다.
|
||||
@@ -167,13 +168,14 @@ export default {
|
||||
this.row.msg1 = '파일을 읽는 동안 에러가 발생 했습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
};
|
||||
reader.onloadend = (e) => {};
|
||||
reader.onloadend = (e) => {
|
||||
};
|
||||
|
||||
reader.onload = (e) => {
|
||||
let data = reader.result;
|
||||
let workbook = XLSX.read(data, { type: 'binary' });
|
||||
let workbook = XLSX.read(data, {type: 'binary'});
|
||||
workbook.SheetNames.forEach((sheetName) => {
|
||||
const rowObj = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName], { raw: true });
|
||||
const rowObj = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName], {raw: true});
|
||||
tmpResult = rowObj;
|
||||
const limitCnt = 100;
|
||||
|
||||
@@ -190,7 +192,7 @@ export default {
|
||||
if (idx > limitCnt - 1) {
|
||||
break;
|
||||
}
|
||||
let { ID, 이름, 휴대폰번호, 이메일, ID잠금 } = r;
|
||||
let {ID, 이름, 휴대폰번호, 이메일, ID잠금} = r;
|
||||
ID = '' + (vm.isNull(ID) ? '' : ID);
|
||||
이름 = '' + (vm.isNull(이름) ? '' : 이름);
|
||||
휴대폰번호 = '' + (vm.isNull(휴대폰번호) ? '' : 휴대폰번호);
|
||||
@@ -204,22 +206,22 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
let { retVal, msg } = vm.validXlxs({ ID, 이름, 휴대폰번호, 이메일, ID잠금 });
|
||||
let {retVal, msg} = vm.validXlxs({ID, 이름, 휴대폰번호, 이메일, ID잠금});
|
||||
if (retVal) {
|
||||
const pVal = [
|
||||
{ name: '이름', val: 이름, len: 20 },
|
||||
{ name: 'ID잠금', val: ID잠금, len: 4 },
|
||||
{name: '이름', val: 이름, len: 20},
|
||||
{name: 'ID잠금', val: ID잠금, len: 4},
|
||||
];
|
||||
|
||||
const rVal = vm.isTitle(pVal);
|
||||
|
||||
if (rVal.retVal) {
|
||||
vm.nData.push({ userId: ID, userNm: 이름, mdn: 휴대폰번호, email: 이메일, stat: ID잠금, msg });
|
||||
vm.nData.push({userId: ID, userNm: 이름, mdn: 휴대폰번호, email: 이메일, stat: ID잠금, msg});
|
||||
} else {
|
||||
vm.oData.push({ ID, 이름, 휴대폰번호, 이메일, ID잠금, 오류내용: rVal.msg });
|
||||
vm.oData.push({ID, 이름, 휴대폰번호, 이메일, ID잠금, 오류내용: rVal.msg});
|
||||
}
|
||||
} else {
|
||||
vm.oData.push({ ID, 이름, 휴대폰번호, 이메일, ID잠금, 오류내용: msg });
|
||||
vm.oData.push({ID, 이름, 휴대폰번호, 이메일, ID잠금, 오류내용: msg});
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -230,35 +232,35 @@ export default {
|
||||
};
|
||||
reader.readAsBinaryString(file);
|
||||
},
|
||||
validXlxs({ 이름, 휴대폰번호, 이메일 }) {
|
||||
validXlxs({이름, 휴대폰번호, 이메일}) {
|
||||
if (this.isNull(이름)) {
|
||||
return { retVal: false, msg: '이름 누락' };
|
||||
return {retVal: false, msg: '이름 누락'};
|
||||
}
|
||||
if (this.isNull(휴대폰번호)) {
|
||||
return { retVal: false, msg: '휴대폰번호 누락' };
|
||||
return {retVal: false, msg: '휴대폰번호 누락'};
|
||||
}
|
||||
if (!this.isMobile(휴대폰번호)) {
|
||||
if (!this.isMobile2(휴대폰번호)) {
|
||||
return { retVal: false, msg: '휴대폰번호 형식 오류' };
|
||||
return {retVal: false, msg: '휴대폰번호 형식 오류'};
|
||||
}
|
||||
}
|
||||
if (!this.emailCheck(이메일)) {
|
||||
return { retVal: false, msg: '이메일 형식 오류' };
|
||||
return {retVal: false, msg: '이메일 형식 오류'};
|
||||
}
|
||||
return { retVal: true, msg: '정상' };
|
||||
return {retVal: true, msg: '정상'};
|
||||
},
|
||||
isTitle(pVal) {
|
||||
for (const o of pVal) {
|
||||
if (this.bytes(o.val) > o.len) {
|
||||
return { retVal: false, msg: `${o.name} 컬럼: 문자열 길이 오류(${o.len}자)` };
|
||||
return {retVal: false, msg: `${o.name} 컬럼: 문자열 길이 오류(${o.len}자)`};
|
||||
}
|
||||
const strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z0-9]*$';
|
||||
const regExp_g = new RegExp(strRegExp, 'g');
|
||||
if (!regExp_g.test(o.val)) {
|
||||
return { retVal: false, msg: `${o.name} 컬럼: 특수 문자 오류` };
|
||||
return {retVal: false, msg: `${o.name} 컬럼: 특수 문자 오류`};
|
||||
}
|
||||
}
|
||||
return { retVal: true, msg: '정상' };
|
||||
return {retVal: true, msg: '정상'};
|
||||
},
|
||||
delFile(event) {
|
||||
const file = event.target.files[0];
|
||||
@@ -272,6 +274,7 @@ export default {
|
||||
// uploadFile
|
||||
},
|
||||
async saveExcel() {
|
||||
this.row = {}
|
||||
//
|
||||
this.row.adminId = this.adminId;
|
||||
this.row.list = this.nData;
|
||||
@@ -281,36 +284,46 @@ export default {
|
||||
//console.log(response);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == '0000') {
|
||||
if (result != null && result.retCode == '0000') {
|
||||
this.totalCnt = result.data.totalCnt;
|
||||
this.successCnt = result.data.successCnt;
|
||||
this.failCnt = result.data.failCnt;
|
||||
|
||||
if(result.data.failCnt > 0){
|
||||
// 팝업으로 교체 예정
|
||||
var resultMsg = '파일 업로드 중 오류가 발생하여 정상건만 업로드 완료하였습니다.\n\n 총 '+result.data.totalCnt+'건, 정상 '+ result.data.successCnt+'건, 오류 '+result.data.failCnt+'건\n\n오류건은 확인 후 재등록 부탁 드립니다.';
|
||||
alert(resultMsg);
|
||||
this.excelPopClose();
|
||||
this.$parent.memberDetail(this.adminId);
|
||||
}else{
|
||||
this.toComplete();
|
||||
}
|
||||
if (result.data.failCnt > 0) {
|
||||
this.row.totalCnt = this.totalCnt
|
||||
this.row.successCnt = this.successCnt
|
||||
this.row.failCnt = this.failCnt
|
||||
this.$refs.validationConfirmPop.failFileuploadOpen(this.row);
|
||||
// 팝업으로 교체 예정
|
||||
// var resultMsg = '파일 업로드 중 오류가 발생하여 정상건만 업로드 완료하였습니다.\n\n 총 '+result.data.totalCnt+'건, 정상 '+ result.data.successCnt+'건, 오류 '+result.data.failCnt+'건\n\n오류건은 확인 후 재등록 부탁 드립니다.';
|
||||
// alert(resultMsg);
|
||||
// this.excelPopClose();
|
||||
// this.$parent.memberDetail(this.adminId);
|
||||
} else {
|
||||
|
||||
this.toComplete();
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
// 팝업으로 교체 예정
|
||||
var title ='청약고객 관리\n';
|
||||
var msg1 = '실패 하였습니다.';
|
||||
alert(title + msg1);
|
||||
|
||||
// 팝업으로 교체 예정
|
||||
var title = '청약고객 관리\n';
|
||||
var msg1 = '실패 하였습니다.';
|
||||
alert(title + msg1);
|
||||
// this.row.title = '청약고객관리';
|
||||
// this.row.msg1 = '실패 하였습니다.';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
// this.$refs.validationConfirmPop.failFileuploadOpen(this.row);
|
||||
}
|
||||
|
||||
// 오류건수.
|
||||
console.log(this.oData.length);
|
||||
},
|
||||
failFileuploadOk(result) {
|
||||
console.log(result)
|
||||
if (result) {
|
||||
this.excelPopClose();
|
||||
this.$parent.memberDetail(this.adminId);
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -27,15 +27,18 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<td><input type="text" v-model.trim="userNm" ref="_userNm"></td>
|
||||
<td><input type="text" v-model.trim="userNm" ref="_userNm" @keypress="onlyRoleNm_Space"
|
||||
@input="onlyRoleNm_Space" maxlength="100"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>휴대폰번호</th>
|
||||
<td><input type="text" v-model.trim="mdn" ref="_phone"></td>
|
||||
<td><input type="text" placeholder="- 자 제외 숫자만 입력" v-model.trim="mdn" ref="_phone" @keypress="onlyNum"
|
||||
@input="onlyNum" minlength="10" maxlength="11"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이메일</th>
|
||||
<td><input type="email" v-model.trim="email" ref="_email"></td>
|
||||
<td><input type="email" v-model.trim="email" ref="_email" @keypress="onlyEmail" @input="onlyEmail"
|
||||
maxlength="100"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center">상태</th>
|
||||
@@ -181,8 +184,13 @@ export default {
|
||||
var dimmed = document.getElementsByClassName('memberUpdate');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
}
|
||||
this.formReset();
|
||||
},
|
||||
formReset() {
|
||||
this.userPwd1 = '';
|
||||
this.userPwd2 = '';
|
||||
},
|
||||
toComplete(){
|
||||
this.row.serviceId = this.adminId;
|
||||
this.memberUpdateModalClose();
|
||||
|
||||
@@ -1,255 +1,279 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="dimmed memberInsert" @click="memberInsertModalClose();"></div>
|
||||
<div class="popup-wrap memberInsert">
|
||||
<div>
|
||||
<div class="dimmed memberInsert" @click="memberInsertModalClose();"></div>
|
||||
<div class="popup-wrap memberInsert">
|
||||
<div class="popup modal31 popup_form memberInsert">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 ID 생성</h3>
|
||||
</div>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>관리자 ID</th>
|
||||
<td>{{adminId}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<td><input type="text" v-model.trim="userId" ref="_userId"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<td><input type="text" v-model.trim="userNm" ref="_userNm"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>휴대폰번호</th>
|
||||
<td><input type="text" placeholder="- 자 제외 숫자만 입력" v-model.trim="mdn" ref="_phone"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이메일</th>
|
||||
<td><input type="email" v-model.trim="email" ref="_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center">ID 잠금</th>
|
||||
<td>
|
||||
<input type="radio" name="userStateInsert" value="01" id="user_popup_insert_radio1" v-model="stat">
|
||||
<label for="user_popup_insert_radio1">사용</label>
|
||||
<input type="radio" name="userStateInsert" value="02" id="user_popup_insert_radio2" v-model="stat">
|
||||
<label for="user_popup_insert_radio2">정지</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>관리자 ID</th>
|
||||
<td>{{ adminId }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<td><input type="text" v-model.trim="userId" ref="_userId" @keypress="onlyId" @input="onlyId" minlength="6"
|
||||
maxlength="16"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<td><input type="text" v-model.trim="userNm" ref="_userNm" @keypress="onlyRoleNm_Space"
|
||||
@input="onlyRoleNm_Space" maxlength="100"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>휴대폰번호</th>
|
||||
<td><input type="text" placeholder="- 자 제외 숫자만 입력" v-model.trim="mdn" ref="_phone" @keypress="onlyNum"
|
||||
@input="onlyNum" minlength="10" maxlength="11"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이메일</th>
|
||||
<td><input type="email" v-model.trim="email" ref="_email" @keypress="onlyEmail" @input="onlyEmail"
|
||||
maxlength="100"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center">ID 잠금</th>
|
||||
<td>
|
||||
<input type="radio" name="userStateInsert" value="01" id="user_popup_insert_radio1" v-model="stat">
|
||||
<label for="user_popup_insert_radio1">사용</label>
|
||||
<input type="radio" name="userStateInsert" value="02" id="user_popup_insert_radio2" v-model="stat">
|
||||
<label for="user_popup_insert_radio2">정지</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="memberInsertConfirm();">저장</button>
|
||||
<button class="btn-default" @click="memberInsertModalClose();">취소</button>
|
||||
<button class="btn-pcolor" @click="memberInsertConfirm();">저장</button>
|
||||
<button class="btn-default" @click="memberInsertModalClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<validation-confirm-pop ref="validationConfirmPopModal"> </validation-confirm-pop>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
</div>
|
||||
<validation-confirm-pop ref="validationConfirmPopModal"></validation-confirm-pop>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from '@/service/api';
|
||||
import custMgtApi from "../service/custMgtApi.js";
|
||||
import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import {utils_mixin, chkPattern2} from '../service/mixins';
|
||||
import ValidationConfirmPop from '../components/ValidationConfirmPop.vue';
|
||||
import lodash from "lodash";
|
||||
import commonModal from "../components/commonModal";
|
||||
|
||||
export default {
|
||||
name: "memberRegPop",
|
||||
mixins: [utils_mixin, chkPattern2],
|
||||
watch:{
|
||||
stat(){
|
||||
console.log('watch : ', this.stat)
|
||||
}
|
||||
},
|
||||
components: {
|
||||
ValidationConfirmPop,
|
||||
commonModal,
|
||||
},
|
||||
model: {
|
||||
//prop: 'sendData',
|
||||
//event: 'event-data'
|
||||
},
|
||||
//props: ['sendData'],
|
||||
created(){
|
||||
// this.setAuthData();
|
||||
this.formReset();
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
row:{},
|
||||
madangId:'',
|
||||
adminId:'',
|
||||
name:'',
|
||||
mdn:'',
|
||||
email:'',
|
||||
auth:'',
|
||||
stat: "01",
|
||||
userId:"",
|
||||
userNm:"",
|
||||
code:"",
|
||||
userTotalCnt:0,
|
||||
name: "memberRegPop",
|
||||
mixins: [utils_mixin, chkPattern2],
|
||||
watch: {
|
||||
stat() {
|
||||
console.log('watch : ', this.stat)
|
||||
}
|
||||
},
|
||||
methods :{
|
||||
//사용자ID 생성 모달 Open
|
||||
async memberInsertModalOpen(props){
|
||||
this.adminId = props.adminId;
|
||||
this.userTotalCnt = props.userTotalCnt;
|
||||
components: {
|
||||
ValidationConfirmPop,
|
||||
commonModal,
|
||||
},
|
||||
model: {
|
||||
//prop: 'sendData',
|
||||
//event: 'event-data'
|
||||
},
|
||||
//props: ['sendData'],
|
||||
created() {
|
||||
// this.setAuthData();
|
||||
this.formReset();
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
row: {},
|
||||
madangId: '',
|
||||
adminId: '',
|
||||
name: '',
|
||||
mdn: '',
|
||||
email: '',
|
||||
auth: '',
|
||||
stat: "01",
|
||||
userId: "",
|
||||
userNm: "",
|
||||
code: "",
|
||||
userTotalCnt: 0,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//사용자ID 생성 모달 Open
|
||||
async memberInsertModalOpen(props) {
|
||||
this.adminId = props.adminId;
|
||||
this.userTotalCnt = props.userTotalCnt;
|
||||
|
||||
// 모달 오픈
|
||||
var dimmed = document.getElementsByClassName('memberInsert');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
//사용자ID 생성 Confirm
|
||||
memberInsertConfirm(){
|
||||
// confirm 팝업 노출
|
||||
if(this.doValidate()){
|
||||
this.$refs.validationConfirmPopModal.confirmInsertOpen();
|
||||
}
|
||||
},
|
||||
//사용자ID 수정 처리
|
||||
async memberInsert(){
|
||||
this.row.adminId = this.adminId;
|
||||
this.row.userId = this.userId;
|
||||
this.row.userNm = this.userNm;
|
||||
this.row.userEmail = this.email;
|
||||
this.row.mdn = this.mdn;
|
||||
this.row.userStat = this.stat;
|
||||
try {
|
||||
const response = await custMgtApi.insertUser(this.row);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '사용자 생성 완료하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.toComplete();
|
||||
} else if(result != null && result.retCode == "4018"){
|
||||
// 이미 사용중인 ID
|
||||
this.$refs.validationConfirmPopModal.validationIdDuplicateOpen();
|
||||
} else {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
} catch(err) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
},
|
||||
//사용자ID 생성 모달 Close
|
||||
memberInsertModalClose(){
|
||||
var dimmed = document.getElementsByClassName('memberInsert');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.formReset();
|
||||
},
|
||||
toComplete(){
|
||||
this.row.serviceId = this.adminId;
|
||||
this.memberInsertModalClose();
|
||||
this.$parent.memberDetail(this.adminId);
|
||||
},
|
||||
setAuthData() {
|
||||
// 권한 옵션.
|
||||
api.commAuth().then(response => {
|
||||
this.authType = response.data.data.list;
|
||||
});
|
||||
},
|
||||
formReset(){
|
||||
var targetAdminId = this.adminId;
|
||||
Object.assign(this.$data, this.$options.data());
|
||||
this.adminId = targetAdminId;
|
||||
},
|
||||
doValidate(){
|
||||
console.log(this.userTotalCnt)
|
||||
if(this.userTotalCnt >= 100){
|
||||
// 사용자등록제한_최대100개까지
|
||||
this.$refs.validationConfirmPopModal.validationMaxlimitOpen();
|
||||
return false;
|
||||
}
|
||||
// 모달 오픈
|
||||
var dimmed = document.getElementsByClassName('memberInsert');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
//사용자ID 생성 Confirm
|
||||
memberInsertConfirm() {
|
||||
// confirm 팝업 노출
|
||||
if (this.doValidate()) {
|
||||
this.$refs.validationConfirmPopModal.confirmInsertOpen();
|
||||
}
|
||||
},
|
||||
//사용자ID 수정 처리
|
||||
async memberInsert() {
|
||||
this.row.adminId = this.adminId;
|
||||
this.row.userId = this.userId;
|
||||
this.row.userNm = this.userNm;
|
||||
this.row.userEmail = this.email;
|
||||
this.row.mdn = this.mdn;
|
||||
this.row.userStat = this.stat;
|
||||
try {
|
||||
const response = await custMgtApi.insertUser(this.row);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '사용자 생성 완료하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.toComplete();
|
||||
} else if (result != null && result.retCode == "4018") {
|
||||
// 이미 사용중인 ID
|
||||
this.$refs.validationConfirmPopModal.validationIdDuplicateOpen();
|
||||
} else {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
} catch (err) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
},
|
||||
//사용자ID 생성 모달 Close
|
||||
memberInsertModalClose() {
|
||||
var dimmed = document.getElementsByClassName('memberInsert');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.formReset();
|
||||
},
|
||||
toComplete() {
|
||||
this.row.serviceId = this.adminId;
|
||||
this.memberInsertModalClose();
|
||||
this.$parent.memberDetail(this.adminId);
|
||||
},
|
||||
setAuthData() {
|
||||
// 권한 옵션.
|
||||
api.commAuth().then(response => {
|
||||
this.authType = response.data.data.list;
|
||||
});
|
||||
},
|
||||
formReset() {
|
||||
var targetAdminId = this.adminId;
|
||||
Object.assign(this.$data, this.$options.data());
|
||||
this.adminId = targetAdminId;
|
||||
},
|
||||
doValidate() {
|
||||
console.log(this.userTotalCnt)
|
||||
if (this.userTotalCnt >= 100) {
|
||||
// 사용자등록제한_최대100개까지
|
||||
this.$refs.validationConfirmPopModal.validationMaxlimitOpen();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(this.isNull(this.userId)){
|
||||
this.$refs._userId.focus();
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = 'ID를 입력해 주세요.';
|
||||
this.row.focusTaget = '1';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.userId)) {
|
||||
this.$refs._userId.focus();
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = 'ID를 입력해 주세요.';
|
||||
this.row.focusTaget = '1';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
// 청약 ID 길이 체크 6~16
|
||||
var userIdlength = this.userId.length;
|
||||
if (userIdlength < 6 || userIdlength > 16) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = 'ID 형식에 맞지 않습니다.';
|
||||
this.row.msg2 = '확인하여 다시 등록 부탁 드립니다.';
|
||||
this.row.focusTaget = '1';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(this.isNull(this.userNm)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이름을 입력해 주세요.';
|
||||
this.row.focusTaget = '2';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.userNm)) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이름을 입력해 주세요.';
|
||||
this.row.focusTaget = '2';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(this.isNull(this.mdn)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '휴대폰번호를 입력해주세요.';
|
||||
this.row.focusTaget = '3';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
const hp = this.mdn;
|
||||
if(!this.isNull(hp) && !this.isMobile(hp)){
|
||||
this.row.focusTaget = '3';
|
||||
this.$refs.validationConfirmPopModal.validationPhonenumberOpen();
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.mdn)) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '휴대폰번호를 입력해주세요.';
|
||||
this.row.focusTaget = '3';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
const hp = this.mdn;
|
||||
if (!this.isNull(hp) && !this.isMobile(hp)) {
|
||||
this.row.focusTaget = '3';
|
||||
//this.$refs.validationConfirmPopModal.validationPhonenumberOpen();
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '휴대폰번호 형식에 맞지 않습니다.';
|
||||
this.row.msg2 = '확인하여 다시 등록 부탁 드립니다.';
|
||||
this.row.focusTaget = '3';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(this.isNull(this.email)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이메일을 입력해주세요.';
|
||||
this.row.focusTaget = '4';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
const email = this.email;
|
||||
if(!this.isNull(email) && !lodash.isEqual(email,'@') && !this.emailCheck(email)){
|
||||
this.$refs.validationConfirmPopModal.validationEmailOpen();
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.email)) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이메일을 입력해주세요.';
|
||||
this.row.focusTaget = '4';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
const email = this.email;
|
||||
if (!this.isNull(email) && !lodash.isEqual(email, '@') && !this.emailCheck(email)) {
|
||||
// this.$refs.validationConfirmPopModal.validationEmailOpen();
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = 'E-mail 형식에 맞지 않습니다.';
|
||||
this.row.msg2 = '확인하여 다시 등록 부탁 드립니다.';
|
||||
this.row.focusTaget = '4';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(this.isNull(this.stat)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '상태를 선택 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.stat)) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '상태를 선택 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
checkFocus(){
|
||||
if(this.row.focusTaget === '1'){
|
||||
this.$refs._userId.focus();
|
||||
} else if(this.row.focusTaget === '2'){
|
||||
this.$refs._userNm.focus();
|
||||
} else if(this.row.focusTaget === '3'){
|
||||
this.$refs._phone.focus();
|
||||
} else if(this.row.focusTaget === '4'){
|
||||
this.$refs._email.focus();
|
||||
}
|
||||
},
|
||||
checkPhoneFocus(){
|
||||
this.$refs._phone.focus();
|
||||
},
|
||||
checkEmailFocus(){
|
||||
this.$refs._email.focus();
|
||||
},
|
||||
checkIdDupFocus(){
|
||||
this.$refs._userId.focus();
|
||||
},
|
||||
}
|
||||
return true;
|
||||
},
|
||||
checkFocus() {
|
||||
if (this.row.focusTaget === '1') {
|
||||
this.$refs._userId.focus();
|
||||
} else if (this.row.focusTaget === '2') {
|
||||
this.$refs._userNm.focus();
|
||||
} else if (this.row.focusTaget === '3') {
|
||||
this.$refs._phone.focus();
|
||||
} else if (this.row.focusTaget === '4') {
|
||||
this.$refs._email.focus();
|
||||
}
|
||||
},
|
||||
checkPhoneFocus() {
|
||||
this.$refs._phone.focus();
|
||||
},
|
||||
checkEmailFocus() {
|
||||
this.$refs._email.focus();
|
||||
},
|
||||
checkIdDupFocus() {
|
||||
this.$refs._userId.focus();
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -7,8 +7,9 @@
|
||||
<div class="popup memoTotal popup_form b-popup">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">전체 메모보기</h3>
|
||||
총 <span>{{ totalItems.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</span>건
|
||||
<!-- 총 <span>{{ totalItems.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</span>건 -->
|
||||
</div>
|
||||
<div class="count">총 <span>{{ totalItems.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</span>건</div>
|
||||
<table class="table-c">
|
||||
<custom-grid
|
||||
ref="table"
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
|
||||
<!-- 시스템관리 팝업 끝-->
|
||||
<!-- e: 팝업 -->
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
<div class="dimmed" @click="ModalClose();"></div>
|
||||
<div class="popup-wrap">
|
||||
<div class="dimmed modal29" @click="ModalClose();"></div>
|
||||
<div class="popup-wrap modal29">
|
||||
<!-- 테스트 ID 생성 -->
|
||||
<div class="popup modal29 popup_form">
|
||||
<div class="pop-head">
|
||||
@@ -13,7 +13,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<td><input type="text" placeholder="아이디 입력" v-model.trim="userId" ref="_userId" /></td>
|
||||
<td><input type="text" placeholder="아이디 입력" v-model.trim="userId" ref="_userId" @keypress="onlyId" @input="onlyId" minlength="6" maxlength="16"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>비밀번호</th>
|
||||
@@ -25,15 +25,15 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<td><input type="text" @keypress="onlyName" @input="onlyName" v-model.trim="userNm" ref="_userNm" required maxlength="40"></td>
|
||||
<td><input type="text" @keypress="onlyText" @input="onlyText" v-model.trim="userNm" ref="_userNm" required maxlength="40"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>휴대폰번호</th>
|
||||
<td><input type="number" placeholder="- 자 제외 숫자만 입력" v-model.trim="mdn" v-on:keyup="onlyNum" @input="onlyNum" minlength="10" maxlength="11" ref="_phone"></td>
|
||||
<td><input type="text" placeholder="- 자 제외 숫자만 입력" v-model.trim="mdn" @keypress="onlyNum" @input="onlyNum" minlength="10" maxlength="11" ref="_phone"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이메일</th>
|
||||
<td><input type="email" v-model.trim="email" @keypress="onlyEmail" @input="onlyEmail" maxlength="20" ref="_email"></td>
|
||||
<td><input type="email" v-model.trim="email" @keypress="onlyEmail" @input="onlyEmail" maxlength="100" ref="_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center">상태</th>
|
||||
@@ -144,56 +144,67 @@ export default {
|
||||
},
|
||||
doValidate(){
|
||||
if(this.isNull(this.userId)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '아이디를 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '아이디를 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._userId.focus();
|
||||
return false;
|
||||
}
|
||||
// 청약 ID 길이 체크 6~16
|
||||
var userIdlength = this.userId.length;
|
||||
if (userIdlength < 6 || userIdlength > 16) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = 'ID 형식에 맞지 않습니다.';
|
||||
this.row.msg2 = '확인하여 다시 등록 부탁 드립니다.';
|
||||
this.row.focusTaget = '1';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!this.doPwdValidate()){
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.userNm)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이름을 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이름을 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._userNm.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.mdn)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '휴대폰번호를 입력해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '휴대폰번호를 입력해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._phone.focus();
|
||||
return false;
|
||||
}
|
||||
const hp = this.mdn;
|
||||
if(!this.isNull(hp) && !this.isMobile(hp)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '휴대폰 번호 형식이 잘못되었습니다. 확인해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '휴대폰 번호 형식이 잘못되었습니다. 확인해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._phone.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.email)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이메일을 입력해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이메일을 입력해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._email.focus();
|
||||
return false;
|
||||
}
|
||||
const email = this.email;
|
||||
if(!this.isNull(email) && !lodash.isEqual(email,'@') && !this.emailCheck(email)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이메일 형식이 잘못되었습니다. 확인해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이메일 형식이 잘못되었습니다. 확인해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._email.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.userStat)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '상태를 선택 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '상태를 선택 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
// this.$refs._auth.focus();
|
||||
return false;
|
||||
}
|
||||
@@ -205,50 +216,46 @@ export default {
|
||||
return true;
|
||||
},
|
||||
// 모달 띄우기
|
||||
ModalOpen(){
|
||||
var dimmed = document.getElementsByClassName('dimmed');
|
||||
dimmed[0].style.display = 'block';
|
||||
var wrap = document.getElementsByClassName('popup-wrap');
|
||||
wrap[0].style.display = 'block';
|
||||
var obj = document.getElementsByClassName('modal29');
|
||||
obj[0].style.display = 'block';
|
||||
this.formReset();
|
||||
ModalOpen(){
|
||||
// 모달 오픈
|
||||
var dimmed = document.getElementsByClassName('modal29');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
this.formReset();
|
||||
},
|
||||
// 모달 끄기
|
||||
ModalClose(){
|
||||
//this.formReset();
|
||||
var dimmed = document.getElementsByClassName('dimmed');
|
||||
dimmed[0].style.display = 'none';
|
||||
var wrap = document.getElementsByClassName('popup-wrap');
|
||||
wrap[0].style.display = 'none';
|
||||
var popup = document.getElementsByClassName('modal29');
|
||||
popup[0].style.display = 'none';
|
||||
|
||||
ModalClose(){
|
||||
var dimmed = document.getElementsByClassName('modal29');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 저장 후 부모창 호출.
|
||||
toComplete(){
|
||||
this.getParent('memberList').$refs.table.reloadData();
|
||||
this.getParent('memberList').$refs.table.reloadData();
|
||||
this.ModalClose();
|
||||
},
|
||||
async doInsert(){
|
||||
if(this.doValidate()){
|
||||
console.log(this.row)
|
||||
},
|
||||
async doInsert(){
|
||||
if(this.doValidate()){
|
||||
console.log(this.row)
|
||||
|
||||
try {
|
||||
const response = await custMgtApi.insertTestId(this.row);
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
// this.row.title = '청약고객관리';
|
||||
// this.row.msg1 = '저장 하였습니다.';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.toComplete();
|
||||
}
|
||||
} catch(err) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
}
|
||||
try {
|
||||
const response = await custMgtApi.insertTestId(this.row);
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.toComplete();
|
||||
}else if(result != null && result.retCode == "1009"){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
} catch(err) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
}
|
||||
},
|
||||
formReset(){
|
||||
// this.$refs.adminRegForm.reset();
|
||||
|
||||
@@ -1,144 +1,144 @@
|
||||
<template>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
<div class="dimmed confirm" @click="confirmModalCancel();"></div>
|
||||
<div class="popup-wrap confirm">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{title}}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{msg}}</p>
|
||||
</div>
|
||||
<div class="pop-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
<div class="dimmed confirm" @click="confirmModalCancel();"></div>
|
||||
<div class="popup-wrap confirm">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{ title }}</h3>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 등록 - 최초 등록 -->
|
||||
<div class="dimmed confirm-insert" @click="confirmInsertClose();"></div>
|
||||
<div class="popup-wrap confirm-insert">
|
||||
<div class="popup confirm-insert">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>해당 사용자를 등록하고 인증 메일을</p>
|
||||
<p>발송하시겠습니까?</p>
|
||||
<p>사용을 위해서는 등록된 이메일 인증 후</p>
|
||||
<p>서비스 이용이 가능합니다.</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmInsert();">확인</button>
|
||||
<button class="btn-default" @click="confirmInsertClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 등록 - 이메일 형식 체크 -->
|
||||
<div class="dimmed validation-email" @click="validationEmailClose();"></div>
|
||||
<div class="popup-wrap validation-email">
|
||||
<div class="popup validation-email">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>E-mail 형식에 맞지 않습니다.</p>
|
||||
<p>확인하여 다시 등록 부탁 드립니다.</p>
|
||||
</div>
|
||||
<div class="pop-btn1">
|
||||
<button class="btn-pcolor" @click="validationEmailClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 등록 - 아이디 중복 체크 -->
|
||||
<div class="dimmed validation-id-duplicate" @click="validationIdDuplicateClose();"></div>
|
||||
<div class="popup-wrap validation-id-duplicate">
|
||||
<div class="popup validation-id-duplicate">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>중복된 아이디가 있습니다.</p>
|
||||
<p>아이디를 다시 확인하여 등록 부탁드립니다.</p>
|
||||
</div>
|
||||
<div class="pop-btn1">
|
||||
<button class="btn-pcolor" @click="validationIdDuplicateClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 등록 - 최대 등록 제한 -->
|
||||
<div class="dimmed validation-maxlimit" @click="validationMaxlimitClose();"></div>
|
||||
<div class="popup-wrap validation-maxlimit">
|
||||
<div class="popup validation-maxlimit">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>사용자는 최대 100개까지 등록 가능합니다.</p>
|
||||
</div>
|
||||
<div class="popup-btn1">
|
||||
<button class="btn-pcolor" @click="validationMaxlimitClose();">확인</button>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pop-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 등록 - 휴대폰번호 형식 체크 -->
|
||||
<div class="dimmed valication-phonenumber" @click="validationPhonenumberClose();"></div>
|
||||
<div class="popup-wrap valication-phonenumber">
|
||||
<div class="popup valication-phonenumber">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>휴대폰번호를 확인해 주세요.</p>
|
||||
</div>
|
||||
<div class="pop-btn1">
|
||||
<button class="btn-pcolor" @click="validationPhonenumberClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 사용자 등록 - 최초 등록 -->
|
||||
<div class="dimmed confirm-insert" @click="confirmInsertClose();"></div>
|
||||
<div class="popup-wrap confirm-insert">
|
||||
<div class="popup confirm-insert">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>해당 사용자를 등록하고 인증 메일을</p>
|
||||
<p>발송하시겠습니까?</p>
|
||||
<p>사용을 위해서는 등록된 이메일 인증 후</p>
|
||||
<p>서비스 이용이 가능합니다.</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmInsert();">확인</button>
|
||||
<button class="btn-default" @click="confirmInsertClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 삭제 -->
|
||||
<div class="dimmed confirm-delete" @click="confirmDeleteClose();"></div>
|
||||
<div class="popup-wrap confirm-delete">
|
||||
<div class="popup confirm-delete">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 삭제</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>선택한 사용자를 삭제하시겠습니까?</p>
|
||||
</div>
|
||||
<div class="pop-btn2">
|
||||
<button class="btn-pcolor" @click="confirmDelete();">확인</button>
|
||||
<button class="btn-default" @click="confirmDeleteClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 사용자 등록 - 이메일 형식 체크 -->
|
||||
<div class="dimmed validation-email" @click="validationEmailClose();"></div>
|
||||
<div class="popup-wrap validation-email">
|
||||
<div class="popup validation-email">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>E-mail 형식에 맞지 않습니다.</p>
|
||||
<p>확인하여 다시 등록 부탁 드립니다.</p>
|
||||
</div>
|
||||
<div class="pop-btn1">
|
||||
<button class="btn-pcolor" @click="validationEmailClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 수정 확인 -->
|
||||
<div class="dimmed confirm-update" @click="confirmUpdateClose();"></div>
|
||||
<div class="popup-wrap confirm-update">
|
||||
<div class="popup confirm-update">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 수정 확인</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>변경된 내용을 저장하시겠습니까?</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmUpdate();">확인</button>
|
||||
<button class="btn-default" @click="confirmUpdateClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 사용자 등록 - 아이디 중복 체크 -->
|
||||
<div class="dimmed validation-id-duplicate" @click="validationIdDuplicateClose();"></div>
|
||||
<div class="popup-wrap validation-id-duplicate">
|
||||
<div class="popup validation-id-duplicate">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>중복된 아이디가 있습니다.</p>
|
||||
<p>아이디를 다시 확인하여 등록 부탁드립니다.</p>
|
||||
</div>
|
||||
<div class="pop-btn1">
|
||||
<button class="btn-pcolor" @click="validationIdDuplicateClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 수정(청약고객:sub) 확인 -->
|
||||
<!-- 사용자 등록 - 최대 등록 제한 -->
|
||||
<div class="dimmed validation-maxlimit" @click="validationMaxlimitClose();"></div>
|
||||
<div class="popup-wrap validation-maxlimit">
|
||||
<div class="popup validation-maxlimit">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>사용자는 최대 100개까지 등록 가능합니다.</p>
|
||||
</div>
|
||||
<div class="popup-btn1">
|
||||
<button class="btn-pcolor" @click="validationMaxlimitClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 등록 - 휴대폰번호 형식 체크 -->
|
||||
<div class="dimmed valication-phonenumber" @click="validationPhonenumberClose();"></div>
|
||||
<div class="popup-wrap valication-phonenumber">
|
||||
<div class="popup valication-phonenumber">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>휴대폰번호를 확인해 주세요.</p>
|
||||
</div>
|
||||
<div class="pop-btn1">
|
||||
<button class="btn-pcolor" @click="validationPhonenumberClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 삭제 -->
|
||||
<div class="dimmed confirm-delete" @click="confirmDeleteClose();"></div>
|
||||
<div class="popup-wrap confirm-delete">
|
||||
<div class="popup confirm-delete">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 삭제</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>선택한 사용자를 삭제하시겠습니까?</p>
|
||||
</div>
|
||||
<div class="pop-btn2">
|
||||
<button class="btn-pcolor" @click="confirmDelete();">확인</button>
|
||||
<button class="btn-default" @click="confirmDeleteClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 수정 확인 -->
|
||||
<div class="dimmed confirm-update" @click="confirmUpdateClose();"></div>
|
||||
<div class="popup-wrap confirm-update">
|
||||
<div class="popup confirm-update">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 수정 확인</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>변경된 내용을 저장하시겠습니까?</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmUpdate();">확인</button>
|
||||
<button class="btn-default" @click="confirmUpdateClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 수정(청약고객:sub) 확인 -->
|
||||
<div class="dimmed confirm-update-sub" @click="confirmUpdateSubClose();"></div>
|
||||
<div class="popup-wrap confirm-update-sub">
|
||||
<div class="popup confirm-update-sub">
|
||||
@@ -155,287 +155,294 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사용자 ID 생성 파일 업로드 - 성공 -->
|
||||
<div class="dimmed success-fileupload" @click="successFileuploadClose();"></div>
|
||||
<div class="popup-wrap success-fileupload">
|
||||
<div class="popup success-fileupload">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 ID 생성 파일 업로드</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>정상 업로드 되었습니다.</p>
|
||||
</div>
|
||||
<div class="pop-btn1">
|
||||
<button class="btn-pcolor" @click="successFileuploadClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 사용자 ID 생성 파일 업로드 - 성공 -->
|
||||
<div class="dimmed success-fileupload" @click="successFileuploadClose();"></div>
|
||||
<div class="popup-wrap success-fileupload">
|
||||
<div class="popup success-fileupload">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 ID 생성 파일 업로드</h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pop-cont">
|
||||
<p>정상 업로드 되었습니다.</p>
|
||||
</div>
|
||||
<div class="popup-btn1">
|
||||
<button class="btn-pcolor" @click="successFileuploadClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dimmed fail-fileupload" @click="failFileuploadClose();"></div>
|
||||
<div class="popup-wrap fail-fileupload">
|
||||
<!-- 사용자 ID 생성 파일 업로드 -->
|
||||
<div class="popup fail-fileupload">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 ID 생성 파일 업로드</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>파일 업로드 중 오류가 발생하여 정상건만</p>
|
||||
<p>업로드 완료하였습니다.</p>
|
||||
</div>
|
||||
<ul class="pop-cont-detail">
|
||||
<li>총 <span class="number">{{ totalCnt }}</span>건 ( 정상 <span class="number blue">{{ successCnt }}</span>건 오류
|
||||
<span class="number red">{{ failCnt }}</span>건 )
|
||||
</li>
|
||||
</ul>
|
||||
<div class="pop-cont bottom">
|
||||
<p>오류 건은 확인 후 재등록 부탁 드립니다.</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="failFileuploadOk();">확인</button>
|
||||
<!-- <button class="btn-default" @click="failFileuploadClose();">취소</button>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "validationConfirmPop",
|
||||
data(){
|
||||
return{
|
||||
row:{},
|
||||
title:'',
|
||||
msg: '',
|
||||
}
|
||||
name: "validationConfirmPop",
|
||||
data() {
|
||||
return {
|
||||
row: {},
|
||||
title: '',
|
||||
msg: '',
|
||||
failCnt: 0,
|
||||
successCnt: 0,
|
||||
totalCnt: 0,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//사용자등록 - 최초등록 Open
|
||||
confirmInsertOpen() {
|
||||
var dimmed = document.getElementsByClassName('confirm-insert');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
methods :{
|
||||
//사용자등록 - 최초등록 Open
|
||||
confirmInsertOpen(){
|
||||
var dimmed = document.getElementsByClassName('confirm-insert');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
},
|
||||
//사용자등록 - 최초등록
|
||||
confirmInsert(){
|
||||
var dimmed = document.getElementsByClassName('confirm-insert');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.$parent.memberInsert();
|
||||
|
||||
},
|
||||
//사용자등록 - 최초등록 Close
|
||||
confirmInsertClose(){
|
||||
var dimmed = document.getElementsByClassName('confirm-insert');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
},
|
||||
// 사용자 삭제 Open
|
||||
confirmDeleteOpen(){
|
||||
var dimmed = document.getElementsByClassName('confirm-delete');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
},
|
||||
//사용자 삭제
|
||||
confirmDelete(){
|
||||
var dimmed = document.getElementsByClassName('confirm-delete');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
},
|
||||
//사용자 삭제 Close
|
||||
confirmDeleteClose(){
|
||||
var dimmed = document.getElementsByClassName('confirm-delete');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
},
|
||||
//사용자 수정 확인 Open
|
||||
confirmUpdateOpen(){
|
||||
var dimmed = document.getElementsByClassName('confirm-update');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
},
|
||||
//사용자 수정 확인
|
||||
confirmUpdate(){
|
||||
var dimmed = document.getElementsByClassName('confirm-update');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.$parent.memberUpdate();
|
||||
|
||||
},
|
||||
// 사용자 수정 Close
|
||||
confirmUpdateClose(){
|
||||
var dimmed = document.getElementsByClassName('confirm-update');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
},
|
||||
//사용자 수정(청약고객-sub) 확인 Open
|
||||
confirmUpdateSubOpen(){
|
||||
var dimmed = document.getElementsByClassName('confirm-update-sub');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
},
|
||||
//사용자 수정(청약고객-sub) 확인
|
||||
confirmUpdateSub(){
|
||||
var dimmed = document.getElementsByClassName('confirm-update-sub');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.$parent.updateAdminInfo();
|
||||
|
||||
},
|
||||
// 사용자 수정(청약고객-sub) Close
|
||||
confirmUpdateSubClose(){
|
||||
var dimmed = document.getElementsByClassName('confirm-update-sub');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
},
|
||||
// 이메일 형식 체크 Open
|
||||
validationEmailOpen(){
|
||||
var dimmed = document.getElementsByClassName('validation-email');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
},
|
||||
// 이메일 형식 체크 Close
|
||||
validationEmailClose(){
|
||||
var dimmed = document.getElementsByClassName('validation-email');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.$parent.checkEmailFocus();
|
||||
|
||||
},
|
||||
// 아이디 중복 체크 Open
|
||||
validationIdDuplicateOpen(){
|
||||
var dimmed = document.getElementsByClassName('validation-id-duplicate');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
},
|
||||
// 아이디 중복 체크 Close
|
||||
validationIdDuplicateClose(){
|
||||
var dimmed = document.getElementsByClassName('validation-id-duplicate');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.$parent.checkIdDupFocus();
|
||||
|
||||
},
|
||||
// 최대 등록 제한 Open
|
||||
validationMaxlimitOpen(){
|
||||
console.log("1231232323")
|
||||
var dimmed = document.getElementsByClassName('validation-maxlimit');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
// 최대 등록 제한 Close
|
||||
validationMaxlimitClose(){
|
||||
var dimmed = document.getElementsByClassName('validation-maxlimit');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
// this.$parent.toComplete();
|
||||
|
||||
},
|
||||
// 휴대폰번호 형식 체크 Open
|
||||
validationPhonenumberOpen(){
|
||||
var dimmed = document.getElementsByClassName('valication-phonenumber');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
},
|
||||
// 휴대폰번호 형식 체크 Close
|
||||
validationPhonenumberClose(){
|
||||
var dimmed = document.getElementsByClassName('valication-phonenumber');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.checkPhoneFocus();
|
||||
|
||||
},
|
||||
// 사용자 ID 생성 파일 업로드 - 성공 Open
|
||||
successFileuploadOpen(){
|
||||
var dimmed = document.getElementsByClassName('success-fileupload');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
},
|
||||
// 사용자 ID 생성 파일 업로드 - 성공 Close
|
||||
successFileuploadClose(){
|
||||
var dimmed = document.getElementsByClassName('success-fileupload');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
// 목록페이지 이동
|
||||
this.toComplete();
|
||||
|
||||
},
|
||||
// 정상완료 후 목록페이지 이동
|
||||
toComplete(){
|
||||
this.row.searchType1 = '';
|
||||
this.row.searchType2= '';
|
||||
this.row.searchType3= '';
|
||||
this.row.searchText1= '';
|
||||
this.row.startDt= '';
|
||||
this.row.endDt= '';
|
||||
this.row.page = 1;
|
||||
|
||||
this.$router.push({ name: 'subsList', params: this.row });
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
// 모달 오픈
|
||||
confirmModalOpen(props){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
// var modal41 = document.getElementsByClassName('modal41');
|
||||
// modal41[0].style.display = 'block';
|
||||
|
||||
this.title = props.title;
|
||||
this.msg = props.msg;
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose(){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel(){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = false;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
}
|
||||
//사용자등록 - 최초등록
|
||||
confirmInsert() {
|
||||
var dimmed = document.getElementsByClassName('confirm-insert');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.memberInsert();
|
||||
},
|
||||
//사용자등록 - 최초등록 Close
|
||||
confirmInsertClose() {
|
||||
var dimmed = document.getElementsByClassName('confirm-insert');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 사용자 삭제 Open
|
||||
confirmDeleteOpen() {
|
||||
var dimmed = document.getElementsByClassName('confirm-delete');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
//사용자 삭제
|
||||
confirmDelete() {
|
||||
var dimmed = document.getElementsByClassName('confirm-delete');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
//사용자 삭제 Close
|
||||
confirmDeleteClose() {
|
||||
var dimmed = document.getElementsByClassName('confirm-delete');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
//사용자 수정 확인 Open
|
||||
confirmUpdateOpen() {
|
||||
var dimmed = document.getElementsByClassName('confirm-update');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
//사용자 수정 확인
|
||||
confirmUpdate() {
|
||||
var dimmed = document.getElementsByClassName('confirm-update');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.memberUpdate();
|
||||
},
|
||||
// 사용자 수정 Close
|
||||
confirmUpdateClose() {
|
||||
var dimmed = document.getElementsByClassName('confirm-update');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
//사용자 수정(청약고객-sub) 확인 Open
|
||||
confirmUpdateSubOpen() {
|
||||
var dimmed = document.getElementsByClassName('confirm-update-sub');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
//사용자 수정(청약고객-sub) 확인
|
||||
confirmUpdateSub() {
|
||||
var dimmed = document.getElementsByClassName('confirm-update-sub');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.updateAdminInfo();
|
||||
},
|
||||
// 사용자 수정(청약고객-sub) Close
|
||||
confirmUpdateSubClose() {
|
||||
var dimmed = document.getElementsByClassName('confirm-update-sub');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 이메일 형식 체크 Open
|
||||
validationEmailOpen() {
|
||||
var dimmed = document.getElementsByClassName('validation-email');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
// 이메일 형식 체크 Close
|
||||
validationEmailClose() {
|
||||
var dimmed = document.getElementsByClassName('validation-email');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.checkEmailFocus();
|
||||
},
|
||||
// 아이디 중복 체크 Open
|
||||
validationIdDuplicateOpen() {
|
||||
var dimmed = document.getElementsByClassName('validation-id-duplicate');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
// 아이디 중복 체크 Close
|
||||
validationIdDuplicateClose() {
|
||||
var dimmed = document.getElementsByClassName('validation-id-duplicate');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.checkIdDupFocus();
|
||||
},
|
||||
// 최대 등록 제한 Open
|
||||
validationMaxlimitOpen() {
|
||||
var dimmed = document.getElementsByClassName('validation-maxlimit');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
// 최대 등록 제한 Close
|
||||
validationMaxlimitClose() {
|
||||
var dimmed = document.getElementsByClassName('validation-maxlimit');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 휴대폰번호 형식 체크 Open
|
||||
validationPhonenumberOpen() {
|
||||
var dimmed = document.getElementsByClassName('valication-phonenumber');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
// 휴대폰번호 형식 체크 Close
|
||||
validationPhonenumberClose() {
|
||||
var dimmed = document.getElementsByClassName('valication-phonenumber');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.checkPhoneFocus();
|
||||
},
|
||||
// 사용자 ID 생성 파일 업로드 - 성공 Open
|
||||
successFileuploadOpen() {
|
||||
var dimmed = document.getElementsByClassName('success-fileupload');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
// 사용자 ID 생성 파일 업로드 - 성공 Close
|
||||
successFileuploadClose() {
|
||||
var dimmed = document.getElementsByClassName('success-fileupload');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
// 목록페이지 이동
|
||||
this.toComplete();
|
||||
},
|
||||
// 정상완료 후 목록페이지 이동
|
||||
toComplete() {
|
||||
this.row.searchType1 = '';
|
||||
this.row.searchType2 = '';
|
||||
this.row.searchType3 = '';
|
||||
this.row.searchText1 = '';
|
||||
this.row.startDt = '';
|
||||
this.row.endDt = '';
|
||||
this.row.page = 1;
|
||||
this.$router.push({name: 'subsList', params: this.row});
|
||||
},
|
||||
// 사용자 ID 생성 파일 업로드 - 성공 Open
|
||||
failFileuploadOpen(props) {
|
||||
var dimmed = document.getElementsByClassName('fail-fileupload');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
this.totalCnt = props.totalCnt
|
||||
this.successCnt = props.successCnt
|
||||
this.failCnt = props.failCnt
|
||||
},
|
||||
failFileuploadOk() {
|
||||
var dimmed = document.getElementsByClassName('fail-fileupload');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.failFileuploadOk(this.row);
|
||||
},
|
||||
// 사용자 ID 생성 파일 업로드 - 성공 Close
|
||||
failFileuploadClose() {
|
||||
var dimmed = document.getElementsByClassName('fail-fileupload');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 오픈
|
||||
confirmModalOpen(props) {
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
this.title = props.title;
|
||||
this.msg = props.msg;
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose() {
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel() {
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.row.result = false;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- <style>
|
||||
.popup-btn-wrap {width: 500px; margin: auto; padding: 100px 0;}
|
||||
.popup-btn-wrap button {width: 100%; margin-bottom: 10px; height: 50px; border-radius: 5px; box-shadow: none; border: 1px solid #000; }
|
||||
.popup-btn-wrap button:hover {background: #000; color: #fff;}
|
||||
</style> -->
|
||||
</script>
|
||||
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
|
||||
<div class="dimmed alertModal" @click="alertModalCancel();"></div>
|
||||
<div class="popup-wrap alertModal">
|
||||
<!-- 로그인실패: 확인 -->
|
||||
<div class="popup alertModal">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{title}}</h3>
|
||||
<h3 class="pop-tit">{{ title }}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg1 }}</p>
|
||||
@@ -21,86 +21,86 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dimmed confirm" @click="confirmModalCancel();"></div>
|
||||
<div class="popup-wrap confirm">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{title}}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<div class="dimmed confirm" @click="confirmModalCancel();"></div>
|
||||
<div class="popup-wrap confirm">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{ title }}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg1 }}</p>
|
||||
<p v-if="msg2 !== ''">{{ msg2 }}</p>
|
||||
<p v-if="msg3 !== ''">{{ msg3 }}</p>
|
||||
<p v-if="msg4 !== ''">{{ msg4 }}</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dimmed confirm2" @click="confirmModalCancel2();"></div>
|
||||
<div class="popup-wrap confirm2">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm2">
|
||||
<div class="pop-head">
|
||||
<h3 class="popup-tit">{{title}}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<div class="popup-wrap confirm2">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm2">
|
||||
<div class="pop-head">
|
||||
<h3 class="popup-tit">{{ title }}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg1 }}</p>
|
||||
<p v-if="msg2 !== ''">{{ msg2 }}</p>
|
||||
<p v-if="msg3 !== ''">{{ msg3 }}</p>
|
||||
<p v-if="msg4 !== ''">{{ msg4 }}</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose2();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel2();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose2();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel2();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dimmed confirmMemo" @click="confirmModalCancelMemo();"></div>
|
||||
<div class="popup-wrap confirmMemo">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirmMemo">
|
||||
<div class="pop-head">
|
||||
<h3 class="popup-tit">{{title}}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<div class="popup-wrap confirmMemo">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirmMemo">
|
||||
<div class="pop-head">
|
||||
<h3 class="popup-tit">{{ title }}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg1 }}</p>
|
||||
<p v-if="msg2 !== ''">{{ msg2 }}</p>
|
||||
<p v-if="msg3 !== ''">{{ msg3 }}</p>
|
||||
<p v-if="msg4 !== ''">{{ msg4 }}</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalCloseMemo();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancelMemo();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalCloseMemo();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancelMemo();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "confirm",
|
||||
data(){
|
||||
return{
|
||||
row:{},
|
||||
title:'',
|
||||
msg1: '',
|
||||
msg2: '',
|
||||
msg3: '',
|
||||
msg4: '',
|
||||
targetFocus: '',
|
||||
}
|
||||
},
|
||||
methods :{
|
||||
alertModalOpen(props){
|
||||
name: "confirm",
|
||||
data() {
|
||||
return {
|
||||
row: {},
|
||||
title: '',
|
||||
msg1: '',
|
||||
msg2: '',
|
||||
msg3: '',
|
||||
msg4: '',
|
||||
targetFocus: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
alertModalOpen(props) {
|
||||
console.log(props.msg1);
|
||||
this.title = props.title;
|
||||
this.msg1 = props.msg1;
|
||||
@@ -109,136 +109,130 @@ export default {
|
||||
this.msg4 = props.msg4;
|
||||
console.log(props)
|
||||
var dimmed = document.getElementsByClassName('alertModal');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
alertModalClose(){
|
||||
alertModalClose() {
|
||||
var dimmed = document.getElementsByClassName('alertModal');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.checkFocus();
|
||||
},
|
||||
alertModalCancel(){
|
||||
alertModalCancel() {
|
||||
var dimmed = document.getElementsByClassName('alertModal');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.checkFocus();
|
||||
},
|
||||
// 모달 오픈
|
||||
confirmModalOpen(props){
|
||||
// 모달 오픈
|
||||
confirmModalOpen(props) {
|
||||
console.log(props)
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
this.title = props.title;
|
||||
this.msg1 = props.msg1;
|
||||
this.msg2 = props.msg2;
|
||||
this.msg3 = props.msg3;
|
||||
this.msg4 = props.msg4;
|
||||
},
|
||||
confirmModalOpen2(props){
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
confirmModalOpen2(props) {
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
this.title = props.title;
|
||||
this.msg1 = props.msg1;
|
||||
this.msg2 = props.msg2;
|
||||
this.msg3 = props.msg3;
|
||||
this.msg4 = props.msg4;
|
||||
},
|
||||
confirmModalOpenMemo(props){
|
||||
var dimmed = document.getElementsByClassName('confirmMemo');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
confirmModalOpenMemo(props) {
|
||||
var dimmed = document.getElementsByClassName('confirmMemo');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
this.title = props.title;
|
||||
this.msg1 = props.msg1;
|
||||
this.msg2 = props.msg2;
|
||||
this.msg3 = props.msg3;
|
||||
this.msg4 = props.msg4;
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose(){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose2(){
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose() {
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalCloseMemo(){
|
||||
var dimmed = document.getElementsByClassName('confirmMemo');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose2() {
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel(){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalCloseMemo() {
|
||||
var dimmed = document.getElementsByClassName('confirmMemo');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel() {
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = false;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel2(){
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel2() {
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = false;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancelMemo(){
|
||||
var dimmed = document.getElementsByClassName('confirmMemo');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancelMemo() {
|
||||
var dimmed = document.getElementsByClassName('confirmMemo');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = false;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.memberDeleteConfirmCalbackFnc(this.row);
|
||||
},
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!--
|
||||
<style>
|
||||
.popup-btn-wrap {width: 500px; margin: auto; padding: 100px 0;}
|
||||
.popup-btn-wrap button {width: 100%; margin-bottom: 10px; height: 50px; border-radius: 5px; box-shadow: none; border: 1px solid #000; }
|
||||
.popup-btn-wrap button:hover {background: #000; color: #fff;}
|
||||
</style> -->
|
||||
</script>
|
||||
@@ -45,8 +45,11 @@
|
||||
</tr>
|
||||
<tr class="tr_input w30">
|
||||
<th>발송한도 설정</th>
|
||||
<td colspan="2">
|
||||
<input type="text" v-model="sendingLimit" ref="_sendingLimit">
|
||||
<td colspan="2" v-if="sendingLimit=='0'">
|
||||
<input type="text" v-model="sendingLimit" ref="_sendingLimit" disabled>
|
||||
</td>
|
||||
<td colspan="2" v-if="sendingLimit!='0'">
|
||||
<input type="text" v-model.trim="sendingLimit" ref="_sendingLimit" @keypress="onlyNum" @input="onlyNum" maxlength="20">
|
||||
</td>
|
||||
<th class="center">라인타입</th>
|
||||
<td colspan="2">
|
||||
@@ -132,7 +135,8 @@
|
||||
<td>{{ option.userNm }}</td>
|
||||
<td>{{ option.mdn }}</td>
|
||||
<td>
|
||||
<input type="checkbox" id="user_id_status01" name="user_id_status" v-model="option.userStat" true-value='정상' false-value='사용중지' disabled/>
|
||||
<!-- <input type="checkbox" id="user_id_status01" name="user_id_status" v-model="option.userStat" true-value='정상' false-value='사용중지' :style="{cursor: 'default'}" disabled/> -->
|
||||
<input type="checkbox" id="user_id_status01" name="user_id_status" v-model="option.userStat" true-value='정상' false-value='사용중지' disabled/>
|
||||
<label class="toggle_switch" for="user_id_status01"></label>
|
||||
</td>
|
||||
<td v-if="isActive"><button type="button" class="button white btn-a" @click="memberUpdatePopOpen(option.userId);">수정</button></td>
|
||||
@@ -160,9 +164,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.defaultCursor{
|
||||
cursor : default;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
import custMgtApi from "../service/custMgtApi.js";
|
||||
import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import MemberBulkRegPop from '../components/MemberBulkRegPop';
|
||||
import MemberRegPop from '../components/MemberRegPop';
|
||||
import MemberModifyPop from '../components/MemberModifyPop';
|
||||
@@ -171,7 +180,8 @@ import commonModal from "@/components/modal/commonModal";
|
||||
import ValidationConfirmPop from "@/modules/custMgt/components/ValidationConfirmPop";
|
||||
|
||||
export default {
|
||||
name: 'memberAdminDetail',
|
||||
name: 'memberAdminDetail',
|
||||
mixins: [utils_mixin, chkPattern2],
|
||||
watch:{
|
||||
stat(){
|
||||
console.log('watch : ', this.stat)
|
||||
@@ -201,6 +211,7 @@ export default {
|
||||
svcUserId:'',
|
||||
ezSvcUserAuthKey:'',
|
||||
isActive:true,
|
||||
//applyTbStyle: 'cursor: default;',
|
||||
}
|
||||
},
|
||||
props: {
|
||||
@@ -274,7 +285,8 @@ export default {
|
||||
this.userType = result.data.userType;
|
||||
this.adminId = result.data.adminId;
|
||||
this.adminNm = result.data.adminNm;
|
||||
this.sendingLimit = result.data.sendingLimit.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||
//this.sendingLimit = result.data.sendingLimit.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||
this.sendingLimit = result.data.sendingLimit;
|
||||
this.lineType = result.data.lineType;
|
||||
this.userStat = result.data.userStat;
|
||||
if(this.userStat === '02'){
|
||||
|
||||
@@ -210,14 +210,14 @@ export default {
|
||||
},
|
||||
doValidate(){
|
||||
|
||||
if(this.isNull(this.userNm)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이름을 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._userNm.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(this.isNull(this.userNm)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이름을 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._userNm.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(this.isNull(this.email)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '이메일을 입력해주세요.';
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
<template>
|
||||
|
||||
<div class="contents">
|
||||
<div class="contents_wrap">
|
||||
<div class="top_wrap">
|
||||
<h3 class="title">청약고객관리</h3>
|
||||
<p class="breadcrumb">고객관리 > 청약고객관리 > 회원관리</p>
|
||||
</div>
|
||||
|
||||
<div class="top_tab">
|
||||
<a href="javascript:void(0);" @click="toMove('subsList')">청약고객관리</a>
|
||||
<a href="javascript:void(0);" class="on">회원관리</a>
|
||||
</div>
|
||||
|
||||
<div class="search_form">
|
||||
<div class="search_wrap">
|
||||
<div class="group">
|
||||
<div class="input_box cal">
|
||||
<label for="right" class="label">조회기간</label>
|
||||
|
||||
<div class="contents">
|
||||
<div class="contents_wrap">
|
||||
<div class="top_wrap">
|
||||
<h3 class="title">청약고객관리</h3>
|
||||
<p class="breadcrumb">고객관리 > 청약고객관리 > 회원관리</p>
|
||||
</div>
|
||||
|
||||
<div class="top_tab">
|
||||
<a href="javascript:void(0);" @click="toMove('subsList')">청약고객관리</a>
|
||||
<a href="javascript:void(0);" class="on">회원관리</a>
|
||||
</div>
|
||||
|
||||
<div class="search_form">
|
||||
<div class="search_wrap">
|
||||
<div class="group">
|
||||
<div class="input_box cal">
|
||||
<label for="right" class="label">조회기간</label>
|
||||
<div class="term">
|
||||
<span class="custom_input icon_date">
|
||||
<vuejs-datepicker
|
||||
@@ -39,79 +39,82 @@
|
||||
></vuejs-datepicker>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="select_box id">
|
||||
<label for="right" class="label">상태</label>
|
||||
<select name="" id="" v-model="searchType1">
|
||||
<option value="" selected>전체</option>
|
||||
<option v-for="(option, i) in statType" v-bind:value="option.code" v-bind:key="i">
|
||||
{{ option.codeNm }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select_box">
|
||||
<label for="right" class="label">구분</label>
|
||||
<select name="" id="" v-model="searchType2">
|
||||
</div>
|
||||
<div class="select_box id">
|
||||
<label for="right" class="label">상태</label>
|
||||
<select name="" id="" v-model="searchType1" @keyup.enter="search">
|
||||
<option value="" selected>전체</option>
|
||||
<option value="01" >관리자</option>
|
||||
<option value="02" >사용자</option>
|
||||
<option value="03" >테스트</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="select_box">
|
||||
<label for="right" class="label">상세검색</label>
|
||||
<select name="" id="" v-model="searchType3">
|
||||
<option v-for="(option, i) in statType" v-bind:value="option.code" v-bind:key="i">
|
||||
{{ option.codeNm }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select_box">
|
||||
<label for="right" class="label">구분</label>
|
||||
<select name="" id="" v-model="searchType2" @keyup.enter="search">
|
||||
<option value="" selected>전체</option>
|
||||
<option value="01" selected>ID</option>
|
||||
<option value="02">이름</option>
|
||||
<option value="03">관리자ID</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input_box">
|
||||
<input class="search-box" type="text" id="search" placeholder="검색어 입력" v-model="grid.params.searchText1"/>
|
||||
</div>
|
||||
<button type="button" class="button grey" @click="search">조회</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info">
|
||||
<div class="count">총 <span>{{ totalItems.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</span>건
|
||||
<div class="select_box NumberSe">
|
||||
<select name="" id="" v-model="perPageCnt" @change="changePerPage()">
|
||||
<option v-for="option in options" v-bind:value="option.value" v-bind:key="option.value">{{ option.text }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button_group">
|
||||
<button type="button" class="button blue" @click="ModalOpen();">테스트 ID 생성</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table">
|
||||
<custom-grid
|
||||
ref="table"
|
||||
:totalItems="'totalItems'"
|
||||
:url="grid.url"
|
||||
:pagePerRows="grid.pagePerRows"
|
||||
:initialRequest="grid.initialRequest"
|
||||
:pagination="grid.pagination"
|
||||
:isCheckbox="grid.isCheckbox"
|
||||
:columns="grid.columns"
|
||||
:noDataStr="grid.noDataStr"
|
||||
:addCls="grid.addCls"
|
||||
:header="grid.headder"
|
||||
></custom-grid>
|
||||
</div>
|
||||
<option value="01" selected>관리자</option>
|
||||
<option value="02">사용자</option>
|
||||
<option value="03">테스트</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="select_box">
|
||||
<label for="right" class="label">상세검색</label>
|
||||
<select name="" id="" v-model="searchType3" @keyup.enter="search">
|
||||
<option value="01" selected>ID</option>
|
||||
<option value="02">이름</option>
|
||||
<option value="03">관리자ID</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input_box">
|
||||
<input class="search-box" type="text" id="search" placeholder="검색어 입력" maxlength="100"
|
||||
v-model.trim="grid.params.searchText1" @keyup.enter="search"/>
|
||||
</div>
|
||||
<button type="button" class="button grey" @click="search">조회</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<testId-reg-pop ref="testIdRegPop"> </testId-reg-pop>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
<div class="info">
|
||||
<div class="count">총 <span>{{ totalItems.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</span>건
|
||||
<div class="select_box NumberSe">
|
||||
<select name="" id="" v-model="perPageCnt" @change="changePerPage()">
|
||||
<option v-for="option in options" v-bind:value="option.value" v-bind:key="option.value">{{
|
||||
option.text
|
||||
}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button_group">
|
||||
<button type="button" class="button blue" @click="ModalOpen();">테스트 ID 생성</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table">
|
||||
<custom-grid
|
||||
ref="table"
|
||||
:totalItems="'totalItems'"
|
||||
:url="grid.url"
|
||||
:pagePerRows="grid.pagePerRows"
|
||||
:initialRequest="grid.initialRequest"
|
||||
:pagination="grid.pagination"
|
||||
:isCheckbox="grid.isCheckbox"
|
||||
:columns="grid.columns"
|
||||
:noDataStr="grid.noDataStr"
|
||||
:addCls="grid.addCls"
|
||||
:header="grid.headder"
|
||||
></custom-grid>
|
||||
</div>
|
||||
|
||||
<testId-reg-pop ref="testIdRegPop"></testId-reg-pop>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -122,25 +125,25 @@ import api from '@/service/api.js';
|
||||
import commonModal from "@/components/modal/commonModal";
|
||||
|
||||
class CustomATagRenderer {
|
||||
constructor(props) {
|
||||
this.props = props;
|
||||
const el = document.createElement('a');
|
||||
el.href = 'javascript:void(0);';
|
||||
el.className = 'btn_text';
|
||||
el.innerText= String(props.colValue)
|
||||
this.el = el;
|
||||
}
|
||||
constructor(props) {
|
||||
this.props = props;
|
||||
const el = document.createElement('a');
|
||||
el.href = 'javascript:void(0);';
|
||||
el.className = 'btn_text';
|
||||
el.innerText = String(props.colValue)
|
||||
this.el = el;
|
||||
}
|
||||
|
||||
getElement() {
|
||||
return this.el;
|
||||
}
|
||||
getElement() {
|
||||
return this.el;
|
||||
}
|
||||
|
||||
addEvent(selEl) {
|
||||
selEl.addEventListener("click", () => {
|
||||
const { callback } = this.props["cgrido" + this.props.colName].options;
|
||||
callback(this.props);
|
||||
});
|
||||
}
|
||||
addEvent(selEl) {
|
||||
selEl.addEventListener("click", () => {
|
||||
const {callback} = this.props["cgrido" + this.props.colName].options;
|
||||
callback(this.props);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
@@ -156,78 +159,79 @@ export default {
|
||||
|
||||
statType: [],
|
||||
userType: [],
|
||||
searchType1:'',
|
||||
searchType2:'',
|
||||
searchType3:'',
|
||||
row:{},
|
||||
|
||||
searchType1: '',
|
||||
searchType2: '',
|
||||
searchType3: '01',
|
||||
row: {},
|
||||
|
||||
// 테이블 리스트 데이터
|
||||
perPageCnt: 50,
|
||||
options: [
|
||||
{ text: '20', value: 20},
|
||||
{ text: '50', value: 50},
|
||||
{ text: '100', value: 100}
|
||||
{text: '20', value: 20},
|
||||
{text: '50', value: 50},
|
||||
{text: '100', value: 100}
|
||||
],
|
||||
totalItems: 0,
|
||||
totalItems: 0,
|
||||
grid: {
|
||||
url: '/api/v1/bo/custMgt/memberList',
|
||||
pagePerRows: 20,
|
||||
pagination: true,
|
||||
pagination: true,
|
||||
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
|
||||
initialRequest: false,
|
||||
addCls: 'box_OFvis',
|
||||
|
||||
columns: [
|
||||
{ name: 'no', header: 'No', align: 'center', width: 60},
|
||||
{ name: 'userNm', header: '이름', align: 'center', width: 130},
|
||||
{ name: 'userType', header: '구분', align: 'center', width: 130},
|
||||
{ name: 'adminId', header: '관리자ID', align: 'center', width: 130, cls: 'td_line'},
|
||||
{ name: 'userId', header: 'ID', align: 'center', width: 130, renderer: {
|
||||
columns: [
|
||||
{name: 'no', header: 'No', align: 'center', width: 60},
|
||||
{name: 'userNm', header: '이름', align: 'center', width: 130},
|
||||
{name: 'userType', header: '구분', align: 'center', width: 130},
|
||||
{name: 'adminId', header: '관리자ID', align: 'center', width: 130, cls: 'td_line'},
|
||||
{
|
||||
name: 'userId', header: 'ID', align: 'center', width: 130, renderer: {
|
||||
type: CustomATagRenderer
|
||||
, options: {
|
||||
callback: this.memberDetail,
|
||||
callback: this.memberDetail,
|
||||
}
|
||||
}
|
||||
},
|
||||
{ name: 'regDt', header: '등록일', align: 'center', width: 130},
|
||||
{ name: 'userStat', header: '상태', align: 'center', width: 130}
|
||||
{name: 'regDt', header: '등록일', align: 'center', width: 130},
|
||||
{name: 'userStat', header: '상태', align: 'center', width: 130}
|
||||
],
|
||||
noDataStr: '검색 결과가 없습니다.',
|
||||
noDataStr: '검색 결과가 없습니다.',
|
||||
params: {
|
||||
searchType1: '',
|
||||
searchType2: '',
|
||||
searchType3: '',
|
||||
searchText1: '',
|
||||
searchText1: '',
|
||||
startDt: '',
|
||||
endDt: ''
|
||||
},
|
||||
excelHeader: []
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
},
|
||||
components: {
|
||||
customGrid: customGrid,
|
||||
customGrid: customGrid,
|
||||
TestIdRegPop,
|
||||
commonModal,
|
||||
vuejsDatepicker,
|
||||
},
|
||||
created(){
|
||||
created() {
|
||||
this.setCodeData();
|
||||
this.setPeriodDay(0);
|
||||
},
|
||||
},
|
||||
destroyed() {
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
page: 1,
|
||||
perPage: 50,
|
||||
params: {
|
||||
page: 1,
|
||||
perPage: 50,
|
||||
params: {
|
||||
searchType1: '',
|
||||
searchType2: '',
|
||||
searchType3: '',
|
||||
searchText1: '',
|
||||
searchText1: '',
|
||||
startDt: '',
|
||||
endDt: ''
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
mounted() {
|
||||
// 달력 세팅
|
||||
@@ -237,35 +241,35 @@ export default {
|
||||
let page = 1;
|
||||
// 페이지 정보 및 검색 조건
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
console.log('getCondition : '+getCondition);
|
||||
console.log('getCondition : ' + getCondition);
|
||||
|
||||
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
|
||||
let isKeep = false;
|
||||
if (getCondition) {
|
||||
this.grid.pagePerRows = getCondition.perPage;
|
||||
this.grid.params = getCondition.params;
|
||||
this.grid.params = getCondition.params;
|
||||
page = getCondition.page;
|
||||
isKeep = true;
|
||||
}
|
||||
this.search(isKeep);
|
||||
},
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
|
||||
const getP = this.$refs.table.getPagination();
|
||||
console.log("==========getP : " + getP._currentPage);
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
page: getP._currentPage,
|
||||
perPage: this.perPageCnt,
|
||||
page: getP._currentPage,
|
||||
perPage: this.perPageCnt,
|
||||
params: this.grid.params
|
||||
});
|
||||
});
|
||||
// 라우트 하기전 실행
|
||||
next();
|
||||
},
|
||||
methods: {
|
||||
search: function(isKeep) {
|
||||
search: function (isKeep) {
|
||||
this.grid.params.startDt = moment(this.startDate).format('YYYYMMDD');
|
||||
this.grid.params.endDt = moment(this.endDate).format('YYYYMMDD');
|
||||
console.log('this.perPageCnt'+this.perPageCnt);
|
||||
console.log('this.perPageCnt' + this.perPageCnt);
|
||||
console.log(this.grid.params);
|
||||
this.grid.params.searchType1 = this.searchType1;
|
||||
this.grid.params.searchType2 = this.searchType2;
|
||||
@@ -274,45 +278,45 @@ export default {
|
||||
this.sendStoreData();
|
||||
},
|
||||
toMove(routeName) {
|
||||
this.$router.push({ name: routeName, params: { page: 1, searchText: '' } });
|
||||
this.$router.push({name: routeName, params: {page: 1, searchText: ''}});
|
||||
},
|
||||
ModalOpen: function(){
|
||||
ModalOpen: function () {
|
||||
this.$refs.testIdRegPop.ModalOpen();
|
||||
},
|
||||
memberDetail: function(props) {
|
||||
this.row.serviceId = props.userId;
|
||||
if(props.userType == '관리자 ID'){
|
||||
memberDetail: function (props) {
|
||||
this.row.serviceId = props.userId;
|
||||
if (props.userType == '관리자 ID') {
|
||||
// 관리자 ID용 상세페이지 이동
|
||||
this.$router.push({ name: 'memberAdminDetail', params: {serviceId : this.row.serviceId} });
|
||||
this.$router.push({name: 'memberAdminDetail', params: {serviceId: this.row.serviceId}});
|
||||
} else {
|
||||
// 사용자 ID용 상세페이지 이동
|
||||
this.$router.push({ name: 'memberDetail', params: {serviceId : this.row.serviceId} });
|
||||
}
|
||||
this.$router.push({name: 'memberDetail', params: {serviceId: this.row.serviceId}});
|
||||
}
|
||||
},
|
||||
changePerPage: function(){ // 페이지당 조회할 개수
|
||||
changePerPage: function () { // 페이지당 조회할 개수
|
||||
this.grid.pagePerRows = this.perPageCnt;
|
||||
this.search(true);
|
||||
},
|
||||
sendStoreData: function() {
|
||||
sendStoreData: function () {
|
||||
const getP = this.$refs.table.getPagination();
|
||||
// console.log("==========getP : " + getP._currentPage);
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
page: getP._currentPage,
|
||||
perPage: this.perPageCnt,
|
||||
page: getP._currentPage,
|
||||
perPage: this.perPageCnt,
|
||||
params: this.grid.params
|
||||
});
|
||||
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
// console.log("getCondition : "+ getCondition.perPage);
|
||||
},
|
||||
|
||||
|
||||
setCodeData() {
|
||||
// 상태 옵션 셋팅.
|
||||
api.commCode({'grpCd' : 'SVCUSER_STTUS_CD'}).then(response => {
|
||||
api.commCode({'grpCd': 'SVCUSER_STTUS_CD'}).then(response => {
|
||||
this.statType = response.data.data.list;
|
||||
});
|
||||
//
|
||||
api.commCode({'grpCd' : 'SVCUSER_TP_CD'}).then(response => {
|
||||
api.commCode({'grpCd': 'SVCUSER_TP_CD'}).then(response => {
|
||||
this.userType = response.data.data.list;
|
||||
});
|
||||
},
|
||||
@@ -346,15 +350,15 @@ export default {
|
||||
closeDate(type) {
|
||||
if (type != undefined && type != null) {
|
||||
if (type == 'start') {
|
||||
this.disabledSDate = { from: this.endDate };
|
||||
this.disabledEDate = { to: this.startDate, from: this.endDate };
|
||||
this.disabledSDate = {from: this.endDate};
|
||||
this.disabledEDate = {to: this.startDate, from: this.endDate};
|
||||
} else if (type == 'end') {
|
||||
this.disabledSDate = { from: this.endDate };
|
||||
this.disabledEDate = { to: this.startDate, from: new Date() };
|
||||
this.disabledSDate = {from: this.endDate};
|
||||
this.disabledEDate = {to: this.startDate, from: new Date()};
|
||||
}
|
||||
}
|
||||
},
|
||||
customFormatter: function(date) {
|
||||
customFormatter: function (date) {
|
||||
if (this.sDateDiv == 'month') {
|
||||
return moment(date).format('YYYY-MM');
|
||||
} else if (this.sDateDiv == 'year') {
|
||||
@@ -363,14 +367,14 @@ export default {
|
||||
return moment(date).format('YYYY-MM-DD');
|
||||
}
|
||||
},
|
||||
initSetStartDate(){
|
||||
initSetStartDate() {
|
||||
let setYear = Number(moment(new Date()).format('YYYY'));
|
||||
let initStartDate = new Date(setYear, 0, 1);
|
||||
this.startDate = initStartDate;
|
||||
console.log(moment(this.startDate).format('YYYY-MM-DD'));
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
</script>
|
||||
@@ -1,179 +1,176 @@
|
||||
<template>
|
||||
<div class="contents">
|
||||
<div class="contents_wrap">
|
||||
<div class="top_wrap">
|
||||
<h3 class="title">청약고객관리</h3>
|
||||
<p class="breadcrumb">고객관리 > 청약고객관리</p>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="title">기본정보</div>
|
||||
</div>
|
||||
<div class="table table_form">
|
||||
<!-- <form autocomplete="off">-->
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="tr_input w75">
|
||||
<th>고객사명</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="custNm"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>대표자명</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="reprNm"></td>
|
||||
<th class="center">사용자 구분</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="custType"></td>
|
||||
</tr>
|
||||
<tr class="tr_input">
|
||||
<th>사업장 주소</th>
|
||||
<td colspan="5">
|
||||
<div class="input-address">
|
||||
<input type="text" disabled v-model="adr1">
|
||||
<input type="text" disabled v-model="adr2">
|
||||
<input type="text" disabled v-model="adr3">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="tr_input">
|
||||
<th>사업자등록번호</th>
|
||||
<td colspan="2">
|
||||
<div class="input-bnumber">
|
||||
<input type="text" disabled v-model="bregNo1">
|
||||
<input type="text" disabled v-model="bregNo2">
|
||||
<input type="text" disabled v-model="bregNo3">
|
||||
</div>
|
||||
</td>
|
||||
<th class="center">법인등록번호</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double">
|
||||
<input type="text" disabled v-model="cprRegNo1">
|
||||
<input type="text" disabled v-model="cprRegNo2">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- </form>-->
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="title">사용정보</div>
|
||||
</div>
|
||||
<div class="table table_form">
|
||||
<!-- <form autocomplete="off">-->
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="tr_input w75">
|
||||
<th>가입일</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="subsDt"></td>
|
||||
<th class="center">상태</th>
|
||||
<td class="center" colspan="2">
|
||||
<input type="text" disabled v-model="stat">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>요금제</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="plan"></td>
|
||||
<th class="center">가입번호</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="subsNo"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>관리자명</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double">
|
||||
<input type="text" disabled v-model="adminId">
|
||||
<input type="text" disabled v-model="adminNm">
|
||||
<button type="button" class="button grey btn-a" @click="searchIDPopOpen">변경</button>
|
||||
</div>
|
||||
</td>
|
||||
<th class="center">유치자명</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double">
|
||||
<input type="text" disabled v-model="channelId">
|
||||
<input type="text" disabled v-model="channelNm">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- </form>-->
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="title">사용자 데이터</div>
|
||||
</div>
|
||||
<div class="table table_form">
|
||||
<form autocomplete="off">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="tr_input w75">
|
||||
<th>서비스 ID</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="serviceId"></td>
|
||||
<th class="center">이용권한</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="useAuth"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>사용자명</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="userNm"></td>
|
||||
<th class="center">휴대폰 번호</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="mdn"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>이월누적금액</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double button-double">
|
||||
<input type="text" disabled v-model="carryOver">
|
||||
<button type="button" class="button grey" @click="carryOverListPopOpen();">이월금액보기</button>
|
||||
</div>
|
||||
</td>
|
||||
<th class="center">사용자ID 개수</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double button-double">
|
||||
<input type="text" disabled v-model="userCnt">
|
||||
<button type="button" class="button grey" @click="goMemberDetail">사용자ID 확인</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<div class="pop-btn2">
|
||||
<button class="btn-default" type="button" @click="toComplete();">취소</button>
|
||||
<button class="btn-pcolor" type="button" @click="confirmPopOpen();">저장</button>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="contents_wrap">
|
||||
<div class="top_wrap">
|
||||
<h3 class="title">청약고객관리</h3>
|
||||
<p class="breadcrumb">고객관리 > 청약고객관리</p>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="title">기본정보</div>
|
||||
</div>
|
||||
<div class="table table_form">
|
||||
<!-- <form autocomplete="off">-->
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="tr_input w75">
|
||||
<th>고객사명</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="custNm"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>대표자명</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="reprNm"></td>
|
||||
<th class="center">사용자 구분</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="custType"></td>
|
||||
</tr>
|
||||
<tr class="tr_input">
|
||||
<th>사업장 주소</th>
|
||||
<td colspan="5">
|
||||
<div class="input-address">
|
||||
<input type="text" disabled v-model="adr1">
|
||||
<input type="text" disabled v-model="adr2">
|
||||
<input type="text" disabled v-model="adr3">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="tr_input">
|
||||
<th>사업자등록번호</th>
|
||||
<td colspan="2">
|
||||
<div class="input-bnumber">
|
||||
<input type="text" disabled v-model="bregNo1">
|
||||
<input type="text" disabled v-model="bregNo2">
|
||||
<input type="text" disabled v-model="bregNo3">
|
||||
</div>
|
||||
</td>
|
||||
<th class="center">법인등록번호</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double">
|
||||
<input type="text" disabled v-model="cprRegNo1">
|
||||
<input type="text" disabled v-model="cprRegNo2">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- </form>-->
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="title">사용정보</div>
|
||||
</div>
|
||||
<div class="table table_form">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="tr_input w75">
|
||||
<th>가입일</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="subsDt"></td>
|
||||
<th class="center">상태</th>
|
||||
<td class="center" colspan="2">
|
||||
<input type="text" disabled v-model="stat">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>요금제</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="plan"></td>
|
||||
<th class="center">가입번호</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="subsNo"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>관리자명</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double">
|
||||
<input type="text" disabled v-model="adminId">
|
||||
<input type="text" disabled v-model="adminNm">
|
||||
<button type="button" class="button grey btn-a" @click="searchIDPopOpen">변경</button>
|
||||
</div>
|
||||
</td>
|
||||
<th class="center">유치자명</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double">
|
||||
<input type="text" disabled v-model="channelId">
|
||||
<input type="text" disabled v-model="channelNm">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="title">사용자 데이터</div>
|
||||
</div>
|
||||
<div class="table table_form">
|
||||
<form autocomplete="off">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
<col style="width:140px">
|
||||
<col style="width:auto">
|
||||
<col style="width:auto">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="tr_input w75">
|
||||
<th>서비스 ID</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="serviceId"></td>
|
||||
<th class="center">이용권한</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="useAuth"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>사용자명</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="userNm"></td>
|
||||
<th class="center">휴대폰 번호</th>
|
||||
<td colspan="2"><input type="text" disabled v-model="mdn"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>이월누적금액</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double button-double">
|
||||
<input type="text" disabled v-model="carryOver">
|
||||
<button type="button" class="button grey" @click="carryOverListPopOpen();">이월금액보기</button>
|
||||
</div>
|
||||
</td>
|
||||
<th class="center">사용자ID 개수</th>
|
||||
<td colspan="2">
|
||||
<div class="input-double button-double">
|
||||
<input type="text" disabled v-model="userCnt">
|
||||
<button type="button" class="button grey" @click="goMemberDetail">사용자ID 확인</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<div class="pop-btn2">
|
||||
<button class="btn-default" type="button" @click="toComplete();">취소</button>
|
||||
<button class="btn-pcolor" type="button" @click="confirmPopOpen();">저장</button>
|
||||
</div>
|
||||
|
||||
<!--이월금액 모달.-->
|
||||
<carry-Over-List-Pop ref="carryOverListPop"></carry-Over-List-Pop>
|
||||
<!--수정 확인 모달-->
|
||||
<validation-confirm-pop ref="validationConfirmPop"></validation-confirm-pop>
|
||||
<!--관리자명 조회 모달-->
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
<!--이월금액 모달.-->
|
||||
<carry-Over-List-Pop ref="carryOverListPop"></carry-Over-List-Pop>
|
||||
<!--수정 확인 모달-->
|
||||
<validation-confirm-pop ref="validationConfirmPop"></validation-confirm-pop>
|
||||
<!--관리자명 조회 모달-->
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
|
||||
</div>
|
||||
<admin-nm-pop ref="adminNmPop"></admin-nm-pop>
|
||||
</div>
|
||||
</div>
|
||||
<admin-nm-pop ref="adminNmPop"></admin-nm-pop>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
@@ -188,213 +185,213 @@ import AdminNmPop from '../components/AdminNmPop';
|
||||
import commonModal from "@/components/modal/commonModal";
|
||||
|
||||
export default {
|
||||
name: "subsDetail",
|
||||
data(){
|
||||
return{
|
||||
row: {},
|
||||
custNm: '',
|
||||
reprNm: '',
|
||||
custType: '',
|
||||
adr1: '',
|
||||
adr2: '',
|
||||
adr3: '',
|
||||
bregNo: '',
|
||||
bregNo1: '',
|
||||
bregNo3: '',
|
||||
bregNo2: '',
|
||||
cprRegNo: '',
|
||||
cprRegNo1: '',
|
||||
cprRegNo2: '',
|
||||
birth: '',
|
||||
subsDt: '',
|
||||
stat: '',
|
||||
plan: '',
|
||||
subsNo: '',
|
||||
adminId: '',
|
||||
adminNm: '',
|
||||
bindDis: '',
|
||||
channelId: '',
|
||||
channelNm: '',
|
||||
useAuth: '',
|
||||
userNm: '',
|
||||
mdn: '',
|
||||
carryOver: '',
|
||||
userCnt: '',
|
||||
saveConfirm:false,
|
||||
props: {},
|
||||
}
|
||||
},
|
||||
props: {
|
||||
serviceId: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
components: {
|
||||
CarryOverListPop,
|
||||
//ConfirmPop,
|
||||
//SearchIDPop,
|
||||
ValidationConfirmPop,
|
||||
AdminNmPop,
|
||||
commonModal,
|
||||
},
|
||||
created(){
|
||||
console.log(this.$route.params.serviceId);
|
||||
this.subsDetail(this.$route.params.serviceId);
|
||||
// checkVaildBizNum
|
||||
name: "subsDetail",
|
||||
data() {
|
||||
return {
|
||||
row: {},
|
||||
custNm: '',
|
||||
reprNm: '',
|
||||
custType: '',
|
||||
adr1: '',
|
||||
adr2: '',
|
||||
adr3: '',
|
||||
bregNo: '',
|
||||
bregNo1: '',
|
||||
bregNo3: '',
|
||||
bregNo2: '',
|
||||
cprRegNo: '',
|
||||
cprRegNo1: '',
|
||||
cprRegNo2: '',
|
||||
birth: '',
|
||||
subsDt: '',
|
||||
stat: '',
|
||||
plan: '',
|
||||
subsNo: '',
|
||||
adminId: '',
|
||||
adminNm: '',
|
||||
bindDis: '',
|
||||
channelId: '',
|
||||
channelNm: '',
|
||||
useAuth: '',
|
||||
userNm: '',
|
||||
mdn: '',
|
||||
carryOver: '',
|
||||
userCnt: '',
|
||||
saveConfirm: false,
|
||||
props: {},
|
||||
}
|
||||
},
|
||||
methods :{
|
||||
callAlert(props){
|
||||
//alert("호출됨!");
|
||||
this.$refs.commmonModal.alertModalOpen(props);
|
||||
},
|
||||
doValidate(){
|
||||
// if(this.isNull(this.userId)){
|
||||
// alert("아이디를 입력해 주세요.");
|
||||
// this.$refs._userId.focus();
|
||||
// return false;
|
||||
// }
|
||||
return true;
|
||||
},
|
||||
// 저장 후 부모창 호출.
|
||||
toComplete(){
|
||||
this.row.searchType1 = '';
|
||||
this.row.searchType2= '';
|
||||
this.row.searchType3= '';
|
||||
this.row.searchText1= '';
|
||||
this.row.startDt= '';
|
||||
this.row.endDt= '';
|
||||
this.row.page = 1;
|
||||
props: {
|
||||
serviceId: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
components: {
|
||||
CarryOverListPop,
|
||||
//ConfirmPop,
|
||||
//SearchIDPop,
|
||||
ValidationConfirmPop,
|
||||
AdminNmPop,
|
||||
commonModal,
|
||||
},
|
||||
created() {
|
||||
console.log(this.$route.params.serviceId);
|
||||
this.subsDetail(this.$route.params.serviceId);
|
||||
// checkVaildBizNum
|
||||
},
|
||||
methods: {
|
||||
callAlert(props) {
|
||||
//alert("호출됨!");
|
||||
this.$refs.commmonModal.alertModalOpen(props);
|
||||
},
|
||||
doValidate() {
|
||||
// if(this.isNull(this.userId)){
|
||||
// alert("아이디를 입력해 주세요.");
|
||||
// this.$refs._userId.focus();
|
||||
// return false;
|
||||
// }
|
||||
return true;
|
||||
},
|
||||
// 저장 후 부모창 호출.
|
||||
toComplete() {
|
||||
this.row.searchType1 = '';
|
||||
this.row.searchType2 = '';
|
||||
this.row.searchType3 = '';
|
||||
this.row.searchText1 = '';
|
||||
this.row.startDt = '';
|
||||
this.row.endDt = '';
|
||||
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 {
|
||||
const response = await custMgtApi.subsDetail(this.row);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
//데이터값이 널이면 오류처리
|
||||
this.custNm = result.data.custNm;
|
||||
this.reprNm = result.data.reprNm;
|
||||
this.custType = result.data.custType;
|
||||
this.adr1 = result.data.adr1;
|
||||
this.adr2 = result.data.adr2;
|
||||
this.adr3 = result.data.adr3;
|
||||
this.bregNo = result.data.bregNo;
|
||||
this.cprRegNo = result.data.cprRegNo;
|
||||
this.birth = result.data.birth;
|
||||
this.subsDt = result.data.subsDt;
|
||||
this.stat = result.data.stat;
|
||||
this.plan = result.data.plan;
|
||||
this.subsNo = result.data.subsNo;
|
||||
this.adminId = result.data.adminId;
|
||||
this.adminNm = result.data.adminNm;
|
||||
this.bindDis = result.data.bindDis;
|
||||
this.channelId = result.data.channelId;
|
||||
this.channelNm = result.data.channelNm;
|
||||
this.serviceId = result.data.serviceId;
|
||||
this.useAuth = result.data.useAuth;
|
||||
this.userNm = result.data.userNm;
|
||||
this.mdn = result.data.mdn;
|
||||
this.carryOver = result.data.carryOver;
|
||||
this.userCnt = result.data.userCnt;
|
||||
if(this.bregNo != '' && this.bregNo != null){
|
||||
this.bregNo1 = this.bregNo.substr(0, 3);
|
||||
this.bregNo2 = this.bregNo.substr(3, 2);
|
||||
this.bregNo3 = this.bregNo.substr(5);
|
||||
}
|
||||
if(this.cprRegNo != '' && this.cprRegNo != null){
|
||||
this.cprRegNo1 = this.cprRegNo.substr(0, 6);
|
||||
this.cprRegNo2 = this.cprRegNo.substr(6);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
this.$router.push({name: 'subsList', params: this.row});
|
||||
},
|
||||
async doInsert(props) {
|
||||
|
||||
},
|
||||
|
||||
// updateAdminInfo 청약고객-사용정보-관리자ID,관리자명 수정
|
||||
async updateAdminInfo() {
|
||||
this.row.serviceId = this.$route.params.serviceId;
|
||||
this.row.adminId = this.adminId;
|
||||
this.row.adminNm = this.adminNm;
|
||||
|
||||
try {
|
||||
const response = await custMgtApi.updateAdminInfo(this.row);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '저장 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.toComplete();
|
||||
} else {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
} catch (error) {
|
||||
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 {
|
||||
const response = await custMgtApi.subsDetail(this.row);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
//데이터값이 널이면 오류처리
|
||||
this.custNm = result.data.custNm;
|
||||
this.reprNm = result.data.reprNm;
|
||||
this.custType = result.data.custType;
|
||||
this.adr1 = result.data.adr1;
|
||||
this.adr2 = result.data.adr2;
|
||||
this.adr3 = result.data.adr3;
|
||||
this.bregNo = result.data.bregNo;
|
||||
this.cprRegNo = result.data.cprRegNo;
|
||||
this.birth = result.data.birth;
|
||||
this.subsDt = result.data.subsDt;
|
||||
this.stat = result.data.stat;
|
||||
this.plan = result.data.plan;
|
||||
this.subsNo = result.data.subsNo;
|
||||
this.adminId = result.data.adminId;
|
||||
this.adminNm = result.data.adminNm;
|
||||
this.bindDis = result.data.bindDis;
|
||||
this.channelId = result.data.channelId;
|
||||
this.channelNm = result.data.channelNm;
|
||||
this.serviceId = result.data.serviceId;
|
||||
this.useAuth = result.data.useAuth;
|
||||
this.userNm = result.data.userNm;
|
||||
this.mdn = result.data.mdn;
|
||||
this.carryOver = result.data.carryOver;
|
||||
this.userCnt = result.data.userCnt;
|
||||
if (this.bregNo != '' && this.bregNo != null) {
|
||||
this.bregNo1 = this.bregNo.substr(0, 3);
|
||||
this.bregNo2 = this.bregNo.substr(3, 2);
|
||||
this.bregNo3 = this.bregNo.substr(5);
|
||||
}
|
||||
if (this.cprRegNo != '' && this.cprRegNo != null) {
|
||||
this.cprRegNo1 = this.cprRegNo.substr(0, 6);
|
||||
this.cprRegNo2 = this.cprRegNo.substr(6);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
carryOverListPopOpen: function(){
|
||||
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();
|
||||
},
|
||||
|
||||
// updateAdminInfo 청약고객-사용정보-관리자ID,관리자명 수정
|
||||
async updateAdminInfo() {
|
||||
this.row.serviceId = this.$route.params.serviceId;
|
||||
this.row.adminId = this.adminId;
|
||||
this.row.adminNm = this.adminNm;
|
||||
|
||||
try {
|
||||
const response = await custMgtApi.updateAdminInfo(this.row);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '저장 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.toComplete();
|
||||
} else {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
} catch (error) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
|
||||
},
|
||||
carryOverListPopOpen: function () {
|
||||
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);
|
||||
}
|
||||
|
||||
},
|
||||
confirmCalbackFnc: function(props){
|
||||
console.log(props);
|
||||
if(props.result){
|
||||
// this.doInsert(props.result);
|
||||
}
|
||||
},
|
||||
searchIDPopOpen: function(){
|
||||
var params = {
|
||||
"serviceId": this.row.serviceId,
|
||||
"serviceSeq": '',
|
||||
"parentDiv": 'subsDetail'
|
||||
}
|
||||
this.$refs.adminNmPop.ModalOpen(params);
|
||||
},
|
||||
goMemberDetail: function(props){
|
||||
console.log(this.row);
|
||||
this.$router.push({ name: 'memberAdminDetail', params: {serviceId : this.row.serviceId} });
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
confirmCalbackFnc: function (props) {
|
||||
console.log(props);
|
||||
if (props.result) {
|
||||
// this.doInsert(props.result);
|
||||
}
|
||||
},
|
||||
searchIDPopOpen: function () {
|
||||
var params = {
|
||||
// "serviceId": this.row.serviceId,
|
||||
"serviceId": this.serviceId,
|
||||
"serviceSeq": '',
|
||||
"parentDiv": 'subsDetail'
|
||||
}
|
||||
this.$refs.adminNmPop.ModalOpen(params);
|
||||
},
|
||||
goMemberDetail: function (props) {
|
||||
console.log(this.row);
|
||||
this.$router.push({name: 'memberAdminDetail', params: {serviceId: this.row.serviceId}});
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
@@ -1,22 +1,22 @@
|
||||
<template>
|
||||
|
||||
<div class="contents">
|
||||
<div class="contents_wrap">
|
||||
<div class="top_wrap">
|
||||
<h3 class="title">청약고객관리</h3>
|
||||
<p class="breadcrumb">고객관리 > 청약고객관리 > 청약고객관리</p>
|
||||
</div>
|
||||
|
||||
<div class="top_tab">
|
||||
<a href="javascript:void(0);" class="on">청약고객관리</a>
|
||||
<a href="javascript:void(0);" @click="toMove('memberList')">회원관리</a>
|
||||
</div>
|
||||
|
||||
<div class="search_form">
|
||||
<div class="search_wrap">
|
||||
<div class="group">
|
||||
<div class="input_box cal">
|
||||
<label for="right" class="label">조회기간</label>
|
||||
<div class="contents">
|
||||
<div class="contents_wrap">
|
||||
<div class="top_wrap">
|
||||
<h3 class="title">청약고객관리</h3>
|
||||
<p class="breadcrumb">고객관리 > 청약고객관리 > 청약고객관리</p>
|
||||
</div>
|
||||
|
||||
<div class="top_tab">
|
||||
<a href="javascript:void(0);" class="on">청약고객관리</a>
|
||||
<a href="javascript:void(0);" @click="toMove('memberList')">회원관리</a>
|
||||
</div>
|
||||
|
||||
<div class="search_form">
|
||||
<div class="search_wrap">
|
||||
<div class="group">
|
||||
<div class="input_box cal">
|
||||
<label for="right" class="label">조회기간</label>
|
||||
<div class="term">
|
||||
<span class="custom_input icon_date">
|
||||
<vuejs-datepicker
|
||||
@@ -39,81 +39,84 @@
|
||||
></vuejs-datepicker>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="select_box id">
|
||||
<label for="right" class="label">상태</label>
|
||||
<select name="" id="" v-model="searchType1" @keyup.enter="search">
|
||||
<option value="" selected>전체</option>
|
||||
<option v-for="(option, i) in statType" v-bind:value="option.code" v-bind:key="i">
|
||||
{{ option.codeNm }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select_box">
|
||||
<label for="right" class="label">유치채널</label>
|
||||
<select name="" id="" v-model="searchType2" @keyup.enter="search">
|
||||
</div>
|
||||
<div class="select_box id">
|
||||
<label for="right" class="label">상태</label>
|
||||
<select name="" id="" v-model="searchType1" @keyup.enter="search">
|
||||
<option value="" selected>전체</option>
|
||||
<option value="01" >고객셀프가입</option>
|
||||
<option value="02" >대리점</option>
|
||||
<option value="03" >고객센터</option>
|
||||
<option value="04" >직접영업</option>
|
||||
<option v-for="(option, i) in statType" v-bind:value="option.code" v-bind:key="i">
|
||||
{{ option.codeNm }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select_box">
|
||||
<label for="right" class="label">유치채널</label>
|
||||
<select name="" id="" v-model="searchType2" @keyup.enter="search">
|
||||
<option value="" selected>전체</option>
|
||||
<option value="01">고객셀프가입</option>
|
||||
<option value="02">대리점</option>
|
||||
<option value="03">고객센터</option>
|
||||
<option value="04">직접영업</option>
|
||||
<!-- <option v-for="(option, i) in userType" v-bind:value="option.code" v-bind:key="i">
|
||||
{{ option.codeNm }}
|
||||
</option> -->
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="select_box">
|
||||
<label for="right" class="label">상세검색</label>
|
||||
<select name="" id="" v-model="searchType3" @keyup.enter="search">
|
||||
<option value="">전체</option>
|
||||
<option value="01">고객사명</option>
|
||||
<option value="02">가입번호</option>
|
||||
<option value="03">서비스ID</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input_box">
|
||||
<input class="search-box" type="text" id="search" placeholder="검색어 입력" v-model="grid.params.searchText1"/>
|
||||
</div>
|
||||
<button type="button" class="button grey" @click="search">조회</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info">
|
||||
<div class="count">총 <span>{{ totalItems.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</span>건
|
||||
<div class="select_box NumberSe">
|
||||
<select name="" id="" v-model="perPageCnt" @change="changePerPage()">
|
||||
<option v-for="option in options" v-bind:value="option.value" v-bind:key="option.value">{{ option.text }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button_group">
|
||||
<button type="button" class="button blue download" @click="excelDown();">엑셀 다운로드</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table">
|
||||
<custom-grid
|
||||
ref="table"
|
||||
:totalItems="'totalItems'"
|
||||
:url="grid.url"
|
||||
:pagePerRows="grid.pagePerRows"
|
||||
:initialRequest="grid.initialRequest"
|
||||
:pagination="grid.pagination"
|
||||
:isCheckbox="grid.isCheckbox"
|
||||
:columns="grid.columns"
|
||||
:noDataStr="grid.noDataStr"
|
||||
:addCls="grid.addCls"
|
||||
:header="grid.headder"
|
||||
></custom-grid>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="select_box">
|
||||
<label for="right" class="label">상세검색</label>
|
||||
<select name="" id="" v-model="searchType3" @keyup.enter="search">
|
||||
<option value="01">고객사명</option>
|
||||
<option value="02">가입번호</option>
|
||||
<option value="03">서비스ID</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input_box">
|
||||
<input class="search-box" type="text" id="search" placeholder="검색어 입력" v-model="grid.params.searchText1"
|
||||
maxlength="100" @keyup.enter="search"/>
|
||||
</div>
|
||||
<button type="button" class="button grey" @click="search">조회</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
<div class="info">
|
||||
<div class="count">총 <span>{{ totalItems.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</span>건
|
||||
<div class="select_box NumberSe">
|
||||
<select name="" id="" v-model="perPageCnt" @change="changePerPage()">
|
||||
<option v-for="option in options" v-bind:value="option.value" v-bind:key="option.value">{{
|
||||
option.text
|
||||
}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button_group">
|
||||
<button type="button" class="button blue download" @click="excelDown();">엑셀 다운로드</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table">
|
||||
<custom-grid
|
||||
ref="table"
|
||||
:totalItems="'totalItems'"
|
||||
:url="grid.url"
|
||||
:pagePerRows="grid.pagePerRows"
|
||||
:initialRequest="grid.initialRequest"
|
||||
:pagination="grid.pagination"
|
||||
:isCheckbox="grid.isCheckbox"
|
||||
:columns="grid.columns"
|
||||
:noDataStr="grid.noDataStr"
|
||||
:addCls="grid.addCls"
|
||||
:header="grid.headder"
|
||||
></custom-grid>
|
||||
</div>
|
||||
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -125,25 +128,25 @@ import xlsx from '@/common/excel';
|
||||
import commonModal from "@/components/modal/commonModal";
|
||||
|
||||
class CustomATagRenderer {
|
||||
constructor(props) {
|
||||
this.props = props;
|
||||
const el = document.createElement('a');
|
||||
el.href = 'javascript:void(0);';
|
||||
el.className = 'btn_text';
|
||||
el.innerText= String(props.colValue)
|
||||
this.el = el;
|
||||
}
|
||||
constructor(props) {
|
||||
this.props = props;
|
||||
const el = document.createElement('a');
|
||||
el.href = 'javascript:void(0);';
|
||||
el.className = 'btn_text';
|
||||
el.innerText = String(props.colValue)
|
||||
this.el = el;
|
||||
}
|
||||
|
||||
getElement() {
|
||||
return this.el;
|
||||
}
|
||||
getElement() {
|
||||
return this.el;
|
||||
}
|
||||
|
||||
addEvent(selEl) {
|
||||
selEl.addEventListener("click", () => {
|
||||
const { callback } = this.props["cgrido" + this.props.colName].options;
|
||||
callback(this.props);
|
||||
});
|
||||
}
|
||||
addEvent(selEl) {
|
||||
selEl.addEventListener("click", () => {
|
||||
const {callback} = this.props["cgrido" + this.props.colName].options;
|
||||
callback(this.props);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
@@ -159,84 +162,85 @@ export default {
|
||||
|
||||
statType: [],
|
||||
userType: [],
|
||||
row:{},
|
||||
|
||||
row: {},
|
||||
|
||||
pageType: 'SUBS',
|
||||
searchType1:'',
|
||||
searchType2:'',
|
||||
searchType3:'',
|
||||
searchType1: '',
|
||||
searchType2: '',
|
||||
searchType3: '01',
|
||||
// 테이블 리스트 데이터
|
||||
perPageCnt: 50,
|
||||
options: [
|
||||
{ text: '20', value: 20},
|
||||
{ text: '50', value: 50},
|
||||
{ text: '100', value: 100}
|
||||
{text: '20', value: 20},
|
||||
{text: '50', value: 50},
|
||||
{text: '100', value: 100}
|
||||
],
|
||||
totalItems: 0,
|
||||
totalItems: 0,
|
||||
grid: {
|
||||
url: '/api/v1/bo/custMgt/subsList',
|
||||
pagePerRows: 20,
|
||||
pagination: true,
|
||||
pagination: true,
|
||||
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
|
||||
initialRequest: false,
|
||||
addCls: 'box_OFvis',
|
||||
|
||||
columns: [
|
||||
{ name: 'no', header: 'No', align: 'center', width: 60},
|
||||
{ name: 'serviceId', header: '서비스 ID\n(관리자 ID)', align: 'center', width: 160 , renderer: {
|
||||
columns: [
|
||||
{name: 'no', header: 'No', align: 'center', width: 60},
|
||||
{
|
||||
name: 'serviceId', header: '서비스 ID\n(관리자 ID)', align: 'center', width: 160, renderer: {
|
||||
type: CustomATagRenderer
|
||||
, options: {
|
||||
callback: this.custDetail,
|
||||
callback: this.custDetail,
|
||||
}
|
||||
}
|
||||
},
|
||||
{ name: 'custNm', header: '고객사명', align: 'center', width: 130},
|
||||
{ name: 'regNo', header: '가입번호', align: 'center', width: 130},
|
||||
{ name: 'regDt', header: '가입일', align: 'center', width: 130, cls: 'td_line'},
|
||||
{ name: 'stat', header: '상태', align: 'center', width: 130},
|
||||
{ name: 'channel', header: '유치채널', align: 'center', width: 130},
|
||||
{ name: 'plan', header: '요금제', align: 'center', width: 130},
|
||||
{ name: 'carryOver', header: '이월누적금액', align: 'center', width: 130}
|
||||
{name: 'custNm', header: '고객사명', align: 'center', width: 130},
|
||||
{name: 'regNo', header: '가입번호', align: 'center', width: 130},
|
||||
{name: 'regDt', header: '가입일', align: 'center', width: 130, cls: 'td_line'},
|
||||
{name: 'stat', header: '상태', align: 'center', width: 130},
|
||||
{name: 'channel', header: '유치채널', align: 'center', width: 130},
|
||||
{name: 'plan', header: '요금제', align: 'center', width: 130},
|
||||
{name: 'carryOver', header: '이월누적금액', align: 'center', width: 130}
|
||||
],
|
||||
noDataStr: '검색 결과가 없습니다.',
|
||||
noDataStr: '검색 결과가 없습니다.',
|
||||
params: {
|
||||
searchType1: '',
|
||||
searchType2: '',
|
||||
searchType3: '',
|
||||
searchText1: '',
|
||||
searchText1: '',
|
||||
startDt: '',
|
||||
endDt: ''
|
||||
},
|
||||
excelHeader: []
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
},
|
||||
components: {
|
||||
customGrid: customGrid,
|
||||
commonModal,
|
||||
vuejsDatepicker,
|
||||
},
|
||||
created(){
|
||||
|
||||
created() {
|
||||
|
||||
this.setCodeData();
|
||||
this.getExcelHeader();
|
||||
this.setPeriodDay(0);
|
||||
|
||||
},
|
||||
},
|
||||
destroyed() {
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
page: 1,
|
||||
perPage: 50,
|
||||
params: {
|
||||
page: 1,
|
||||
perPage: 50,
|
||||
params: {
|
||||
searchType1: '',
|
||||
searchType2: '',
|
||||
searchType3: '',
|
||||
searchText1: '',
|
||||
searchText1: '',
|
||||
startDt: '',
|
||||
endDt: ''
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
mounted() {
|
||||
// 달력 세팅
|
||||
@@ -244,18 +248,18 @@ export default {
|
||||
let page = 1;
|
||||
// 페이지 정보 및 검색 조건
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
console.log('getCondition : '+getCondition);
|
||||
console.log('getCondition : ' + getCondition);
|
||||
|
||||
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
|
||||
let isKeep = false;
|
||||
if (getCondition) {
|
||||
this.grid.pagePerRows = getCondition.perPage;
|
||||
this.grid.params = getCondition.params;
|
||||
this.grid.params = getCondition.params;
|
||||
page = getCondition.page;
|
||||
isKeep = true;
|
||||
}
|
||||
this.search(isKeep);
|
||||
},
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
|
||||
const getP = this.$refs.table.getPagination();
|
||||
@@ -269,10 +273,10 @@ export default {
|
||||
next();
|
||||
},
|
||||
methods: {
|
||||
search: function(isKeep) {
|
||||
search: function (isKeep) {
|
||||
this.grid.params.startDt = moment(this.startDate).format('YYYYMMDD');
|
||||
this.grid.params.endDt = moment(this.endDate).format('YYYYMMDD');
|
||||
console.log('this.perPageCnt'+this.perPageCnt);
|
||||
console.log('this.perPageCnt' + this.perPageCnt);
|
||||
console.log(this.grid.params);
|
||||
|
||||
this.grid.params.searchType1 = this.searchType1
|
||||
@@ -283,18 +287,18 @@ export default {
|
||||
this.sendStoreData();
|
||||
},
|
||||
toMove(routeName) {
|
||||
this.$router.push({ name: routeName, params: { page: 1, searchText: '' } });
|
||||
this.$router.push({name: routeName, params: {page: 1, searchText: ''}});
|
||||
},
|
||||
custDetail(props){
|
||||
custDetail(props) {
|
||||
console.log(props);
|
||||
this.row.serviceId = props.serviceId;
|
||||
this.$router.push({ name: 'subsDetail', params: this.row });
|
||||
this.$router.push({name: 'subsDetail', params: this.row});
|
||||
},
|
||||
changePerPage: function(){ // 페이지당 조회할 개수
|
||||
changePerPage: function () { // 페이지당 조회할 개수
|
||||
this.grid.pagePerRows = this.perPageCnt;
|
||||
this.search(true);
|
||||
},
|
||||
sendStoreData: function() {
|
||||
sendStoreData: function () {
|
||||
const getP = this.$refs.table.getPagination();
|
||||
console.log("==========getP : " + getP._currentPage);
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
@@ -304,15 +308,15 @@ export default {
|
||||
});
|
||||
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
console.log("getCondition : "+ getCondition.perPage);
|
||||
console.log("getCondition : " + getCondition.perPage);
|
||||
},
|
||||
setCodeData() {
|
||||
// 상태 옵션 셋팅.
|
||||
api.commCode({'grpCd' : 'SUBS_STTUS_CD'}).then(response => {
|
||||
api.commCode({'grpCd': 'SUBS_STTUS_CD'}).then(response => {
|
||||
this.statType = response.data.data.list;
|
||||
});
|
||||
//
|
||||
api.commCode({'grpCd' : 'SVCUSER_TP_CD'}).then(response => {
|
||||
api.commCode({'grpCd': 'SVCUSER_TP_CD'}).then(response => {
|
||||
this.userType = response.data.data.list;
|
||||
});
|
||||
},
|
||||
@@ -333,7 +337,7 @@ export default {
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
return result.data;
|
||||
}else{
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} catch (err) {
|
||||
@@ -357,7 +361,8 @@ export default {
|
||||
dataOrder: 'header'
|
||||
};
|
||||
// console.log(data);
|
||||
xlsx.export(data.list, saveFileName, options).then(() => {});
|
||||
xlsx.export(data.list, saveFileName, options).then(() => {
|
||||
});
|
||||
},
|
||||
getExcelHeader() {
|
||||
// 헤더를 mockup으로 관리한다.
|
||||
@@ -395,15 +400,15 @@ export default {
|
||||
closeDate(type) {
|
||||
if (type != undefined && type != null) {
|
||||
if (type == 'start') {
|
||||
this.disabledSDate = { from: this.endDate };
|
||||
this.disabledEDate = { to: this.startDate, from: this.endDate };
|
||||
this.disabledSDate = {from: this.endDate};
|
||||
this.disabledEDate = {to: this.startDate, from: this.endDate};
|
||||
} else if (type == 'end') {
|
||||
this.disabledSDate = { from: this.endDate };
|
||||
this.disabledEDate = { to: this.startDate, from: new Date() };
|
||||
this.disabledSDate = {from: this.endDate};
|
||||
this.disabledEDate = {to: this.startDate, from: new Date()};
|
||||
}
|
||||
}
|
||||
},
|
||||
customFormatter: function(date) {
|
||||
customFormatter: function (date) {
|
||||
if (this.sDateDiv == 'month') {
|
||||
return moment(date).format('YYYY-MM');
|
||||
} else if (this.sDateDiv == 'year') {
|
||||
@@ -412,7 +417,7 @@ export default {
|
||||
return moment(date).format('YYYY-MM-DD');
|
||||
}
|
||||
},
|
||||
initSetStartDate(){
|
||||
initSetStartDate() {
|
||||
let setYear = Number(moment(new Date()).format('YYYY'));
|
||||
let initStartDate = new Date(setYear, 0, 1);
|
||||
this.startDate = initStartDate;
|
||||
|
||||
Reference in New Issue
Block a user