
250516 하석형 권한 삭제 시 사용 중인 부서가 있을 경우 삭제 불가, 팝업 위치 정중앙 설정
@cf5ef583b9a492274a9da4ddac18aa1b4cfef149
--- client/resources/api/dept.js
+++ client/resources/api/dept.js
... | ... | @@ -34,4 +34,8 @@ |
34 | 34 |
|
35 | 35 |
export const deptMbrSaveProc = params => { |
36 | 36 |
return apiClient.post(`/admin/dept/deptMbrSaveProc.json`, params); |
37 |
+} |
|
38 |
+ |
|
39 |
+export const findDeptAuthrtByAuthrtCd = params => { |
|
40 |
+ return apiClient.post(`/admin/dept/findDeptAuthrtByAuthrtCd.json`, params); |
|
37 | 41 |
}(파일 끝에 줄바꿈 문자 없음) |
--- client/views/pages/adm/departmentManagement/DepartmentManagement.vue
+++ client/views/pages/adm/departmentManagement/DepartmentManagement.vue
... | ... | @@ -306,13 +306,13 @@ |
306 | 306 |
}, |
307 | 307 |
// 저장 |
308 | 308 |
async fnSave() { |
309 |
+ // 유효성 검사 |
|
310 |
+ if (this.validation() == false) { |
|
311 |
+ return false; |
|
312 |
+ } |
|
309 | 313 |
// 변경전 코드와 비교 |
310 | 314 |
if(_.isEqual(this.viewDept, this.originDept)) { |
311 | 315 |
alert("변경할 내용이 없습니다."); |
312 |
- return false; |
|
313 |
- } |
|
314 |
- // 유효성 검사 |
|
315 |
- if (this.validation() == false) { |
|
316 | 316 |
return false; |
317 | 317 |
} |
318 | 318 |
// 신규 등록 및 수정 설정 |
--- client/views/pages/adm/main/Main.vue
+++ client/views/pages/adm/main/Main.vue
... | ... | @@ -326,16 +326,28 @@ |
326 | 326 |
} |
327 | 327 |
} |
328 | 328 |
if (!count) { |
329 |
+ const width = popup.wdthLen; |
|
330 |
+ const height = popup.vrtcLen; |
|
331 |
+ |
|
332 |
+ const screenX = window.screenX ?? window.screenLeft; |
|
333 |
+ const screenY = window.screenY ?? window.screenTop; |
|
334 |
+ const outerWidth = window.outerWidth ?? document.documentElement.clientWidth; |
|
335 |
+ const outerHeight = window.outerHeight ?? document.documentElement.clientHeight; |
|
336 |
+ |
|
337 |
+ const left = screenX + (outerWidth - width) / 2; |
|
338 |
+ const top = screenY + (outerHeight - height) / 2; |
|
339 |
+ |
|
340 |
+ const specs = `width=${width},height=${height},left=${left},top=${top},scrollbars=no,resizable=no,toolbars=no,menubar=no`; |
|
329 | 341 |
let size = "width=" + popup.wdthLen + ", height=" + popup.vrtcLen; |
330 | 342 |
window.open( |
331 | 343 |
"/cmmn/popup.page?popupId=" + popup.popupId, |
332 | 344 |
"_blank", |
333 |
- size + ", scrollbars=no, resizable=no, toolbars=no, menubar=no" |
|
345 |
+ specs |
|
346 |
+ // size + ", scrollbars=no, resizable=no, toolbars=no, menubar=no" |
|
334 | 347 |
); |
335 | 348 |
} |
336 | 349 |
} |
337 | 350 |
}, |
338 |
- |
|
339 | 351 |
}, |
340 | 352 |
}; |
341 | 353 |
|
--- client/views/pages/adm/popup/PopupManagementInsert.vue
+++ client/views/pages/adm/popup/PopupManagementInsert.vue
... | ... | @@ -191,7 +191,7 @@ |
191 | 191 |
<div class="layout"> |
192 | 192 |
<label class="form-title"><span>*</span>순서</label> |
193 | 193 |
<select class="form-select sm " v-model="popup['sn']" ref="sn"> |
194 |
- <option value="">순서를 선택하세요.</option> |
|
194 |
+ <option value="0">순서를 선택하세요.</option> |
|
195 | 195 |
<option value="1">1</option> |
196 | 196 |
<option value="2">2</option> |
197 | 197 |
<option value="3">3</option> |
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?