
250428 하석형 API 오류 발생 시 사유 확인 가능 문구로 변경, 기타 안내 문구 변경
@4800d9fbc6f6797fc566548a7fd47c00b14e3213
--- client/resources/js/queryParams.js
+++ client/resources/js/queryParams.js
... | ... | @@ -40,9 +40,9 @@ |
40 | 40 |
/** 게시판 pageId 추출 **/ |
41 | 41 |
fnBbsIdExtraction() { |
42 | 42 |
if(this.$route.path != null && this.$route.path != undefined && this.$route.path != '') { |
43 |
- console.log("this.$route.path", this.$route.path) |
|
43 |
+ console.log("this.$route.path: ", this.$route.path); |
|
44 | 44 |
let url = this.$filters.logicalPath(this.$route.path); |
45 |
- console.log("url", url) |
|
45 |
+ console.log("url: ", url); |
|
46 | 46 |
const regex = /^\/[^\/]+\/([^\/]+)\//; // 두 번째 '/'와 세 번째 '/' 사이의 문자열 추출 |
47 | 47 |
const match = url.match(regex); // 라우터 경로와 정규식 매칭 |
48 | 48 |
if(match) { |
--- client/views/component/userInfo/UserAuthorList.vue
+++ client/views/component/userInfo/UserAuthorList.vue
... | ... | @@ -1,7 +1,5 @@ |
1 | 1 |
<template> |
2 |
- |
|
3 |
- |
|
4 |
- <label class="form-title"><span v-if="editMode != 'view'">*</span> 사용자 권한</label> |
|
2 |
+ <label class="form-title"><span v-if="editMode != 'view'">* </span>사용자 권한</label> |
|
5 | 3 |
<div :class="{'form-group':editMode != 'view'}"> |
6 | 4 |
<button v-show="editMode != 'view'" class="btn sm ico-plus-w auth-btn" @click="fnAuthAddModalOpen">권한 추가</button> |
7 | 5 |
<template v-if="mbrVO.authorList != null && mbrVO.authorList != []"> |
... | ... | @@ -128,7 +126,12 @@ |
128 | 126 |
const response = await findAllSystem(params); |
129 | 127 |
this.originalList = response.data.data; |
130 | 128 |
} catch (error) { |
131 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
129 |
+ const errorData = error.response.data; |
|
130 |
+ if (errorData.message != null && errorData.message != "") { |
|
131 |
+ alert(error.response.data.message); |
|
132 |
+ } else { |
|
133 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
134 |
+ } |
|
132 | 135 |
} |
133 | 136 |
}, |
134 | 137 |
// 사용자권한 선택 |
--- client/views/component/userInfo/UserInfoInsert.vue
+++ client/views/component/userInfo/UserInfoInsert.vue
... | ... | @@ -8,270 +8,160 @@ |
8 | 8 |
<p><span>*</span>필수입력</p> |
9 | 9 |
</div> |
10 | 10 |
<div class="form-content"> |
11 |
- <div class="layout"> |
|
12 |
- <label class="form-title"><span>*</span> 아이디</label> |
|
13 |
- <input |
|
14 |
- type="text" |
|
15 |
- class="form-control sm" |
|
16 |
- v-model="mbrVO.lgnId" |
|
17 |
- ref="mbrId" |
|
18 |
- minlength="5" |
|
19 |
- maxlength="50" |
|
20 |
- placeholder="아이디를 입력하세요." |
|
21 |
- :disabled="mbrVO.mbrId != null" |
|
22 |
- /> |
|
11 |
+ <div class="layout"> |
|
12 |
+ <label class="form-title"><span>*</span> 아이디</label> |
|
13 |
+ <input type="text" class="form-control sm" v-model="mbrVO.lgnId" ref="mbrId" minlength="5" maxlength="50" |
|
14 |
+ placeholder="아이디를 입력하세요." :disabled="mbrVO.mbrId != null" /> |
|
15 |
+ </div> |
|
16 |
+ <div class="layout"> |
|
17 |
+ <label class="form-title"><span>*</span> 이름</label> |
|
18 |
+ <input type="text" class="form-control sm" ref="mbrNm" v-model="mbrVO.mbrNm" minlength="2" maxlength="50" |
|
19 |
+ placeholder="이름을 입력하세요." /> |
|
20 |
+ </div> |
|
21 |
+ <div class="layout"> |
|
22 |
+ <label class="form-title"> |
|
23 |
+ <p v-if="pageId == null"><span>*</span> 비밀번호</p> |
|
24 |
+ <p v-else>비밀번호변경</p> |
|
25 |
+ </label> |
|
26 |
+ <div class="form-group"> |
|
27 |
+ <input type="password" class="form-control sm" ref="newPswd" v-model="pswd.newPswd" minlength="9" |
|
28 |
+ placeholder="영문, 숫자, 특수문자 조합 9자 이상" /> |
|
29 |
+ <span :class="{ |
|
30 |
+ 'red-text': pswd.errorPwd, |
|
31 |
+ }"> |
|
32 |
+ 영문, 숫자, 특수문자를 조합하여 입력해주세요. (9자 이상) |
|
33 |
+ </span> |
|
23 | 34 |
</div> |
24 |
- <div class="layout"> |
|
25 |
- <label class="form-title"><span>*</span> 이름</label> |
|
26 |
- <input |
|
27 |
- type="text" |
|
28 |
- class="form-control sm" |
|
29 |
- ref="mbrNm" |
|
30 |
- v-model="mbrVO.mbrNm" |
|
31 |
- minlength="2" |
|
32 |
- maxlength="50" |
|
33 |
- placeholder="이름을 입력하세요." |
|
34 |
- /> |
|
35 |
+ </div> |
|
36 |
+ <div class="layout"> |
|
37 |
+ <label class="form-title"> |
|
38 |
+ <p v-if="pageId == null"><span>*</span> 비밀번호확인</p> |
|
39 |
+ <p v-else>비밀번호변경 확인</p> |
|
40 |
+ </label> |
|
41 |
+ <input type="password" :class="{ 'form-control sm': true, 'error': pswd.pswdChk }" ref="newPswdChk" |
|
42 |
+ v-model="pswd.newPswdChk" minlength="9" :placeholder="pageId == null |
|
43 |
+ ? '비밀번호 확인을 입력하세요.' |
|
44 |
+ : '변경할 비밀번호 확인을 입력하세요' |
|
45 |
+ " /> |
|
46 |
+ </div> |
|
47 |
+ <!-- <template v-if="showOpt.isMblNo || showOpt.isTelNo"> --> |
|
48 |
+ <div v-if="showOpt.isMblNo" class="layout"> |
|
49 |
+ <label class="form-title"><span>*</span> 휴대폰번호</label> |
|
50 |
+ <input type="text" class="form-control sm" ref="mblTelno" v-model="mbrVO.mblTelno" minlength="10" |
|
51 |
+ maxlength="11" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\.*)/g, '');" |
|
52 |
+ placeholder="휴대폰번호를 입력하세요." /> |
|
35 | 53 |
</div> |
36 |
- <div class="layout"> |
|
37 |
- <label class="form-title"> |
|
38 |
- <p v-if="pageId == null"><span>*</span> 비밀번호</p> |
|
39 |
- <p v-else>비밀번호변경</p> |
|
54 |
+ <!-- </template> --> |
|
55 |
+ <div v-if="showOpt.isTelNo" class="layout"> |
|
56 |
+ <label class="form-title">전화번호</label> |
|
57 |
+ <input type="text" class="form-control sm" ref="telno" v-model="mbrVO.telno" |
|
58 |
+ oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\.*)/g, '');" |
|
59 |
+ placeholder="전화번호를 입력해주세요." /> |
|
60 |
+ </div> |
|
61 |
+ <!-- <template v-if="showOpt.isEml || showOpt.isSmsAgree || showOpt.isEmlAgree"> --> |
|
62 |
+ <div v-if="showOpt.isEml" class="layout"> |
|
63 |
+ <label class="form-title"><span>*</span> 이메일</label> |
|
64 |
+ <div class="check-area"> |
|
65 |
+ <input type="text" class="form-control sm" ref="emailId" v-model="email.id" oninput="this.value = |
|
66 |
+ this.value.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/g, '');" placeholder="이메일을 입력하세요." /> |
|
67 |
+ <div>@</div> |
|
68 |
+ <template v-if="email.select == 'self'"> |
|
69 |
+ <input type="text" class="form-control sm" ref="emailAddress" v-model="email.address" /> |
|
70 |
+ </template> |
|
71 |
+ <select class="form-select sm" ref="emailSelect" v-model="email.select"> |
|
72 |
+ <option value="">선택하세요</option> |
|
73 |
+ <option value="self">직접입력</option> |
|
74 |
+ <option value="naver.com">naver.com</option> |
|
75 |
+ <option value="google.com">google.com</option> |
|
76 |
+ <option value="hanmail.net">hanmail.net</option> |
|
77 |
+ <option value="nate.com">nate.com</option> |
|
78 |
+ <option value="kakao.com">kakao.com</option> |
|
79 |
+ </select> |
|
80 |
+ </div> |
|
81 |
+ </div> |
|
82 |
+ <div v-if="showOpt.isSmsAgree" class="layout"> |
|
83 |
+ <label class="form-title"><span>*</span> |
|
84 |
+ 문자수신 |
|
40 | 85 |
</label> |
41 |
- <div class="form-group"> |
|
42 |
- <input |
|
43 |
- type="password" |
|
44 |
- class="form-control sm" |
|
45 |
- ref="newPswd" |
|
46 |
- v-model="pswd.newPswd" |
|
47 |
- minlength="9" |
|
48 |
- placeholder="영문, 숫자, 특수문자 조합 9자 이상" |
|
49 |
- /> |
|
50 |
- <span |
|
51 |
- :class="{ |
|
52 |
- 'red-text': pswd.errorPwd, |
|
53 |
- }" |
|
54 |
- > |
|
55 |
- 영문, 숫자, 특수문자를 조합하여 입력해주세요. (9자 이상) |
|
56 |
- </span> |
|
86 |
+ <div class="check-area"> |
|
87 |
+ <div class="form-check"> |
|
88 |
+ <input type="radio" name="smsRcptnAgreYn" id="smsY" class="mr5" v-model="mbrVO.smsRcptnAgreYn" |
|
89 |
+ value="Y" /> |
|
90 |
+ <label for="smsY">수신</label> |
|
91 |
+ </div> |
|
92 |
+ <div class="form-check"> |
|
93 |
+ <input type="radio" name="smsRcptnAgreYn" id="smsN" class="mr5" v-model="mbrVO.smsRcptnAgreYn" |
|
94 |
+ value="N" /> |
|
95 |
+ <label for="smsN">미수신</label> |
|
96 |
+ </div> |
|
57 | 97 |
</div> |
58 | 98 |
</div> |
59 |
- <div class="layout"> |
|
60 |
- <label class="form-title"> |
|
61 |
- <p v-if="pageId == null"><span>*</span> 비밀번호확인</p> |
|
62 |
- <p v-else>비밀번호변경 확인</p> |
|
99 |
+ <div v-if="showOpt.isEmlAgree" class="layout"> |
|
100 |
+ <label class="form-title"><span>*</span> |
|
101 |
+ 이메일수신 |
|
63 | 102 |
</label> |
64 |
- <input |
|
65 |
- type="password" |
|
66 |
- :class="{ 'form-control sm': true, 'error': pswd.pswdChk }" |
|
67 |
- ref="newPswdChk" |
|
68 |
- v-model="pswd.newPswdChk" |
|
69 |
- minlength="9" |
|
70 |
- :placeholder=" |
|
71 |
- pageId == null |
|
72 |
- ? '비밀번호 확인을 입력하세요.' |
|
73 |
- : '변경할 비밀번호 확인을 입력하세요' |
|
74 |
- " |
|
75 |
- /> |
|
76 |
- </div> |
|
77 |
- <template v-if="showOpt.isMblNo || showOpt.isTelNo"> |
|
78 |
- <div v-if="showOpt.isMblNo" class="layout"> |
|
79 |
- <label class="form-title"><span>*</span> 휴대폰번호</label> |
|
80 |
- <input |
|
81 |
- type="text" |
|
82 |
- class="form-control sm" |
|
83 |
- ref="mblTelno" |
|
84 |
- v-model="mbrVO.mblTelno" |
|
85 |
- minlength="10" |
|
86 |
- maxlength="11" |
|
87 |
- oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\.*)/g, '');" |
|
88 |
- placeholder="휴대폰번호를 입력하세요." |
|
89 |
- /> |
|
90 |
- </div> |
|
91 |
- </template> |
|
92 |
- <div v-if="showOpt.isTelNo" class="layout"> |
|
93 |
- <label class="form-title">전화번호</label> |
|
94 |
- <input |
|
95 |
- type="text" |
|
96 |
- class="form-control sm" |
|
97 |
- ref="telno" |
|
98 |
- v-model="mbrVO.telno" |
|
99 |
- oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\.*)/g, '');" |
|
100 |
- placeholder="전화번호를 입력하세요." |
|
101 |
- /> |
|
102 |
- </div> |
|
103 |
- <template v-if="showOpt.isEml || showOpt.isSmsAgree || showOpt.isEmlAgree"> |
|
104 |
- <div v-if="showOpt.isEml" class="layout"> |
|
105 |
- <label class="form-title"><span>*</span> 이메일</label> |
|
106 |
- <div class="check-area"> |
|
107 |
- <input |
|
108 |
- type="text" |
|
109 |
- class="form-control sm" |
|
110 |
- ref="emailId" |
|
111 |
- v-model="email.id" |
|
112 |
- oninput="this.value = |
|
113 |
- this.value.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/g, '');" |
|
114 |
- placeholder="이메일을 입력하세요." |
|
115 |
- /> |
|
116 |
- <div>@</div> |
|
117 |
- <template v-if="email.select == 'self'"> |
|
118 |
- <input |
|
119 |
- type="text" |
|
120 |
- class="form-control sm" |
|
121 |
- ref="emailAddress" |
|
122 |
- v-model="email.address" |
|
123 |
- /> |
|
124 |
- </template> |
|
125 |
- <select |
|
126 |
- class="form-select sm" |
|
127 |
- ref="emailSelect" |
|
128 |
- v-model="email.select" |
|
129 |
- > |
|
130 |
- <option value="">선택하세요</option> |
|
131 |
- <option value="self">직접입력</option> |
|
132 |
- <option value="naver.com">naver.com</option> |
|
133 |
- <option value="google.com">google.com</option> |
|
134 |
- <option value="hanmail.net">hanmail.net</option> |
|
135 |
- <option value="nate.com">nate.com</option> |
|
136 |
- <option value="kakao.com">kakao.com</option> |
|
137 |
- </select> |
|
103 |
+ <div class="check-area"> |
|
104 |
+ <div class="form-check"> |
|
105 |
+ <input type="radio" name="emlRcptnAgreYn" id="y" class="mr5" v-model="mbrVO.emlRcptnAgreYn" |
|
106 |
+ value="Y" /> |
|
107 |
+ <label for="y">수신</label> |
|
108 |
+ </div> |
|
109 |
+ <div class="form-check"> |
|
110 |
+ <input type="radio" name="emlRcptnAgreYn" id="n" class="mr5" v-model="mbrVO.emlRcptnAgreYn" |
|
111 |
+ value="N" /> |
|
112 |
+ <label for="n">미수신</label> |
|
138 | 113 |
</div> |
139 | 114 |
</div> |
140 |
- <div v-if="showOpt.isSmsAgree" class="layout"> |
|
141 |
- <label class="form-title"><span>*</span> |
|
142 |
- 문자수신 |
|
143 |
- </label> |
|
144 |
- <div class="check-area"> |
|
145 |
- <div class="form-check"> |
|
146 |
- <input |
|
147 |
- type="radio" |
|
148 |
- name="smsRcptnAgreYn" |
|
149 |
- id="smsY" |
|
150 |
- class="mr5" |
|
151 |
- v-model="mbrVO.smsRcptnAgreYn" |
|
152 |
- value="Y" |
|
153 |
- /> |
|
154 |
- <label for="smsY">수신</label> |
|
155 |
- </div> |
|
156 |
- <div class="form-check"> |
|
157 |
- <input |
|
158 |
- type="radio" |
|
159 |
- name="smsRcptnAgreYn" |
|
160 |
- id="smsN" |
|
161 |
- class="mr5" |
|
162 |
- v-model="mbrVO.smsRcptnAgreYn" |
|
163 |
- value="N" |
|
164 |
- /> |
|
165 |
- <label for="smsN">미수신</label> |
|
166 |
- </div> |
|
167 |
- </div> |
|
168 |
- </div> |
|
169 |
- <div v-if="showOpt.isEmlAgree" class="layout"> |
|
170 |
- <label class="form-title"><span>*</span> |
|
171 |
- 이메일수신 |
|
172 |
- </label> |
|
173 |
- <div class="check-area"> |
|
174 |
- <div class="form-check"> |
|
175 |
- <input |
|
176 |
- type="radio" |
|
177 |
- name="emlRcptnAgreYn" |
|
178 |
- id="y" |
|
179 |
- class="mr5" |
|
180 |
- v-model="mbrVO.emlRcptnAgreYn" |
|
181 |
- value="Y" |
|
182 |
- /> |
|
183 |
- <label for="y">수신</label> |
|
184 |
- </div> |
|
185 |
- <div class="form-check"> |
|
186 |
- <input |
|
187 |
- type="radio" |
|
188 |
- name="emlRcptnAgreYn" |
|
189 |
- id="n" |
|
190 |
- class="mr5" |
|
191 |
- v-model="mbrVO.emlRcptnAgreYn" |
|
192 |
- value="N" |
|
193 |
- /> |
|
194 |
- <label for="n">미수신</label> |
|
195 |
- </div> |
|
196 |
- </div> |
|
197 |
- </div> |
|
198 |
- </template> |
|
199 |
- <template v-if="showOpt.isAddr"> |
|
200 |
- <div class="layout"> |
|
201 |
- <label class="form-title"><span>*</span> 우편번호</label> |
|
202 |
- <input |
|
203 |
- type="text" |
|
204 |
- class="form-control sm" |
|
205 |
- v-model="mbrVO.zip" |
|
206 |
- readonly |
|
207 |
- /> |
|
115 |
+ </div> |
|
116 |
+ <!-- </template> --> |
|
117 |
+ <template v-if="showOpt.isAddr"> |
|
118 |
+ <div class="layout"> |
|
119 |
+ <label class="form-title"><span>*</span> 우편번호</label> |
|
120 |
+ <input type="text" class="form-control sm" v-model="mbrVO.zip" readonly /> |
|
208 | 121 |
|
209 |
- <button |
|
210 |
- :class="{ |
|
211 |
- 'large-btn': true, |
|
212 |
- 'blue-border-btn': pageRole == 'adm', |
|
213 |
- 'green-border-btn': pageRole == 'portal', |
|
214 |
- }" |
|
215 |
- @click="fnZipSearch" |
|
216 |
- > |
|
217 |
- 찾기 |
|
218 |
- </button> |
|
219 |
- </div> |
|
220 |
- <div class="layout"> |
|
221 |
- <label class="form-title"><span>*</span> 주소</label> |
|
222 |
- <input |
|
223 |
- type="text" |
|
224 |
- class="form-control sm" |
|
225 |
- v-model="mbrVO.addr" |
|
226 |
- readonly |
|
227 |
- /> |
|
228 |
- </div> |
|
229 |
- <div class="layout"> |
|
230 |
- <label class="form-title"> |
|
231 |
- 상세주소 |
|
232 |
- </label> |
|
233 |
- <input |
|
234 |
- type="text" |
|
235 |
- class="form-control sm" |
|
236 |
- ref="daddr" |
|
237 |
- v-model="mbrVO.daddr" |
|
238 |
- placeholder="상세주소를 입력하세요." |
|
239 |
- /> |
|
240 |
- </div> |
|
241 |
- </template> |
|
242 |
- <template v-if="showOpt.isStts && pageRole == 'adm'"> |
|
243 |
- <div class="layout"> |
|
244 |
- <label class="form-title"><span>*</span> 회원상태</label> |
|
245 |
- <select class="form-select sm" v-model="mbrVO.mbrStts"> |
|
246 |
- <option value="1">승인</option> |
|
247 |
- <option value="2">승인대기</option> |
|
248 |
- <option value="0">탈퇴</option> |
|
249 |
- <option value="3">차단</option> |
|
250 |
- </select> |
|
251 |
- </div> |
|
252 |
- <div class="layout" v-if="showOpt.isCntrlDt"> |
|
253 |
- <label class="form-title">차단일</label> |
|
254 |
- <input |
|
255 |
- type="date" |
|
256 |
- class="form-control sm" |
|
257 |
- ref="cntrlDt" |
|
258 |
- v-model="mbrVO.cntrlDt" |
|
259 |
- /> |
|
260 |
- </div> |
|
261 |
- </template> |
|
262 |
- <div class="layout border-bottom" v-if="showOpt.isCntrlRsn"> |
|
263 |
- <label class="form-title">차단 사유</label> |
|
264 |
- <input |
|
265 |
- type="text" |
|
266 |
- class="form-control sm" |
|
267 |
- ref="cntrlRsn" |
|
268 |
- v-model="mbrVO.cntrlRsn" |
|
269 |
- placeholder="차단 사유를 입력하세요." |
|
270 |
- /> |
|
122 |
+ <button :class="{ |
|
123 |
+ 'large-btn': true, |
|
124 |
+ 'blue-border-btn': pageRole == 'adm', |
|
125 |
+ 'green-border-btn': pageRole == 'portal', |
|
126 |
+ }" @click="fnZipSearch"> |
|
127 |
+ 찾기 |
|
128 |
+ </button> |
|
271 | 129 |
</div> |
272 |
- <div v-if="showOpt.isAuthor && pageRole == 'adm'" class="layout grid-column"> |
|
273 |
- <UserAuthorList :mbrVO="mbrVO" /> |
|
130 |
+ <div class="layout"> |
|
131 |
+ <label class="form-title"><span>*</span> 주소</label> |
|
132 |
+ <input type="text" class="form-control sm" v-model="mbrVO.addr" readonly /> |
|
274 | 133 |
</div> |
134 |
+ <div class="layout"> |
|
135 |
+ <label class="form-title"> |
|
136 |
+ 상세주소 |
|
137 |
+ </label> |
|
138 |
+ <input type="text" class="form-control sm" ref="daddr" v-model="mbrVO.daddr" |
|
139 |
+ placeholder="상세주소를 입력해주세요." /> |
|
140 |
+ </div> |
|
141 |
+ </template> |
|
142 |
+ <div v-if="showOpt.isAuthor && pageRole == 'adm'" class="layout"> |
|
143 |
+ <UserAuthorList :mbrVO="mbrVO" /> |
|
144 |
+ </div> |
|
145 |
+ <!-- <template v-if="showOpt.isStts && pageRole == 'adm' && pageId != null"> --> |
|
146 |
+ <div class="layout" v-if="showOpt.isStts && pageRole == 'adm' && pageId != null"> |
|
147 |
+ <label class="form-title"><span>*</span> 회원상태</label> |
|
148 |
+ <select class="form-select sm" v-model="mbrVO.mbrStts"> |
|
149 |
+ <option value="1">승인</option> |
|
150 |
+ <option value="2">승인대기</option> |
|
151 |
+ <option value="0">탈퇴</option> |
|
152 |
+ <option value="3">차단</option> |
|
153 |
+ </select> |
|
154 |
+ </div> |
|
155 |
+ <div class="layout border-bottom" v-if="showOpt.isCntrlDt && pageRole == 'adm' && pageId != null"> |
|
156 |
+ <label class="form-title">차단일</label> |
|
157 |
+ <input type="date" class="form-control sm" ref="cntrlDt" v-model="mbrVO.cntrlDt" /> |
|
158 |
+ </div> |
|
159 |
+ <!-- </template> --> |
|
160 |
+ <div class="layout" v-if="showOpt.isCntrlRsn && pageRole == 'adm' && pageId != null"> |
|
161 |
+ <label class="form-title">차단 사유</label> |
|
162 |
+ <input type="text" class="form-control sm" ref="cntrlRsn" v-model="mbrVO.cntrlRsn" |
|
163 |
+ placeholder="차단 사유를 입력해주세요." /> |
|
164 |
+ </div> |
|
275 | 165 |
</div> |
276 | 166 |
</div> |
277 | 167 |
</div> |
... | ... | @@ -280,17 +170,14 @@ |
280 | 170 |
|
281 | 171 |
|
282 | 172 |
<div class="btn-wrap"> |
283 |
- <button |
|
284 |
- :class="{ |
|
285 |
- 'btn sm main': true, |
|
286 |
- // 'blue-btn': pageRole == 'adm', |
|
287 |
- // 'green-btn': pageRole == 'portal', |
|
288 |
- }" |
|
289 |
- @click="fnUpsert" |
|
290 |
- > |
|
291 |
- {{ pageId == null ? "등록" : "수정" }} |
|
292 |
- </button> |
|
293 |
- <button class="btn sm tertiary" @click="fnCancel">취소</button> |
|
173 |
+ <button :class="{ |
|
174 |
+ 'btn sm main': true, |
|
175 |
+ // 'blue-btn': pageRole == 'adm', |
|
176 |
+ // 'green-btn': pageRole == 'portal', |
|
177 |
+ }" @click="fnUpsert"> |
|
178 |
+ {{ pageId == null ? "등록" : "수정" }} |
|
179 |
+ </button> |
|
180 |
+ <button class="btn sm tertiary" @click="fnCancel">취소</button> |
|
294 | 181 |
</div> |
295 | 182 |
</template> |
296 | 183 |
|
... | ... | @@ -400,7 +287,12 @@ |
400 | 287 |
} |
401 | 288 |
this.changeFormat(); // 휴대폰번호, 전화번호, 이메일 표기변경 |
402 | 289 |
} catch (error) { |
403 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
290 |
+ const errorData = error.response.data; |
|
291 |
+ if (errorData.message != null && errorData.message != "") { |
|
292 |
+ alert(error.response.data.message); |
|
293 |
+ } else { |
|
294 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
295 |
+ } |
|
404 | 296 |
} |
405 | 297 |
}, |
406 | 298 |
// 표기변경 |
--- client/views/component/userInfo/UserInfoView.vue
+++ client/views/component/userInfo/UserInfoView.vue
... | ... | @@ -29,9 +29,7 @@ |
29 | 29 |
</div> |
30 | 30 |
<template v-if="showOpt.isMblNo || showOpt.isTelNo"> |
31 | 31 |
<div v-if="showOpt.isMblNo" class="layout"> |
32 |
- <p class="form-title"> |
|
33 |
- 휴대폰번호 |
|
34 |
- </p> |
|
32 |
+ <p class="form-title">휴대폰번호</p> |
|
35 | 33 |
<p>{{ mbrVO.mblTelno }}</p> |
36 | 34 |
<!-- <input |
37 | 35 |
type="text" |
... | ... | @@ -84,9 +82,7 @@ |
84 | 82 |
</div> |
85 | 83 |
|
86 | 84 |
<div v-if="showOpt.isSmsAgree" class="layout"> |
87 |
- <p class="form-title"> |
|
88 |
- 문자수신 |
|
89 |
- </p> |
|
85 |
+ <p class="form-title">문자수신</p> |
|
90 | 86 |
<p>{{ mbrVO.smsRcptnAgreYn }}</p> |
91 | 87 |
<!-- <div class="check-area"> |
92 | 88 |
<div class="form-check"> |
... | ... | @@ -117,9 +113,7 @@ |
117 | 113 |
</div> |
118 | 114 |
|
119 | 115 |
<div v-if="showOpt.isEmlAgree" class="layout"> |
120 |
- <p class="form-title"> |
|
121 |
- 이메일수신 |
|
122 |
- </p> |
|
116 |
+ <p class="form-title">이메일수신</p> |
|
123 | 117 |
<p>{{ mbrVO.emlRcptnAgreYn }}</p> |
124 | 118 |
<!-- <div class="check-area"> |
125 | 119 |
<div class="form-check"> |
... | ... | @@ -152,9 +146,7 @@ |
152 | 146 |
<template v-if="showOpt.isAddr"> |
153 | 147 |
|
154 | 148 |
<div class="layout"> |
155 |
- <p class="form-title"> |
|
156 |
- 우편번호 |
|
157 |
- </p> |
|
149 |
+ <p class="form-title">우편번호</p> |
|
158 | 150 |
<p>{{ '(' + mbrVO.zip + ')'+ mbrVO.addr + mbrVO.daddr}}</p> |
159 | 151 |
<!-- <input |
160 | 152 |
type="text" |
... | ... | @@ -185,12 +177,12 @@ |
185 | 177 |
/> |
186 | 178 |
</div> --> |
187 | 179 |
</template> |
188 |
- <template v-if="showOpt.isStts && pageRole == 'adm'"> |
|
189 |
- |
|
190 |
- <div class="layout"> |
|
191 |
- <p class="form-title"> |
|
192 |
- 회원상태 |
|
193 |
- </p> |
|
180 |
+ <div v-if="showOpt.isAuthor && pageRole == 'adm'" class="layout"> |
|
181 |
+ <UserAuthorList :mbrVO="mbrVO" editMode="view" /> |
|
182 |
+ </div> |
|
183 |
+ <!-- <template v-if="showOpt.isStts && pageRole == 'adm'"> --> |
|
184 |
+ <div class="layout" v-if="showOpt.isStts && pageRole == 'adm'"> |
|
185 |
+ <p class="form-title">회원상태</p> |
|
194 | 186 |
<p v-if="mbrVO.mbrStts == 0">탈퇴</p> |
195 | 187 |
<p v-else-if="mbrVO.mbrStts == 1">승인</p> |
196 | 188 |
<p v-else-if="mbrVO.mbrStts == 2">승인대기</p> |
... | ... | @@ -202,7 +194,7 @@ |
202 | 194 |
<option value="3">차단</option> |
203 | 195 |
</select> --> |
204 | 196 |
</div> |
205 |
- <div class="layout"> |
|
197 |
+ <div class="layout border-bottom" v-if="showOpt.isCntrlDt && pageRole == 'adm'"> |
|
206 | 198 |
<p class="form-title">차단일</p> |
207 | 199 |
<p>{{ mbrVO.cntrlDt }}</p> |
208 | 200 |
<!-- <input |
... | ... | @@ -212,8 +204,8 @@ |
212 | 204 |
disabled |
213 | 205 |
/> --> |
214 | 206 |
</div> |
215 |
- <div class="layout border-bottom"> |
|
216 |
- <p class="form-title">차단 사유</p> |
|
207 |
+ <div class="layout" v-if="showOpt.isCntrlRsn && pageRole == 'adm'"> |
|
208 |
+ <p class="form-title">차단 사유</p> |
|
217 | 209 |
<p>{{ mbrVO.cntrlRsn }}</p> |
218 | 210 |
<!-- <input |
219 | 211 |
type="text" |
... | ... | @@ -222,10 +214,7 @@ |
222 | 214 |
disabled |
223 | 215 |
/> --> |
224 | 216 |
</div> |
225 |
- </template> |
|
226 |
- <div v-if="showOpt.isAuthor && pageRole == 'adm'" class="layout grid-column"> |
|
227 |
- <UserAuthorList :mbrVO="mbrVO" editMode="view" /> |
|
228 |
- </div> |
|
217 |
+ <!-- </template> --> |
|
229 | 218 |
</div> |
230 | 219 |
</div> |
231 | 220 |
</div> |
... | ... | @@ -328,7 +317,12 @@ |
328 | 317 |
this.mbrVO = response.data.data; |
329 | 318 |
this.changeFormat(); // 휴대폰번호, 전화번호, 이메일 표기변경 |
330 | 319 |
} catch (error) { |
331 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
320 |
+ const errorData = error.response.data; |
|
321 |
+ if (errorData.message != null && errorData.message != "") { |
|
322 |
+ alert(error.response.data.message); |
|
323 |
+ } else { |
|
324 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
325 |
+ } |
|
332 | 326 |
} |
333 | 327 |
}, |
334 | 328 |
|
... | ... | @@ -400,7 +394,12 @@ |
400 | 394 |
alert(response.data["message"]); |
401 | 395 |
this.fnList(); |
402 | 396 |
} catch (error) { |
403 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
397 |
+ const errorData = error.response.data; |
|
398 |
+ if (errorData.message != null && errorData.message != "") { |
|
399 |
+ alert(error.response.data.message); |
|
400 |
+ } else { |
|
401 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
402 |
+ } |
|
404 | 403 |
} |
405 | 404 |
}, |
406 | 405 |
}, |
--- client/views/pages/adm/boardManagement/boardManagement/BoardManagementInsert.vue
+++ client/views/pages/adm/boardManagement/boardManagement/BoardManagementInsert.vue
... | ... | @@ -16,19 +16,19 @@ |
16 | 16 |
<div class="layout"> |
17 | 17 |
<label class="form-title">게시판 상단 정보</label> |
18 | 18 |
<input type="text" class="form-control sm" v-model="bbsMng.bbsUpInfo" |
19 |
- placeholder="게시판 상단에 표기될 정보를 입력하세요." /> |
|
19 |
+ placeholder="게시판 상단에 표기될 정보를 입력해주세요." /> |
|
20 | 20 |
</div> |
21 | 21 |
<div class="layout"> |
22 | 22 |
<label class="form-title">게시판 설명</label> |
23 | 23 |
<input type="text" class="form-control sm" v-model="bbsMng.bbsExpln" |
24 |
- placeholder="게시판 설명을 입력하세요." /> |
|
24 |
+ placeholder="게시판 설명을 입력해주세요." /> |
|
25 | 25 |
</div> |
26 | 26 |
<div class="layout"> |
27 | 27 |
<label class="form-title"><span>*</span>게시판 유형</label> |
28 | 28 |
<select name="" id="" class="form-select sm" @change="typeSelect" |
29 | 29 |
:disabled="bbsMng.bbsMngId != null"> |
30 | 30 |
<option :value="null" disabled :selected="bbsMng.bbsTypeId == null"> |
31 |
- 선택해주세요 |
|
31 |
+ 선택하세요 |
|
32 | 32 |
</option> |
33 | 33 |
<option v-for="(item, idx) in bbsTypeList" :value="item.bbsTypeId" :key="idx"> |
34 | 34 |
{{ item.bbsTypeKornNm }} |
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 |
<div class="layout"> |
43 | 43 |
<label class="form-title"><span>*</span>페이지 유형</label> |
44 | 44 |
<select name="" id="" class="form-select sm" v-model="bbsMng.cd"> |
45 |
- <option :value="null" disabled>선택해주세요</option> |
|
45 |
+ <option :value="null" disabled>선택하세요</option> |
|
46 | 46 |
<option v-for="(item, idx) in pageTypeList" :value="item.cd" :key="idx"> |
47 | 47 |
{{ item.cdNm }} |
48 | 48 |
</option> |
... | ... | @@ -90,7 +90,7 @@ |
90 | 90 |
<label class="form-title"><span>*</span>첨부파일 확장자</label> |
91 | 91 |
<div class="form-group"> |
92 | 92 |
<div class="layout border-none"> |
93 |
- <input type="text" class="form-control sm" v-model="inputExtNm" placeholder="첨부파일 확장자를 입력하세요" |
|
93 |
+ <input type="text" class="form-control sm" v-model="inputExtNm" placeholder="첨부파일 확장자를 입력하세요." |
|
94 | 94 |
@keyup.enter="addinputExtNm" /> |
95 | 95 |
<button class="btn-ico xsm ico-plus" @click="addinputExtNm" title="추가"></button> |
96 | 96 |
</div> |
... | ... | @@ -115,7 +115,7 @@ |
115 | 115 |
<label class="form-title"><span>*</span>파일크기 제한</label> |
116 | 116 |
<div class="input-group"> |
117 | 117 |
<input type="number" class="form-control sm" v-model="bbsMng.fileSzLmt" |
118 |
- :placeholder="'첨부파일 파일 크기를 입력하세요(0 입력 시 최대' + maxFileSize + 'MB)'" /> |
|
118 |
+ :placeholder="'첨부파일 파일 크기를 입력하세요.(0 입력 시 최대' + maxFileSize + 'MB)'" /> |
|
119 | 119 |
<span>MByte</span> |
120 | 120 |
</div> |
121 | 121 |
</div> |
... | ... | @@ -215,7 +215,7 @@ |
215 | 215 |
}, */ |
216 | 216 |
// 목록으로 이동 |
217 | 217 |
fnCancel() { |
218 |
- if (!confirm("등록을 취소하시겠습니까?")) { |
|
218 |
+ if (!confirm("작성을 취소하시겠습니까?")) { |
|
219 | 219 |
return; |
220 | 220 |
} |
221 | 221 |
if (this.bbsMng.bbsMngId == null || this.bbsMng.bbsMngId == 0) { |
... | ... | @@ -256,7 +256,12 @@ |
256 | 256 |
this.maxFileSize = res.data.data.maxFileSize; // 시스템 최대 파일 크기 |
257 | 257 |
} |
258 | 258 |
} catch (error) { |
259 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
259 |
+ const errorData = error.response.data; |
|
260 |
+ if (errorData.message != null && errorData.message != "") { |
|
261 |
+ alert(error.response.data.message); |
|
262 |
+ } else { |
|
263 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
264 |
+ } |
|
260 | 265 |
} |
261 | 266 |
}, |
262 | 267 |
|
... | ... | @@ -285,7 +290,12 @@ |
285 | 290 |
}); |
286 | 291 |
} |
287 | 292 |
} catch (error) { |
288 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
293 |
+ const errorData = error.response.data; |
|
294 |
+ if (errorData.message != null && errorData.message != "") { |
|
295 |
+ alert(error.response.data.message); |
|
296 |
+ } else { |
|
297 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
298 |
+ } |
|
289 | 299 |
} |
290 | 300 |
}, |
291 | 301 |
// 수정 |
... | ... | @@ -310,17 +320,22 @@ |
310 | 320 |
}); |
311 | 321 |
} |
312 | 322 |
} catch (error) { |
313 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
323 |
+ const errorData = error.response.data; |
|
324 |
+ if (errorData.message != null && errorData.message != "") { |
|
325 |
+ alert(error.response.data.message); |
|
326 |
+ } else { |
|
327 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
328 |
+ } |
|
314 | 329 |
} |
315 | 330 |
}, |
316 | 331 |
// 유효성 검사 |
317 | 332 |
Validation() { |
318 | 333 |
if (this.bbsMng.bbsNm == null || this.bbsMng.bbsNm == "") { |
319 |
- alert("게시판 명을 입력해주세요."); |
|
334 |
+ alert("게시판 명을 입력하세요."); |
|
320 | 335 |
return false; |
321 | 336 |
} |
322 | 337 |
if (this.bbsMng.bbsTypeId == null || this.bbsMng.bbsTypeId == "") { |
323 |
- alert("게시판 유형을 선택해주세요."); |
|
338 |
+ alert("게시판 유형을 선택하세요."); |
|
324 | 339 |
return false; |
325 | 340 |
} |
326 | 341 |
if ( |
... | ... | @@ -328,31 +343,31 @@ |
328 | 343 |
this.bbsMng.artclCnt == "" || |
329 | 344 |
this.bbsMng.artclCnt < 1 |
330 | 345 |
) { |
331 |
- alert("목록 개수는 1 이상을 입력해주세요."); |
|
346 |
+ alert("목록 개수는 1 이상을 입력하세요."); |
|
332 | 347 |
return false; |
333 | 348 |
} |
334 | 349 |
if (this.bbsMng.cd == null || this.bbsMng.cd == "") { |
335 |
- alert("페이지 유형을 선택해주세요."); |
|
350 |
+ alert("페이지 유형을 선택하세요."); |
|
336 | 351 |
return false; |
337 | 352 |
} |
338 | 353 |
/* if (this.bbsMng.atchFileUseYn == null || this.bbsMng.atchFileUseYn == '') { |
339 |
- alert('첨부파일 기능을 선택해주세요.'); |
|
354 |
+ alert('첨부파일 기능을 선택하세요.'); |
|
340 | 355 |
return false; |
341 | 356 |
} |
342 | 357 |
if (this.bbsMng.ntcUseYn == null || this.bbsMng.ntcUseYn == '') { |
343 |
- alert('공지글 기능을 선택해주세요.'); |
|
358 |
+ alert('공지글 기능을 선택하세요.'); |
|
344 | 359 |
return false; |
345 | 360 |
} |
346 | 361 |
if (this.bbsMng.prvtPstUseYn == null || this.bbsMng.prvtPstUseYn == '') { |
347 |
- alert('비밀글 기능을 선택해주세요.'); |
|
362 |
+ alert('비밀글 기능을 선택하세요.'); |
|
348 | 363 |
return false; |
349 | 364 |
} |
350 | 365 |
if (this.bbsMng.bfrAftrPstUseYn == null || this.bbsMng.bfrAftrPstUseYn == '') { |
351 |
- alert('이전글/다음글 기능을 선택해주세요.'); |
|
366 |
+ alert('이전글/다음글 기능을 선택하세요.'); |
|
352 | 367 |
return false; |
353 | 368 |
} |
354 | 369 |
if (this.bbsMng.cmntUseYn == null || this.bbsMng.cmntUseYn == '') { |
355 |
- alert('댓글 기능을 선택해주세요.'); |
|
370 |
+ alert('댓글 기능을 선택하세요.'); |
|
356 | 371 |
return false; |
357 | 372 |
} */ |
358 | 373 |
if (this.bbsMng.fileSzLmt > this.maxFileSize) { |
... | ... | @@ -366,7 +381,7 @@ |
366 | 381 |
) { |
367 | 382 |
this.bbsMng.fileSzLmt = this.maxFileSize; // 시스템 최대 파일 크기 |
368 | 383 |
/* if (this.bbsMng.atchFileUseYn == 'Y') { |
369 |
- alert('파일 크기는 0 이상을 입력해주세요.'); |
|
384 |
+ alert('파일 크기는 0 이상을 입력하세요.'); |
|
370 | 385 |
return false; |
371 | 386 |
} else { |
372 | 387 |
this.bbsMng.fileSzLmt = 0; |
... | ... | @@ -378,7 +393,7 @@ |
378 | 393 |
addinputExtNm: function () { |
379 | 394 |
// 입력받은 확장자 앞에 .이 있는지 확인하고 .이 있으면 제거 |
380 | 395 |
if (this.inputExtNm == null || this.inputExtNm.trim() == "") { |
381 |
- alert("확장자를 입력해주세요."); |
|
396 |
+ alert("확장자를 추가하세요."); |
|
382 | 397 |
return; |
383 | 398 |
} |
384 | 399 |
if (this.inputExtNm.indexOf(".") === 0) { |
--- client/views/pages/adm/boardManagement/boardManagement/BoardManagementSelectList.vue
+++ client/views/pages/adm/boardManagement/boardManagement/BoardManagementSelectList.vue
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 |
<option value="">전체</option> |
7 | 7 |
<option v-for="(item, idx) in codeList" :key="idx" :value="item.cd">{{ item.cdNm }}</option> |
8 | 8 |
</select> --> |
9 |
- <input type="text" class="form-control sm border-none" v-model="search.searchText" placeholder="게시판 명을 입력해주세요" @keyup.enter="findAll"> |
|
9 |
+ <input type="text" class="form-control sm border-none" v-model="search.searchText" placeholder="게시판 명을 입력하세요." @keyup.enter="findAll"> |
|
10 | 10 |
|
11 | 11 |
<button class="btn-ico xsm ico-sch" @click="findAll"> |
12 | 12 |
<span class="sr-only">검색</span> |
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 |
</colgroup> |
24 | 24 |
<thead> |
25 | 25 |
<tr> |
26 |
- <th rowspan="2">번호</th> |
|
26 |
+ <th rowspan="2">NO</th> |
|
27 | 27 |
<th rowspan="2">게시판명</th> |
28 | 28 |
<th rowspan="2">유형</th> |
29 | 29 |
<th colspan="5">세부기능</th> |
... | ... | @@ -65,7 +65,7 @@ |
65 | 65 |
:click="findAll" |
66 | 66 |
/> |
67 | 67 |
|
68 |
- <button class="btn sm" @click="fnAdd">등록</button> |
|
68 |
+ <button class="btn sm main" @click="fnAdd">등록</button> |
|
69 | 69 |
|
70 | 70 |
</div> |
71 | 71 |
</template> |
... | ... | @@ -110,7 +110,12 @@ |
110 | 110 |
// this.codeList = res.data.data.codeList; // 검색 조건 항목 |
111 | 111 |
this.makeTbody(); |
112 | 112 |
} catch (error) { |
113 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
113 |
+ const errorData = error.response.data; |
|
114 |
+ if (errorData.message != null && errorData.message != "") { |
|
115 |
+ alert(error.response.data.message); |
|
116 |
+ } else { |
|
117 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
118 |
+ } |
|
114 | 119 |
} |
115 | 120 |
}, |
116 | 121 |
// 상세 조회 |
--- client/views/pages/adm/boardManagement/boardManagement/BoardManagementSelectListOne.vue
+++ client/views/pages/adm/boardManagement/boardManagement/BoardManagementSelectListOne.vue
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 |
<div class="scroll"> |
5 | 5 |
<div class="form-box mb30"> |
6 | 6 |
<div class="form-box-title"> |
7 |
- <p >기본 설정</p> |
|
7 |
+ <p >기본설정</p> |
|
8 | 8 |
</div> |
9 | 9 |
<div class="form-content"> |
10 | 10 |
<div class="layout"> |
... | ... | @@ -328,7 +328,12 @@ |
328 | 328 |
this.pageTypeList = res.data.data.pageTypeList; |
329 | 329 |
} |
330 | 330 |
} catch (error) { |
331 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
331 |
+ const errorData = error.response.data; |
|
332 |
+ if (errorData.message != null && errorData.message != "") { |
|
333 |
+ alert(error.response.data.message); |
|
334 |
+ } else { |
|
335 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
336 |
+ } |
|
332 | 337 |
} |
333 | 338 |
}, |
334 | 339 |
// 목록으로 이동 |
... | ... | @@ -361,7 +366,12 @@ |
361 | 366 |
}); |
362 | 367 |
} |
363 | 368 |
} catch (error) { |
364 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
369 |
+ const errorData = error.response.data; |
|
370 |
+ if (errorData.message != null && errorData.message != "") { |
|
371 |
+ alert(error.response.data.message); |
|
372 |
+ } else { |
|
373 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
374 |
+ } |
|
365 | 375 |
} |
366 | 376 |
}, |
367 | 377 |
}, |
--- client/views/pages/adm/boardManagement/template/commonTemplate/CommonInsert copy.vue
+++ client/views/pages/adm/boardManagement/template/commonTemplate/CommonInsert copy.vue
... | ... | @@ -298,7 +298,7 @@ |
298 | 298 |
|
299 | 299 |
// 취소 버튼 동작 |
300 | 300 |
fnCancel() { |
301 |
- if (!confirm("등록을 취소하시겠습니까?")) { |
|
301 |
+ if (!confirm("작성을 취소하시겠습니까?")) { |
|
302 | 302 |
return; |
303 | 303 |
} |
304 | 304 |
if (this.bbsCn.bbsId == null || this.bbsCn.bbsId == 0) { |
--- client/views/pages/adm/boardManagement/template/commonTemplate/CommonInsert.vue
+++ client/views/pages/adm/boardManagement/template/commonTemplate/CommonInsert.vue
... | ... | @@ -229,7 +229,7 @@ |
229 | 229 |
|
230 | 230 |
// 취소 버튼 동작 |
231 | 231 |
fnCancel() { |
232 |
- if (!confirm("등록을 취소하시겠습니까?")) { |
|
232 |
+ if (!confirm("작성을 취소하시겠습니까?")) { |
|
233 | 233 |
return; |
234 | 234 |
} |
235 | 235 |
if (this.bbsCn.bbsId == null || this.bbsCn.bbsId == 0) { |
... | ... | @@ -262,7 +262,12 @@ |
262 | 262 |
this.$refs.ckeditor5.createEditor(); |
263 | 263 |
} |
264 | 264 |
} catch (error) { |
265 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
265 |
+ const errorData = error.response.data; |
|
266 |
+ if (errorData.message != null && errorData.message != "") { |
|
267 |
+ alert(error.response.data.message); |
|
268 |
+ } else { |
|
269 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
270 |
+ } |
|
266 | 271 |
} |
267 | 272 |
}, |
268 | 273 |
// 첨부파일 등록 |
... | ... | @@ -346,8 +351,12 @@ |
346 | 351 |
}); |
347 | 352 |
}) |
348 | 353 |
.catch((error) => { |
349 |
- const message = error.response.data.message; |
|
350 |
- alert(message); |
|
354 |
+ const errorData = error.response.data; |
|
355 |
+ if (errorData.message != null && errorData.message != "") { |
|
356 |
+ alert(error.response.data.message); |
|
357 |
+ } else { |
|
358 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
359 |
+ } |
|
351 | 360 |
}); |
352 | 361 |
}, |
353 | 362 |
// 수정 |
... | ... | @@ -408,14 +417,18 @@ |
408 | 417 |
}); |
409 | 418 |
}) |
410 | 419 |
.catch((error) => { |
411 |
- const message = error.response.data.message; |
|
412 |
- alert(message); |
|
420 |
+ const errorData = error.response.data; |
|
421 |
+ if (errorData.message != null && errorData.message != "") { |
|
422 |
+ alert(error.response.data.message); |
|
423 |
+ } else { |
|
424 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
425 |
+ } |
|
413 | 426 |
}); |
414 | 427 |
}, |
415 | 428 |
// 유효성 검사 |
416 | 429 |
Validation() { |
417 | 430 |
if (!this.bbsCn.bbsNm || this.bbsCn.bbsNm.trim() === "") { |
418 |
- alert("게시판 제목을 입력해주세요."); |
|
431 |
+ alert("게시판 제목을 입력하세요."); |
|
419 | 432 |
return false; |
420 | 433 |
} |
421 | 434 |
|
... | ... | @@ -436,14 +449,14 @@ |
436 | 449 |
(this.isEmpty(this.bbsCn.bbsCn) || |
437 | 450 |
this.removeHtmlAndSpace(this.bbsCn.bbsCn) === "") |
438 | 451 |
) { |
439 |
- alert("게시판 내용을 입력해주세요."); |
|
452 |
+ alert("게시판 내용을 입력하세요."); |
|
440 | 453 |
return false; |
441 | 454 |
} |
442 | 455 |
if ( |
443 | 456 |
this.bbsCn.ntcPstYn === "Y" && |
444 | 457 |
(this.bbsCn.ntcBgngDt === null || this.bbsCn.ntcEndDt === null) |
445 | 458 |
) { |
446 |
- alert("공지기간을 올바르게 설정해주세요."); |
|
459 |
+ alert("공지기간을 올바르게 설정하세요."); |
|
447 | 460 |
return false; |
448 | 461 |
} |
449 | 462 |
|
--- client/views/pages/adm/boardManagement/template/commonTemplate/CommonSelectList.vue
+++ client/views/pages/adm/boardManagement/template/commonTemplate/CommonSelectList.vue
... | ... | @@ -196,7 +196,12 @@ |
196 | 196 |
this.ntcList = []; |
197 | 197 |
this.makeTbody(); |
198 | 198 |
} catch (error) { |
199 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
199 |
+ const errorData = error.response.data; |
|
200 |
+ if (errorData.message != null && errorData.message != "") { |
|
201 |
+ alert(error.response.data.message); |
|
202 |
+ } else { |
|
203 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
204 |
+ } |
|
200 | 205 |
} |
201 | 206 |
}, |
202 | 207 |
// 상세 조회 |
--- client/views/pages/adm/boardManagement/template/commonTemplate/CommonSelectListOne.vue
+++ client/views/pages/adm/boardManagement/template/commonTemplate/CommonSelectListOne.vue
... | ... | @@ -77,7 +77,7 @@ |
77 | 77 |
> |
78 | 78 |
{{ prevBbsCn.bbsNm }} |
79 | 79 |
</td> |
80 |
- <td v-else class="pd10">이전글이 없습니다</td> |
|
80 |
+ <td v-else class="pd10">이전글이 없습니다.</td> |
|
81 | 81 |
</tr> |
82 | 82 |
<tr> |
83 | 83 |
<td class="pd10 text-ct">다음글</td> |
... | ... | @@ -88,7 +88,7 @@ |
88 | 88 |
> |
89 | 89 |
{{ nextBbsCn.bbsNm }} |
90 | 90 |
</td> |
91 |
- <td v-else class="pd10">다음글이 없습니다</td> |
|
91 |
+ <td v-else class="pd10">다음글이 없습니다.</td> |
|
92 | 92 |
</tr> |
93 | 93 |
</tbody> |
94 | 94 |
</table> |
... | ... | @@ -229,7 +229,7 @@ |
229 | 229 |
> |
230 | 230 |
<a :href="`${path}/view.page?pageId=${prevBbsCn.bbsId}`">{{ prevBbsCn.bbsNm }}</a> |
231 | 231 |
</td> |
232 |
- <td v-else class="pd10">이전글이 없습니다</td> |
|
232 |
+ <td v-else class="pd10">이전글이 없습니다.</td> |
|
233 | 233 |
</tr> |
234 | 234 |
<tr> |
235 | 235 |
<td class="pd10 text-ct">다음글</td> |
... | ... | @@ -238,7 +238,7 @@ |
238 | 238 |
> |
239 | 239 |
<a :href="`${path}/view.page?pageId=${nextBbsCn.bbsId}`">{{ nextBbsCn.bbsNm }}</a> |
240 | 240 |
</td> |
241 |
- <td v-else class="pd10">다음글이 없습니다</td> |
|
241 |
+ <td v-else class="pd10">다음글이 없습니다.</td> |
|
242 | 242 |
</tr> |
243 | 243 |
</tbody> |
244 | 244 |
</table> |
... | ... | @@ -348,7 +348,12 @@ |
348 | 348 |
this.updateVwCnt(); |
349 | 349 |
} |
350 | 350 |
} catch (error) { |
351 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
351 |
+ const errorData = error.response.data; |
|
352 |
+ if (errorData.message != null && errorData.message != "") { |
|
353 |
+ alert(error.response.data.message); |
|
354 |
+ } else { |
|
355 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
356 |
+ } |
|
352 | 357 |
} |
353 | 358 |
}, |
354 | 359 |
// 댓글 조회 |
... | ... | @@ -362,7 +367,12 @@ |
362 | 367 |
this.cmntList = res.data.data.cmntList; |
363 | 368 |
} |
364 | 369 |
} catch (error) { |
365 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
370 |
+ const errorData = error.response.data; |
|
371 |
+ if (errorData.message != null && errorData.message != "") { |
|
372 |
+ alert(error.response.data.message); |
|
373 |
+ } else { |
|
374 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
375 |
+ } |
|
366 | 376 |
} |
367 | 377 |
}, |
368 | 378 |
// 첨부파일 다운로드 로직 |
... | ... | @@ -391,7 +401,12 @@ |
391 | 401 |
document.body.removeChild(link); |
392 | 402 |
window.URL.revokeObjectURL(url); |
393 | 403 |
} catch (error) { |
394 |
- alert("파일 다운로드 중 오류가 발생했습니다."); |
|
404 |
+ const errorData = error.response.data; |
|
405 |
+ if (errorData.message != null && errorData.message != "") { |
|
406 |
+ alert(error.response.data.message); |
|
407 |
+ } else { |
|
408 |
+ alert("파일 다운로드 중 오류가 발생했습니다."); |
|
409 |
+ } |
|
395 | 410 |
} |
396 | 411 |
}, |
397 | 412 |
// 목록으로 이동 |
... | ... | @@ -433,7 +448,12 @@ |
433 | 448 |
}); |
434 | 449 |
} |
435 | 450 |
} catch (error) { |
436 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
451 |
+ const errorData = error.response.data; |
|
452 |
+ if (errorData.message != null && errorData.message != "") { |
|
453 |
+ alert(error.response.data.message); |
|
454 |
+ } else { |
|
455 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
456 |
+ } |
|
437 | 457 |
} |
438 | 458 |
}, |
439 | 459 |
// 조회수 증가 |
... | ... | @@ -444,7 +464,12 @@ |
444 | 464 |
}; |
445 | 465 |
const res = await updateVwCnt(params); |
446 | 466 |
} catch (error) { |
447 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
467 |
+ const errorData = error.response.data; |
|
468 |
+ if (errorData.message != null && errorData.message != "") { |
|
469 |
+ alert(error.response.data.message); |
|
470 |
+ } else { |
|
471 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
472 |
+ } |
|
448 | 473 |
} |
449 | 474 |
}, |
450 | 475 |
|
... | ... | @@ -469,8 +494,12 @@ |
469 | 494 |
this.getCmntList(); |
470 | 495 |
} |
471 | 496 |
} catch (error) { |
472 |
- const message = error.response.data.message; |
|
473 |
- alert(message); |
|
497 |
+ const errorData = error.response.data; |
|
498 |
+ if (errorData.message != null && errorData.message != "") { |
|
499 |
+ alert(error.response.data.message); |
|
500 |
+ } else { |
|
501 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
502 |
+ } |
|
474 | 503 |
} |
475 | 504 |
}, |
476 | 505 |
// onDelete(commentId) { |
--- client/views/pages/adm/boardManagement/template/faqTemplate/FaqInsert.vue
+++ client/views/pages/adm/boardManagement/template/faqTemplate/FaqInsert.vue
... | ... | @@ -223,7 +223,12 @@ |
223 | 223 |
} |
224 | 224 |
} |
225 | 225 |
} catch (error) { |
226 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
226 |
+ const errorData = error.response.data; |
|
227 |
+ if (errorData.message != null && errorData.message != "") { |
|
228 |
+ alert(error.response.data.message); |
|
229 |
+ } else { |
|
230 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
231 |
+ } |
|
227 | 232 |
} |
228 | 233 |
}, |
229 | 234 |
/* |
... | ... | @@ -317,8 +322,12 @@ |
317 | 322 |
}); |
318 | 323 |
}) |
319 | 324 |
.catch((error) => { |
320 |
- const message = error.response.data.message; |
|
321 |
- alert(message); |
|
325 |
+ const errorData = error.response.data; |
|
326 |
+ if (errorData.message != null && errorData.message != "") { |
|
327 |
+ alert(error.response.data.message); |
|
328 |
+ } else { |
|
329 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
330 |
+ } |
|
322 | 331 |
}); |
323 | 332 |
}, |
324 | 333 |
// 수정 |
... | ... | @@ -376,9 +385,12 @@ |
376 | 385 |
}); |
377 | 386 |
}) |
378 | 387 |
.catch((error) => { |
379 |
- // console.log(error) |
|
380 |
- const message = error.response.data.message; |
|
381 |
- alert(message); |
|
388 |
+ const errorData = error.response.data; |
|
389 |
+ if (errorData.message != null && errorData.message != "") { |
|
390 |
+ alert(error.response.data.message); |
|
391 |
+ } else { |
|
392 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
393 |
+ } |
|
382 | 394 |
}); |
383 | 395 |
}, |
384 | 396 |
// 질의 답변 등록 |
... | ... | @@ -394,8 +406,12 @@ |
394 | 406 |
}); |
395 | 407 |
} |
396 | 408 |
} catch (error) { |
397 |
- const message = error.response.data.message; |
|
398 |
- alert(message); |
|
409 |
+ const errorData = error.response.data; |
|
410 |
+ if (errorData.message != null && errorData.message != "") { |
|
411 |
+ alert(error.response.data.message); |
|
412 |
+ } else { |
|
413 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
414 |
+ } |
|
399 | 415 |
} |
400 | 416 |
}, |
401 | 417 |
// 질의 답변 수정 |
... | ... | @@ -409,14 +425,18 @@ |
409 | 425 |
}); |
410 | 426 |
} |
411 | 427 |
} catch (error) { |
412 |
- const message = error.response.data.message; |
|
413 |
- alert(message); |
|
428 |
+ const errorData = error.response.data; |
|
429 |
+ if (errorData.message != null && errorData.message != "") { |
|
430 |
+ alert(error.response.data.message); |
|
431 |
+ } else { |
|
432 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
433 |
+ } |
|
414 | 434 |
} |
415 | 435 |
}, |
416 | 436 |
|
417 | 437 |
// 취소 버튼 동작 |
418 | 438 |
fnCancel() { |
419 |
- if (!confirm("등록을 취소하시겠습니까?")) { |
|
439 |
+ if (!confirm("작성을 취소하시겠습니까?")) { |
|
420 | 440 |
return; |
421 | 441 |
} |
422 | 442 |
|
--- client/views/pages/adm/boardManagement/template/faqTemplate/FaqSelectList.vue
+++ client/views/pages/adm/boardManagement/template/faqTemplate/FaqSelectList.vue
... | ... | @@ -435,13 +435,17 @@ |
435 | 435 |
try { |
436 | 436 |
const res = await findAll(toRaw(this.search)); |
437 | 437 |
this.list = res.data.data.list; // 게시판 관리 목록 |
438 |
- console.log("검색갯수",this.list.length); |
|
439 | 438 |
this.listCnt = res.data.data.pagination.totalRecordCount; // 게시판 관리 목록 갯수 |
440 | 439 |
this.search = res.data.data.pagination; // 페이징처리 및 검색 내용 |
441 | 440 |
// this.codeList = res.data.data.codeList; // 검색 조건 항목 |
442 | 441 |
this.bbsMng = res.data.data.bbsMng; |
443 | 442 |
} catch (error) { |
444 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
443 |
+ const errorData = error.response.data; |
|
444 |
+ if (errorData.message != null && errorData.message != "") { |
|
445 |
+ alert(error.response.data.message); |
|
446 |
+ } else { |
|
447 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
448 |
+ } |
|
445 | 449 |
} |
446 | 450 |
}, |
447 | 451 |
// 등록페이지 이동 |
... | ... | @@ -482,7 +486,12 @@ |
482 | 486 |
this.findAll(); |
483 | 487 |
} |
484 | 488 |
} catch (error) { |
485 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
489 |
+ const errorData = error.response.data; |
|
490 |
+ if (errorData.message != null && errorData.message != "") { |
|
491 |
+ alert(error.response.data.message); |
|
492 |
+ } else { |
|
493 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
494 |
+ } |
|
486 | 495 |
} |
487 | 496 |
}, |
488 | 497 |
|
... | ... | @@ -498,7 +507,12 @@ |
498 | 507 |
this.findAll(); |
499 | 508 |
} |
500 | 509 |
} catch (error) { |
501 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
510 |
+ const errorData = error.response.data; |
|
511 |
+ if (errorData.message != null && errorData.message != "") { |
|
512 |
+ alert(error.response.data.message); |
|
513 |
+ } else { |
|
514 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
515 |
+ } |
|
502 | 516 |
} |
503 | 517 |
}, |
504 | 518 |
// 검색 조건 초기화 |
--- client/views/pages/adm/boardManagement/template/galleryTemplate/GalleryInsert.vue
+++ client/views/pages/adm/boardManagement/template/galleryTemplate/GalleryInsert.vue
... | ... | @@ -210,7 +210,7 @@ |
210 | 210 |
methods: { |
211 | 211 |
// 목록으로 이동 |
212 | 212 |
fnCancel() { |
213 |
- if (!confirm("등록을 취소하시겠습니까?")) { |
|
213 |
+ if (!confirm("작성을 취소하시겠습니까?")) { |
|
214 | 214 |
return; |
215 | 215 |
} |
216 | 216 |
if (this.bbsCn.bbsId == null || this.bbsCn.bbsId == 0) { |
... | ... | @@ -244,7 +244,12 @@ |
244 | 244 |
this.$refs.ckeditor5.createEditor(); |
245 | 245 |
} |
246 | 246 |
} catch (error) { |
247 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
247 |
+ const errorData = error.response.data; |
|
248 |
+ if (errorData.message != null && errorData.message != "") { |
|
249 |
+ alert(error.response.data.message); |
|
250 |
+ } else { |
|
251 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
252 |
+ } |
|
248 | 253 |
} |
249 | 254 |
}, |
250 | 255 |
// 이미지 파일 등록 |
... | ... | @@ -360,8 +365,12 @@ |
360 | 365 |
}); |
361 | 366 |
}) |
362 | 367 |
.catch((error) => { |
363 |
- const message = error.response.data.message; |
|
364 |
- alert(message); |
|
368 |
+ const errorData = error.response.data; |
|
369 |
+ if (errorData.message != null && errorData.message != "") { |
|
370 |
+ alert(error.response.data.message); |
|
371 |
+ } else { |
|
372 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
373 |
+ } |
|
365 | 374 |
}); |
366 | 375 |
}, |
367 | 376 |
// 수정 |
... | ... | @@ -421,14 +430,18 @@ |
421 | 430 |
}); |
422 | 431 |
}) |
423 | 432 |
.catch((error) => { |
424 |
- const message = error.response.data.message; |
|
425 |
- alert(message); |
|
433 |
+ const errorData = error.response.data; |
|
434 |
+ if (errorData.message != null && errorData.message != "") { |
|
435 |
+ alert(error.response.data.message); |
|
436 |
+ } else { |
|
437 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
438 |
+ } |
|
426 | 439 |
}); |
427 | 440 |
}, |
428 | 441 |
// 유효성 검사 |
429 | 442 |
Validation() { |
430 | 443 |
if (!this.bbsCn.bbsNm || this.bbsCn.bbsNm.trim() === "") { |
431 |
- alert("게시판 제목을 입력해주세요."); |
|
444 |
+ alert("게시판 제목을 입력하세요."); |
|
432 | 445 |
return false; |
433 | 446 |
} |
434 | 447 |
|
... | ... | @@ -448,13 +461,13 @@ |
448 | 461 |
(this.isEmpty(this.bbsCn.bbsCn) || |
449 | 462 |
this.removeHtmlAndSpace(this.bbsCn.bbsCn) === "") |
450 | 463 |
) { |
451 |
- alert("게시판 내용을 입력해주세요."); |
|
464 |
+ alert("게시판 내용을 입력하세요."); |
|
452 | 465 |
return false; |
453 | 466 |
} |
454 | 467 |
|
455 | 468 |
// 이미지 파일 null 검사 |
456 | 469 |
if (this.imgFileList.length < 1) { |
457 |
- alert("이미지 파일을 첨부해주세요."); |
|
470 |
+ alert("이미지 파일을 첨부하세요."); |
|
458 | 471 |
return false; |
459 | 472 |
} |
460 | 473 |
|
... | ... | @@ -462,7 +475,7 @@ |
462 | 475 |
this.bbsCn.ntcPstYn === "Y" && |
463 | 476 |
(this.bbsCn.ntcBgngDt === null || this.bbsCn.ntcEndDt === null) |
464 | 477 |
) { |
465 |
- alert("공지기간을 올바르게 설정해주세요."); |
|
478 |
+ alert("공지기간을 올바르게 설정하세요."); |
|
466 | 479 |
return false; |
467 | 480 |
} |
468 | 481 |
|
--- client/views/pages/adm/boardManagement/template/galleryTemplate/GallerySelectList.vue
+++ client/views/pages/adm/boardManagement/template/galleryTemplate/GallerySelectList.vue
... | ... | @@ -212,7 +212,12 @@ |
212 | 212 |
this.bbsMng = res.data.data.bbsMng; |
213 | 213 |
|
214 | 214 |
} catch (error) { |
215 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
215 |
+ const errorData = error.response.data; |
|
216 |
+ if (errorData.message != null && errorData.message != "") { |
|
217 |
+ alert(error.response.data.message); |
|
218 |
+ } else { |
|
219 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
220 |
+ } |
|
216 | 221 |
} |
217 | 222 |
}, |
218 | 223 |
// 상세 조회 |
--- client/views/pages/adm/boardManagement/template/galleryTemplate/GallerySelectListOne.vue
+++ client/views/pages/adm/boardManagement/template/galleryTemplate/GallerySelectListOne.vue
... | ... | @@ -113,7 +113,7 @@ |
113 | 113 |
> |
114 | 114 |
<a :href="`${path}/view.page?pageId=${prevBbsCn.bbsId}`">{{ prevBbsCn.bbsNm }}</a> |
115 | 115 |
</td> |
116 |
- <td v-else>이전글이 없습니다</td> |
|
116 |
+ <td v-else>이전글이 없습니다.</td> |
|
117 | 117 |
</tr> |
118 | 118 |
<tr> |
119 | 119 |
<td>다음글</td> |
... | ... | @@ -122,7 +122,7 @@ |
122 | 122 |
> |
123 | 123 |
<a :href="`${path}/view.page?pageId=${nextBbsCn.bbsId}`">{{ nextBbsCn.bbsNm }}</a> |
124 | 124 |
</td> |
125 |
- <td v-else>다음글이 없습니다</td> |
|
125 |
+ <td v-else>다음글이 없습니다.</td> |
|
126 | 126 |
</tr> |
127 | 127 |
</tbody> |
128 | 128 |
</table> |
... | ... | @@ -246,7 +246,12 @@ |
246 | 246 |
this.updateVwCnt(); |
247 | 247 |
} |
248 | 248 |
} catch (error) { |
249 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
249 |
+ const errorData = error.response.data; |
|
250 |
+ if (errorData.message != null && errorData.message != "") { |
|
251 |
+ alert(error.response.data.message); |
|
252 |
+ } else { |
|
253 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
254 |
+ } |
|
250 | 255 |
} |
251 | 256 |
}, |
252 | 257 |
// 댓글 조회 |
... | ... | @@ -260,7 +265,12 @@ |
260 | 265 |
this.cmntList = res.data.data.cmntList; |
261 | 266 |
} |
262 | 267 |
} catch (error) { |
263 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
268 |
+ const errorData = error.response.data; |
|
269 |
+ if (errorData.message != null && errorData.message != "") { |
|
270 |
+ alert(error.response.data.message); |
|
271 |
+ } else { |
|
272 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
273 |
+ } |
|
264 | 274 |
} |
265 | 275 |
}, |
266 | 276 |
// 첨부파일 다운로드 로직 |
... | ... | @@ -289,7 +299,12 @@ |
289 | 299 |
document.body.removeChild(link); |
290 | 300 |
window.URL.revokeObjectURL(url); |
291 | 301 |
} catch (error) { |
292 |
- alert("파일 다운로드 중 오류가 발생했습니다."); |
|
302 |
+ const errorData = error.response.data; |
|
303 |
+ if (errorData.message != null && errorData.message != "") { |
|
304 |
+ alert(error.response.data.message); |
|
305 |
+ } else { |
|
306 |
+ alert("파일 다운로드 중 오류가 발생했습니다."); |
|
307 |
+ } |
|
293 | 308 |
} |
294 | 309 |
}, |
295 | 310 |
// 목록으로 이동 |
... | ... | @@ -331,7 +346,12 @@ |
331 | 346 |
}); |
332 | 347 |
} |
333 | 348 |
} catch (error) { |
334 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
349 |
+ const errorData = error.response.data; |
|
350 |
+ if (errorData.message != null && errorData.message != "") { |
|
351 |
+ alert(error.response.data.message); |
|
352 |
+ } else { |
|
353 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
354 |
+ } |
|
335 | 355 |
} |
336 | 356 |
}, |
337 | 357 |
// 조회수 증가 |
... | ... | @@ -342,7 +362,12 @@ |
342 | 362 |
}; |
343 | 363 |
const res = await updateVwCnt(params); |
344 | 364 |
} catch (error) { |
345 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
365 |
+ const errorData = error.response.data; |
|
366 |
+ if (errorData.message != null && errorData.message != "") { |
|
367 |
+ alert(error.response.data.message); |
|
368 |
+ } else { |
|
369 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
370 |
+ } |
|
346 | 371 |
} |
347 | 372 |
}, |
348 | 373 |
// 댓글 등록 로직 |
... | ... | @@ -366,8 +391,12 @@ |
366 | 391 |
this.getCmntList(); |
367 | 392 |
} |
368 | 393 |
} catch (error) { |
369 |
- const message = error.response.data.message; |
|
370 |
- alert(message); |
|
394 |
+ const errorData = error.response.data; |
|
395 |
+ if (errorData.message != null && errorData.message != "") { |
|
396 |
+ alert(error.response.data.message); |
|
397 |
+ } else { |
|
398 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
399 |
+ } |
|
371 | 400 |
} |
372 | 401 |
}, |
373 | 402 |
isReply(isReply) { |
--- client/views/pages/adm/boardManagement/template/videoTemplate/VideoInsert.vue
+++ client/views/pages/adm/boardManagement/template/videoTemplate/VideoInsert.vue
... | ... | @@ -538,7 +538,7 @@ |
538 | 538 |
// 추가 수정 필요 |
539 | 539 |
// 목록으로 이동 |
540 | 540 |
fnCancel() { |
541 |
- if (!confirm("등록을 취소하시겠습니까?")) { |
|
541 |
+ if (!confirm("작성을 취소하시겠습니까?")) { |
|
542 | 542 |
return; |
543 | 543 |
} |
544 | 544 |
if (this.bbsCn.bbsId == null || this.bbsCn.bbsId == 0) { |
... | ... | @@ -572,7 +572,12 @@ |
572 | 572 |
this.$refs.ckeditor5.createEditor(); |
573 | 573 |
} |
574 | 574 |
} catch (error) { |
575 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
575 |
+ const errorData = error.response.data; |
|
576 |
+ if (errorData.message != null && errorData.message != "") { |
|
577 |
+ alert(error.response.data.message); |
|
578 |
+ } else { |
|
579 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
580 |
+ } |
|
576 | 581 |
} |
577 | 582 |
}, |
578 | 583 |
// 썸네일 등록 |
... | ... | @@ -688,8 +693,12 @@ |
688 | 693 |
}); |
689 | 694 |
}) |
690 | 695 |
.catch((error) => { |
691 |
- const message = error.response.data.message; |
|
692 |
- alert(message); |
|
696 |
+ const errorData = error.response.data; |
|
697 |
+ if (errorData.message != null && errorData.message != "") { |
|
698 |
+ alert(error.response.data.message); |
|
699 |
+ } else { |
|
700 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
701 |
+ } |
|
693 | 702 |
}); |
694 | 703 |
}, |
695 | 704 |
// 수정 |
... | ... | @@ -749,14 +758,18 @@ |
749 | 758 |
}); |
750 | 759 |
}) |
751 | 760 |
.catch((error) => { |
752 |
- const message = error.response.data.message; |
|
753 |
- alert(message); |
|
761 |
+ const errorData = error.response.data; |
|
762 |
+ if (errorData.message != null && errorData.message != "") { |
|
763 |
+ alert(error.response.data.message); |
|
764 |
+ } else { |
|
765 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
766 |
+ } |
|
754 | 767 |
}); |
755 | 768 |
}, |
756 | 769 |
// 유효성 검사 |
757 | 770 |
Validation() { |
758 | 771 |
if (!this.bbsCn.bbsNm || this.bbsCn.bbsNm.trim() === "") { |
759 |
- alert("게시판 제목을 입력해주세요."); |
|
772 |
+ alert("게시판 제목을 입력하세요."); |
|
760 | 773 |
return false; |
761 | 774 |
} |
762 | 775 |
|
... | ... | @@ -776,13 +789,13 @@ |
776 | 789 |
(this.isEmpty(this.bbsCn.bbsCn) || |
777 | 790 |
this.removeHtmlAndSpace(this.bbsCn.bbsCn) === "") |
778 | 791 |
) { |
779 |
- alert("게시판 내용을 입력해주세요."); |
|
792 |
+ alert("게시판 내용을 입력하세요."); |
|
780 | 793 |
return false; |
781 | 794 |
} |
782 | 795 |
|
783 | 796 |
// url null 검사 |
784 | 797 |
if (!this.bbsCn.vdoUrl || this.bbsCn.vdoUrl.trim() === "") { |
785 |
- alert("영상 URL을 입력해주세요."); |
|
798 |
+ alert("영상 URL을 입력하세요."); |
|
786 | 799 |
return false; |
787 | 800 |
} |
788 | 801 |
const pattern = /youtu\.be|youtube\.com/; |
... | ... | @@ -795,7 +808,7 @@ |
795 | 808 |
this.bbsCn.ntcPstYn === "Y" && |
796 | 809 |
(this.bbsCn.ntcBgngDt === null || this.bbsCn.ntcEndDt === null) |
797 | 810 |
) { |
798 |
- alert("공지기간을 올바르게 설정해주세요."); |
|
811 |
+ alert("공지기간을 올바르게 설정하세요."); |
|
799 | 812 |
return false; |
800 | 813 |
} |
801 | 814 |
|
--- client/views/pages/adm/boardManagement/template/videoTemplate/VideoSelectList.vue
+++ client/views/pages/adm/boardManagement/template/videoTemplate/VideoSelectList.vue
... | ... | @@ -167,7 +167,12 @@ |
167 | 167 |
this.bbsMng = res.data.data.bbsMng; |
168 | 168 |
|
169 | 169 |
} catch (error) { |
170 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
170 |
+ const errorData = error.response.data; |
|
171 |
+ if (errorData.message != null && errorData.message != "") { |
|
172 |
+ alert(error.response.data.message); |
|
173 |
+ } else { |
|
174 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
175 |
+ } |
|
171 | 176 |
} |
172 | 177 |
}, |
173 | 178 |
// 상세 조회 |
--- client/views/pages/adm/boardManagement/template/videoTemplate/VideoSelectListOne.vue
+++ client/views/pages/adm/boardManagement/template/videoTemplate/VideoSelectListOne.vue
... | ... | @@ -140,7 +140,7 @@ |
140 | 140 |
> |
141 | 141 |
{{ prevBbsCn.bbsNm }} |
142 | 142 |
</td> |
143 |
- <td v-else class="pd10">이전글이 없습니다</td> |
|
143 |
+ <td v-else class="pd10">이전글이 없습니다.</td> |
|
144 | 144 |
</tr> |
145 | 145 |
<tr> |
146 | 146 |
<td class="pd10 text-ct">다음글</td> |
... | ... | @@ -151,7 +151,7 @@ |
151 | 151 |
> |
152 | 152 |
{{ nextBbsCn.bbsNm }} |
153 | 153 |
</td> |
154 |
- <td v-else class="pd10">다음글이 없습니다</td> |
|
154 |
+ <td v-else class="pd10">다음글이 없습니다.</td> |
|
155 | 155 |
</tr> |
156 | 156 |
</tbody> |
157 | 157 |
</table> |
... | ... | @@ -302,7 +302,7 @@ |
302 | 302 |
> |
303 | 303 |
<a :href="`${path}/view.page?pageId=${prevBbsCn.bbsId}`">{{ prevBbsCn.bbsNm }}</a> |
304 | 304 |
</td> |
305 |
- <td v-else>이전글이 없습니다</td> |
|
305 |
+ <td v-else>이전글이 없습니다.</td> |
|
306 | 306 |
</tr> |
307 | 307 |
<tr> |
308 | 308 |
<td>다음글</td> |
... | ... | @@ -311,7 +311,7 @@ |
311 | 311 |
> |
312 | 312 |
<a :href="`${path}/view.page?pageId=${nextBbsCn.bbsId}`">{{ nextBbsCn.bbsNm }}</a> |
313 | 313 |
</td> |
314 |
- <td v-else>다음글이 없습니다</td> |
|
314 |
+ <td v-else>다음글이 없습니다.</td> |
|
315 | 315 |
</tr> |
316 | 316 |
</tbody> |
317 | 317 |
</table> |
... | ... | @@ -419,7 +419,12 @@ |
419 | 419 |
this.updateVwCnt(); |
420 | 420 |
} |
421 | 421 |
} catch (error) { |
422 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
422 |
+ const errorData = error.response.data; |
|
423 |
+ if (errorData.message != null && errorData.message != "") { |
|
424 |
+ alert(error.response.data.message); |
|
425 |
+ } else { |
|
426 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
427 |
+ } |
|
423 | 428 |
} |
424 | 429 |
}, |
425 | 430 |
// 댓글 조회 |
... | ... | @@ -433,7 +438,12 @@ |
433 | 438 |
this.cmntList = res.data.data.cmntList; |
434 | 439 |
} |
435 | 440 |
} catch (error) { |
436 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
441 |
+ const errorData = error.response.data; |
|
442 |
+ if (errorData.message != null && errorData.message != "") { |
|
443 |
+ alert(error.response.data.message); |
|
444 |
+ } else { |
|
445 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
446 |
+ } |
|
437 | 447 |
} |
438 | 448 |
}, |
439 | 449 |
// 첨부파일 다운로드 로직 |
... | ... | @@ -462,7 +472,12 @@ |
462 | 472 |
document.body.removeChild(link); |
463 | 473 |
window.URL.revokeObjectURL(url); |
464 | 474 |
} catch (error) { |
465 |
- alert("파일 다운로드 중 오류가 발생했습니다."); |
|
475 |
+ const errorData = error.response.data; |
|
476 |
+ if (errorData.message != null && errorData.message != "") { |
|
477 |
+ alert(error.response.data.message); |
|
478 |
+ } else { |
|
479 |
+ alert("파일 다운로드 중 오류가 발생했습니다."); |
|
480 |
+ } |
|
466 | 481 |
} |
467 | 482 |
}, |
468 | 483 |
// 목록으로 이동 |
... | ... | @@ -504,7 +519,12 @@ |
504 | 519 |
}); |
505 | 520 |
} |
506 | 521 |
} catch (error) { |
507 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
522 |
+ const errorData = error.response.data; |
|
523 |
+ if (errorData.message != null && errorData.message != "") { |
|
524 |
+ alert(error.response.data.message); |
|
525 |
+ } else { |
|
526 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
527 |
+ } |
|
508 | 528 |
} |
509 | 529 |
}, |
510 | 530 |
// 조회수 증가 |
... | ... | @@ -515,7 +535,12 @@ |
515 | 535 |
}; |
516 | 536 |
const res = await updateVwCnt(params); |
517 | 537 |
} catch (error) { |
518 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
538 |
+ const errorData = error.response.data; |
|
539 |
+ if (errorData.message != null && errorData.message != "") { |
|
540 |
+ alert(error.response.data.message); |
|
541 |
+ } else { |
|
542 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
543 |
+ } |
|
519 | 544 |
} |
520 | 545 |
}, |
521 | 546 |
// 댓글 등록 로직 |
... | ... | @@ -539,8 +564,12 @@ |
539 | 564 |
this.getCmntList(); |
540 | 565 |
} |
541 | 566 |
} catch (error) { |
542 |
- const message = error.response.data.message; |
|
543 |
- alert(message); |
|
567 |
+ const errorData = error.response.data; |
|
568 |
+ if (errorData.message != null && errorData.message != "") { |
|
569 |
+ alert(error.response.data.message); |
|
570 |
+ } else { |
|
571 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
572 |
+ } |
|
544 | 573 |
} |
545 | 574 |
}, |
546 | 575 |
isReply(isReply) { |
--- client/views/pages/adm/boardManagement/wordsManagement/WordsManagementSelectList.vue
+++ client/views/pages/adm/boardManagement/wordsManagement/WordsManagementSelectList.vue
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 |
<option value="">전체</option> |
7 | 7 |
<option v-for="(item, idx) in codeList" :key="idx" :value="item.cd">{{ item.cdNm }}</option> |
8 | 8 |
</select> --> |
9 |
- <input type="text" class="form-control sm border-none" placeholder="금지어를 입력해주세요." |
|
9 |
+ <input type="text" class="form-control sm border-none" placeholder="금지어를 입력하세요." |
|
10 | 10 |
v-model="search.searchText" @keyup.enter="fnFindAllWord" /> |
11 | 11 |
<button class="btn-ico xsm ico-sch" @click="fnFindAllWord"> |
12 | 12 |
<span class="sr-only">검색</span> |
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 |
<button class="btn-close" @click="modalClose"></button> |
47 | 47 |
</template> |
48 | 48 |
<div class="input-group"> |
49 |
- <input type="text" class="form-control sm" placeholder="추가할 금지어를 입력해주세요." v-model="inputWordNm" |
|
49 |
+ <input type="text" class="form-control sm" placeholder="추가할 금지어를 입력하세요." v-model="inputWordNm" |
|
50 | 50 |
@keyup.enter="addinputWord" style="width: calc(100% - 100px);"/> |
51 | 51 |
<button class="btn sm ico-before ico-plus-w main" @click="addinputWord">추가</button> |
52 | 52 |
</div> |
... | ... | @@ -122,7 +122,7 @@ |
122 | 122 |
// 금지어 추가 (리스트 생성) |
123 | 123 |
addinputWord: function () { |
124 | 124 |
if (this.inputWordNm.trim() == '') { |
125 |
- alert('금지어를 입력해주세요.') |
|
125 |
+ alert('금지어를 입력하세요.') |
|
126 | 126 |
return |
127 | 127 |
} |
128 | 128 |
this.wordsArr.push(this.inputWordNm) |
... | ... | @@ -141,14 +141,19 @@ |
141 | 141 |
this.makeTbody(); |
142 | 142 |
} |
143 | 143 |
} catch (error) { |
144 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
144 |
+ const errorData = error.response.data; |
|
145 |
+ if (errorData.message != null && errorData.message != "") { |
|
146 |
+ alert(error.response.data.message); |
|
147 |
+ } else { |
|
148 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
149 |
+ } |
|
145 | 150 |
} |
146 | 151 |
}, |
147 | 152 |
// 금지어 등록 |
148 | 153 |
async fnSave() { |
149 | 154 |
try { |
150 | 155 |
if (this.wordsArr.length == 0) { |
151 |
- alert('등록할 금지어를 추가해주세요.') |
|
156 |
+ alert('등록할 금지어를 추가하세요.') |
|
152 | 157 |
return |
153 | 158 |
} |
154 | 159 |
const param = { |
... | ... | @@ -162,7 +167,12 @@ |
162 | 167 |
this.fnFindAllWord(); |
163 | 168 |
} |
164 | 169 |
} catch (error) { |
165 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
170 |
+ const errorData = error.response.data; |
|
171 |
+ if (errorData.message != null && errorData.message != "") { |
|
172 |
+ alert(error.response.data.message); |
|
173 |
+ } else { |
|
174 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
175 |
+ } |
|
166 | 176 |
} |
167 | 177 |
}, |
168 | 178 |
// 삭제할 워드 선택 |
... | ... | @@ -177,7 +187,7 @@ |
177 | 187 |
// 삭제 버튼 로직 |
178 | 188 |
async fnDelete() { |
179 | 189 |
if (this.delWords.length === 0) { |
180 |
- alert('삭제할 금지어를 선택해주세요.'); |
|
190 |
+ alert('삭제할 금지어를 선택하세요.'); |
|
181 | 191 |
return; |
182 | 192 |
} |
183 | 193 |
if (!confirm('선택한 금지어를 삭제하시겠습니까?')) { |
... | ... | @@ -201,7 +211,12 @@ |
201 | 211 |
|
202 | 212 |
} |
203 | 213 |
} catch (error) { |
204 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
214 |
+ const errorData = error.response.data; |
|
215 |
+ if (errorData.message != null && errorData.message != "") { |
|
216 |
+ alert(error.response.data.message); |
|
217 |
+ } else { |
|
218 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
219 |
+ } |
|
205 | 220 |
} |
206 | 221 |
}, |
207 | 222 |
|
--- client/views/pages/adm/departmentManagement/DepartmentManagement.vue
+++ client/views/pages/adm/departmentManagement/DepartmentManagement.vue
... | ... | @@ -57,7 +57,7 @@ |
57 | 57 |
class="form-control sm" |
58 | 58 |
:disabled="isFormDisabled" |
59 | 59 |
v-model="viewDept.deptNm" |
60 |
- placeholder="부서명을 입력해주세요" |
|
60 |
+ placeholder="부서명을 입력하세요." |
|
61 | 61 |
/> |
62 | 62 |
</div> |
63 | 63 |
<div class="grid-column layout"> |
... | ... | @@ -84,7 +84,7 @@ |
84 | 84 |
style="min-height: 3rem" |
85 | 85 |
:disabled="isFormDisabled" |
86 | 86 |
v-model="viewDept.deptExpln" |
87 |
- placeholder="부서에 대한 설명을 입력해주세요" |
|
87 |
+ placeholder="부서에 대한 설명을 입력해주세요." |
|
88 | 88 |
></textarea> |
89 | 89 |
</div> |
90 | 90 |
</div> |
... | ... | @@ -98,12 +98,11 @@ |
98 | 98 |
<span v-if="submitStts"> 등록 </span> |
99 | 99 |
<span v-else>수정</span> |
100 | 100 |
</button> |
101 |
- |
|
102 |
- |
|
103 | 101 |
<button |
104 | 102 |
class="btn sm red" |
105 | 103 |
:disabled="isFormDisabled" |
106 | 104 |
@click="fnDel" |
105 |
+ v-if="pageAuth.delAuthrt == 'Y' && selectedDeptId != null" |
|
107 | 106 |
> |
108 | 107 |
삭제 |
109 | 108 |
</button> |
... | ... | @@ -235,6 +234,7 @@ |
235 | 234 |
newDept: {}, // 신규 부서 등록 |
236 | 235 |
viewDept: {}, // 사용자에게 보여질 부서정보 |
237 | 236 |
searchText: "", // 사용자 정보 검색 |
237 |
+ originDept: null, // 변경전 부서 정보 |
|
238 | 238 |
|
239 | 239 |
submitStts: true, |
240 | 240 |
topBoxHeight: 0, |
... | ... | @@ -258,7 +258,12 @@ |
258 | 258 |
this.newDept.useYn = "Y"; |
259 | 259 |
} |
260 | 260 |
} catch (error) { |
261 |
- alert(error.response.data.message); |
|
261 |
+ const errorData = error.response.data; |
|
262 |
+ if (errorData.message != null && errorData.message != "") { |
|
263 |
+ alert(error.response.data.message); |
|
264 |
+ } else { |
|
265 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
266 |
+ } |
|
262 | 267 |
} |
263 | 268 |
}, |
264 | 269 |
// 상세 조회 |
... | ... | @@ -280,7 +285,12 @@ |
280 | 285 |
this.submitStts = false; |
281 | 286 |
} |
282 | 287 |
} catch (error) { |
283 |
- alert(error.response.data.message); |
|
288 |
+ const errorData = error.response.data; |
|
289 |
+ if (errorData.message != null && errorData.message != "") { |
|
290 |
+ alert(error.response.data.message); |
|
291 |
+ } else { |
|
292 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
293 |
+ } |
|
284 | 294 |
} |
285 | 295 |
}, |
286 | 296 |
// 부서 선택 |
... | ... | @@ -304,18 +314,23 @@ |
304 | 314 |
// this.selectedDeptId = res.data.data.deptId; |
305 | 315 |
} |
306 | 316 |
} catch (error) { |
307 |
- alert(error.response.data.message); |
|
317 |
+ const errorData = error.response.data; |
|
318 |
+ if (errorData.message != null && errorData.message != "") { |
|
319 |
+ alert(error.response.data.message); |
|
320 |
+ } else { |
|
321 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
322 |
+ } |
|
308 | 323 |
} |
309 | 324 |
}, |
310 | 325 |
// 유효성 검사 |
311 | 326 |
validation() { |
312 | 327 |
if (!this.viewDept.deptNm || this.viewDept.deptNm.trim() === "") { |
313 |
- alert("부서명을 입력해주세요."); |
|
328 |
+ alert("부서명을 입력하세요."); |
|
314 | 329 |
return false; |
315 | 330 |
} |
316 | 331 |
// 부서권한 검사 |
317 | 332 |
if (!this.selectedAuthrt) { |
318 |
- alert("부서 권한을 지정해주세요."); |
|
333 |
+ alert("부서 권한을 지정하세요."); |
|
319 | 334 |
return false; |
320 | 335 |
} |
321 | 336 |
let authrtList = []; |
... | ... | @@ -327,7 +342,7 @@ |
327 | 342 |
// 삭제 |
328 | 343 |
async fnDel() { |
329 | 344 |
if (Object.keys(this.viewDept).length === 0) { |
330 |
- alert("삭제 대상을 지정해주세요."); |
|
345 |
+ alert("삭제 대상을 지정하세요."); |
|
331 | 346 |
return false; |
332 | 347 |
} |
333 | 348 |
if ( |
... | ... | @@ -345,7 +360,12 @@ |
345 | 360 |
this.findAll(); // 목록 재조회 |
346 | 361 |
} |
347 | 362 |
} catch (error) { |
348 |
- alert(error.response.data.message); |
|
363 |
+ const errorData = error.response.data; |
|
364 |
+ if (errorData.message != null && errorData.message != "") { |
|
365 |
+ alert(error.response.data.message); |
|
366 |
+ } else { |
|
367 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
368 |
+ } |
|
349 | 369 |
} |
350 | 370 |
}, |
351 | 371 |
// 최상위 신규 객체 생성 |
... | ... | @@ -364,7 +384,7 @@ |
364 | 384 |
// Object.keys(this.viewDept).length === 0 || |
365 | 385 |
this.selectedDeptId == null |
366 | 386 |
) { |
367 |
- alert("상위 부서를 지정해주세요."); |
|
387 |
+ alert("상위 부서를 지정하세요."); |
|
368 | 388 |
return; |
369 | 389 |
} else { |
370 | 390 |
if (!confirm("작성 중인 부서정보는 저장되지 않습니다.\n계속 하시겠습니까?")) { |
... | ... | @@ -385,6 +405,7 @@ |
385 | 405 |
this.selectedAuthrt = ""; |
386 | 406 |
this.mbrList = []; // 부서에 등록되지 않은 사용자 정보 초기화 |
387 | 407 |
this.deptMbr = []; // 부서에 등록된 사용자 정보 초기화 |
408 |
+ this.originDept = this.viewDept.deptId; // null |
|
388 | 409 |
this.makeTbody(); |
389 | 410 |
this.makeMbrTobdy(); |
390 | 411 |
}, |
... | ... | @@ -416,7 +437,12 @@ |
416 | 437 |
this.findByDept(); |
417 | 438 |
} |
418 | 439 |
} catch (error) { |
419 |
- alert(error.response.data.message); |
|
440 |
+ const errorData = error.response.data; |
|
441 |
+ if (errorData.message != null && errorData.message != "") { |
|
442 |
+ alert(error.response.data.message); |
|
443 |
+ } else { |
|
444 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
445 |
+ } |
|
420 | 446 |
} |
421 | 447 |
}, |
422 | 448 |
// 사용자 정보 검색 |
... | ... | @@ -437,7 +463,12 @@ |
437 | 463 |
this.makeMbrTobdy(); |
438 | 464 |
} |
439 | 465 |
} catch (error) { |
440 |
- alert(error.response.data.message); |
|
466 |
+ const errorData = error.response.data; |
|
467 |
+ if (errorData.message != null && errorData.message != "") { |
|
468 |
+ alert(error.response.data.message); |
|
469 |
+ } else { |
|
470 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
471 |
+ } |
|
441 | 472 |
} |
442 | 473 |
}, |
443 | 474 |
// 사용자 부서 등록 |
... | ... | @@ -453,7 +484,14 @@ |
453 | 484 |
if (res.status == 200) { |
454 | 485 |
this.fnFindByMbr(); |
455 | 486 |
} |
456 |
- } catch (error) {} |
|
487 |
+ } catch (error) { |
|
488 |
+ const errorData = error.response.data; |
|
489 |
+ if (errorData.message != null && errorData.message != "") { |
|
490 |
+ alert(error.response.data.message); |
|
491 |
+ } else { |
|
492 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
493 |
+ } |
|
494 |
+ } |
|
457 | 495 |
}, |
458 | 496 |
// tbody 생성 |
459 | 497 |
makeTbody() { |
... | ... | @@ -510,7 +548,12 @@ |
510 | 548 |
this.findByDept(); |
511 | 549 |
} |
512 | 550 |
} catch (error) { |
513 |
- alert(error.res.data.message); |
|
551 |
+ const errorData = error.response.data; |
|
552 |
+ if (errorData.message != null && errorData.message != "") { |
|
553 |
+ alert(error.response.data.message); |
|
554 |
+ } else { |
|
555 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
556 |
+ } |
|
514 | 557 |
} |
515 | 558 |
}, |
516 | 559 |
updateHeight() { |
--- client/views/pages/adm/log/LoginLog.vue
+++ client/views/pages/adm/log/LoginLog.vue
... | ... | @@ -167,7 +167,12 @@ |
167 | 167 |
this.codeList = response.data.data.codeList; |
168 | 168 |
this.makeTbody(); |
169 | 169 |
} catch (error) { |
170 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
170 |
+ const errorData = error.response.data; |
|
171 |
+ if (errorData.message != null && errorData.message != "") { |
|
172 |
+ alert(error.response.data.message); |
|
173 |
+ } else { |
|
174 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
175 |
+ } |
|
171 | 176 |
} |
172 | 177 |
}, |
173 | 178 |
//─────axios─────┘ |
--- client/views/pages/adm/log/PersonalDataLog.vue
+++ client/views/pages/adm/log/PersonalDataLog.vue
... | ... | @@ -198,7 +198,12 @@ |
198 | 198 |
this.codeList = response.data.data.codeList; |
199 | 199 |
this.makeTbody(); |
200 | 200 |
} catch (error) { |
201 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
201 |
+ const errorData = error.response.data; |
|
202 |
+ if (errorData.message != null && errorData.message != "") { |
|
203 |
+ alert(error.response.data.message); |
|
204 |
+ } else { |
|
205 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
206 |
+ } |
|
202 | 207 |
} |
203 | 208 |
}, |
204 | 209 |
// 상세 조회 |
... | ... | @@ -208,7 +213,12 @@ |
208 | 213 |
this.prvcInqHstry = response.data.data; |
209 | 214 |
this.fnModalOpen(); |
210 | 215 |
} catch (error) { |
211 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
216 |
+ const errorData = error.response.data; |
|
217 |
+ if (errorData.message != null && errorData.message != "") { |
|
218 |
+ alert(error.response.data.message); |
|
219 |
+ } else { |
|
220 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
221 |
+ } |
|
212 | 222 |
} |
213 | 223 |
}, |
214 | 224 |
//─────axios─────┘}, |
--- client/views/pages/adm/main/Main.vue
+++ client/views/pages/adm/main/Main.vue
... | ... | @@ -199,7 +199,12 @@ |
199 | 199 |
this.chartData = datas; |
200 | 200 |
|
201 | 201 |
} catch (error) { |
202 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
202 |
+ const errorData = error.response.data; |
|
203 |
+ if (errorData.message != null && errorData.message != "") { |
|
204 |
+ alert(error.response.data.message); |
|
205 |
+ } else { |
|
206 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
207 |
+ } |
|
203 | 208 |
} |
204 | 209 |
}, |
205 | 210 |
// 게시판 제목 출력 |
... | ... | @@ -221,7 +226,12 @@ |
221 | 226 |
this.menuList = response.data.data.menuList; |
222 | 227 |
} |
223 | 228 |
} catch (error) { |
224 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
229 |
+ const errorData = error.response.data; |
|
230 |
+ if (errorData.message != null && errorData.message != "") { |
|
231 |
+ alert(error.response.data.message); |
|
232 |
+ } else { |
|
233 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
234 |
+ } |
|
225 | 235 |
} |
226 | 236 |
}, |
227 | 237 |
|
--- client/views/pages/adm/member/adminManagement/AdminManagementSelectList.vue
+++ client/views/pages/adm/member/adminManagement/AdminManagementSelectList.vue
... | ... | @@ -93,7 +93,7 @@ |
93 | 93 |
|
94 | 94 |
colgroup: ["5%", "19%", "19%", "15%", "10%", "8%"], |
95 | 95 |
thead: [ |
96 |
- "번호", |
|
96 |
+ "NO", |
|
97 | 97 |
"아이디", |
98 | 98 |
"이름", |
99 | 99 |
"휴대폰번호", |
... | ... | @@ -126,7 +126,12 @@ |
126 | 126 |
this.search = response.data["data"]["pagination"]; |
127 | 127 |
this.makeTbody(); |
128 | 128 |
} catch (error) { |
129 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
129 |
+ const errorData = error.response.data; |
|
130 |
+ if (errorData.message != null && errorData.message != "") { |
|
131 |
+ alert(error.response.data.message); |
|
132 |
+ } else { |
|
133 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
134 |
+ } |
|
130 | 135 |
} |
131 | 136 |
}, |
132 | 137 |
// 휴대폰번호 표기 변환 |
... | ... | @@ -180,7 +185,12 @@ |
180 | 185 |
alert(response.data.message); |
181 | 186 |
this.fnViewList(); |
182 | 187 |
} catch (error) { |
183 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
188 |
+ const errorData = error.response.data; |
|
189 |
+ if (errorData.message != null && errorData.message != "") { |
|
190 |
+ alert(error.response.data.message); |
|
191 |
+ } else { |
|
192 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
193 |
+ } |
|
184 | 194 |
} |
185 | 195 |
}, |
186 | 196 |
|
--- client/views/pages/adm/member/userManagement/UserManagementSelectList.vue
+++ client/views/pages/adm/member/userManagement/UserManagementSelectList.vue
... | ... | @@ -121,7 +121,7 @@ |
121 | 121 |
|
122 | 122 |
colgroup: ["5%", "15%", "10%", "13%", "15%", "10%", "8%"], |
123 | 123 |
thead: [ |
124 |
- "번호", |
|
124 |
+ "NO", |
|
125 | 125 |
"아이디", |
126 | 126 |
"이름", |
127 | 127 |
"이메일", |
... | ... | @@ -163,7 +163,12 @@ |
163 | 163 |
this.search = response.data.data.pagination; |
164 | 164 |
this.makeTbody(); |
165 | 165 |
} catch (error) { |
166 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
166 |
+ const errorData = error.response.data; |
|
167 |
+ if (errorData.message != null && errorData.message != "") { |
|
168 |
+ alert(error.response.data.message); |
|
169 |
+ } else { |
|
170 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
171 |
+ } |
|
167 | 172 |
} |
168 | 173 |
}, |
169 | 174 |
// 휴대폰번호 표기 변환 |
... | ... | @@ -232,7 +237,7 @@ |
232 | 237 |
this.prvcInqHstry["inqRsn"] == null || |
233 | 238 |
this.prvcInqHstry["inqRsn"] == "" |
234 | 239 |
) { |
235 |
- alert("사유를 입력해주세요."); |
|
240 |
+ alert("사유를 입력하세요."); |
|
236 | 241 |
this.$refs.inqRsn.focus(); |
237 | 242 |
return; |
238 | 243 |
} |
... | ... | @@ -271,7 +276,12 @@ |
271 | 276 |
alert(response.data.message); |
272 | 277 |
this.fnViewList(); |
273 | 278 |
} catch (error) { |
274 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
279 |
+ const errorData = error.response.data; |
|
280 |
+ if (errorData.message != null && errorData.message != "") { |
|
281 |
+ alert(error.response.data.message); |
|
282 |
+ } else { |
|
283 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
284 |
+ } |
|
275 | 285 |
} |
276 | 286 |
}, |
277 | 287 |
|
--- client/views/pages/adm/popup/PopupManagementInsert.vue
+++ client/views/pages/adm/popup/PopupManagementInsert.vue
... | ... | @@ -341,67 +341,67 @@ |
341 | 341 |
// 유효성 검사 |
342 | 342 |
valiadtion() { |
343 | 343 |
if (!this.popup["popupTtl"] || this.popup["popupTtl"].trim() === "") { |
344 |
- alert("제목을 입력해주세요."); |
|
344 |
+ alert("제목을 입력하세요."); |
|
345 | 345 |
this.$refs.popupTtl.focus(); |
346 | 346 |
return false; |
347 | 347 |
} |
348 | 348 |
if (!this.popup["bgngDt"]) { |
349 |
- alert("시작일을 입력해주세요."); |
|
349 |
+ alert("시작일을 입력하세요."); |
|
350 | 350 |
this.$refs.bgngDt.focus(); |
351 | 351 |
return false; |
352 | 352 |
} |
353 | 353 |
if (!this.popup["endDt"]) { |
354 |
- alert("종료일을 입력해주세요."); |
|
354 |
+ alert("종료일을 입력하세요."); |
|
355 | 355 |
this.$refs.endDt.focus(); |
356 | 356 |
return false; |
357 | 357 |
} |
358 | 358 |
if (!this.popup["popupSizeType"]) { |
359 |
- alert("팝업 크기를 선택해주세요."); |
|
359 |
+ alert("팝업 크기 타입을 선택하세요."); |
|
360 | 360 |
return false; |
361 | 361 |
} |
362 | 362 |
if (this.popup["popupSizeType"] == "fixed") { |
363 | 363 |
if (!this.popup["popupSize"]) { |
364 |
- alert("팝업 크기를 선택해주세요."); |
|
364 |
+ alert("팝업 크기를 선택하세요."); |
|
365 | 365 |
return false; |
366 | 366 |
} |
367 | 367 |
} else if (this.popup["popupSizeType"] == "custom") { |
368 | 368 |
if (!this.popup["wdthLen"]) { |
369 |
- alert("팝업 가로 크기를 선택해주세요."); |
|
369 |
+ alert("팝업 가로 크기를 입력하세요."); |
|
370 | 370 |
return false; |
371 | 371 |
} |
372 | 372 |
if (!this.popup["vrtcLen"]) { |
373 |
- alert("팝업 세로 크기를 선택해주세요."); |
|
373 |
+ alert("팝업 세로 크기를 입력하세요."); |
|
374 | 374 |
return false; |
375 | 375 |
} |
376 | 376 |
} |
377 | 377 |
if (!this.popup["popupType"]) { |
378 |
- alert("업로드 형식을 선택해주세요."); |
|
378 |
+ alert("업로드 형식을 선택하세요."); |
|
379 | 379 |
return false; |
380 | 380 |
} |
381 | 381 |
if (this.popup["popupType"] == "image") { |
382 | 382 |
if (this.fileList.length < 1) { |
383 |
- alert("이미지 첨부파일을 선택해주세요."); |
|
383 |
+ alert("이미지 첨부파일을 추가하세요."); |
|
384 | 384 |
return false; |
385 | 385 |
} |
386 | 386 |
if (!this.popup["linkUrl"]) { |
387 |
- alert("링크 URL을 선택해주세요."); |
|
387 |
+ alert("링크 URL을 입력하세요."); |
|
388 | 388 |
this.$refs.linkUrl.focus(); |
389 | 389 |
return false; |
390 | 390 |
} |
391 | 391 |
} else if (this.popup["popupType"] == "video") { |
392 | 392 |
if (!this.popup["vdoUrl"]) { |
393 |
- alert("동영상 URL을 선택해주세요."); |
|
393 |
+ alert("동영상 URL을 입력하세요."); |
|
394 | 394 |
this.$refs.vdoUrl.focus(); |
395 | 395 |
return false; |
396 | 396 |
} |
397 | 397 |
} |
398 | 398 |
if (!this.popup["sn"]) { |
399 |
- alert("순서를 선택해주세요."); |
|
399 |
+ alert("순서를 선택하세요."); |
|
400 | 400 |
this.$refs.sn.focus(); |
401 | 401 |
return false; |
402 | 402 |
} |
403 | 403 |
if (!this.popup["pageType"]) { |
404 |
- alert("팝업 노출 페이지를 선택해주세요."); |
|
404 |
+ alert("팝업 노출 페이지를 선택하세요."); |
|
405 | 405 |
return false; |
406 | 406 |
} |
407 | 407 |
// if (!this.popup["popupUseYn"]) { |
--- client/views/pages/adm/popup/PopupManagementSelectList.vue
+++ client/views/pages/adm/popup/PopupManagementSelectList.vue
... | ... | @@ -74,7 +74,7 @@ |
74 | 74 |
pageAuth: JSON.parse(localStorage.getItem("vuex")).pageAuth, |
75 | 75 |
|
76 | 76 |
colgroup: ["5%", "40%", "10%", "15%", "15%", "15%"], |
77 |
- thead: ["no", "제목", "사용여부", "시작일", "종료일", "작성자"], |
|
77 |
+ thead: ["NO", "제목", "사용여부", "시작일", "종료일", "작성자"], |
|
78 | 78 |
tbody: [], |
79 | 79 |
search: { ...defaultSearchParams }, |
80 | 80 |
list: [], |
... | ... | @@ -135,7 +135,12 @@ |
135 | 135 |
this.search = response.data.data.pagination; |
136 | 136 |
this.makeTbody(); |
137 | 137 |
} catch (error) { |
138 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
138 |
+ const errorData = error.response.data; |
|
139 |
+ if (errorData.message != null && errorData.message != "") { |
|
140 |
+ alert(error.response.data.message); |
|
141 |
+ } else { |
|
142 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
143 |
+ } |
|
139 | 144 |
} |
140 | 145 |
}, |
141 | 146 |
//─────axios─────┘ |
--- client/views/pages/adm/popup/PopupManagementSelectListOne.vue
+++ client/views/pages/adm/popup/PopupManagementSelectListOne.vue
... | ... | @@ -340,7 +340,12 @@ |
340 | 340 |
} |
341 | 341 |
} |
342 | 342 |
} catch (error) { |
343 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
343 |
+ const errorData = error.response.data; |
|
344 |
+ if (errorData.message != null && errorData.message != "") { |
|
345 |
+ alert(error.response.data.message); |
|
346 |
+ } else { |
|
347 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
348 |
+ } |
|
344 | 349 |
} |
345 | 350 |
}, |
346 | 351 |
// 삭제 |
... | ... | @@ -352,7 +357,12 @@ |
352 | 357 |
this.fnList(); |
353 | 358 |
} |
354 | 359 |
} catch (error) { |
355 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
360 |
+ const errorData = error.response.data; |
|
361 |
+ if (errorData.message != null && errorData.message != "") { |
|
362 |
+ alert(error.response.data.message); |
|
363 |
+ } else { |
|
364 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
365 |
+ } |
|
356 | 366 |
} |
357 | 367 |
}, |
358 | 368 |
//─────axios─────┘ |
--- client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
+++ client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
... | ... | @@ -44,15 +44,15 @@ |
44 | 44 |
<div class="layout"> |
45 | 45 |
<label for="" class="form-title"><span>*</span>코드</label> |
46 | 46 |
<input type="text" class="form-control sm" :disabled="isFormDisabled || !submitStts" |
47 |
- v-model="viewCode.cd" placeholder="코드를 입력해주세요"/> |
|
47 |
+ v-model="viewCode.cd" placeholder="코드를 입력하세요."/> |
|
48 | 48 |
</div> |
49 | 49 |
<div class="layout"> |
50 | 50 |
<label for="" class="form-title"><span>*</span>코드명</label> |
51 |
- <input type="text" class="form-control sm" :disabled="isFormDisabled" v-model="viewCode.cdNm" placeholder="코드명을 입력해주세요"/> |
|
51 |
+ <input type="text" class="form-control sm" :disabled="isFormDisabled" v-model="viewCode.cdNm" placeholder="코드명을 입력하세요."/> |
|
52 | 52 |
</div> |
53 | 53 |
<div class="layout"> |
54 | 54 |
<label for="" class="form-title">코드값</label> |
55 |
- <input type="text" class="form-control sm" :disabled="isFormDisabled" v-model="viewCode.cdVl" placeholder="코드값을 입력해주세요"/> |
|
55 |
+ <input type="text" class="form-control sm" :disabled="isFormDisabled" v-model="viewCode.cdVl" placeholder="코드값을 입력해주세요."/> |
|
56 | 56 |
</div> |
57 | 57 |
<div class="border-bottom layout"> |
58 | 58 |
<label for="" class="form-title"><span>*</span>사용여부</label> |
... | ... | @@ -71,7 +71,7 @@ |
71 | 71 |
</div> |
72 | 72 |
<div class="grid-column layout"> |
73 | 73 |
<label for="textarea" class="form-title" style="vertical-align: top;">코드설명</label> |
74 |
- <textarea class="form-control sm" id="textarea" :disabled="isFormDisabled" v-model="viewCode.cdExpln" style="height: 100%;" placeholder="코드설명을 입력해주세요"></textarea> |
|
74 |
+ <textarea class="form-control sm" id="textarea" :disabled="isFormDisabled" v-model="viewCode.cdExpln" style="height: 100%;" placeholder="코드설명을 입력해주세요."></textarea> |
|
75 | 75 |
</div> |
76 | 76 |
</div> |
77 | 77 |
</div> |
... | ... | @@ -144,7 +144,12 @@ |
144 | 144 |
this.newCode.useYn = "Y"; |
145 | 145 |
} |
146 | 146 |
} catch (error) { |
147 |
- alert(error.response.data.message); |
|
147 |
+ const errorData = error.response.data; |
|
148 |
+ if (errorData.message != null && errorData.message != "") { |
|
149 |
+ alert(error.response.data.message); |
|
150 |
+ } else { |
|
151 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
152 |
+ } |
|
148 | 153 |
} |
149 | 154 |
}, |
150 | 155 |
fnViewDetail(cd) { |
... | ... | @@ -163,7 +168,12 @@ |
163 | 168 |
this.submitStts = false; |
164 | 169 |
} |
165 | 170 |
} catch (error) { |
166 |
- alert(error.response.data.message); |
|
171 |
+ const errorData = error.response.data; |
|
172 |
+ if (errorData.message != null && errorData.message != "") { |
|
173 |
+ alert(error.response.data.message); |
|
174 |
+ } else { |
|
175 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
176 |
+ } |
|
167 | 177 |
} |
168 | 178 |
}, |
169 | 179 |
// 저장 |
... | ... | @@ -187,13 +197,18 @@ |
187 | 197 |
// this.selectedCd = res.data.data.cd; |
188 | 198 |
} |
189 | 199 |
} catch (error) { |
190 |
- alert(error.response.data.message); |
|
200 |
+ const errorData = error.response.data; |
|
201 |
+ if (errorData.message != null && errorData.message != "") { |
|
202 |
+ alert(error.response.data.message); |
|
203 |
+ } else { |
|
204 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
205 |
+ } |
|
191 | 206 |
} |
192 | 207 |
}, |
193 | 208 |
// 삭제 |
194 | 209 |
async fnDel() { |
195 | 210 |
if (Object.keys(this.viewCode).length === 0) { |
196 |
- alert("삭제 대상을 지정해주세요."); |
|
211 |
+ alert("삭제 대상을 지정하세요."); |
|
197 | 212 |
return false; |
198 | 213 |
} |
199 | 214 |
if (this.viewCode.sysPvsnYn == 0) { |
... | ... | @@ -214,7 +229,12 @@ |
214 | 229 |
this.findAll(); |
215 | 230 |
} |
216 | 231 |
} catch (error) { |
217 |
- alert(error.response.data.message); |
|
232 |
+ const errorData = error.response.data; |
|
233 |
+ if (errorData.message != null && errorData.message != "") { |
|
234 |
+ alert(error.response.data.message); |
|
235 |
+ } else { |
|
236 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
237 |
+ } |
|
218 | 238 |
} |
219 | 239 |
}, |
220 | 240 |
// 최상위 신규 객체 생성 |
... | ... | @@ -233,7 +253,7 @@ |
233 | 253 |
subAdd() { |
234 | 254 |
// if (Object.keys(this.viewCode).length === 0) { |
235 | 255 |
if (this.selectedCd == null) { |
236 |
- alert("상위 코드를 지정해주세요."); |
|
256 |
+ alert("상위 코드를 지정하세요."); |
|
237 | 257 |
return; |
238 | 258 |
} else { |
239 | 259 |
if (!confirm("작성 중인 공통코드정보는 저장되지 않습니다.\n계속 하시겠습니까?")) { |
... | ... | @@ -250,16 +270,16 @@ |
250 | 270 |
}, |
251 | 271 |
validation() { |
252 | 272 |
if (!this.viewCode.cd || this.viewCode.cd.trim() === "") { |
253 |
- alert("코드를 입력해주세요."); |
|
273 |
+ alert("코드를 입력하세요."); |
|
254 | 274 |
return false; |
255 | 275 |
} |
256 | 276 |
const alpha = /^[a-zA-Z_]*$/; |
257 | 277 |
if (!alpha.test(this.viewCode.cd)) { |
258 |
- alert("코드는 영문과 언더바(_)만 사용하여 작성해주세요."); |
|
278 |
+ alert("코드는 영문과 언더바(_)만 사용하여 작성하세요."); |
|
259 | 279 |
return false; |
260 | 280 |
} |
261 | 281 |
if (!this.viewCode.cdNm || this.viewCode.cdNm.trim() === "") { |
262 |
- alert("코드명을 입력해주세요."); |
|
282 |
+ alert("코드명을 입력하세요."); |
|
263 | 283 |
return false; |
264 | 284 |
} |
265 | 285 |
return true; |
... | ... | @@ -279,7 +299,12 @@ |
279 | 299 |
this.findByCd(); |
280 | 300 |
} |
281 | 301 |
} catch (error) { |
282 |
- alert(error.res.data.message); |
|
302 |
+ const errorData = error.response.data; |
|
303 |
+ if (errorData.message != null && errorData.message != "") { |
|
304 |
+ alert(error.response.data.message); |
|
305 |
+ } else { |
|
306 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
307 |
+ } |
|
283 | 308 |
} |
284 | 309 |
}, |
285 | 310 |
}, |
--- client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementInsert.vue
+++ client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementInsert.vue
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 |
class="form-control sm" |
18 | 18 |
v-model="contsTypeVO.contsKornNm" |
19 | 19 |
ref="contsKornNm" |
20 |
- placeholder="콘텐츠 한글명을 입력해주세요" |
|
20 |
+ placeholder="콘텐츠 한글명을 입력하세요." |
|
21 | 21 |
/> |
22 | 22 |
</div> |
23 | 23 |
<div class="layout"> |
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 |
class="form-control sm" |
30 | 30 |
v-model="contsTypeVO.contsEngNm" |
31 | 31 |
ref="contsEngNm" |
32 |
- placeholder="콘텐츠 영문명을 입력해주세요" |
|
32 |
+ placeholder="콘텐츠 영문명을 입력하세요." |
|
33 | 33 |
/> |
34 | 34 |
</div> |
35 | 35 |
<div class="layout"> |
... | ... | @@ -42,9 +42,9 @@ |
42 | 42 |
class="form-control sm" |
43 | 43 |
v-model="contsTypeVO.mngrPageCrs" |
44 | 44 |
ref="mngrPageCrs" |
45 |
- placeholder="관리자 path를 입력해주세요" |
|
45 |
+ placeholder="관리자 path를 입력하세요." |
|
46 | 46 |
/> |
47 |
- <span><strong>관리자 PATH</strong> 또는 <strong>사용자 PATH</strong> 중 하나는 필수입니다</span> |
|
47 |
+ <span><strong>관리자 PATH</strong> 또는 <strong>사용자 PATH</strong> 중 하나는 필수입니다.</span> |
|
48 | 48 |
</div> |
49 | 49 |
</div> |
50 | 50 |
<div class="layout"> |
... | ... | @@ -56,7 +56,7 @@ |
56 | 56 |
class="form-control sm" |
57 | 57 |
v-model="contsTypeVO.pageCrs" |
58 | 58 |
ref="pageCrs" |
59 |
- placeholder="사용자 path를 입력해주세요" |
|
59 |
+ placeholder="사용자 path를 입력하세요." |
|
60 | 60 |
/> |
61 | 61 |
</div> |
62 | 62 |
<div class="layout"> |
... | ... | @@ -68,7 +68,7 @@ |
68 | 68 |
class="form-control sm" |
69 | 69 |
v-model="contsTypeVO.compnCrs" |
70 | 70 |
ref="compnCrs" |
71 |
- placeholder="component url을 입력해주세요" |
|
71 |
+ placeholder="COMPONENT URL을 입력하세요." |
|
72 | 72 |
/> |
73 | 73 |
</div> |
74 | 74 |
<div class="layout"> |
... | ... | @@ -143,7 +143,12 @@ |
143 | 143 |
const response = await findByContsType(data); |
144 | 144 |
this.contsTypeVO = response.data.data; |
145 | 145 |
} catch (error) { |
146 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
146 |
+ const errorData = error.response.data; |
|
147 |
+ if (errorData.message != null && errorData.message != "") { |
|
148 |
+ alert(error.response.data.message); |
|
149 |
+ } else { |
|
150 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
151 |
+ } |
|
147 | 152 |
} |
148 | 153 |
}, |
149 | 154 |
|
... | ... | @@ -180,21 +185,26 @@ |
180 | 185 |
}); |
181 | 186 |
} |
182 | 187 |
} catch (error) { |
183 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
188 |
+ const errorData = error.response.data; |
|
189 |
+ if (errorData.message != null && errorData.message != "") { |
|
190 |
+ alert(error.response.data.message); |
|
191 |
+ } else { |
|
192 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
193 |
+ } |
|
184 | 194 |
} |
185 | 195 |
}, |
186 | 196 |
// 유효성 검사 |
187 | 197 |
validation() { |
188 | 198 |
// 콘텐츠 한글명 |
189 | 199 |
if (this.isEmpty(this.contsTypeVO.contsKornNm)) { |
190 |
- alert("콘텐츠 한글명을 입력해주세요."); |
|
200 |
+ alert("콘텐츠 한글명을 입력하세요."); |
|
191 | 201 |
this.$refs.contsKornNm.focus(); |
192 | 202 |
return false; |
193 | 203 |
} |
194 | 204 |
|
195 | 205 |
// 콘텐츠 영문명 |
196 | 206 |
if (this.isEmpty(this.contsTypeVO.contsEngNm)) { |
197 |
- alert("콘텐츠 영문명을 입력해주세요."); |
|
207 |
+ alert("콘텐츠 영문명을 입력하세요."); |
|
198 | 208 |
this.$refs.contsEngNm.focus(); |
199 | 209 |
return false; |
200 | 210 |
} |
... | ... | @@ -203,7 +213,7 @@ |
203 | 213 |
let mngrPageCrs = this.isEmpty(this.contsTypeVO.mngrPageCrs); |
204 | 214 |
let pageCrs = this.isEmpty(this.contsTypeVO.pageCrs); |
205 | 215 |
if (mngrPageCrs && pageCrs) { |
206 |
- alert("관리자 PATH 혹은 사용자 PATH를 입력해주세요."); |
|
216 |
+ alert("관리자 PATH 혹은 사용자 PATH를 입력하세요."); |
|
207 | 217 |
return false; |
208 | 218 |
} |
209 | 219 |
|
... | ... | @@ -225,14 +235,14 @@ |
225 | 235 |
|
226 | 236 |
// COMPONENT_URL |
227 | 237 |
if (this.isEmpty(this.contsTypeVO.compnCrs)) { |
228 |
- alert("COMPONENT_URL을 입력해주세요."); |
|
238 |
+ alert("COMPONENT_URL을 입력하세요."); |
|
229 | 239 |
this.$refs.compnCrs.focus(); |
230 | 240 |
return false; |
231 | 241 |
} |
232 | 242 |
|
233 | 243 |
// 메뉴노출 |
234 | 244 |
if (this.isEmpty(this.contsTypeVO.expsrYn)) { |
235 |
- alert("메뉴노출을 선택해주세요."); |
|
245 |
+ alert("메뉴노출을 선택하세요."); |
|
236 | 246 |
return false; |
237 | 247 |
} |
238 | 248 |
|
--- client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementSelectList.vue
+++ client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementSelectList.vue
... | ... | @@ -69,7 +69,7 @@ |
69 | 69 |
// pageAuth: JSON.parse(localStorage.getItem("vuex")).pageAuth, // 페이지 권한 |
70 | 70 |
|
71 | 71 |
colgroup: ["5%", "40%", "40%", "15%"], |
72 |
- thead: ["번호", "콘텐츠 한글명", "콘텐츠 영문명", "메뉴노출"], |
|
72 |
+ thead: ["NO", "콘텐츠 한글명", "콘텐츠 영문명", "메뉴노출"], |
|
73 | 73 |
tbody: [], |
74 | 74 |
search: { ...defaultSearchParams }, |
75 | 75 |
list: [], |
... | ... | @@ -90,7 +90,12 @@ |
90 | 90 |
this.search = response.data["data"]["pagination"]; |
91 | 91 |
this.makeTbody(); |
92 | 92 |
} catch (error) { |
93 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
93 |
+ const errorData = error.response.data; |
|
94 |
+ if (errorData.message != null && errorData.message != "") { |
|
95 |
+ alert(error.response.data.message); |
|
96 |
+ } else { |
|
97 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
98 |
+ } |
|
94 | 99 |
} |
95 | 100 |
}, |
96 | 101 |
// tbody 생성 |
--- client/views/pages/adm/statistics/BbsStatistics.vue
+++ client/views/pages/adm/statistics/BbsStatistics.vue
... | ... | @@ -171,7 +171,12 @@ |
171 | 171 |
this.bbsCnt = response.data.data.bbsCnt; |
172 | 172 |
} |
173 | 173 |
} catch (error) { |
174 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
174 |
+ const errorData = error.response.data; |
|
175 |
+ if (errorData.message != null && errorData.message != "") { |
|
176 |
+ alert(error.response.data.message); |
|
177 |
+ } else { |
|
178 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
179 |
+ } |
|
175 | 180 |
} |
176 | 181 |
}, |
177 | 182 |
|
... | ... | @@ -235,7 +240,12 @@ |
235 | 240 |
window.URL.revokeObjectURL(url); |
236 | 241 |
}) |
237 | 242 |
.catch((error) => { |
238 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
243 |
+ const errorData = error.response.data; |
|
244 |
+ if (errorData.message != null && errorData.message != "") { |
|
245 |
+ alert(error.response.data.message); |
|
246 |
+ } else { |
|
247 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
248 |
+ } |
|
239 | 249 |
}); |
240 | 250 |
}); |
241 | 251 |
}, |
--- client/views/pages/adm/statistics/MenuStatistics.vue
+++ client/views/pages/adm/statistics/MenuStatistics.vue
... | ... | @@ -171,7 +171,12 @@ |
171 | 171 |
}; |
172 | 172 |
this.menuCnt = response.data.data.menuCnt; |
173 | 173 |
} catch (error) { |
174 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
174 |
+ const errorData = error.response.data; |
|
175 |
+ if (errorData.message != null && errorData.message != "") { |
|
176 |
+ alert(error.response.data.message); |
|
177 |
+ } else { |
|
178 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
179 |
+ } |
|
175 | 180 |
} |
176 | 181 |
}, |
177 | 182 |
|
... | ... | @@ -235,7 +240,12 @@ |
235 | 240 |
window.URL.revokeObjectURL(url); |
236 | 241 |
}) |
237 | 242 |
.catch((error) => { |
238 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
243 |
+ const errorData = error.response.data; |
|
244 |
+ if (errorData.message != null && errorData.message != "") { |
|
245 |
+ alert(error.response.data.message); |
|
246 |
+ } else { |
|
247 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
248 |
+ } |
|
239 | 249 |
}); |
240 | 250 |
}); |
241 | 251 |
}, |
--- client/views/pages/adm/statistics/UserStatistics.vue
+++ client/views/pages/adm/statistics/UserStatistics.vue
... | ... | @@ -161,7 +161,12 @@ |
161 | 161 |
this.chartData = datas; |
162 | 162 |
this.totalCnt = response.data.data.totalCnt; |
163 | 163 |
} catch (error) { |
164 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
164 |
+ const errorData = error.response.data; |
|
165 |
+ if (errorData.message != null && errorData.message != "") { |
|
166 |
+ alert(error.response.data.message); |
|
167 |
+ } else { |
|
168 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
169 |
+ } |
|
165 | 170 |
} |
166 | 171 |
}, |
167 | 172 |
|
... | ... | @@ -225,7 +230,12 @@ |
225 | 230 |
window.URL.revokeObjectURL(url); |
226 | 231 |
}) |
227 | 232 |
.catch((error) => { |
228 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
233 |
+ const errorData = error.response.data; |
|
234 |
+ if (errorData.message != null && errorData.message != "") { |
|
235 |
+ alert(error.response.data.message); |
|
236 |
+ } else { |
|
237 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
238 |
+ } |
|
229 | 239 |
}); |
230 | 240 |
}); |
231 | 241 |
}, |
--- client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
+++ client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
... | ... | @@ -56,7 +56,7 @@ |
56 | 56 |
<button class="btn sm main" @click="fnSave">저장</button> |
57 | 57 |
</div> |
58 | 58 |
<span class="ml10 gray"> |
59 |
- <strong>/경로</strong> 형식으로 입력해주세요. |
|
59 |
+ <strong>/</strong> 또는 <strong>/경로</strong> 형식으로 입력하세요. |
|
60 | 60 |
</span> |
61 | 61 |
</div> |
62 | 62 |
</div> |
... | ... | @@ -160,7 +160,12 @@ |
160 | 160 |
this.defaultCntxtPth = res.data.data; |
161 | 161 |
} |
162 | 162 |
} catch (error) { |
163 |
- alert(error.response.data.message); |
|
163 |
+ const errorData = error.response.data; |
|
164 |
+ if (errorData.message != null && errorData.message != "") { |
|
165 |
+ alert(error.response.data.message); |
|
166 |
+ } else { |
|
167 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
168 |
+ } |
|
164 | 169 |
} |
165 | 170 |
}, |
166 | 171 |
|
... | ... | @@ -195,7 +200,12 @@ |
195 | 200 |
alert(res.data.message); |
196 | 201 |
} |
197 | 202 |
} catch (error) { |
198 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
203 |
+ const errorData = error.response.data; |
|
204 |
+ if (errorData.message != null && errorData.message != "") { |
|
205 |
+ alert(error.response.data.message); |
|
206 |
+ } else { |
|
207 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
208 |
+ } |
|
199 | 209 |
} |
200 | 210 |
} |
201 | 211 |
}, |
--- client/views/pages/adm/system/networkAccessControl/NetworkAccessControlInsert.vue
+++ client/views/pages/adm/system/networkAccessControl/NetworkAccessControlInsert.vue
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 |
<div class="layout border-bottom"> |
21 | 21 |
<label for="" class="form-title"><span>*</span>제어 IP</label> |
22 | 22 |
<div class="form-group"> |
23 |
- <input type="text" class="form-control sm" v-model="accesCtrl.cntrlIp" placeholder="1~255 범위의 숫자로 구성하여 형식에 맞게 작성해주세요." /> |
|
23 |
+ <input type="text" class="form-control sm" v-model="accesCtrl.cntrlIp" placeholder="1~255 범위의 숫자로 구성하여 형식에 맞게 작성하세요." /> |
|
24 | 24 |
<span>ex) 192.168.0.1 / 192.168.0.*</span> |
25 | 25 |
</div> |
26 | 26 |
</div> |
... | ... | @@ -59,7 +59,7 @@ |
59 | 59 |
methods: { |
60 | 60 |
// 목록으로 이동 |
61 | 61 |
fnCancel() { |
62 |
- if (!confirm('등록을 취소하시겠습니까?')) { |
|
62 |
+ if (!confirm('작성을 취소하시겠습니까?')) { |
|
63 | 63 |
return; |
64 | 64 |
} |
65 | 65 |
if (this.accesCtrl.acsCntrlId == null || this.accesCtrl.acsCntrlId == 0) { |
... | ... | @@ -88,7 +88,12 @@ |
88 | 88 |
} |
89 | 89 |
this.codeList = res.data.data.codeList; // 유형 |
90 | 90 |
} catch (error) { |
91 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
91 |
+ const errorData = error.response.data; |
|
92 |
+ if (errorData.message != null && errorData.message != "") { |
|
93 |
+ alert(error.response.data.message); |
|
94 |
+ } else { |
|
95 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
96 |
+ } |
|
92 | 97 |
} |
93 | 98 |
}, |
94 | 99 |
|
... | ... | @@ -117,7 +122,12 @@ |
117 | 122 |
}); |
118 | 123 |
} |
119 | 124 |
} catch (error) { |
120 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
125 |
+ const errorData = error.response.data; |
|
126 |
+ if (errorData.message != null && errorData.message != "") { |
|
127 |
+ alert(error.response.data.message); |
|
128 |
+ } else { |
|
129 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
130 |
+ } |
|
121 | 131 |
} |
122 | 132 |
}, |
123 | 133 |
// 수정 |
... | ... | @@ -137,7 +147,12 @@ |
137 | 147 |
}); |
138 | 148 |
} |
139 | 149 |
} catch (error) { |
140 |
- alert('에러가 발생했습니다.\n시스템관리자에게 문의하세요.'); |
|
150 |
+ const errorData = error.response.data; |
|
151 |
+ if (errorData.message != null && errorData.message != "") { |
|
152 |
+ alert(error.response.data.message); |
|
153 |
+ } else { |
|
154 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
155 |
+ } |
|
141 | 156 |
} |
142 | 157 |
}, |
143 | 158 |
// 유효성 검사 |
... | ... | @@ -145,18 +160,18 @@ |
145 | 160 |
// const ipFilter = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/; |
146 | 161 |
const ipFilter = /^(\*|[1-9]?[0-9]|1\d\d|2[0-4]\d|25[0-5])(\.(\*|[1-9]?[0-9]|1\d\d|2[0-4]\d|25[0-5])){3}$/; |
147 | 162 |
if (this.accesCtrl.cntrlType == null || this.accesCtrl.cntrlType == '') { |
148 |
- alert('제어 유형을 지정해주세요.'); |
|
163 |
+ alert('제어 유형을 지정하세요.'); |
|
149 | 164 |
return false; |
150 | 165 |
} |
151 | 166 |
if (this.accesCtrl.cntrlIp == null || this.accesCtrl.cntrlIp == '') { |
152 |
- alert('제어 IP를 입력해주세요.'); |
|
167 |
+ alert('제어 IP를 입력하세요.'); |
|
153 | 168 |
return false; |
154 | 169 |
} else if (!ipFilter.test(this.accesCtrl.cntrlIp)) { |
155 |
- alert('ip 형식이 다릅니다.'); |
|
170 |
+ alert('IP 형식이 다릅니다.'); |
|
156 | 171 |
return false; |
157 | 172 |
} |
158 | 173 |
if (this.accesCtrl.cntrlCrs == null || this.accesCtrl.cntrlCrs == '') { |
159 |
- alert('제어 경로를 입력해주세요.'); |
|
174 |
+ alert('제어 경로를 입력하세요.'); |
|
160 | 175 |
return false; |
161 | 176 |
} |
162 | 177 |
return true; |
--- client/views/pages/adm/system/networkAccessControl/NetworkAccessControlSelectList.vue
+++ client/views/pages/adm/system/networkAccessControl/NetworkAccessControlSelectList.vue
... | ... | @@ -108,7 +108,12 @@ |
108 | 108 |
this.codeList = res.data.data.codeList; // 검색 조건 항목 |
109 | 109 |
this.makeTbody(); |
110 | 110 |
} catch (error) { |
111 |
- alert(error.response.data.message); |
|
111 |
+ const errorData = error.response.data; |
|
112 |
+ if (errorData.message != null && errorData.message != "") { |
|
113 |
+ alert(error.response.data.message); |
|
114 |
+ } else { |
|
115 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
116 |
+ } |
|
112 | 117 |
} |
113 | 118 |
}, |
114 | 119 |
// 상세 조회 |
--- client/views/pages/adm/system/networkAccessControl/NetworkAccessControlSelectListOne.vue
+++ client/views/pages/adm/system/networkAccessControl/NetworkAccessControlSelectListOne.vue
... | ... | @@ -78,7 +78,12 @@ |
78 | 78 |
this.accesCtrl = res.data.data.accesCtrl; |
79 | 79 |
} |
80 | 80 |
} catch (error) { |
81 |
- // console.log("fnSelectOne : ", error); |
|
81 |
+ const errorData = error.response.data; |
|
82 |
+ if (errorData.message != null && errorData.message != "") { |
|
83 |
+ alert(error.response.data.message); |
|
84 |
+ } else { |
|
85 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
86 |
+ } |
|
82 | 87 |
} |
83 | 88 |
}, |
84 | 89 |
// 목록으로 이동 |
... | ... | @@ -111,7 +116,12 @@ |
111 | 116 |
}); |
112 | 117 |
} |
113 | 118 |
} catch (error) { |
114 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
119 |
+ const errorData = error.response.data; |
|
120 |
+ if (errorData.message != null && errorData.message != "") { |
|
121 |
+ alert(error.response.data.message); |
|
122 |
+ } else { |
|
123 |
+ alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
124 |
+ } |
|
115 | 125 |
} |
116 | 126 |
}, |
117 | 127 |
}, |
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?