큐레이션 - 조회, 등록, 수정, UI
- 시리즈 큐레이션 여부 추가
This commit is contained in:
		| @@ -65,6 +65,14 @@ | |||||||
|                   <td> |                   <td> | ||||||
|                     {{ item.description }} |                     {{ item.description }} | ||||||
|                   </td> |                   </td> | ||||||
|  |                   <td> | ||||||
|  |                     <h3 v-if="item.isSeries"> | ||||||
|  |                       O | ||||||
|  |                     </h3> | ||||||
|  |                     <h3 v-else> | ||||||
|  |                       X | ||||||
|  |                     </h3> | ||||||
|  |                   </td> | ||||||
|                   <td> |                   <td> | ||||||
|                     <h3 v-if="item.isAdult"> |                     <h3 v-if="item.isAdult"> | ||||||
|                       O |                       O | ||||||
| @@ -165,6 +173,19 @@ | |||||||
|               </v-col> |               </v-col> | ||||||
|             </v-row> |             </v-row> | ||||||
|           </v-card-text> |           </v-card-text> | ||||||
|  |           <v-card-text> | ||||||
|  |             <v-row> | ||||||
|  |               <v-col cols="4"> | ||||||
|  |                 시리즈 큐레이션 | ||||||
|  |               </v-col> | ||||||
|  |               <v-col cols="8"> | ||||||
|  |                 <input | ||||||
|  |                   v-model="curation.is_series" | ||||||
|  |                   type="checkbox" | ||||||
|  |                 > | ||||||
|  |               </v-col> | ||||||
|  |             </v-row> | ||||||
|  |           </v-card-text> | ||||||
|           <v-card-text> |           <v-card-text> | ||||||
|             <v-row> |             <v-row> | ||||||
|               <v-col cols="4"> |               <v-col cols="4"> | ||||||
| @@ -254,7 +275,7 @@ export default { | |||||||
|             show_delete_confirm_dialog: false, |             show_delete_confirm_dialog: false, | ||||||
|             show_write_dialog: false, |             show_write_dialog: false, | ||||||
|             selected_curation: {}, |             selected_curation: {}, | ||||||
|             curation: {is_adult: false}, |             curation: {is_adult: false, is_series: false}, | ||||||
|             curations: [], |             curations: [], | ||||||
|             tabs: [], |             tabs: [], | ||||||
|             selected_tab_id: 1, |             selected_tab_id: 1, | ||||||
| @@ -271,6 +292,12 @@ export default { | |||||||
|                     sortable: false, |                     sortable: false, | ||||||
|                     value: 'description', |                     value: 'description', | ||||||
|                 }, |                 }, | ||||||
|  |                 { | ||||||
|  |                   text: '시리즈 큐레이션', | ||||||
|  |                   align: 'center', | ||||||
|  |                   sortable: false, | ||||||
|  |                   value: 'isSeries', | ||||||
|  |                 }, | ||||||
|                 { |                 { | ||||||
|                     text: '19금', |                     text: '19금', | ||||||
|                     align: 'center', |                     align: 'center', | ||||||
| @@ -312,13 +339,14 @@ export default { | |||||||
|             this.curation.tab_id = item.tabId |             this.curation.tab_id = item.tabId | ||||||
|             this.curation.title = item.title |             this.curation.title = item.title | ||||||
|             this.curation.description = item.description |             this.curation.description = item.description | ||||||
|  |             this.curation.is_series = item.isSeries | ||||||
|             this.curation.is_adult = item.isAdult |             this.curation.is_adult = item.isAdult | ||||||
|  |  | ||||||
|             this.show_write_dialog = true |             this.show_write_dialog = true | ||||||
|         }, |         }, | ||||||
|  |  | ||||||
|         cancel() { |         cancel() { | ||||||
|             this.curation = {is_adult: false} |             this.curation = {is_adult: false, is_series: false} | ||||||
|             this.selected_curation = {} |             this.selected_curation = {} | ||||||
|  |  | ||||||
|             this.is_modify = false |             this.is_modify = false | ||||||
| @@ -398,6 +426,7 @@ export default { | |||||||
|                     tabId: this.curation.tab_id, |                     tabId: this.curation.tab_id, | ||||||
|                     title: this.curation.title, |                     title: this.curation.title, | ||||||
|                     description: this.curation.description, |                     description: this.curation.description, | ||||||
|  |                     isSeries: this.curation.is_series, | ||||||
|                     isAdult: this.curation.is_adult |                     isAdult: this.curation.is_adult | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
| @@ -440,6 +469,10 @@ export default { | |||||||
|                     request.description = this.curation.description |                     request.description = this.curation.description | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|  |                 if (this.selected_curation.isSeries !== this.curation.is_series) { | ||||||
|  |                     request.isSeries = this.curation.is_series | ||||||
|  |                 } | ||||||
|  |  | ||||||
|                 if (this.selected_curation.isAdult !== this.curation.is_adult) { |                 if (this.selected_curation.isAdult !== this.curation.is_adult) { | ||||||
|                     request.isAdult = this.curation.is_adult |                     request.isAdult = this.curation.is_adult | ||||||
|                 } |                 } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung