init dev-push code ui base design
This commit is contained in:
@ -76,9 +76,9 @@ export default {
|
||||
},
|
||||
data: () => ({
|
||||
valid: true,
|
||||
userId: 'test',
|
||||
userPw: '1234',
|
||||
userComId: 'SKCC',
|
||||
userId: '',
|
||||
userPw: '',
|
||||
userComId: '',
|
||||
alertItem: {},
|
||||
comIdHidden: true,
|
||||
}),
|
||||
@ -113,38 +113,38 @@ export default {
|
||||
this.$refs.userComId.focus();
|
||||
},
|
||||
async mberCheck() {
|
||||
if (this.userId == '') {
|
||||
// alert("사용자 아이디는 필수항목입니다.");
|
||||
this.alertItem = {
|
||||
label: '경고',
|
||||
message: '사용자 아이디를 입력해주세요',
|
||||
};
|
||||
this.$refs['alertPop'].dialog = true;
|
||||
this.focusId();
|
||||
return;
|
||||
}
|
||||
// if (this.userId == '') {
|
||||
// // alert("사용자 아이디는 필수항목입니다.");
|
||||
// this.alertItem = {
|
||||
// label: '경고',
|
||||
// message: '사용자 아이디를 입력해주세요',
|
||||
// };
|
||||
// this.$refs['alertPop'].dialog = true;
|
||||
// this.focusId();
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (this.userPw == '') {
|
||||
// alert("비밀번호는 필수항목입니다.");
|
||||
this.alertItem = {
|
||||
label: '경고',
|
||||
message: '비밀번호를 입력해주세요',
|
||||
};
|
||||
this.$refs['alertPop'].dialog = true;
|
||||
this.focusPw();
|
||||
return;
|
||||
}
|
||||
// if (this.userPw == '') {
|
||||
// // alert("비밀번호는 필수항목입니다.");
|
||||
// this.alertItem = {
|
||||
// label: '경고',
|
||||
// message: '비밀번호를 입력해주세요',
|
||||
// };
|
||||
// this.$refs['alertPop'].dialog = true;
|
||||
// this.focusPw();
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (this.userComId == '') {
|
||||
// alert("회사코드는 필수항목입니다.");
|
||||
this.alertItem = {
|
||||
label: '경고',
|
||||
message: '회사코드를 입력해주세요',
|
||||
};
|
||||
this.$refs['alertPop'].dialog = true;
|
||||
this.focusComId();
|
||||
return;
|
||||
}
|
||||
// if (this.userComId == '') {
|
||||
// // alert("회사코드는 필수항목입니다.");
|
||||
// this.alertItem = {
|
||||
// label: '경고',
|
||||
// message: '회사코드를 입력해주세요',
|
||||
// };
|
||||
// this.$refs['alertPop'].dialog = true;
|
||||
// this.focusComId();
|
||||
// return;
|
||||
// }
|
||||
await this.loginChk();
|
||||
},
|
||||
async loginChk() {
|
||||
@ -156,25 +156,15 @@ export default {
|
||||
userId: this.userId,
|
||||
userPswd: this.userPw,
|
||||
};
|
||||
console.log('asdasd' + JSON.stringify( DOMAIN) + params)
|
||||
const res = await this.$axios.post(DOMAIN + apiUrl, { params: params });
|
||||
if (res.data.retnCd === -9001) {
|
||||
alert(res.data.retnMsg);
|
||||
return {};
|
||||
} else {
|
||||
const femsSessionCookie = res.data.dataset.FEMS_SESSION;
|
||||
const femsSessionCookie = 3434;
|
||||
const FEMS_SESSION = femsSessionCookie;
|
||||
|
||||
$cookie.set('FEMS_SESSION', FEMS_SESSION);
|
||||
this.setUserInfo(res.data.dataset.userInfo);
|
||||
|
||||
console.log('FEMS_SESSION', FEMS_SESSION);
|
||||
console.log('$cookie.get', $cookie.get('FEMS_SESSION'));
|
||||
console.log('userInfo', JSON.stringify(res.data.dataset.userInfo));
|
||||
|
||||
// alert("임시로 로그인 처리 되었습니다. dashboard 페이지로 이동합니다.");
|
||||
this.$router.push({ path: this.myHome.root });
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user