From 0a3af7d7082a7aa490c5c2ed38c73abbd1b94c45 Mon Sep 17 00:00:00 2001 From: JunGu Kang <chr0m3.kr@gmail.com> Date: Wed, 11 Dec 2019 02:00:34 +0900 Subject: [PATCH] #38 Add Price Field to Voucher Views Voucher Create View Voucher Detail View Voucher List View --- src/views/VoucherCreate.vue | 5 +++++ src/views/VoucherDetail.vue | 5 +++++ src/views/VoucherList.vue | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/src/views/VoucherCreate.vue b/src/views/VoucherCreate.vue index b1284e4..372e866 100644 --- a/src/views/VoucherCreate.vue +++ b/src/views/VoucherCreate.vue @@ -18,6 +18,10 @@ label="이용횟수" v-model="voucher.quantity" ></v-text-field> + <v-text-field + label="가격" + v-model="voucher.price" + ></v-text-field> </v-card-text> <v-card-actions> <v-spacer></v-spacer> @@ -66,6 +70,7 @@ export default { title: '', }, quantity: '', + price: '', }, }), diff --git a/src/views/VoucherDetail.vue b/src/views/VoucherDetail.vue index f9e83ad..557b896 100644 --- a/src/views/VoucherDetail.vue +++ b/src/views/VoucherDetail.vue @@ -25,6 +25,10 @@ label="이용횟수" v-model="voucher.quantity" ></v-text-field> + <v-text-field + label="가격" + v-model="voucher.price" + ></v-text-field> <v-text-field label="등록 시각" readonly @@ -85,6 +89,7 @@ export default { title: '', }, quantity: '', + price: '', createdAt: '', updatedAt: '', }, diff --git a/src/views/VoucherList.vue b/src/views/VoucherList.vue index 8e756be..09a21b9 100644 --- a/src/views/VoucherList.vue +++ b/src/views/VoucherList.vue @@ -98,6 +98,10 @@ export default { text: '이용횟수', value: 'quantity', }, + { + text: '가격', + value: 'price', + }, { text: '등록 시각', value: 'createdAt', -- GitLab