update:模板
This commit is contained in:
parent
95d38fbc64
commit
de386c2fce
@ -159,8 +159,8 @@
|
|||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
:show-file-list="false" accept=".xlsx">
|
:show-file-list="false" accept=".xlsx">
|
||||||
<div class="upload-inner">
|
<div class="upload-inner">
|
||||||
<img src="@/assets/images/excel-icon.png" class="excel-icon" @error="onIconError"
|
<!-- <img src="@/assets/images/excel-icon.png" class="excel-icon" @error="onIconError"
|
||||||
alt="Excel" />
|
alt="Excel" /> -->
|
||||||
<div class="upload-text">
|
<div class="upload-text">
|
||||||
将模板拖拽到此区域 或
|
将模板拖拽到此区域 或
|
||||||
<span class="upload-link">点击上传</span>
|
<span class="upload-link">点击上传</span>
|
||||||
@ -169,6 +169,7 @@
|
|||||||
</el-upload>
|
</el-upload>
|
||||||
|
|
||||||
<div class="download-btn-wrap">
|
<div class="download-btn-wrap">
|
||||||
|
<!-- <a href="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/web/%E8%BF%90%E5%8A%A8%E9%A6%86%E5%AD%A6%E7%94%9F%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"></a> -->
|
||||||
<el-button class="btn-download" @click="downloadTemplate">
|
<el-button class="btn-download" @click="downloadTemplate">
|
||||||
下载标准Excel模板
|
下载标准Excel模板
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -371,7 +372,9 @@ const onIconError = (e: Event) => {
|
|||||||
const downloadTemplate = async () => {
|
const downloadTemplate = async () => {
|
||||||
try {
|
try {
|
||||||
// TODO: 替换为实际模板下载接口
|
// TODO: 替换为实际模板下载接口
|
||||||
ElMessage.info('正在下载模板...')
|
// ElMessage.info('正在下载模板...')
|
||||||
|
window.open('https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/web/%E8%BF%90%E5%8A%A8%E9%A6%86%E5%AD%A6%E7%94%9F%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx', '_blank')
|
||||||
|
|
||||||
// const res = await axios.get('/api/sportHall/downloadTemplate', { responseType: 'blob' })
|
// const res = await axios.get('/api/sportHall/downloadTemplate', { responseType: 'blob' })
|
||||||
// const url = window.URL.createObjectURL(new Blob([res.data]))
|
// const url = window.URL.createObjectURL(new Blob([res.data]))
|
||||||
// const link = document.createElement('a')
|
// const link = document.createElement('a')
|
||||||
|
|||||||
@ -15,7 +15,7 @@ export default ({ mode }: ConfigEnv) => {
|
|||||||
console.log(`ENV:`, ENV)
|
console.log(`ENV:`, ENV)
|
||||||
|
|
||||||
return defineConfig({
|
return defineConfig({
|
||||||
base: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/web/samart-static/202604161348/',
|
base: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/web/samart-static/202604241737/',
|
||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
// https: false,
|
// https: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user