查看报名用户

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

@ -56,4 +56,12 @@ export function jobDetailById(id) {
isToken: false
}
})
}
// 查看已报名用户
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="name">
<template slot-scope="scope">
<span @click="goanthor('/console/jobuser')" style="color: #1578ed; cursor: pointer">{{
scope.row.huntCount
}}</span>
<span
@click="goanthor('/console/jobuser', scope.row.job_id, scope.row.title)"
style="color: #1578ed; cursor: pointer"
>{{ scope.row.huntCount }}</span
>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="status">
@ -107,8 +109,8 @@ export default {
this.dailogtext = val ? '确定要发布该职位吗?' : '确定要取消发布该职位吗?'
},
//
goanthor(val) {
this.$router.push(val)
goanthor(val, jobId,title) {
jobId ? this.$router.push({ path: val, query: { id: jobId , title} }) : this.$router.push(val)
},
//
delFn(row) {

@ -4,15 +4,19 @@
<div slot="header" class="clearfix">
<div class="cardtitle">
<div class="cardline"></div>
<div class="cardtext">{{title}}</div>
<div class="cardtext">{{ title }}</div>
</div>
<div class="cardBtn" @click="backlist">{{ '< 返回' }}</div>
</div>
<el-table :data="sactionData">
<el-table-column label="序号" align="center" prop="name" />
<el-table-column label="姓名" align="center" prop="name" />
<el-table-column label="手机号" align="center" prop="name" />
<el-table-column label="申请时间" align="center" prop="name" />
<el-table-column label="序号" align="center" prop="user_id" />
<el-table-column label="姓名" align="center" prop="user_name" />
<el-table-column label="手机号" align="center" prop="phonenumber" />
<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">
<template slot-scope="scope">
<el-button type="text" @click="jlDetail(scope.row)"> 查看简历 </el-button>
@ -31,34 +35,26 @@
</el-pagination>
</div>
</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>
</template>
<script>
import { mapGetters } from 'vuex'
import { querydemand } from '@/api/my/testb'
import { jobHuntDetail } from '@/api/job'
export default {
data() {
return {
title: '',
sactionData: [],
total: 0,
queryParams: {
pageSize: 10,
pageNum: 1,
},
dialogVisible: false,
rowUserID: null,// id
rowUserID: null, // id
}
},
mounted() {
this.title = this.$route.query.title || ''
this.getList()
},
computed: {
@ -67,9 +63,9 @@ export default {
methods: {
getList() {
querydemand(this.userinform.userId).then((res) => {
this.sactionData = res.rows
this.total = res.total
jobHuntDetail(this.$route.query.id).then((res) => {
this.sactionData = res.data.rows
this.total = res.data.total
})
},
handleCurrentChange(val) {
@ -77,8 +73,7 @@ export default {
},
//
jlDetail(row) {
this.rowUserID = row.userId
this.dialogVisible = true
this.$router.push('/ability/more/detail?id=' + row.user_id)
},
//
backlist() {

Loading…
Cancel
Save