Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/components/dashboard/CampaignWorkbenchMock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@
<span class="dot dot-high" aria-hidden="true"></span>

<div class="wb-text">
<div class="wb-main">{{ promotion.name }}</div>
<div class="wb-sub">대상: {{ promotion.segmentName }}</div>
<div v-if="promotion">
<div class="wb-main">{{ promotion.name }}</div>
<div class="wb-sub">대상: {{ promotion.segmentName }}</div>
</div>

<el-empty v-else description="추천 프로모션이 없습니다" />

</div>
</div>

<button
v-if="promotion"
class="wb-btn wb-btn--primary"
type="button"
@click.stop="go('PROMOTION_CREATE')"
Expand All @@ -40,7 +46,7 @@ import api from '@/api/axios';

const router = useRouter();
const loading = ref(false);
const promotion = ref([]);
const promotion = ref(null);

const fetchPromotionList = async () => {
loading.value = true;
Expand Down
12 changes: 9 additions & 3 deletions src/components/dashboard/CouponWorkbenchMock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@
<span class="dot dot-mid" aria-hidden="true"></span>

<div class="wb-text">
<div class="wb-main">{{ coupon.name }}</div>
<div class="wb-sub">대상: {{ coupon.segmentName }}</div>
<div v-if="coupon">
<div class="wb-main">{{ coupon.name }}</div>
<div class="wb-sub">대상: {{ coupon.segmentName }}</div>
</div>

<el-empty v-else description="추천 쿠폰이 없습니다"/>

</div>
</div>

<button
v-if="coupon"
class="wb-btn"
type="button"
@click.stop="go('COUPON_CREATE')"
Expand All @@ -39,7 +45,7 @@ import api from '@/api/axios';

const router = useRouter();
const loading = ref(false);
const coupon = ref([]);
const coupon = ref(null);

const fetchCouponList = async () => {
loading.value = true;
Expand Down
5 changes: 0 additions & 5 deletions src/views/product/AsListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@ const goDetail = (id) => {
showDetail.value = true
}

const formatDate = (iso) => {
if (!iso) return '';
return iso.slice(0, 10);
};

// API
const fetchSummary = async () => {
const { data } = await axios.get('/as/summary')
Expand Down
Loading