|
|
@ -1,10 +1,20 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="singInWrapper"> |
|
|
|
<div class="singInWrapper"> |
|
|
|
<div class="expBtn"> |
|
|
|
<el-form :model="queryParams" ref="queryForm" inline label-width="68px"> |
|
|
|
<el-button icon="el-icon-download" type="warning" size="small" style="margin-bottom:20px" @click="excelExport" |
|
|
|
<el-form-item label="姓名" prop="studenName"> |
|
|
|
>导出为excel</el-button |
|
|
|
<el-input v-model="queryParams.studenName" placeholder="请输入姓名" clearable size="small" /> |
|
|
|
> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<el-form-item label="学号" prop="studenCode"> |
|
|
|
|
|
|
|
<el-input v-model="queryParams.studenCode" placeholder="请输入学号" clearable size="small" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
|
|
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
<el-button icon="el-icon-download" type="warning" size="small" style="margin-bottom: 20px" @click="excelExport" |
|
|
|
|
|
|
|
>导出为excel</el-button |
|
|
|
|
|
|
|
> |
|
|
|
<el-table v-loading="loading" :data="signinList"> |
|
|
|
<el-table v-loading="loading" :data="signinList"> |
|
|
|
<el-table-column label="序号" type="index" /> |
|
|
|
<el-table-column label="序号" type="index" /> |
|
|
|
<el-table-column label="学生姓名" prop="studenName" align="center" /> |
|
|
|
<el-table-column label="学生姓名" prop="studenName" align="center" /> |
|
|
@ -49,13 +59,15 @@ export default { |
|
|
|
queryParams: { |
|
|
|
queryParams: { |
|
|
|
pageNum: 1, |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
|
|
|
|
studenName: '', |
|
|
|
|
|
|
|
studenCode: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
async signIninit() { |
|
|
|
async signIninit() { |
|
|
|
console.log(this.id) |
|
|
|
console.log(this.id) |
|
|
|
const res = await getSigninInfo(this.id) |
|
|
|
const res = await getSigninInfo(this.id,this.queryParams) |
|
|
|
this.total = res.total |
|
|
|
this.total = res.total |
|
|
|
this.signinList = res.rows |
|
|
|
this.signinList = res.rows |
|
|
|
}, |
|
|
|
}, |
|
|
@ -80,6 +92,14 @@ export default { |
|
|
|
this.$message.success('删除成功') |
|
|
|
this.$message.success('删除成功') |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
handleQuery() { |
|
|
|
|
|
|
|
this.queryParams.pageNum = 1 |
|
|
|
|
|
|
|
this.signIninit() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
resetQuery() { |
|
|
|
|
|
|
|
this.resetForm('queryForm') |
|
|
|
|
|
|
|
this.handleQuery() |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|