source edit
This commit is contained in:
parent
985f780ab9
commit
0f291383a1
@ -308,21 +308,6 @@
|
|||||||
해시태그는 수정할 수 없습니다. 새로 생성해주세요.
|
해시태그는 수정할 수 없습니다. 새로 생성해주세요.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 상태 -->
|
|
||||||
<div class="mb-4">
|
|
||||||
<label class="text-subtitle-2 font-weight-medium mb-2 d-block">상태</label>
|
|
||||||
<v-select
|
|
||||||
v-if="isEditMode"
|
|
||||||
v-model="editingContent.status"
|
|
||||||
:items="statusOptions"
|
|
||||||
variant="outlined"
|
|
||||||
density="compact"
|
|
||||||
/>
|
|
||||||
<v-chip v-else :color="getStatusColor(selectedContent.status)" variant="tonal">
|
|
||||||
{{ getStatusText(selectedContent.status) }}
|
|
||||||
</v-chip>
|
|
||||||
</div>
|
|
||||||
</v-form>
|
</v-form>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
@ -446,12 +431,6 @@ const contentTypeOptions = [
|
|||||||
{ title: '🎨 포스터', value: 'poster', color: 'orange', emoji: '🎨' }
|
{ title: '🎨 포스터', value: 'poster', color: 'orange', emoji: '🎨' }
|
||||||
]
|
]
|
||||||
|
|
||||||
const statusOptions = [
|
|
||||||
{ title: '발행됨', value: 'published' },
|
|
||||||
{ title: '임시저장', value: 'draft' },
|
|
||||||
{ title: '보관됨', value: 'archived' }
|
|
||||||
]
|
|
||||||
|
|
||||||
const sortOptions = [
|
const sortOptions = [
|
||||||
{ title: '최신순', value: 'latest' },
|
{ title: '최신순', value: 'latest' },
|
||||||
{ title: '오래된순', value: 'oldest' },
|
{ title: '오래된순', value: 'oldest' },
|
||||||
@ -493,15 +472,6 @@ const filteredContents = computed(() => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 상태 필터
|
|
||||||
if (filters.value.published || filters.value.draft) {
|
|
||||||
contents = contents.filter(content => {
|
|
||||||
if (filters.value.published && content.status === 'published') return true
|
|
||||||
if (filters.value.draft && content.status === 'draft') return true
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 정렬 (프로모션 기간 정렬이 활성화되어 있지 않을 때만)
|
// 정렬 (프로모션 기간 정렬이 활성화되어 있지 않을 때만)
|
||||||
if (promotionSortOrder.value === 'none') {
|
if (promotionSortOrder.value === 'none') {
|
||||||
switch (sortBy.value) {
|
switch (sortBy.value) {
|
||||||
@ -727,15 +697,6 @@ const getStatusColor = (status) => {
|
|||||||
return colors[status] || 'grey'
|
return colors[status] || 'grey'
|
||||||
}
|
}
|
||||||
|
|
||||||
const getStatusText = (status) => {
|
|
||||||
const texts = {
|
|
||||||
'published': '발행됨',
|
|
||||||
'draft': '임시저장',
|
|
||||||
'archived': '보관됨'
|
|
||||||
}
|
|
||||||
return texts[status] || status
|
|
||||||
}
|
|
||||||
|
|
||||||
const formatDateRange = (startDate, endDate) => {
|
const formatDateRange = (startDate, endDate) => {
|
||||||
if (!startDate && !endDate) return '-'
|
if (!startDate && !endDate) return '-'
|
||||||
|
|
||||||
|
|||||||
@ -210,34 +210,6 @@
|
|||||||
|
|
||||||
<!-- 메뉴 관리 탭 -->
|
<!-- 메뉴 관리 탭 -->
|
||||||
<v-tabs-window-item value="menu">
|
<v-tabs-window-item value="menu">
|
||||||
<!-- 메뉴 통계 카드 -->
|
|
||||||
<v-row class="mb-4">
|
|
||||||
<v-col cols="6" sm="3">
|
|
||||||
<v-card class="text-center pa-4" variant="tonal" color="primary">
|
|
||||||
<div class="text-h4 font-weight-bold">{{ menus.length }}</div>
|
|
||||||
<div class="text-caption text-grey">전체 메뉴</div>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
|
||||||
<v-col cols="6" sm="3">
|
|
||||||
<v-card class="text-center pa-4" variant="tonal" color="success">
|
|
||||||
<div class="text-h4 font-weight-bold">{{ availableMenusCount }}</div>
|
|
||||||
<div class="text-caption text-grey">판매중</div>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
|
||||||
<v-col cols="6" sm="3">
|
|
||||||
<v-card class="text-center pa-4" variant="tonal" color="warning">
|
|
||||||
<div class="text-h4 font-weight-bold">{{ recommendedMenusCount }}</div>
|
|
||||||
<div class="text-caption text-grey">추천메뉴</div>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
|
||||||
<v-col cols="6" sm="3">
|
|
||||||
<v-card class="text-center pa-4" variant="tonal" color="info">
|
|
||||||
<div class="text-h4 font-weight-bold">{{ averagePrice }}</div>
|
|
||||||
<div class="text-caption text-grey">평균가격</div>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
|
|
||||||
<!-- 메뉴 관리 도구 -->
|
<!-- 메뉴 관리 도구 -->
|
||||||
<v-card class="mb-4">
|
<v-card class="mb-4">
|
||||||
<v-card-title class="pa-4 d-flex align-center justify-space-between">
|
<v-card-title class="pa-4 d-flex align-center justify-space-between">
|
||||||
@ -278,15 +250,6 @@
|
|||||||
hide-details
|
hide-details
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="3">
|
|
||||||
<v-select
|
|
||||||
v-model="menuStatusFilter"
|
|
||||||
label="상태 필터"
|
|
||||||
variant="outlined"
|
|
||||||
:items="['전체', '판매중', '품절']"
|
|
||||||
hide-details
|
|
||||||
/>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user