

240216 임재현 도메인진단규칙 검색조건&페이징 문제 수정
@95187886ba5cf9a98efd7dda65c0ec80431580de
--- client/views/pages/rule/DomainRuleManagement.vue
+++ client/views/pages/rule/DomainRuleManagement.vue
... | ... | @@ -36,7 +36,7 @@ |
36 | 36 |
<td> |
37 | 37 |
<select |
38 | 38 |
class="square-select" |
39 |
- v-model="valRuleSearch.val_rule_type" |
|
39 |
+ v-model="previousValRuleData.val_rule_type" |
|
40 | 40 |
style="width: 100%" |
41 | 41 |
@change="updateSearchButton()" |
42 | 42 |
> |
... | ... | @@ -54,13 +54,13 @@ |
54 | 54 |
<td style="position: relative"> |
55 | 55 |
<input |
56 | 56 |
type="text" |
57 |
- v-model="valRuleSearch.val_rule_nm" |
|
57 |
+ v-model="previousValRuleData.val_rule_nm" |
|
58 | 58 |
class="square-input" |
59 | 59 |
style="width: 100%; margin-left: auto" |
60 | 60 |
/> |
61 | 61 |
<button |
62 | 62 |
style="position: absolute" |
63 |
- @click="selectValRule" |
|
63 |
+ @click="setPage(2)" |
|
64 | 64 |
class="square-button" |
65 | 65 |
> |
66 | 66 |
<svg-icon |
... | ... | @@ -136,7 +136,7 @@ |
136 | 136 |
name="" |
137 | 137 |
id="" |
138 | 138 |
class="square-select" |
139 |
- v-model="cmListSearch.code_type" |
|
139 |
+ v-model="previousCmData.code_type" |
|
140 | 140 |
@change="updateSearchButton()" |
141 | 141 |
> |
142 | 142 |
<option :value="null">선택</option> |
... | ... | @@ -149,12 +149,12 @@ |
149 | 149 |
<input |
150 | 150 |
type="text" |
151 | 151 |
class="square-input" |
152 |
- v-model="cmListSearch.code_nm" |
|
152 |
+ v-model="previousCmData.code_nm" |
|
153 | 153 |
style="width: 100%; margin-left: auto" |
154 | 154 |
/> |
155 | 155 |
<button |
156 | 156 |
style="position: absolute" |
157 |
- @click="selectCodeList" |
|
157 |
+ @click="setPage(3)" |
|
158 | 158 |
class="square-button" |
159 | 159 |
> |
160 | 160 |
<svg-icon |
... | ... | @@ -323,7 +323,7 @@ |
323 | 323 |
</tr> |
324 | 324 |
</tbody> |
325 | 325 |
</table> |
326 |
- <button class="blue-btn small-btn" @click="setPage()">검색</button> |
|
326 |
+ <button class="blue-btn small-btn" @click="setPage(1)">검색</button> |
|
327 | 327 |
</div> |
328 | 328 |
</div> |
329 | 329 |
<div class="content-titleZone"> |
... | ... | @@ -464,6 +464,18 @@ |
464 | 464 |
table_nm: null, |
465 | 465 |
column_nm: null, |
466 | 466 |
}, |
467 |
+ |
|
468 |
+ previousDomainData: { |
|
469 |
+ currentPage: 1, |
|
470 |
+ perPage: 15, |
|
471 |
+ user_id: $cookies.get("USER_ID"), |
|
472 |
+ dbmsType: "all", |
|
473 |
+ searchText: null, |
|
474 |
+ dbms_name: null, |
|
475 |
+ schema_name: null, |
|
476 |
+ table_nm: null, |
|
477 |
+ column_nm: null, |
|
478 |
+ }, |
|
467 | 479 |
// update할 도메인 진단 규칙 |
468 | 480 |
checkedDomain: [], |
469 | 481 |
domainUpdate: { |
... | ... | @@ -490,10 +502,29 @@ |
490 | 502 |
user_id: $cookies.get("USER_ID"), |
491 | 503 |
}, |
492 | 504 |
|
505 |
+ previousValRuleData: { |
|
506 |
+ dqi_nm: "전체", |
|
507 |
+ val_rule_type: "전체", |
|
508 |
+ val_rule_nm: null, |
|
509 |
+ currentPage: 1, |
|
510 |
+ perPage: 10, |
|
511 |
+ user_id: $cookies.get("USER_ID"), |
|
512 |
+ }, |
|
513 |
+ |
|
493 | 514 |
// select한 코드 |
494 | 515 |
codeList: [], |
495 | 516 |
codeListCount: 0, |
517 |
+ |
|
496 | 518 |
cmListSearch: { |
519 |
+ dbms_id: null, |
|
520 |
+ code_type: null, |
|
521 |
+ code_nm: null, |
|
522 |
+ currentPage: 1, |
|
523 |
+ perPage: 10, |
|
524 |
+ user_id: $cookies.get("USER_ID"), |
|
525 |
+ }, |
|
526 |
+ |
|
527 |
+ previousCmData: { |
|
497 | 528 |
dbms_id: null, |
498 | 529 |
code_type: null, |
499 | 530 |
code_nm: null, |
... | ... | @@ -684,8 +715,6 @@ |
684 | 715 |
if (vm.searchButton) { |
685 | 716 |
vm.domainSearch.currentPage = 1; |
686 | 717 |
} |
687 |
- vm.domainSearch.dbms_name = vm.selectDbms.dbms_name; |
|
688 |
- vm.domainSearch.schema_name = vm.selectSchema.schema_name; |
|
689 | 718 |
axios({ |
690 | 719 |
url: "selectDomainRule.json", |
691 | 720 |
method: "post", |
... | ... | @@ -815,26 +844,33 @@ |
815 | 844 |
}, |
816 | 845 |
|
817 | 846 |
//예외 처리 및 검색 버튼 누를시 페이지 1로 초기화 |
818 |
- setPage: function () { |
|
847 |
+ setPage: function (menu) { |
|
819 | 848 |
if (this.$checkLogin() == true) { |
820 | 849 |
return; |
821 | 850 |
} |
822 |
- if (this.searchButton) { |
|
823 |
- this.domainSearch.currentPage = 1; |
|
851 |
+ switch (menu) { |
|
852 |
+ case 1: |
|
853 |
+ if (this.selectDbms === "") { |
|
854 |
+ this.$showAlert("deny", "DBMS를 선택해주세요."); |
|
855 |
+ break; |
|
856 |
+ } |
|
857 |
+ if (this.selectSchema === "") { |
|
858 |
+ this.$showAlert("deny", "스키마를 선택해주세요."); |
|
859 |
+ break; |
|
860 |
+ } |
|
861 |
+ this.domainSearch.dbms_name = this.selectDbms.dbms_name; |
|
862 |
+ this.domainSearch.schema_name = this.selectSchema.schema_name; |
|
863 |
+ |
|
864 |
+ this.checkedDomain = []; |
|
865 |
+ this.selectDomainRule(); |
|
866 |
+ break; |
|
867 |
+ case 2: |
|
868 |
+ this.valRuleSearch = { ...this.previousValRuleData }; |
|
869 |
+ this.selectValRule(); |
|
870 |
+ case 3: |
|
871 |
+ this.cmListSearch = { ...this.previousCmData }; |
|
872 |
+ this.selectCodeList(); |
|
824 | 873 |
} |
825 |
- if (this.$checkLogin() == true) { |
|
826 |
- return; |
|
827 |
- } |
|
828 |
- if (this.selectDbms === "") { |
|
829 |
- this.$showAlert("deny", "DBMS를 선택해주세요."); |
|
830 |
- return; |
|
831 |
- } |
|
832 |
- if (this.selectSchema === "") { |
|
833 |
- this.$showAlert("deny", "스키마를 선택해주세요."); |
|
834 |
- return; |
|
835 |
- } |
|
836 |
- this.checkedDomain = []; |
|
837 |
- this.selectDomainRule(); |
|
838 | 874 |
}, |
839 | 875 |
|
840 | 876 |
//페이지네이션 클릭 이벤트 |
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?