mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 04:11:27 +09:00
수정건 수정
This commit is contained in:
@@ -179,7 +179,7 @@ export default {
|
||||
return false;
|
||||
}
|
||||
const hp = this.blckSndrno;
|
||||
if (!this.isNull(hp) && !this.isMobile(hp)) {
|
||||
if (!this.isNull(hp) && !this.isSendnum(hp)) {
|
||||
this.row.title = '발신번호 차단';
|
||||
this.row.msg1 = '발신번호 형식이 잘못되었습니다. 확인 해주세요.';
|
||||
this.$parent.alertInsert(this.row)
|
||||
|
||||
@@ -129,6 +129,18 @@ const utils_mixin = {
|
||||
}
|
||||
},
|
||||
|
||||
/** 발신번호 차단 */
|
||||
isSendnum(phoneNum){
|
||||
var regExp = /^(01[016789])([0-9]{3,4})([0-9]{4})|((080-[0-9]{3,4}|15(44|66|77|88))[0-9]{4})|(0(2|3[1-3]|4[1-4]|5[1-5]|6[1-4]))(\d{3,4})(\d{4})$/;
|
||||
var myArray;
|
||||
if(regExp.test(phoneNum)){
|
||||
myArray = regExp.exec(phoneNum);
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
isNull(obj) {
|
||||
if (lodash.isNil(obj) || lodash.trim(obj) == '') {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user