storeManagement contentmanagement edit

This commit is contained in:
unknown 2025-06-12 13:42:38 +09:00
parent 9756297c45
commit b1f9802e6f

View File

@ -404,13 +404,6 @@
<span class="text-h6 font-weight-bold text-primary">
{{ formatCurrency(menu.price) }}
</span>
<v-rating
:model-value="menu.rating || 0"
readonly
size="small"
color="warning"
density="compact"
/>
</div>
</v-card-text>
</v-card>
@ -435,22 +428,6 @@
<v-icon class="mr-2" color="primary">mdi-food</v-icon>
<span class="text-h6">메뉴 상세 정보</span>
</div>
<div class="d-flex gap-2">
<v-btn
color="primary"
variant="outlined"
prepend-icon="mdi-pencil"
@click="editFromDetail"
>
수정
</v-btn>
<v-btn
icon
@click="showMenuDetailDialog = false"
>
<v-icon>mdi-close</v-icon>
</v-btn>
</div>
</v-card-title>
<v-divider />
@ -502,14 +479,6 @@
{{ formatCurrency(selectedMenuDetail.price) }}
</span>
</div>
<v-rating
:model-value="selectedMenuDetail.rating || 0"
readonly
color="warning"
density="comfortable"
class="mb-4"
/>
</div>
<!-- 메뉴 설명 -->
@ -1625,9 +1594,9 @@ const resetMenuForm = () => {
price: 0,
category: '',
description: '',
ingredients: '',
spicyLevel: '보통',
calories: 0,
ingredients: '', //
spicyLevel: '보통', //
calories: 0, //
available: true,
recommended: false,
imageUrl: ''
@ -1671,17 +1640,6 @@ onMounted(async () => {
const showMenuDetailDialog = ref(false)
const selectedMenuDetail = ref(null)
// ( menuFormData )
const menuFormData = reactive({
menuName: '',
price: 0,
category: '',
description: '',
available: true,
recommended: false,
imageUrl: ''
})
//
/**
@ -1702,20 +1660,6 @@ const editFromDetail = () => {
showMenuDialog.value = true
}
/**
* 메뉴 초기화 (기존 함수 수정)
*/
const resetMenuForm = () => {
Object.assign(menuFormData, {
menuName: '',
price: 0,
category: '',
description: '',
available: true,
recommended: false,
imageUrl: ''
})
}
</script>
<style scoped>
@ -1923,11 +1867,6 @@ const resetMenuForm = () => {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* 평점 스타일 */
.v-rating {
justify-content: flex-end;
}
/* 스낵바 스타일 커스터마이징 */
.v-snackbar {
font-weight: 500;