

231107 김성훈 자료집 카테고리 수정
@afcae6a10e7c44caf5c8aa5a6c1162f3951b42cc
--- client/views/pages/admin/databook/DataInsert.vue
+++ client/views/pages/admin/databook/DataInsert.vue
... | ... | @@ -19,15 +19,15 @@ |
19 | 19 |
<td> |
20 | 20 |
<div class="flex-start"> |
21 | 21 |
<div> |
22 |
- <input type="radio" name="category" id="policy" style="display:none" checked> |
|
22 |
+ <input type="radio" name="category" id="policy" value="policy" style="display:none" checked v-model="post.ctgry_nm"> |
|
23 | 23 |
<label for="policy">정책자료</label> |
24 | 24 |
</div> |
25 | 25 |
<div> |
26 |
- <input type="radio" name="category" id="research" style="display:none"> |
|
26 |
+ <input type="radio" name="category" id="research" value="research" style="display:none" v-model="post.ctgry_nm"> |
|
27 | 27 |
<label for="research">연구자료</label> |
28 | 28 |
</div> |
29 | 29 |
<div> |
30 |
- <input type="radio" name="category" id="guide" style="display:none"> |
|
30 |
+ <input type="radio" name="category" id="guide" value="guide" style="display:none" v-model="post.ctgry_nm"> |
|
31 | 31 |
<label for="guide">가이드라인</label> |
32 | 32 |
</div> |
33 | 33 |
</div> |
... | ... | @@ -70,6 +70,8 @@ |
70 | 70 |
post_title: null, |
71 | 71 |
post_content: null, |
72 | 72 |
link_url: null, |
73 |
+ // 카테고리가 없는 게시판에서는 null로 설정 부탁합니다! |
|
74 |
+ ctgry_nm: 'policy', |
|
73 | 75 |
}, |
74 | 76 |
fileList: [], |
75 | 77 |
filecount: 0, |
--- client/views/pages/admin/databook/DataSelectList.vue
+++ client/views/pages/admin/databook/DataSelectList.vue
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 |
<option :value = null selected>전체</option> |
15 | 15 |
<option value="title">제목</option> |
16 | 16 |
<option value="content">내용</option> |
17 |
- <option value="user">작성자</option> |
|
17 |
+ <option value="writer">작성자</option> |
|
18 | 18 |
</select> |
19 | 19 |
<div class="input-group"> |
20 | 20 |
<input type="text" class="input" placeholder="검색어를 입력해주세요." v-model="postListSearch.searchText" @keyup.enter="postSelectList()"> |
--- client/views/pages/admin/databook/DataSelectOne.vue
+++ client/views/pages/admin/databook/DataSelectOne.vue
... | ... | @@ -72,6 +72,7 @@ |
72 | 72 |
bbs_id: null, |
73 | 73 |
rgtr_id: null, |
74 | 74 |
mdfr_id: null, |
75 |
+ ctgry_nm: null, |
|
75 | 76 |
}, |
76 | 77 |
fileList: [], |
77 | 78 |
oEditors: [], // oEditors는 스마트에디터용 |
... | ... | @@ -175,7 +176,7 @@ |
175 | 176 |
}); |
176 | 177 |
}, |
177 | 178 |
|
178 |
- noticeDelete: function() { |
|
179 |
+ postDelete: function() { |
|
179 | 180 |
const vm = this; |
180 | 181 |
|
181 | 182 |
axios({ |
--- client/views/pages/admin/databook/DataUpdate.vue
+++ client/views/pages/admin/databook/DataUpdate.vue
... | ... | @@ -77,6 +77,7 @@ |
77 | 77 |
bbs_id: null, |
78 | 78 |
rgtr_id: null, |
79 | 79 |
mdfr_id: null, |
80 |
+ ctgry_nm: null, |
|
80 | 81 |
}, |
81 | 82 |
fileList: [], |
82 | 83 |
deleteFileList: [], |
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?