增加:签到人员筛选

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. 32
      src/views/trainService/signInInfoList.vue

@ -5,7 +5,7 @@ ENV = 'development'
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-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://www.bjkeyware.com/prod-api'
# VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999' # 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) { // export function buyTool(tool) {
return request({ // return request({
url: '/pay/one', // url: '/pay/one',
method: 'post', // method: 'post',
data: tool // data: tool
}) // })
} // }
// 购买多个工具支付成功 // // 购买多个工具支付成功
export function buyTools(tools) { // export function buyTools(tools) {
return request({ // return request({
url: '/pay/more', // url: '/pay/more',
method: 'post', // method: 'post',
data: tools // data: tools
}) // })
} // }
//0元订单支付 //0元订单支付
export function noPayBuy(tool) { export function noPayBuy(tool) {
return request({ return request({

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

@ -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>

Loading…
Cancel
Save