mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 19:25:44 +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;
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<tr>
|
||||
<th>제출서류</th>
|
||||
<td class="sender">
|
||||
<p v-for="(item, idx) in docList" v-if="item.docTpCd !== '06'">{{ item.docTitle }}</p>
|
||||
<a v-for="(item, idx) in docList" v-if="item.docTpCd !== '06'">{{ item.docTitle }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -471,15 +471,19 @@ export default {
|
||||
sendNm: this.sendNm,
|
||||
sendNum: this.sendNum
|
||||
})
|
||||
|
||||
|
||||
// 등록할 발신 번호
|
||||
if (this.numberInputs.length > 0) {
|
||||
this.numberInputs.forEach(element =>
|
||||
for(var i=0; i<this.numberInputs.length; i++){
|
||||
if(this.numberInputs[i].sendNm !== '' && this.numberInputs[i].sendNum !== ''){
|
||||
this.saveSendNums.push({
|
||||
sendNm: element.sendNm,
|
||||
sendNum: element.sendNum
|
||||
sendNm: this.numberInputs[i].sendNm,
|
||||
sendNum: this.numberInputs[i].sendNum
|
||||
})
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.doValidate()) {
|
||||
if (this.bizrAuthYn !== 'Y') {
|
||||
if (this.nmineeDivCd === '01') {
|
||||
|
||||
@@ -71,10 +71,12 @@ const router = new Router({
|
||||
router.beforeEach((to, from, next) => {
|
||||
const isPublic = to.matched.some(record => record.meta.public);
|
||||
const loggedIn = !!tokenSvc.getToken();
|
||||
|
||||
if (!isPublic && !loggedIn) {
|
||||
return next('/login');
|
||||
}else{
|
||||
var nextUrl = to.fullPath;
|
||||
var fromUrl = from.fullPath;
|
||||
if(nextUrl == '/'){
|
||||
console.log(store.getters);
|
||||
const rootUrl = store.getters['login/getRootUrl'];
|
||||
@@ -82,7 +84,12 @@ router.beforeEach((to, from, next) => {
|
||||
return next('/login');
|
||||
}
|
||||
return next(rootUrl);
|
||||
}
|
||||
}else if(nextUrl == '/view/login/auth'){
|
||||
if(fromUrl != '/login'){
|
||||
return next('/login');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
to.matched.some(record => {
|
||||
|
||||
Reference in New Issue
Block a user