mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-08 20:16:17 +09:00
TC 기능 수정 / 디자인 수정 변경
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
</div>
|
||||
<!-- 관리자 상세정보 팝업 끝-->
|
||||
</div>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
<!-- <common-modal ref="commmonModal"></common-modal>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -82,7 +82,7 @@ import api from '@/service/api';
|
||||
import sysMgtApi from "../service/sysMgtApi.js";
|
||||
import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import lodash from "lodash";
|
||||
import commonModal from "../components/commonModal";
|
||||
// import commonModal from "../components/commonModal";
|
||||
import SearchIdPopup from "@/modules/sysMgt/components/SearchIdPopup";
|
||||
|
||||
export default {
|
||||
@@ -121,7 +121,7 @@ export default {
|
||||
this.formReset();
|
||||
},
|
||||
components: {
|
||||
commonModal,
|
||||
// commonModal,
|
||||
},
|
||||
methods :{
|
||||
doPwdValidate(){
|
||||
@@ -129,7 +129,7 @@ export default {
|
||||
// alert("비밀번호 확인을 입력해 주세요.");
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호를 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd2.focus();
|
||||
return false;
|
||||
}
|
||||
@@ -137,7 +137,7 @@ export default {
|
||||
// alert("비밀번호가 일치하지 않습니다.");
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호가 일치하지 않습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd2.focus();
|
||||
return false;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ export default {
|
||||
// alert("비밀번호는 8~16자의 영문, 숫자, 특수문자(!,@, $, %, ^, &, *) 조합이 필요합니다.");
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호는 8~16자의 영문, 숫자, 특수문자(!,@, $, %, ^, &, *) 조합이 필요합니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd1.focus();
|
||||
return false;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
// alert("비밀번호는 8~16자의 영문, 숫자, 특수문자(!,@, $, %, ^, &, *) 조합이 필요합니다.");
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호는 8~16자의 영문, 숫자, 특수문자(!,@, $, %, ^, &, *) 조합이 필요합니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd1.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,391 +1,377 @@
|
||||
<template>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
<div class="dimmed modal20" @click="ModalClose();"></div>
|
||||
<div class="popup-wrap modal20">
|
||||
<!-- 관리자/유치채널 등록 -->
|
||||
<div class="popup modal20 popup_form">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit" v-if="insertType === 1">관리자 등록</h3>
|
||||
<h3 class="pop-tit" v-else>유치채널 사용자 등록</h3>
|
||||
</div>
|
||||
<!-- <form autocomplete="off" ref="adminRegForm">-->
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>마당 ID</th>
|
||||
<td class="input_search">
|
||||
<input type="text" placeholder="아이디 입력" v-model.trim="madangId" ref="madangId">
|
||||
<button type="button" class="button grey" @click="searchMadangId()">조회</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>비밀번호</th>
|
||||
<td><input type="password" @keypress="onlyPassword" @input="onlyPassword" required minlength="8" maxlength="16" ref="_pwd1" v-model.trim="userPwd1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>비밀번호 확인</th>
|
||||
<td><input type="password" @keypress="onlyPassword" @input="onlyPassword" required minlength="8" maxlength="16" ref="_pwd2" v-model.trim="userPwd2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<td><input type="text" @keypress="onlyName" @input="onlyName" 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>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이메일</th>
|
||||
<td><input type="email" v-model.trim="email" @keypress="onlyEmail" @input="onlyEmail" maxlength="20" ref="_email"></td>
|
||||
</tr>
|
||||
<tr v-if="insertType === 2">
|
||||
<th>코드</th>
|
||||
<td><input type="text" disabled ref="_code" v-model.trim="code"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>권한</th>
|
||||
<td v-if="insertType === 1">
|
||||
<div v:class="select_box">
|
||||
<select name="" id="right" v-model="auth" ref="_auth">
|
||||
<option value="">선택</option>
|
||||
<option v-for="(option, i) in authType" v-bind:value="option.autCd" v-bind:key="i">
|
||||
{{ option.autNm }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
<td v-else><input type="text" disabled value="대리점"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center">상태</th>
|
||||
<td>
|
||||
<input type="radio" name="state" value="01" id="popup_radio1" v-model="stat">
|
||||
<label for="popup_radio1">사용</label>
|
||||
<input type="radio" name="state" value="02" id="popup_radio2" v-model="stat">
|
||||
<label for="popup_radio2">정지</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- </form>-->
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="doInsert">저장</button>
|
||||
<button class="btn-default" @click="ModalClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<search-id-popup ref="searchIdPopModal"> </search-id-popup>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
<div class="dimmed modal20" @click="ModalClose();"></div>
|
||||
<div class="popup-wrap modal20">
|
||||
<!-- 관리자/유치채널 등록 -->
|
||||
<div class="popup modal20 popup_form">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit" v-if="insertType === 1">관리자 등록</h3>
|
||||
<h3 class="pop-tit" v-else>유치채널 사용자 등록</h3>
|
||||
</div>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>마당 ID</th>
|
||||
<td class="input_search">
|
||||
<input type="text" placeholder="아이디 입력" v-model.trim="madangId" ref="madangId">
|
||||
<button type="button" class="button grey" @click="searchMadangId()">조회</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>비밀번호</th>
|
||||
<td><input type="password" @keypress="onlyPassword" @input="onlyPassword" required minlength="8"
|
||||
maxlength="16" ref="_pwd1" v-model.trim="userPwd1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>비밀번호 확인</th>
|
||||
<td><input type="password" @keypress="onlyPassword" @input="onlyPassword" required minlength="8"
|
||||
maxlength="16" ref="_pwd2" v-model.trim="userPwd2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<td><input type="text" @keypress="onlyName" @input="onlyName" v-model.trim="userNm" ref="_userNm" required
|
||||
maxlength="40"></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" @keypress="onlyEmail" @input="onlyEmail" maxlength="20"
|
||||
ref="_email"></td>
|
||||
</tr>
|
||||
<tr v-if="insertType === 2">
|
||||
<th>코드</th>
|
||||
<td><input type="text" disabled ref="_code" v-model.trim="code"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>권한</th>
|
||||
<td v-if="insertType === 1">
|
||||
<div v:class="select_box">
|
||||
<select name="" id="right" v-model="auth" ref="_auth">
|
||||
<option value="">선택</option>
|
||||
<option v-for="(option, i) in authType" v-bind:value="option.autCd" v-bind:key="i">
|
||||
{{ option.autNm }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
<td v-else><input type="text" disabled value="대리점"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center">상태</th>
|
||||
<td>
|
||||
<input type="radio" name="state" value="01" id="popup_radio1" v-model="stat">
|
||||
<label for="popup_radio1">사용</label>
|
||||
<input type="radio" name="state" value="02" id="popup_radio2" v-model="stat">
|
||||
<label for="popup_radio2">정지</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="doInsert">저장</button>
|
||||
<button class="btn-default" @click="ModalClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<search-id-popup ref="searchIdPopModal"></search-id-popup>
|
||||
<common-modal ref="commmonSysModal"></common-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from '@/service/api';
|
||||
import sysMgtApi from "../service/sysMgtApi.js";
|
||||
import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import {utils_mixin, chkPattern2} from '../service/mixins';
|
||||
import SearchIdPopup from '../components/SearchIdPopup.vue';
|
||||
import lodash from "lodash";
|
||||
import commonModal from "../components/commonModal";
|
||||
|
||||
export default {
|
||||
name: "adminRegPop",
|
||||
mixins: [utils_mixin, chkPattern2],
|
||||
watch:{
|
||||
stat(){
|
||||
console.log('watch : ', this.stat)
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
row: {},
|
||||
authType: [],
|
||||
insertType:0,
|
||||
madangId:'',
|
||||
name:'',
|
||||
mdn:'',
|
||||
email:'',
|
||||
auth:'',
|
||||
stat: '',
|
||||
userNm:"",
|
||||
userPwd1:"",
|
||||
userPwd2:"",
|
||||
code:"",
|
||||
idCheck: false,
|
||||
props: {},
|
||||
}
|
||||
},
|
||||
components: {
|
||||
SearchIdPopup,
|
||||
name: "adminRegPop",
|
||||
mixins: [utils_mixin, chkPattern2],
|
||||
watch: {
|
||||
stat() {
|
||||
console.log('watch : ', this.stat)
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
row: {},
|
||||
authType: [],
|
||||
insertType: 0,
|
||||
madangId: '',
|
||||
name: '',
|
||||
mdn: '',
|
||||
email: '',
|
||||
auth: '',
|
||||
stat: '',
|
||||
userNm: "",
|
||||
userPwd1: "",
|
||||
userPwd2: "",
|
||||
code: "",
|
||||
idCheck: false,
|
||||
props: {},
|
||||
}
|
||||
},
|
||||
components: {
|
||||
SearchIdPopup,
|
||||
commonModal,
|
||||
},
|
||||
model: {
|
||||
prop: 'sendData',
|
||||
event: 'event-data'
|
||||
},
|
||||
props: ['sendData'],
|
||||
created(){
|
||||
//this.formReset();
|
||||
this.setAuthData();
|
||||
this.formReset();
|
||||
},
|
||||
methods :{
|
||||
doPwdValidate(){
|
||||
if(this.isNull(this.userPwd1)){
|
||||
},
|
||||
model: {
|
||||
prop: 'sendData',
|
||||
event: 'event-data'
|
||||
},
|
||||
props: ['sendData'],
|
||||
created() {
|
||||
//this.formReset();
|
||||
this.setAuthData();
|
||||
this.formReset();
|
||||
},
|
||||
methods: {
|
||||
doPwdValidate() {
|
||||
if (this.isNull(this.userPwd1)) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호를 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd1.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.userPwd2)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.$refs._pwd1.focus();
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.userPwd2)) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호 확인을 입력해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd2.focus();
|
||||
return false;
|
||||
}
|
||||
if(!lodash.isEqual(this.userPwd1, this.userPwd2)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.$refs._pwd2.focus();
|
||||
return false;
|
||||
}
|
||||
if (!lodash.isEqual(this.userPwd1, this.userPwd2)) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호가 일치하지 않습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd2.focus();
|
||||
return false;
|
||||
}
|
||||
const pwdLen = this.bytes(this.userPwd1);
|
||||
if(!(pwdLen >= 8 && pwdLen <= 16)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.$refs._pwd2.focus();
|
||||
return false;
|
||||
}
|
||||
const pwdLen = this.bytes(this.userPwd1);
|
||||
if (!(pwdLen >= 8 && pwdLen <= 16)) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호는 8~16자의 영문, 숫자, 특수문자(!,@, $, %, ^, &, *) 조합이 필요합니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd1.focus();
|
||||
return false;
|
||||
}
|
||||
const pEng = /[A-Za-z]/g; // 영문자
|
||||
const pNum = /[0-9]/g; // 숫자
|
||||
const pSpc = /[!@$%^&*]/g; // 특수문자
|
||||
if(!(pEng.test(this.userPwd1) && pNum.test(this.userPwd1) && pSpc.test(this.userPwd1))) {
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.$refs._pwd1.focus();
|
||||
return false;
|
||||
}
|
||||
const pEng = /[A-Za-z]/g; // 영문자
|
||||
const pNum = /[0-9]/g; // 숫자
|
||||
const pSpc = /[!@$%^&*]/g; // 특수문자
|
||||
if (!(pEng.test(this.userPwd1) && pNum.test(this.userPwd1) && pSpc.test(this.userPwd1))) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '비밀번호는 8~16자의 영문, 숫자, 특수문자(!,@, $, %, ^, &, *) 조합이 필요합니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._pwd1.focus();
|
||||
return;
|
||||
}
|
||||
this.row.adminPw=this.userPwd1;
|
||||
return true;
|
||||
},
|
||||
doValidate(){
|
||||
if(!this.idCheck){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.$refs._pwd1.focus();
|
||||
return;
|
||||
}
|
||||
this.row.adminPw = this.userPwd1;
|
||||
return true;
|
||||
},
|
||||
doValidate() {
|
||||
if (!this.idCheck) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '유효한 마당ID가 아닙니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}
|
||||
if(!this.doPwdValidate()){
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.userNm)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.$refs.madangId.focus();
|
||||
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.$refs._userNm.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.mdn)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(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.$refs._phone.focus();
|
||||
return false;
|
||||
}
|
||||
const hp = this.mdn;
|
||||
if(!this.isNull(hp) && !this.isMobile(hp)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(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.$refs._phone.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.email)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(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.$refs._email.focus();
|
||||
return false;
|
||||
}
|
||||
const email = this.email;
|
||||
if(!this.isNull(email) && !lodash.isEqual(email,'@') && !this.emailCheck(email)){
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(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.row.msg2 = '확인해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._email.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.auth)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.$refs._email.focus();
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.auth)) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '권한을 선택 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._auth.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.stat)){
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.$refs._auth.focus();
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.stat)) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '상태를 선택 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
// this.$refs._auth.focus();
|
||||
return false;
|
||||
}
|
||||
this.row.madangId=this.madangId;
|
||||
this.row.name=this.userNm;
|
||||
this.row.mdn=hp;
|
||||
this.row.email=email;
|
||||
if(this.insertType == 2){
|
||||
this.row.auth='1003';
|
||||
}else{
|
||||
this.row.auth=this.auth;
|
||||
}
|
||||
this.row.stat=this.stat;
|
||||
return true;
|
||||
},
|
||||
// 마당ID 조회
|
||||
async searchMadangId(){
|
||||
|
||||
if(!this.madangId){
|
||||
// this.row.title = '관리자/유치채널 관리';
|
||||
// this.row.msg1 = '마당ID를 입력해주세요.';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
// this.$refs.searchIdPopModal.searchIdModalOpen();
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}
|
||||
var params = {
|
||||
"madangId": this.madangId
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
// this.$refs._auth.focus();
|
||||
return false;
|
||||
}
|
||||
console.log(this.madangId);
|
||||
this.row.madangId = this.madangId;
|
||||
this.row.name = this.userNm;
|
||||
this.row.mdn = hp;
|
||||
this.row.email = email;
|
||||
this.row.auth = this.auth;
|
||||
this.row.stat = this.stat;
|
||||
|
||||
try {
|
||||
const response = await sysMgtApi.selectSearchMadangId(params);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.madangId = result.data.madangId;
|
||||
this.userNm = result.data.name;
|
||||
this.email = result.data.email;
|
||||
this.mdn = result.data.mdn;
|
||||
return true;
|
||||
},
|
||||
// 마당ID 조회
|
||||
async searchMadangId() {
|
||||
|
||||
// 마당ID조회 성공 팝업노출
|
||||
this.searchIdPop();
|
||||
//console.log(this.userNm);
|
||||
if (!this.madangId) {
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}
|
||||
var params = {
|
||||
"madangId": this.madangId
|
||||
}
|
||||
console.log(this.madangId);
|
||||
|
||||
this.idCheck = true;
|
||||
this.$refs._pwd1.focus();
|
||||
try {
|
||||
const response = await sysMgtApi.selectSearchMadangId(params);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.madangId = result.data.madangId;
|
||||
this.userNm = result.data.name;
|
||||
this.email = result.data.email;
|
||||
this.mdn = result.data.mdn;
|
||||
this.code = result.data.code;
|
||||
// 마당ID조회 성공 팝업노출
|
||||
this.searchIdPop();
|
||||
//console.log(this.userNm);
|
||||
|
||||
this.idCheck = true;
|
||||
this.$refs._pwd1.focus();
|
||||
return false;
|
||||
}else if(result.retCode == '1004'){
|
||||
//alert('마당ID 정보가 없습니다.');
|
||||
// this.row.title = '관리자/유치채널 관리';
|
||||
// this.row.msg1 = '마당ID 정보가 없습니다.';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.searchIdFailPop();
|
||||
this.idCheck = false;
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}else {
|
||||
//alert('마당ID 조회에 실패하였습니다.');
|
||||
// this.row.title = '관리자/유치채널 관리';
|
||||
// this.row.msg1 = '마당ID 정보가 없습니다.';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.searchIdFailPop();
|
||||
this.idCheck = false;
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}
|
||||
} catch(err) {
|
||||
//alert("실패 하였습니다.");
|
||||
// this.row.title = '관리자/유치채널 관리';
|
||||
// this.row.msg1 = '마당ID 정보가 없습니다.';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.searchIdFailPop();
|
||||
this.idCheck = false;
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
},
|
||||
searchIdPop(){
|
||||
//alert('마당ID 조회 성공 팝업이동 ->');
|
||||
var params = {
|
||||
"madangId": this.madangId,
|
||||
"userNm": this.userNm,
|
||||
"email": this.email,
|
||||
"mdn": this.mdn
|
||||
}
|
||||
this.$refs.searchIdPopModal.searchIdPop(params);
|
||||
},
|
||||
searchIdFailPop(){
|
||||
//alert('마당ID 조회 실패 팝업이동 ->');
|
||||
this.$refs.searchIdPopModal.searchIdFailPop();
|
||||
},
|
||||
resetRegPop(){
|
||||
this.formReset();
|
||||
this.$refs.madangId.focus();
|
||||
},
|
||||
} else if (result.retCode == '1004') {
|
||||
this.searchIdFailPop();
|
||||
this.idCheck = false;
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
} else {
|
||||
this.searchIdFailPop();
|
||||
this.idCheck = false;
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}
|
||||
} catch (err) {
|
||||
this.searchIdFailPop();
|
||||
this.idCheck = false;
|
||||
this.$refs.madangId.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
},
|
||||
searchIdPop() {
|
||||
//alert('마당ID 조회 성공 팝업이동 ->');
|
||||
var params = {
|
||||
"madangId": this.madangId,
|
||||
"userNm": this.userNm,
|
||||
"email": this.email,
|
||||
"mdn": this.mdn
|
||||
}
|
||||
this.$refs.searchIdPopModal.searchIdPop(params);
|
||||
},
|
||||
searchIdFailPop() {
|
||||
//alert('마당ID 조회 실패 팝업이동 ->');
|
||||
this.$refs.searchIdPopModal.searchIdFailPop();
|
||||
},
|
||||
resetRegPop() {
|
||||
this.formReset();
|
||||
this.$refs.madangId.focus();
|
||||
},
|
||||
|
||||
|
||||
// 모달 띄우기
|
||||
ModalOpen(insertType){
|
||||
this.formReset();
|
||||
this.insertType=insertType;
|
||||
// 모달 띄우기
|
||||
ModalOpen(insertType) {
|
||||
this.formReset();
|
||||
this.insertType = insertType;
|
||||
console.log(insertType)
|
||||
if(insertType === 2){
|
||||
this.auth = '1002';
|
||||
}
|
||||
var dimmed = document.getElementsByClassName('modal20');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
this.setAuthData();
|
||||
},
|
||||
// 모달 끄기
|
||||
ModalClose(){
|
||||
},
|
||||
// 모달 끄기
|
||||
ModalClose() {
|
||||
var dimmed = document.getElementsByClassName('modal20');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
},
|
||||
// 저장 후 부모창 호출.
|
||||
toComplete(){
|
||||
this.getParent('adminList').$refs.table.reloadData();
|
||||
this.ModalClose();
|
||||
},
|
||||
async doInsert(){
|
||||
if(this.doValidate()){
|
||||
try {
|
||||
const response = await sysMgtApi.insertAdmin(this.row);
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
|
||||
},
|
||||
// 저장 후 부모창 호출.
|
||||
toComplete() {
|
||||
this.getParent('adminList').$refs.table.reloadData();
|
||||
this.ModalClose();
|
||||
},
|
||||
async doInsert() {
|
||||
if (this.doValidate()) {
|
||||
try {
|
||||
const response = await sysMgtApi.insertAdmin(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);
|
||||
}
|
||||
}
|
||||
},
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.toComplete();
|
||||
}
|
||||
} catch (err) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
}
|
||||
}
|
||||
},
|
||||
setAuthData() {
|
||||
// 권한 옵션.
|
||||
api.commAuth().then(response => {
|
||||
this.authType = response.data.data.list;
|
||||
});
|
||||
},
|
||||
formReset(){
|
||||
var type= this.insertType;
|
||||
Object.assign(this.$data, this.$options.data());
|
||||
this.insertType = type;
|
||||
},
|
||||
}
|
||||
// 권한 옵션.
|
||||
api.commAuth().then(response => {
|
||||
this.authType = response.data.data.list;
|
||||
});
|
||||
},
|
||||
formReset() {
|
||||
var type = this.insertType;
|
||||
Object.assign(this.$data, this.$options.data());
|
||||
this.insertType = type;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<template>
|
||||
|
||||
<div>
|
||||
<!-- s: 팝업 -->
|
||||
<div class="dimmed modal17" @click="searchIdFailModalClose();"></div>
|
||||
<div class="popup-wrap modal17">
|
||||
<!-- 시스템관리 팝업 -->
|
||||
<div>
|
||||
<!-- s: 팝업 -->
|
||||
<div class="dimmed modal17" @click="searchIdFailModalClose();"></div>
|
||||
<div class="popup-wrap modal17">
|
||||
<!-- 시스템관리 팝업 -->
|
||||
|
||||
<!-- ID 조회 -->
|
||||
<!-- ID 조회 -->
|
||||
<div class="popup modal17">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">ID 조회</h3>
|
||||
@@ -18,10 +18,10 @@
|
||||
<button class="btn-pcolor" @click="searchIdFailModalClose();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dimmed modal18" @click="searchIdModalCancelClose();"></div>
|
||||
<div class="popup-wrap modal18">
|
||||
<div class="dimmed modal18" @click="searchIdModalCancelClose();"></div>
|
||||
<div class="popup-wrap modal18">
|
||||
<div class="popup modal18">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">관리자 ID 조회</h3>
|
||||
@@ -31,131 +31,159 @@
|
||||
<p>관리자 정보를 입력하시겠습니까?</p>
|
||||
</div>
|
||||
<ul class="pop-cont-detail">
|
||||
<li>마당ID : {{madangId}}</li>
|
||||
<li>이름 : {{name}}</li>
|
||||
<li>휴대폰번호 : {{mdn}}</li>
|
||||
<li>이메일 : {{email}}</li>
|
||||
<li>마당ID : {{ madangId }}</li>
|
||||
<li>이름 : {{ name }}</li>
|
||||
<li>휴대폰번호 : {{ mdn }}</li>
|
||||
<li>이메일 : {{ email }}</li>
|
||||
</ul>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="searchIdModalOkClose();">확인</button>
|
||||
<button class="btn-default" @click="searchIdModalCancelClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 시스템관리 팝업 끝-->
|
||||
</div>
|
||||
<!-- e: 팝업 -->
|
||||
</div>
|
||||
|
||||
<!-- 시스템관리 팝업 끝-->
|
||||
|
||||
<!-- <div class="dimmed alertSysModal1" @click="alertSysModalCancel();"></div>-->
|
||||
<!-- <div class="popup-wrap alertSysModal1">-->
|
||||
<!-- <!– 로그인실패: 확인 –>-->
|
||||
<!-- <div class="popup alertSysModal1">-->
|
||||
<!-- <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-btn1">-->
|
||||
<!-- <button class="btn-pcolor" @click="alertSysModalClose();">확인</button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
|
||||
</div>
|
||||
<!-- e: 팝업 -->
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
//import api from '@/service/api';
|
||||
import sysMgtApi from '../service/sysMgtApi';
|
||||
|
||||
|
||||
export default {
|
||||
data(){
|
||||
return{
|
||||
authType: [],
|
||||
madangId:'',
|
||||
adminPw:'',
|
||||
name:'',
|
||||
mdn:'',
|
||||
email:'',
|
||||
auth:'',
|
||||
stat: ''
|
||||
}
|
||||
data() {
|
||||
return {
|
||||
authType: [],
|
||||
madangId: '',
|
||||
adminPw: '',
|
||||
name: '',
|
||||
mdn: '',
|
||||
email: '',
|
||||
auth: '',
|
||||
code: '',
|
||||
stat: '',
|
||||
row:{},
|
||||
title:'',
|
||||
msg1: '',
|
||||
msg2: '',
|
||||
msg3: '',
|
||||
msg4: '',
|
||||
targetFocus: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 모달 띄우기(성공모달)
|
||||
searchIdModalOpen(target) {
|
||||
console.log("SearchIdModalOpen");
|
||||
var dimmed = document.getElementsByClassName('dimmed modal18');
|
||||
var wrap = document.getElementsByClassName('popup-wrap modal18');
|
||||
var obj = document.getElementsByClassName(target);
|
||||
dimmed[0].style.display = 'block';
|
||||
wrap[0].style.display = 'block';
|
||||
obj[0].style.display = 'block';
|
||||
},
|
||||
methods :{
|
||||
// 모달 띄우기(성공모달)
|
||||
searchIdModalOpen(target){
|
||||
console.log("SearchIdModalOpen");
|
||||
var dimmed = document.getElementsByClassName('dimmed modal18');
|
||||
var wrap = document.getElementsByClassName('popup-wrap modal18');
|
||||
var obj = document.getElementsByClassName(target);
|
||||
dimmed[0].style.display = 'block';
|
||||
wrap[0].style.display = 'block';
|
||||
obj[0].style.display = 'block';
|
||||
},
|
||||
// 성공 모달 끄기(ok)
|
||||
searchIdModalOkClose(){
|
||||
var dimmed = document.getElementsByClassName('modal18');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 성공 모달 끄기(cancel)
|
||||
searchIdModalCancelClose(){
|
||||
var dimmed = document.getElementsByClassName('modal18');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.resetRegPop();
|
||||
},
|
||||
// 모달 띄우기(실패모달)
|
||||
searchIdFailModalOpen(target){
|
||||
console.log("SearchIdFailModalOpen");
|
||||
var dimmed = document.getElementsByClassName('dimmed modal17');
|
||||
var wrap = document.getElementsByClassName('popup-wrap modal17');
|
||||
var obj = document.getElementsByClassName(target);
|
||||
dimmed[0].style.display = 'block';
|
||||
wrap[0].style.display = 'block';
|
||||
obj[0].style.display = 'block';
|
||||
},
|
||||
// 실패 모달 끄기
|
||||
searchIdFailModalClose(){
|
||||
var dimmed = document.getElementsByClassName('modal17');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.resetRegPop();
|
||||
},
|
||||
searchIdPop(params){
|
||||
var userName = params.userNm;
|
||||
this.madangId = params.madangId ;
|
||||
this.name = params.userNm;
|
||||
this.email = params.email;
|
||||
this.mdn = params.mdn;
|
||||
|
||||
//alert( userName + ': 조회 성공');
|
||||
var dimmed = document.getElementsByClassName('modal18');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
//this.searchIdModalModalOpen('modal18');
|
||||
},
|
||||
searchIdFailPop(){
|
||||
//alert( '조회 실패');
|
||||
var dimmed = document.getElementsByClassName('modal17');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
//메뉴바
|
||||
testClick(){
|
||||
const menuList = document.querySelectorAll('.main_menu .is-sub');
|
||||
for(const menu of menuList){
|
||||
menu.addEventListener('click', (e)=> {
|
||||
if(e.target.classList.contains('menu_target') || e.target.classList.contains('menu_btn')){
|
||||
const menuListCheck = e.target.parentNode;
|
||||
if(menuListCheck.classList.contains('is-current')){
|
||||
menuListCheck.classList.remove('is-current');
|
||||
} else {
|
||||
for(const other of menuList){
|
||||
other.classList.remove('is-current');
|
||||
}
|
||||
menuListCheck.classList.add('is-current');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
// 성공 모달 끄기(ok)
|
||||
searchIdModalOkClose() {
|
||||
var dimmed = document.getElementsByClassName('modal18');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 성공 모달 끄기(cancel)
|
||||
searchIdModalCancelClose() {
|
||||
var dimmed = document.getElementsByClassName('modal18');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.resetRegPop();
|
||||
},
|
||||
// 모달 띄우기(실패모달)
|
||||
searchIdFailModalOpen(target) {
|
||||
console.log("SearchIdFailModalOpen");
|
||||
var dimmed = document.getElementsByClassName('dimmed modal17');
|
||||
var wrap = document.getElementsByClassName('popup-wrap modal17');
|
||||
var obj = document.getElementsByClassName(target);
|
||||
dimmed[0].style.display = 'block';
|
||||
wrap[0].style.display = 'block';
|
||||
obj[0].style.display = 'block';
|
||||
},
|
||||
// 실패 모달 끄기
|
||||
searchIdFailModalClose() {
|
||||
var dimmed = document.getElementsByClassName('modal17');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.resetRegPop();
|
||||
},
|
||||
searchIdPop(params) {
|
||||
var userName = params.userNm;
|
||||
this.madangId = params.madangId;
|
||||
this.name = params.userNm;
|
||||
this.email = params.email;
|
||||
this.mdn = params.mdn;
|
||||
this.code = params.code
|
||||
//alert( userName + ': 조회 성공');
|
||||
var dimmed = document.getElementsByClassName('modal18');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
//this.searchIdModalModalOpen('modal18');
|
||||
},
|
||||
searchIdFailPop() {
|
||||
//alert( '조회 실패');
|
||||
var dimmed = document.getElementsByClassName('modal17');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
// alertSysModalOpen(props) {
|
||||
// console.log(props);
|
||||
// this.title = props.title;
|
||||
// this.msg1 = props.msg1;
|
||||
// this.msg2 = props.msg2;
|
||||
// this.msg3 = props.msg3;
|
||||
// this.msg4 = props.msg4;
|
||||
//
|
||||
// var dimmed = document.getElementsByClassName('alertSysModal1');
|
||||
// for (var i = 0; i < dimmed.length; i++) {
|
||||
// dimmed[i].style.display = 'block';
|
||||
// }
|
||||
// },
|
||||
// alertSysModalClose() {
|
||||
// var dimmed = document.getElementsByClassName('alertSysModal1');
|
||||
// for (var i = 0; i < dimmed.length; i++) {
|
||||
// dimmed[i].style.display = 'none';
|
||||
// }
|
||||
// this.$parent.checkFocus();
|
||||
// },
|
||||
// alertSysModalCancel() {
|
||||
// var dimmed = document.getElementsByClassName('alertSysModal1');
|
||||
// for (var i = 0; i < dimmed.length; i++) {
|
||||
// dimmed[i].style.display = 'none';
|
||||
// }
|
||||
// this.$parent.checkFocus();
|
||||
// },
|
||||
}
|
||||
}
|
||||
</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="dimmed alertSysModal" @click="alertSysModalCancel();"></div>
|
||||
<div class="popup-wrap alertSysModal">
|
||||
<!-- 로그인실패: 확인 -->
|
||||
<div class="popup alertModal">
|
||||
<div class="popup alertSysModal">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{title}}</h3>
|
||||
<h3 class="pop-tit">{{ title }}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg1 }}</p>
|
||||
@@ -16,49 +16,49 @@
|
||||
<p v-if="msg4 !== ''">{{ msg4 }}</p>
|
||||
</div>
|
||||
<div class="popup-btn1">
|
||||
<button class="btn-pcolor" @click="alertModalClose();">확인</button>
|
||||
<button class="btn-pcolor" @click="alertSysModalClose();">확인</button>
|
||||
</div>
|
||||
</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>
|
||||
</template>
|
||||
@@ -66,21 +66,20 @@
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "confirm",
|
||||
data(){
|
||||
return{
|
||||
row:{},
|
||||
title:'',
|
||||
msg1: '',
|
||||
msg2: '',
|
||||
msg3: '',
|
||||
msg4: '',
|
||||
targetFocus: '',
|
||||
}
|
||||
},
|
||||
methods :{
|
||||
alertModalOpen(props){
|
||||
console.log('>>>>>>>>>> alertModalOpen');
|
||||
name: "confirm",
|
||||
data() {
|
||||
return {
|
||||
row: {},
|
||||
title: '',
|
||||
msg1: '',
|
||||
msg2: '',
|
||||
msg3: '',
|
||||
msg4: '',
|
||||
targetFocus: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
alertSysModalOpen(props) {
|
||||
console.log(props.msg1);
|
||||
this.title = props.title;
|
||||
this.msg1 = props.msg1;
|
||||
@@ -88,95 +87,95 @@ export default {
|
||||
this.msg3 = props.msg3;
|
||||
this.msg4 = props.msg4;
|
||||
|
||||
var dimmed = document.getElementsByClassName('alertModal');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
var dimmed = document.getElementsByClassName('alertSysModal');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
alertModalClose(){
|
||||
var dimmed = document.getElementsByClassName('alertModal');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
alertSysModalClose() {
|
||||
var dimmed = document.getElementsByClassName('alertSysModal');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.checkFocus();
|
||||
},
|
||||
alertModalCancel(){
|
||||
var dimmed = document.getElementsByClassName('alertModal');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
alertSysModalCancel() {
|
||||
var dimmed = document.getElementsByClassName('alertSysModal');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$parent.checkFocus();
|
||||
},
|
||||
// 모달 오픈
|
||||
confirmModalOpen(props){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
// 모달 오픈
|
||||
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.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;
|
||||
},
|
||||
// 모달 끄기(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);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel(){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
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';
|
||||
}
|
||||
|
||||
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);
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user