培训班人才库分页bug

main
lijingyu007 5 months ago
parent d1770b7cf4
commit 28e27e03a7
  1. 4
      .env.development
  2. 4
      .env.production
  3. 10
      src/api/trainService/index.js
  4. 7
      src/views/trainService/talentPool.vue

@ -4,8 +4,8 @@ ENV = 'development'
# KeySaas测试云平台/开发环境 # KeySaas测试云平台/开发环境
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.229:9999'
# VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999' # VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999'
# VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999' # VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999'

@ -6,7 +6,7 @@ VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_API = '/test-api' # VUE_APP_BASE_API = '/test-api'
# VUE_APP_BASE_TARGET = 'https://www.keyitest.cn/prod-api' # VUE_APP_BASE_TARGET = 'https://www.keyitest.cn/prod-api'
# VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999' VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
# 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://www.bjkeyware.com/prod-api' # VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.keyitest.cn/prod-api' # VUE_APP_BASE_TARGET = 'http://www.keyitest.cn/prod-api'

@ -73,11 +73,11 @@ export function delSignUp(id) {
} }
// 查询已报名列表 // 查询已报名列表
export function searchNum(data) { export function searchNum(params) {
return request({ return request({
url: `/train/trainStudentList`, url: `/train/trainStudentList`,
method: 'post', method: 'get',
data, params,
}) })
} }
@ -85,11 +85,11 @@ export function searchNum(data) {
// 人才库+教师 // 人才库+教师
// 新增人才 // 新增人才
export function listTalent() { export function listTalent(params) {
return request({ return request({
url: '/talent/admin/list', url: '/talent/admin/list',
method: 'get', method: 'get',
params
}) })
} }
export function addTalent(data) { export function addTalent(data) {

@ -32,7 +32,12 @@
<el-table-column label="年级" align="center" prop="grade" /> <el-table-column label="年级" align="center" prop="grade" />
<el-table-column label="专业" align="center" prop="major" /> <el-table-column label="专业" align="center" prop="major" />
<el-table-column label="水平" align="center" prop="level" /> <el-table-column label="水平" align="center" prop="level" />
<el-table-column label="是否雇用" align="center" prop="hire" /> <el-table-column label="是否雇用" align="center" prop="hire">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.hire == '是'"></el-tag>
<el-tag type="warning" v-else></el-tag>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">

Loading…
Cancel
Save