Commit 3b96187a by caoyanzhi

add: 自提点组件

parent 0c02acf8
......@@ -136,7 +136,7 @@ export default {
api: {
giftShopListUpload: `${welfarePrefix}/gift/gift-shop-list-upload`, // 上传礼品自提点列表EXCEL
giftShopListDownload: `${welfarePrefix}/gift/gift-shop-list-download`, // 下载礼品自提点列表EXCEL
downloadGiftTemplate: '/welfare/static/自提点模板.xlsx', // 下载模板
downloadGiftTemplate: '/static/自提点模板.xlsx', // 下载模板
},
// 自提点类型 0 所有自提点 1 部分自提点 2 批量导入
pickupType: [
......@@ -230,7 +230,9 @@ export default {
},
// 自提点上传-模板下载
onDownloadTemplate() {
window.location.href = `${origin}${this.api.downloadGiftTemplate}`;
// eslint-disable-next-line
const basePath = process.env['NODE_ENV'] === 'development' ? '' : '/welfare';
window.location.href = `${basePath}${this.api.downloadGiftTemplate}`;
},
// 自提点上传-上传之前
onBeforeUpload(file) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment