update:模板

This commit is contained in:
ltx 2026-04-24 17:46:47 +08:00
parent 95d38fbc64
commit de386c2fce
2 changed files with 7 additions and 4 deletions

View File

@ -159,8 +159,8 @@
:before-upload="beforeUpload"
:show-file-list="false" accept=".xlsx">
<div class="upload-inner">
<img src="@/assets/images/excel-icon.png" class="excel-icon" @error="onIconError"
alt="Excel" />
<!-- <img src="@/assets/images/excel-icon.png" class="excel-icon" @error="onIconError"
alt="Excel" /> -->
<div class="upload-text">
将模板拖拽到此区域 或
<span class="upload-link">点击上传</span>
@ -169,6 +169,7 @@
</el-upload>
<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">
下载标准Excel模板
</el-button>
@ -371,7 +372,9 @@ const onIconError = (e: Event) => {
const downloadTemplate = async () => {
try {
// 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 url = window.URL.createObjectURL(new Blob([res.data]))
// const link = document.createElement('a')

View File

@ -15,7 +15,7 @@ export default ({ mode }: ConfigEnv) => {
console.log(`ENV:`, ENV)
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: {
host: '0.0.0.0',
// https: false,