

Merge branch 'master' of http://210.180.118.83/jhpark/cms_frontend
@0f3b340c979f66c7095d2b4898984985c65b9578
--- client/views/pages/adm/boardManagement/boardManagement/BoardManagementInsert.vue
+++ client/views/pages/adm/boardManagement/boardManagement/BoardManagementInsert.vue
... | ... | @@ -187,6 +187,7 @@ |
187 | 187 |
data() { |
188 | 188 |
return { |
189 | 189 |
bbsMng: {}, |
190 |
+ rawBbsMng: {}, // 수정 전 원본 데이터 |
|
190 | 191 |
bbsTypeList: [], |
191 | 192 |
pageTypeList: [], |
192 | 193 |
maxFileSize: null, // 시스템 최대 파일 크기 |
... | ... | @@ -248,7 +249,8 @@ |
248 | 249 |
this.bbsMng.bfrAftrPstUseYn = "N"; |
249 | 250 |
this.bbsMng.cmntUseYn = "N"; |
250 | 251 |
} |
251 |
- |
|
252 |
+ this.rawBbsMng = JSON.parse(JSON.stringify(this.bbsMng)); // 원본 데이터 저장 |
|
253 |
+ |
|
252 | 254 |
this.bbsTypeList = res.data.data.bbsTypeList; |
253 | 255 |
this.pageTypeList = res.data.data.pageTypeList; |
254 | 256 |
this.maxFileSize = res.data.data.maxFileSize; // 시스템 최대 파일 크기 |
... | ... | @@ -291,6 +293,11 @@ |
291 | 293 |
if (!this.Validation()) { |
292 | 294 |
return; |
293 | 295 |
} |
296 |
+ if(this.bbsMng.bbsNm != this.rawBbsMng.bbsNm) { |
|
297 |
+ if(!confirm("게시판 명 변경 시 메뉴명도 변경됩니다.\n계속 진행하시겠습니까?")) { |
|
298 |
+ return; |
|
299 |
+ } |
|
300 |
+ } |
|
294 | 301 |
try { |
295 | 302 |
const res = await update(this.bbsMng); |
296 | 303 |
alert(res.data.message); |
--- client/views/pages/adm/boardManagement/template/videoTemplate/VideoInsert.vue
+++ client/views/pages/adm/boardManagement/template/videoTemplate/VideoInsert.vue
... | ... | @@ -579,6 +579,13 @@ |
579 | 579 |
fnThumbnailInsert(event) { |
580 | 580 |
const file = event.target.files[0]; |
581 | 581 |
if (file && file.type.startsWith("image/")) { |
582 |
+ if (this.bbsMng.byteLmt != 0 && this.bbsMng.byteLmt != null) { |
|
583 |
+ if (file.size > this.bbsMng.byteLmt) { |
|
584 |
+ alert(this.bbsMng.fileSzLmt + "MB 이하의 파일만 등록 가능합니다."); |
|
585 |
+ return; |
|
586 |
+ } |
|
587 |
+ } |
|
588 |
+ |
|
582 | 589 |
if (this.imgFileList.length > 0) { |
583 | 590 |
if (this.imgFileList[0].fileId != null) { |
584 | 591 |
this.deleteFileList.push(this.imgFileList[0]); |
... | ... | @@ -588,7 +595,9 @@ |
588 | 595 |
} else { |
589 | 596 |
// 이미지 파일이 아닐 경우, 사용자에게 경고 |
590 | 597 |
alert("이미지 파일만 등록할 수 있습니다."); |
598 |
+ return; |
|
591 | 599 |
} |
600 |
+ |
|
592 | 601 |
}, |
593 | 602 |
// 썸네일 삭제 |
594 | 603 |
fnImgFileDelete(file, index) { |
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?