教师节

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>
<div style="position: relative;"> <div style="position: relative;">
<el-input class="portal-input" placeholder="请输入课程名称" style="border-radius: 20px !important; " <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-input>
<el-button class="sear-but" @click="searchJump()" type="primary" size="mini">搜索</el-button> <el-button class="sear-but" @click="searchJump()" type="primary" size="mini">搜索</el-button>
</div> </div>
@@ -32,7 +32,7 @@
<el-table-column label="教师名称" prop="teacherName" align="center" width="150px"></el-table-column> <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-column label="教师工号" prop="teacherNo" align="center" width="150px"></el-table-column>
</el-table> </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" <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"> :page="params.pageNo" @change-size="changePageSize" @change-page="loadData" :autoScroll="false">
</pagination> </pagination>
@@ -50,69 +50,12 @@ import { teachersList } from "../../api/modules/grateful";
export default { export default {
data: () => { data: () => {
return { 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, total: 0,
list: [], list: [],
params: { params: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
keyword: '', courseName: '',
} }
}; };
}, },

View File

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