教师节

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

@@ -12,7 +12,7 @@
</div>
<div style="position: relative;">
<el-input class="portal-input" placeholder="请输入课程名称" style="border-radius: 20px !important; "
@keyup.enter.native="searchJump()" clearable maxlength="50" v-model="params.keyword">
@keyup.enter.native="searchJump()" clearable maxlength="50" v-model="params.courseName">
</el-input>
<el-button class="sear-but" @click="searchJump()" type="primary" size="mini">搜索</el-button>
</div>
@@ -32,7 +32,7 @@
<el-table-column label="教师名称" prop="teacherName" align="center" width="150px"></el-table-column>
<el-table-column label="教师工号" prop="teacherNo" align="center" width="150px"></el-table-column>
</el-table>
<div v-if="pageData.length > 0" style="text-align: center;margin-top: 50px;">
<div v-if="list.length > 0" style="text-align: center;margin-top: 50px;">
<pagination style="background-color: rgba(0, 0, 0, 0);" :size="params.pageSize" :total="total"
:page="params.pageNo" @change-size="changePageSize" @change-page="loadData" :autoScroll="false">
</pagination>
@@ -50,69 +50,12 @@ import { teachersList } from "../../api/modules/grateful";
export default {
data: () => {
return {
pageData: [
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
{
courseUser: '2016-05-02',
auditTime: '王小虎',
auditRemark: '上海市普陀区金沙江路 1518 弄'
},
],
total: 0,
list: [],
params: {
pageNo: 1,
pageSize: 10,
keyword: '',
courseName: '',
}
};
},

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";
},