엑셀다운로드 기능 추가

This commit is contained in:
Yu Sung
2024-01-02 06:39:02 +09:00
parent 2ea2421f7c
commit aa3c3211aa
4 changed files with 57 additions and 3 deletions

View File

@@ -31,4 +31,17 @@ async function getCouponNumberList(couponId, page) {
return Vue.axios.get('/can/coupon/number-list?couponId=' + couponId + '&page=' + (page - 1) + "&size=20");
}
export {getCans, insertCan, deleteCan, paymentCan, getCouponList, generateCoupon, getCouponNumberList}
async function downloadCouponNumberList(couponId) {
return Vue.axios.get('/can/coupon/number-list/download?couponId=' + couponId, { responseType: 'blob' });
}
export {
getCans,
insertCan,
deleteCan,
paymentCan,
getCouponList,
generateCoupon,
getCouponNumberList,
downloadCouponNumberList
}