test #56
@@ -89,6 +89,26 @@
 | 
			
		||||
        <v-card-title v-else>
 | 
			
		||||
          배너 등록
 | 
			
		||||
        </v-card-title>
 | 
			
		||||
        <v-card-text>
 | 
			
		||||
          <v-row align="center">
 | 
			
		||||
            <v-col cols="4">
 | 
			
		||||
              메인 탭
 | 
			
		||||
            </v-col>
 | 
			
		||||
            <v-col cols="8">
 | 
			
		||||
              <v-radio-group
 | 
			
		||||
                v-model="banner.tab_id"
 | 
			
		||||
                row
 | 
			
		||||
              >
 | 
			
		||||
                <v-radio
 | 
			
		||||
                  v-for="tab in tabs"
 | 
			
		||||
                  :key="tab.tabId"
 | 
			
		||||
                  :label="tab.title"
 | 
			
		||||
                  :value="tab.tabId"
 | 
			
		||||
                />
 | 
			
		||||
              </v-radio-group>
 | 
			
		||||
            </v-col>
 | 
			
		||||
          </v-row>
 | 
			
		||||
        </v-card-text>
 | 
			
		||||
        <v-card-text>
 | 
			
		||||
          <v-row align="center">
 | 
			
		||||
            <v-col cols="4">
 | 
			
		||||
@@ -307,7 +327,7 @@ export default {
 | 
			
		||||
            show_write_dialog: false,
 | 
			
		||||
            show_delete_confirm_dialog: false,
 | 
			
		||||
            selected_banner: {},
 | 
			
		||||
            banner: {type: 'CREATOR'},
 | 
			
		||||
            banner: {type: 'CREATOR', tab_id: 1},
 | 
			
		||||
            banners: [],
 | 
			
		||||
            events: [],
 | 
			
		||||
            creators: [],
 | 
			
		||||
@@ -359,7 +379,7 @@ export default {
 | 
			
		||||
            this.is_selecting = false
 | 
			
		||||
            this.show_write_dialog = false
 | 
			
		||||
            this.show_delete_confirm_dialog = false
 | 
			
		||||
            this.banner = {type: 'CREATOR'}
 | 
			
		||||
            this.banner = {type: 'CREATOR', tab_id: 1}
 | 
			
		||||
            this.selected_banner = {}
 | 
			
		||||
            this.search_query_creator = ''
 | 
			
		||||
            this.search_query_series = ''
 | 
			
		||||
@@ -411,6 +431,7 @@ export default {
 | 
			
		||||
            this.banner.series_title = banner.seriesTitle
 | 
			
		||||
            this.banner.link = banner.link
 | 
			
		||||
            this.banner.is_adult = banner.isAdult
 | 
			
		||||
            this.banner.tab_id = banner.tabId
 | 
			
		||||
 | 
			
		||||
            setTimeout(() => {
 | 
			
		||||
              this.is_selecting = false; // 선택 상태 해제
 | 
			
		||||
@@ -489,6 +510,10 @@ export default {
 | 
			
		||||
                  request.seriesId = this.banner.series_id
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                if (this.banner.tab_id !== 1) {
 | 
			
		||||
                  request.tabId = this.banner.tab_id
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                formData.append("request", JSON.stringify(request))
 | 
			
		||||
 | 
			
		||||
                const res = await api.saveBanner(formData)
 | 
			
		||||
@@ -560,6 +585,10 @@ export default {
 | 
			
		||||
                    request.isAdult = this.banner.is_adult
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                if (this.selected_banner.tabId !== this.banner.tab_id) {
 | 
			
		||||
                  request.tabId = this.banner.tab_id
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                formData.append("request", JSON.stringify(request))
 | 
			
		||||
 | 
			
		||||
                const res = await api.modifyBanner(formData)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user