查看报名用户

main
lijingyu007 10 months ago
parent 1133a648a9
commit 921bcb0786
  1. 8
      src/api/job/index.js
  2. 12
      src/page/personalpage/jobm/job.vue
  3. 35
      src/page/personalpage/jobm/jobuser.vue

@ -57,3 +57,11 @@ export function jobDetailById(id) {
} }
}) })
} }
// 查看已报名用户
export function jobHuntDetail(id) {
return request({
url: '/job/myHuntJobs/' + id,
method: 'get',
})
}

@ -18,9 +18,11 @@
<el-table-column label="招聘人数" align="center" prop="person_count" /> <el-table-column label="招聘人数" align="center" prop="person_count" />
<el-table-column label="申请岗位人数" align="center" prop="name"> <el-table-column label="申请岗位人数" align="center" prop="name">
<template slot-scope="scope"> <template slot-scope="scope">
<span @click="goanthor('/console/jobuser')" style="color: #1578ed; cursor: pointer">{{ <span
scope.row.huntCount @click="goanthor('/console/jobuser', scope.row.job_id, scope.row.title)"
}}</span> style="color: #1578ed; cursor: pointer"
>{{ scope.row.huntCount }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">
@ -107,8 +109,8 @@ export default {
this.dailogtext = val ? '确定要发布该职位吗?' : '确定要取消发布该职位吗?' this.dailogtext = val ? '确定要发布该职位吗?' : '确定要取消发布该职位吗?'
}, },
// //
goanthor(val) { goanthor(val, jobId,title) {
this.$router.push(val) jobId ? this.$router.push({ path: val, query: { id: jobId , title} }) : this.$router.push(val)
}, },
// //
delFn(row) { delFn(row) {

@ -9,10 +9,14 @@
<div class="cardBtn" @click="backlist">{{ '< 返回' }}</div> <div class="cardBtn" @click="backlist">{{ '< 返回' }}</div>
</div> </div>
<el-table :data="sactionData"> <el-table :data="sactionData">
<el-table-column label="序号" align="center" prop="name" /> <el-table-column label="序号" align="center" prop="user_id" />
<el-table-column label="姓名" align="center" prop="name" /> <el-table-column label="姓名" align="center" prop="user_name" />
<el-table-column label="手机号" align="center" prop="name" /> <el-table-column label="手机号" align="center" prop="phonenumber" />
<el-table-column label="申请时间" align="center" prop="name" /> <el-table-column label="申请时间" align="center" prop="create_time">
<template slot-scope="scope">
{{ scope.row.create_time && scope.row.create_time.slice(0, 10) }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="260"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="260">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="jlDetail(scope.row)"> 查看简历 </el-button> <el-button type="text" @click="jlDetail(scope.row)"> 查看简历 </el-button>
@ -31,34 +35,26 @@
</el-pagination> </el-pagination>
</div> </div>
</el-card> </el-card>
<!-- 弹层 -->
<el-dialog title="删除" :visible.sync="dialogVisible" width="550px" class="dialogClass">
<div class="textdialog">删除后相关的申请岗位人数将无法查询确定要删除吗</div>
<div class="dialogBtn">
<div class="dialogBtnL" @click="submitDia">确定</div>
<div class="dialogBtnR" @click="cancelDia">取消</div>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { querydemand } from '@/api/my/testb' import { jobHuntDetail } from '@/api/job'
export default { export default {
data() { data() {
return { return {
title: '',
sactionData: [], sactionData: [],
total: 0, total: 0,
queryParams: { queryParams: {
pageSize: 10, pageSize: 10,
pageNum: 1, pageNum: 1,
}, },
dialogVisible: false,
rowUserID: null, // id rowUserID: null, // id
} }
}, },
mounted() { mounted() {
this.title = this.$route.query.title || ''
this.getList() this.getList()
}, },
computed: { computed: {
@ -67,9 +63,9 @@ export default {
methods: { methods: {
getList() { getList() {
querydemand(this.userinform.userId).then((res) => { jobHuntDetail(this.$route.query.id).then((res) => {
this.sactionData = res.rows this.sactionData = res.data.rows
this.total = res.total this.total = res.data.total
}) })
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
@ -77,8 +73,7 @@ export default {
}, },
// //
jlDetail(row) { jlDetail(row) {
this.rowUserID = row.userId this.$router.push('/ability/more/detail?id=' + row.user_id)
this.dialogVisible = true
}, },
// //
backlist() { backlist() {

Loading…
Cancel
Save