云员工审核+职位报名

main
lijingyu007 6 months ago
parent bd3da86c6a
commit 193ff49ca9
  1. 29
      src/api/cloudUser/index.js
  2. 44
      src/views/cloudUser/apply.vue
  3. 32
      src/views/cloudUser/index.vue

@ -0,0 +1,29 @@
import request from '@/utils/request'
export function getApplyList(params) {
return request({
url: '/tester/cert/admin/auditList',
method: 'get',
params
})
}
// 审核
export function applyPost(id, data) {
return request({
url: '/tester/cert/admin/audit/'+id,
method: 'post',
data
})
}
// 申请职位列表
export function getJobEdList(params) {
return request({
url: '/job/admin/findAllJobs',
method: 'get',
params
})
}

@ -1,15 +1,16 @@
<template> <template>
<div class="cloudUser"> <div class="cloudUser">
<el-table v-loading="loading" :data="cloudUserList"> <el-table v-loading="loading" :data="cloudUserList">
<el-table-column label="用户编号" align="center" prop="index" /> <el-table-column label="用户编号" align="center" prop="userId" />
<el-table-column label="姓名" align="center" prop="name" /> <el-table-column label="姓名" align="center" prop="name" />
<el-table-column label="手机号" align="center" prop="idNumber" /> <el-table-column label="身份证号" align="center" prop="idNumber" />
<el-table-column label="状态" align="center" prop="status" width="180"> <el-table-column label="状态" align="center" prop="status" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status == 0" style="color: #e6a23c">未审核</span> <span v-if="scope.row.status == 0" style="color: #e6a23c">未审核</span>
<span v-if="scope.row.status == 1" style="color: #67c23a">审核通过</span> <span v-if="scope.row.status == 1" style="color: #0952c8">待审核</span>
<span v-if="scope.row.status == 2" style="color: #67c23a">审核通过</span>
<el-tooltip class="item" effect="dark" :content="scope.row.auditOpinion" placement="top-start"> <el-tooltip class="item" effect="dark" :content="scope.row.auditOpinion" placement="top-start">
<span v-if="scope.row.status == 2" style="color: #f56c6c; cursor: pointer">审核未通过</span> <span v-if="scope.row.status == 3" style="color: #f56c6c; cursor: pointer">审核未通过</span>
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
@ -17,10 +18,10 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="applyFn(scope.row)">审核</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="applyFn(scope.row)">审核</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="delFn(scope.row)">删除</el-button> <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="delFn(scope.row)">删除</el-button>
<el-button size="mini" type="text" icon="el-icon-view" @click="detailFn(scope.row)" <el-button size="mini" type="text" icon="el-icon-view" @click="detailFn(scope.row)"
>查看详情</el-button >查看详情</el-button
> > -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -36,8 +37,8 @@
<el-form :rules="rules" ref="form" label-width="80px" :model="form"> <el-form :rules="rules" ref="form" label-width="80px" :model="form">
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-select v-model="form.status" placeholder="请选择审核结果"> <el-select v-model="form.status" placeholder="请选择审核结果">
<el-option label="通过" value="1"></el-option> <el-option label="通过" value="2"></el-option>
<el-option label="不通过" value="2"></el-option> <el-option label="不通过" value="3"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="意见" prop="auditOpinion"> <el-form-item label="意见" prop="auditOpinion">
@ -55,11 +56,12 @@
</template> </template>
<script> <script>
import { getApplyList, getApplyById, applyPost } from '@/api/cloudUser'
export default { export default {
data() { data() {
return { return {
loading: false, loading: false,
cloudUserList: [{}], cloudUserList: [],
detailOpen: false, detailOpen: false,
applyOpen: false, applyOpen: false,
total: 0, total: 0,
@ -77,9 +79,19 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
getList() {}, getList() {
applyFn() { this.loading = true
getApplyList(this.queryParams).then((res) => {
this.total = res.total
this.cloudUserList = res.rows
this.loading = false
}).catch(error => {
this.loading = false
})
},
applyFn(row) {
this.applyOpen = true this.applyOpen = true
this.form.userId = row.userId
}, },
delFn() { delFn() {
this.$confirm('此操作将永久云员工, 是否继续?', '提示', { this.$confirm('此操作将永久云员工, 是否继续?', '提示', {
@ -95,12 +107,17 @@ export default {
}) })
.catch(() => {}) .catch(() => {})
}, },
detailFn() { detailFn(row) {
this.detailOpen = true this.detailOpen = true
}, },
companyApplySubmit() { companyApplySubmit() {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
applyPost(this.form.userId, this.form).then((res) => {
this.$message.success('审核成功')
this.getList()
this.companyApplyCancel()
})
} }
}) })
}, },
@ -113,4 +130,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.cloudUser {
padding: 20px;
}
</style> </style>

@ -1,17 +1,22 @@
<template> <template>
<div class="cloudUser"> <div class="cloudUser">
<el-table v-loading="loading" :data="cloudUserList"> <el-table v-loading="loading" :data="cloudUserList">
<el-table-column label="用户编号" align="center" prop="index" /> <el-table-column label="用户编号" align="center" prop="user_id" />
<el-table-column label="姓名" align="center" prop="name" /> <el-table-column label="用户昵称" align="center" prop="nick_name" />
<el-table-column label="手机号" align="center" prop="idNumber" /> <el-table-column label="性别" align="center" prop="sex" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="手机号" align="center" prop="phonenumber" />
<el-table-column label="职位名称" align="center" prop="title" />
<el-table-column label="职位薪酬" align="center" prop="emolument" />
<el-table-column label="职位发布者" align="center" prop="company" />
<el-table-column label="工作地点" align="center" prop="city" />
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-delete" @click="delFn(scope.row)">删除</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="delFn(scope.row)">删除</el-button>
<el-button size="mini" type="text" icon="el-icon-view" @click="detailFn(scope.row)" <el-button size="mini" type="text" icon="el-icon-view" @click="detailFn(scope.row)"
>查看详情</el-button >查看详情</el-button
> >
</template> </template>
</el-table-column> </el-table-column> -->
</el-table> </el-table>
<pagination <pagination
v-show="total > 0" v-show="total > 0"
@ -26,6 +31,7 @@
</template> </template>
<script> <script>
import { getJobEdList } from '@/api/cloudUser'
export default { export default {
data() { data() {
return { return {
@ -43,7 +49,18 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
getList() {}, getList() {
this.loading = true
getJobEdList(this.queryParams)
.then((res) => {
this.loading = false
this.total = res.total
this.cloudUserList = res.rows
})
.catch((error) => {
this.loading = false
})
},
delFn() { delFn() {
this.$confirm('此操作将永久云员工, 是否继续?', '提示', { this.$confirm('此操作将永久云员工, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -66,4 +83,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.cloudUser {
padding: 20px;
}
</style> </style>
Loading…
Cancel
Save