mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
教师节
This commit is contained in:
@@ -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";
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user