
240201 김준식 버튼클릭시 쿠키 존재 유무 판단하여 없을 시 로그인창으로 페이지 이동 (코드관리, 도메인 진단 규칙 관리, 데이터 규칙 관리, 업무규칙 관리, 스케줄 실행 결과 조회, 진단상세결과현황, 품질진단종합현황, 회원정보수정)
@1d64e1c4ca055683143373e2424b620d2c3b9cbb
--- client/views/common/commonPlugin.js
+++ client/views/common/commonPlugin.js
... | ... | @@ -37,9 +37,10 @@ |
37 | 37 |
|
38 | 38 |
// 로그인 확인(쿠키가 만료된 후에 이벤트가 발생하면 로그인 창으로 이동) |
39 | 39 |
Vue.config.globalProperties.$checkLogin = function () { |
40 |
- if ($cookies.get('USER_ID') == null && $cookies.get('USER') == null && $cookies.get('JSESSIONID') == null ) { |
|
41 |
- this.$showAlert('로그아웃', '세션이 만료되어 자동 로그아웃 되었습니다.') |
|
40 |
+ if ($cookies.get('USER_ID') == null && $cookies.get('USER') == null && $cookies.get('JSESSIONID') == null) { |
|
42 | 41 |
this.$router.push('/'); |
42 |
+ this.$router.go(); |
|
43 |
+ return true; |
|
43 | 44 |
} |
44 | 45 |
} |
45 | 46 |
} |
--- client/views/pages/dbManagement/ColumnManagement.vue
+++ client/views/pages/dbManagement/ColumnManagement.vue
... | ... | @@ -373,6 +373,9 @@ |
373 | 373 |
methods: { |
374 | 374 |
selectDbms: function () { |
375 | 375 |
const vm = this; |
376 |
+ if (vm.$checkLogin() == true) { |
|
377 |
+ return; |
|
378 |
+ } |
|
376 | 379 |
axios({ |
377 | 380 |
url: "selectDbms.json", |
378 | 381 |
method: "post", |
... | ... | @@ -461,7 +464,9 @@ |
461 | 464 |
// 컬럼 분석 |
462 | 465 |
analyzeColumn: function () { |
463 | 466 |
const vm = this; |
464 |
- |
|
467 |
+ if (vm.$checkLogin() == true) { |
|
468 |
+ return; |
|
469 |
+ } |
|
465 | 470 |
const selectedResult = vm.searchResultList.find( |
466 | 471 |
(result, index) => vm.checkboxList[index] |
467 | 472 |
); |
... | ... | @@ -680,6 +685,9 @@ |
680 | 685 |
}, |
681 | 686 |
|
682 | 687 |
setPage: function () { |
688 |
+ if (this.$checkLogin() == true) { |
|
689 |
+ return; |
|
690 |
+ } |
|
683 | 691 |
if (this.searchResultData.dbms_name === "none") { |
684 | 692 |
this.$showAlert("deny", "DBMS를 선택해주세요."); |
685 | 693 |
return; |
--- client/views/pages/login/Login.vue
+++ client/views/pages/login/Login.vue
... | ... | @@ -116,6 +116,10 @@ |
116 | 116 |
if (vueCookie.get('JSESSIONID') != null) { |
117 | 117 |
this.$router.push({ path: '/main.page', query: {} }); |
118 | 118 |
} |
119 |
+ |
|
120 |
+ window.onpopstate = function () { |
|
121 |
+ history.go(1); |
|
122 |
+ } |
|
119 | 123 |
}, |
120 | 124 |
}; |
121 | 125 |
</script> |
--- client/views/pages/mypage/MyPage.vue
+++ client/views/pages/mypage/MyPage.vue
... | ... | @@ -41,6 +41,9 @@ |
41 | 41 |
methods: { |
42 | 42 |
updateInfo() { |
43 | 43 |
const vm = this; |
44 |
+ if (vm.$checkLogin() == true) { |
|
45 |
+ return; |
|
46 |
+ } |
|
44 | 47 |
/* |
45 | 48 |
if (vm.strongPassword(vm.update_pwd) == false) { |
46 | 49 |
vm.$showAlert('error', '비밀번호 입력시 최소 8글자 이상이면서, 알파벳과 숫자 및 특수문자(@$!%*#?&)를 하나 이상 입력해주시기 바랍니다.'); |
... | ... | @@ -99,6 +102,9 @@ |
99 | 102 |
// 사용자 이메일 |
100 | 103 |
getUserEmail() { |
101 | 104 |
const vm = this; |
105 |
+ if (vm.$checkLogin() == true) { |
|
106 |
+ return; |
|
107 |
+ } |
|
102 | 108 |
axios({ |
103 | 109 |
url: '/getUserEmail.json', |
104 | 110 |
method: 'post', |
--- client/views/pages/result/ExecRuleResult.vue
+++ client/views/pages/result/ExecRuleResult.vue
... | ... | @@ -254,6 +254,9 @@ |
254 | 254 |
*/ |
255 | 255 |
selectExecResult: function () { |
256 | 256 |
const vm = this; |
257 |
+ if (vm.$checkLogin() == true) { |
|
258 |
+ return; |
|
259 |
+ } |
|
257 | 260 |
axios({ |
258 | 261 |
url: "selectExecResult.json", |
259 | 262 |
method: "post", |
... | ... | @@ -279,6 +282,9 @@ |
279 | 282 |
*/ |
280 | 283 |
selectDbms: function () { |
281 | 284 |
const vm = this; |
285 |
+ if (vm.$checkLogin() == true) { |
|
286 |
+ return; |
|
287 |
+ } |
|
282 | 288 |
axios({ |
283 | 289 |
url: "selectDbms.json", |
284 | 290 |
method: "post", |
--- client/views/pages/result/TotalRuleResult.vue
+++ client/views/pages/result/TotalRuleResult.vue
... | ... | @@ -143,6 +143,9 @@ |
143 | 143 |
*/ |
144 | 144 |
selectTotalResult: function () { |
145 | 145 |
const vm = this; |
146 |
+ if (vm.$checkLogin() == true) { |
|
147 |
+ return; |
|
148 |
+ } |
|
146 | 149 |
axios({ |
147 | 150 |
url: 'selectTotalResult.json', |
148 | 151 |
method: 'post', |
... | ... | @@ -167,6 +170,9 @@ |
167 | 170 |
*/ |
168 | 171 |
selectDbms: function () { |
169 | 172 |
const vm = this; |
173 |
+ if (vm.$checkLogin() == true) { |
|
174 |
+ return; |
|
175 |
+ } |
|
170 | 176 |
axios({ |
171 | 177 |
url: 'selectDbms.json', |
172 | 178 |
method: 'post', |
--- client/views/pages/rule/CodeList.vue
+++ client/views/pages/rule/CodeList.vue
... | ... | @@ -250,6 +250,12 @@ |
250 | 250 |
// 코드 관리 등록 |
251 | 251 |
register() { |
252 | 252 |
const vm = this; |
253 |
+ if (vm.$checkLogin() == true) { |
|
254 |
+ return; |
|
255 |
+ } |
|
256 |
+ if (vm.$checkLogin() == true) { |
|
257 |
+ return; |
|
258 |
+ } |
|
253 | 259 |
let result = vm.inputCheck(); |
254 | 260 |
if (result == 0) return; |
255 | 261 |
vm.menu = 1; |
... | ... | @@ -275,6 +281,9 @@ |
275 | 281 |
// 코드 관리 수정 |
276 | 282 |
update() { |
277 | 283 |
const vm = this; |
284 |
+ if (vm.$checkLogin() == true) { |
|
285 |
+ return; |
|
286 |
+ } |
|
278 | 287 |
// 입력값 확인 |
279 | 288 |
const result = vm.inputCheck(); |
280 | 289 |
if (result == 0) return; |
... | ... | @@ -288,6 +297,9 @@ |
288 | 297 |
// 체크 박스 선택한 행을 삭제 |
289 | 298 |
selectCodeDelete() { |
290 | 299 |
const vm = this; |
300 |
+ if (vm.$checkLogin() == true) { |
|
301 |
+ return; |
|
302 |
+ } |
|
291 | 303 |
console.log('checkBox', vm.selectedItems); |
292 | 304 |
if (vm.selectedItems.length === 0) { |
293 | 305 |
vm.$showAlert('알림', '삭제할 항목을 선택하시기 바랍니다.'); |
... | ... | @@ -316,6 +328,9 @@ |
316 | 328 |
// 초기화 |
317 | 329 |
reset() { |
318 | 330 |
const vm = this; |
331 |
+ if (vm.$checkLogin() == true) { |
|
332 |
+ return; |
|
333 |
+ } |
|
319 | 334 |
vm.code = { |
320 | 335 |
cr_code_id: null, |
321 | 336 |
cr_code_type: null, |
... | ... | @@ -359,6 +374,9 @@ |
359 | 374 |
// 진단대상DBMS 선택 항목 값들을 불러옴 |
360 | 375 |
getOptionValue() { |
361 | 376 |
const vm = this; |
377 |
+ if (vm.$checkLogin() == true) { |
|
378 |
+ return; |
|
379 |
+ } |
|
362 | 380 |
let Data = { |
363 | 381 |
user_id: $cookies.get('USER_ID'), |
364 | 382 |
}; |
... | ... | @@ -383,7 +401,9 @@ |
383 | 401 |
// 코드 관리 데이터들을 조회 |
384 | 402 |
allSelectCode() { |
385 | 403 |
const vm = this; |
386 |
- vm.$checkLogin(); |
|
404 |
+ if (vm.$checkLogin() == true) { |
|
405 |
+ return; |
|
406 |
+ } |
|
387 | 407 |
axios({ |
388 | 408 |
url: '/selectCodeList.json', |
389 | 409 |
method: 'post', |
... | ... | @@ -517,7 +537,6 @@ |
517 | 537 |
vm.checkBoxIndex = []; |
518 | 538 |
vm.modalContents = '모든 항목을 삭제하였습니다.'; |
519 | 539 |
vm.menu = 0; |
520 |
- // vm.getOptionValue(); |
|
521 | 540 |
} else { |
522 | 541 |
vm.modalContents = '모든 항목을 삭제하는데 실패하였습니다.'; |
523 | 542 |
vm.menu = -1; |
... | ... | @@ -557,6 +576,9 @@ |
557 | 576 |
}, |
558 | 577 |
watch: { |
559 | 578 |
'cmListSearch.currentPage': function () { |
579 |
+ if (vm.$checkLogin() == true) { |
|
580 |
+ return; |
|
581 |
+ } |
|
560 | 582 |
this.allSelectCode(); |
561 | 583 |
this.resetCheckBoxState(); |
562 | 584 |
}, |
--- client/views/pages/rule/DomainRuleList.vue
+++ client/views/pages/rule/DomainRuleList.vue
... | ... | @@ -414,6 +414,9 @@ |
414 | 414 |
this.activeTab = tabName; |
415 | 415 |
}, |
416 | 416 |
openModal: function (index) { |
417 |
+ if (vm.$checkLogin() == true) { |
|
418 |
+ return; |
|
419 |
+ } |
|
417 | 420 |
this.isModalOpen = true; |
418 | 421 |
this.selectedDomain = index; |
419 | 422 |
}, |
... | ... | @@ -467,6 +470,9 @@ |
467 | 470 |
}, |
468 | 471 |
// 진단규칙 일괄적용 |
469 | 472 |
inputAllDomainRule: function () { |
473 |
+ if (vm.$checkLogin() == true) { |
|
474 |
+ return; |
|
475 |
+ } |
|
470 | 476 |
for (let i = 0; i < this.domainList.length; i++) { |
471 | 477 |
if (this.checkedDomain[i] == true) { |
472 | 478 |
this.domainList[i].val_rule_id = this.selectedAllDomain.val_rule_id; |
... | ... | @@ -478,6 +484,9 @@ |
478 | 484 |
}, |
479 | 485 |
// 진단 규칙 초기화 |
480 | 486 |
deleteDomainRule() { |
487 |
+ if (vm.$checkLogin() == true) { |
|
488 |
+ return; |
|
489 |
+ } |
|
481 | 490 |
for (let i = 0; i < this.domainList.length; i++) { |
482 | 491 |
if (this.checkedDomain[i] == true) { |
483 | 492 |
this.domainList[i].val_rule_id = null; |
... | ... | @@ -489,6 +498,9 @@ |
489 | 498 |
}, |
490 | 499 |
// 진단 규칙 선택 항목 저장 |
491 | 500 |
saveDomainRule() { |
501 |
+ if (vm.$checkLogin() == true) { |
|
502 |
+ return; |
|
503 |
+ } |
|
492 | 504 |
for (let i = 0; i < this.domainList.length; i++) { |
493 | 505 |
if (this.checkedDomain[i] == true) { |
494 | 506 |
this.domainUpdate = { |
... | ... | @@ -526,6 +538,9 @@ |
526 | 538 |
// 도메인 진단 규칙 select |
527 | 539 |
selectDomainRule: function () { |
528 | 540 |
const vm = this; |
541 |
+ if (vm.$checkLogin() == true) { |
|
542 |
+ return; |
|
543 |
+ } |
|
529 | 544 |
vm.domainSearch.dbms_name = vm.selectDbms.dbms_name; |
530 | 545 |
vm.domainSearch.schema_name = vm.selectSchema.schema_name; |
531 | 546 |
axios({ |
... | ... | @@ -548,6 +563,9 @@ |
548 | 563 |
// 진단 규칙 select |
549 | 564 |
selectValRule: function () { |
550 | 565 |
const vm = this; |
566 |
+ if (vm.$checkLogin() == true) { |
|
567 |
+ return; |
|
568 |
+ } |
|
551 | 569 |
axios({ |
552 | 570 |
url: 'selectValRule.json', |
553 | 571 |
method: 'post', |
... | ... | @@ -568,6 +586,9 @@ |
568 | 586 |
// 검증 유형 select |
569 | 587 |
selectDqiType: function () { |
570 | 588 |
const vm = this; |
589 |
+ if (vm.$checkLogin() == true) { |
|
590 |
+ return; |
|
591 |
+ } |
|
571 | 592 |
axios({ |
572 | 593 |
url: 'selectDqiType.json', |
573 | 594 |
method: 'post', |
... | ... | @@ -587,6 +608,9 @@ |
587 | 608 |
// 코드 select |
588 | 609 |
selectCodeList: function () { |
589 | 610 |
const vm = this; |
611 |
+ if (vm.$checkLogin() == true) { |
|
612 |
+ return; |
|
613 |
+ } |
|
590 | 614 |
axios({ |
591 | 615 |
url: '/selectCodeList.json', |
592 | 616 |
method: 'post', |
... | ... | @@ -606,6 +630,9 @@ |
606 | 630 |
// 검색 - DBMS명 조회 |
607 | 631 |
selectDbName() { |
608 | 632 |
const vm = this; |
633 |
+ if (vm.$checkLogin() == true) { |
|
634 |
+ return; |
|
635 |
+ } |
|
609 | 636 |
axios({ |
610 | 637 |
url: '/selectDbmsName.json', |
611 | 638 |
method: 'post', |
... | ... | @@ -645,6 +672,9 @@ |
645 | 672 |
|
646 | 673 |
watch: { |
647 | 674 |
'domainSearch.currentPage': function () { |
675 |
+ if (vm.$checkLogin() == true) { |
|
676 |
+ return; |
|
677 |
+ } |
|
648 | 678 |
this.selectDomainRule(); |
649 | 679 |
}, |
650 | 680 |
'valRuleSerach.currentPage': function () { |
--- client/views/pages/rule/WorkRuleManagement.vue
+++ client/views/pages/rule/WorkRuleManagement.vue
... | ... | @@ -513,6 +513,9 @@ |
513 | 513 |
// 업무규칙 등록 |
514 | 514 |
register() { |
515 | 515 |
const vm = this; |
516 |
+ if (vm.$checkLogin() == true) { |
|
517 |
+ return; |
|
518 |
+ } |
|
516 | 519 |
let result = vm.inputCheck(); |
517 | 520 |
if (result == 0) return; |
518 | 521 |
|
... | ... | @@ -526,6 +529,9 @@ |
526 | 529 |
// 업무규칙 수정 |
527 | 530 |
update() { |
528 | 531 |
const vm = this; |
532 |
+ if (vm.$checkLogin() == true) { |
|
533 |
+ return; |
|
534 |
+ } |
|
529 | 535 |
vm.inputCheck(); |
530 | 536 |
vm.menu = 2; |
531 | 537 |
vm.modalTitle = '수정'; |
... | ... | @@ -536,6 +542,9 @@ |
536 | 542 |
// 업무규칙 삭제 |
537 | 543 |
selectWRDelete() { |
538 | 544 |
const vm = this; |
545 |
+ if (vm.$checkLogin() == true) { |
|
546 |
+ return; |
|
547 |
+ } |
|
539 | 548 |
if (vm.selectedItems.length == 0) { |
540 | 549 |
vm.menu = 0; |
541 | 550 |
vm.$showAlert('알림', '삭제하실 목록을 체크하여 주시기 바랍니다.'); |
... | ... | @@ -578,6 +587,9 @@ |
578 | 587 |
// 초기화 |
579 | 588 |
reset() { |
580 | 589 |
const vm = this; |
590 |
+ if (vm.$checkLogin() == true) { |
|
591 |
+ return; |
|
592 |
+ } |
|
581 | 593 |
vm.wrManagement = { |
582 | 594 |
work_rule_id: null, // work_rule_id |
583 | 595 |
work_rule_nm: null, // 업무규칙명 |
... | ... | @@ -607,7 +619,9 @@ |
607 | 619 |
// dbms명 목록 불러오기 |
608 | 620 |
getDbmsList() { |
609 | 621 |
const vm = this; |
610 |
- |
|
622 |
+ if (vm.$checkLogin() == true) { |
|
623 |
+ return; |
|
624 |
+ } |
|
611 | 625 |
axios({ |
612 | 626 |
url: '/getDbmsList.json', |
613 | 627 |
method: 'post', |
... | ... | @@ -771,7 +785,9 @@ |
771 | 785 |
// 저장된 목록들 조회 |
772 | 786 |
allWorkRuleList() { |
773 | 787 |
const vm = this; |
774 |
- |
|
788 |
+ if (vm.$checkLogin() == true) { |
|
789 |
+ return; |
|
790 |
+ } |
|
775 | 791 |
axios({ |
776 | 792 |
url: '/allWorkRuleList.json', |
777 | 793 |
method: 'post', |
--- client/views/pages/rule/refRuleManagement.vue
+++ client/views/pages/rule/refRuleManagement.vue
... | ... | @@ -479,6 +479,9 @@ |
479 | 479 |
// 참조무결성 삭제 |
480 | 480 |
deleteRef() { |
481 | 481 |
const vm = this; |
482 |
+ if (vm.$checkLogin() == true) { |
|
483 |
+ return; |
|
484 |
+ } |
|
482 | 485 |
if (vm.selectedItems.length == 0) { |
483 | 486 |
vm.$showAlert('알림', '삭제할 관계컬럼을 선택해주세요.'); |
484 | 487 |
return; |
... | ... | @@ -539,6 +542,9 @@ |
539 | 542 |
// 참조무결성 추가 버튼을 클릭했을 경우 |
540 | 543 |
goAddRef() { |
541 | 544 |
const vm = this; |
545 |
+ if (vm.$checkLogin() == true) { |
|
546 |
+ return; |
|
547 |
+ } |
|
542 | 548 |
vm.parentDbmsName = null; // 참조무결성 상세정보 dbms명 |
543 | 549 |
vm.parentSchemaName = null; // 참조무결성 상세정보 스키마명 |
544 | 550 |
vm.parentTableName = null; // 참조무결성 상세정보 테이블명 |
... | ... | @@ -554,7 +560,9 @@ |
554 | 560 |
// 검색조건에 필요한 DBMS명을 가져옴 |
555 | 561 |
getDbmsList() { |
556 | 562 |
const vm = this; |
557 |
- |
|
563 |
+ if (vm.$checkLogin() == true) { |
|
564 |
+ return; |
|
565 |
+ } |
|
558 | 566 |
axios({ |
559 | 567 |
url: '/getDbmsNameList.json', |
560 | 568 |
method: 'post', |
... | ... | @@ -604,6 +612,9 @@ |
604 | 612 |
// 검색 버튼을 클릭하였을 경우 |
605 | 613 |
search() { |
606 | 614 |
const vm = this; |
615 |
+ if (vm.$checkLogin() == true) { |
|
616 |
+ return; |
|
617 |
+ } |
|
607 | 618 |
vm.selected_index = 0; |
608 | 619 |
vm.parentDbmsName = null; // 참조무결성 상세정보 dbms명 |
609 | 620 |
vm.parentSchemaName = null; // 참조무결성 상세정보 스키마명 |
... | ... | @@ -676,6 +687,9 @@ |
676 | 687 |
// 이전 페이지로 돌아가기 |
677 | 688 |
back() { |
678 | 689 |
const vm = this; |
690 |
+ if (vm.$checkLogin() == true) { |
|
691 |
+ return; |
|
692 |
+ } |
|
679 | 693 |
vm.searchTableData.table_name = null; |
680 | 694 |
vm.parentColumnList = []; |
681 | 695 |
vm.searchList = []; |
... | ... | @@ -790,6 +804,9 @@ |
790 | 804 |
// 참조 무결성 등록을 클릭하였을 경우 |
791 | 805 |
registerRef() { |
792 | 806 |
const vm = this; |
807 |
+ if (vm.$checkLogin() == true) { |
|
808 |
+ return; |
|
809 |
+ } |
|
793 | 810 |
if (vm.parentNumList.length == 0 || vm.childNumList.length == 0) { |
794 | 811 |
vm.parentNumList = []; |
795 | 812 |
vm.childNumList = []; |
--- client/views/pages/schedule/ScheduleManagement.vue
+++ client/views/pages/schedule/ScheduleManagement.vue
... | ... | @@ -237,6 +237,9 @@ |
237 | 237 |
* 시간 : 2024.01.26 |
238 | 238 |
*/ |
239 | 239 |
selectScheduleManager: function () { |
240 |
+ if (vm.$checkLogin() == true) { |
|
241 |
+ return; |
|
242 |
+ } |
|
240 | 243 |
console.log('searchData : ', this.searchData); |
241 | 244 |
const vm = this; |
242 | 245 |
axios({ |
... | ... | @@ -290,6 +293,9 @@ |
290 | 293 |
*/ |
291 | 294 |
deleteSchedule: function () { |
292 | 295 |
const vm = this; |
296 |
+ if (vm.$checkLogin() == true) { |
|
297 |
+ return; |
|
298 |
+ } |
|
293 | 299 |
let pureArray = this.toPureArray(vm.selectedScheduleId); |
294 | 300 |
axios({ |
295 | 301 |
url: 'deleteSchedule.json', |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?