教师节

This commit is contained in:
nisen
2023-09-02 18:43:57 +08:00
parent 090f37a59d
commit e8469b0a34
2 changed files with 11 additions and 63 deletions

View File

@@ -27,7 +27,7 @@
{{ tool.name.split('.')[0] }}
</div>
<div class="btn">
<button>立即下载</button>
<el-button @click="downLoad(tool)">立即下载</el-button>
</div>
</div>
</div>
@@ -36,8 +36,8 @@
@change-page="loadData" :autoScroll="false">
</pagination>
</div>
<div class="pagination-div">
<span class="notcoures" v-if="list.length == 0">
<div v-if="list.length == 0" class="pagination-div">
<span class="notcoures">
<img :src="`${webBaseUrl}/images/nocase.png`" alt="">
<h5>暂无工具</h5>
</span>
@@ -73,6 +73,11 @@ export default {
this.total = total
}
},
downLoad({ filePath }) {
if (!filePath) return;
console.log(process.env.VUE_APP_FILE_RELATIVE_PATH + filePath);
window.open(process.env.VUE_APP_FILE_RELATIVE_PATH + filePath)
},
getPic(index) {
return this.webBaseUrl + "/images/listblue0" + (index + 1) + ".png";
},