wuzhen update
This commit is contained in:
1 parent
f71eada96c
commit
76fada3a51
11 files changed
+404
-237
No files matched your search
@@ -244,6 +244,16 @@ export function resumePosition(id: string | number) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 开启岗位招录
|
||||
*/
|
||||
export function startRecruiting(id: string | number) {
|
||||
return request({
|
||||
url: `/jcbt/workStudyPosition/startRecruiting/${id}`,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消岗位
|
||||
*/
|
||||
|
||||
@@ -228,6 +228,13 @@
|
||||
>
|
||||
<el-icon><Upload /></el-icon>发布岗位
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-if="hasPermission('jcbt:workStudyPosition:startRecruiting')"
|
||||
command="startRecruiting"
|
||||
:disabled="getRowStatus(scope.row) !== 'PUBLISHED'"
|
||||
>
|
||||
<el-icon><VideoPlay /></el-icon>开启招录
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-if="hasPermission('jcbt:workStudyPosition:suspend')"
|
||||
command="suspend"
|
||||
@@ -288,6 +295,7 @@ import {
|
||||
exportWorkStudyPosition,
|
||||
getPositionStatistics,
|
||||
publishPosition,
|
||||
startRecruiting,
|
||||
suspendPosition,
|
||||
resumePosition,
|
||||
cancelPosition
|
||||
@@ -518,6 +526,12 @@ async function handleCommand(command, row) {
|
||||
proxy?.$modal.msgSuccess('发布成功');
|
||||
operationSuccess = true;
|
||||
break;
|
||||
case 'startRecruiting':
|
||||
await proxy?.$modal.confirm('确认开启此岗位的招录?开启后学生可以申请此岗位。');
|
||||
await startRecruiting(row.id);
|
||||
proxy?.$modal.msgSuccess('开启招录成功');
|
||||
operationSuccess = true;
|
||||
break;
|
||||
case 'suspend':
|
||||
await proxy?.$modal.confirm('确认暂停此岗位的招录?暂停后学生无法申请此岗位。');
|
||||
await suspendPosition(row.id);
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
|
||||
<el-table-column label="学生信息" min-width="180" align="left">
|
||||
<template #default="scope">
|
||||
<div class="student-info">
|
||||
<div class=":liststudent-info">
|
||||
<div class="student-name">{{ scope.row.studentName }}</div>
|
||||
<div class="student-number">学号:{{ scope.row.studentNumber }}</div>
|
||||
<!-- <div class="student-class">班级:{{ scope.row.className }}</div> -->
|
||||
|
||||
Reference in new issue
Block a user