增加:签到人员筛选

main
hcj 4 months ago
parent d7a2821d19
commit 5e238fb6e0
  1. 2
      .env.development
  2. BIN
      admin_test.zip
  3. 30
      src/api/toolInfo/market.js
  4. 3
      src/api/trainService/index.js
  5. 28
      src/views/trainService/signInInfoList.vue

@ -5,7 +5,7 @@ ENV = 'development'
VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api'
VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
VUE_APP_BASE_TARGET = 'http://192.168.0.230:9999'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/prod-api'
# VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999'

Binary file not shown.

@ -33,22 +33,22 @@ export function getFunction(toolId) {
// 购买工具支付成功
export function buyTool(tool) {
return request({
url: '/pay/one',
method: 'post',
data: tool
})
}
// export function buyTool(tool) {
// return request({
// url: '/pay/one',
// method: 'post',
// data: tool
// })
// }
// 购买多个工具支付成功
export function buyTools(tools) {
return request({
url: '/pay/more',
method: 'post',
data: tools
})
}
// // 购买多个工具支付成功
// export function buyTools(tools) {
// return request({
// url: '/pay/more',
// method: 'post',
// data: tools
// })
// }
//0元订单支付
export function noPayBuy(tool) {
return request({

@ -279,10 +279,11 @@ export function delCourse(id) {
}
// 根据课程ID获取改课程下所有签到用户信息
export function getSigninInfo(id) {
export function getSigninInfo(id,params) {
return request({
url: '/course/admin/singin/' + id,
method: 'get',
params
})
}
// 删除签到信息

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

Loading…
Cancel
Save