Commit a8ef4e78 by gyt

hotfix(生成寄售召回单): 下载地址环境判断

parent dcd8fa9a
......@@ -41,7 +41,7 @@
<el-upload :action="batchRecallUpload" :headers="uploadHeaders" :on-success="handleUploadSuccess" :on-error="handleUploadError" :before-upload="handleBeforeUpload" accept=".xlsx,.xls" :show-file-list="false" name="file" style="display: inline-block; margin-left: 10px;">
<el-button type="primary" :loading="uploadLoading">导入</el-button>
</el-upload>
<a href="http://cloud.liexindev.net/template/批量召回模板.xlsx" download style="text-decoration: none; margin-left: 10px;">
<a :href="downloadHref" download style="text-decoration: none; margin-left: 10px;">
<el-button type="primary">下载模板</el-button>
</a>
<div style="margin-top: 10px;">
......@@ -144,6 +144,7 @@
name: "createConsignmentRecallOrder",
data() {
return {
downloadHref: location.hostname === 'xinlian.ichunt.com' ? 'https://cloud.ichunt.com/template/批量召回模板.xlsx' : 'http://cloud.liexindev.net/template/批量召回模板.xlsx',
batchRecallUpload: NODE_ENVS + '/api/consignmentRecall/batchRecallUpload',
uploadHeaders: {
'Authorization': 'Bearer ' + Util.getCookie('token') || ''
......
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 sign in to comment