|
@@ -9,7 +9,7 @@
|
|
|
<el-form-item label="参与导师" prop="supervisorIds">
|
|
|
<el-select
|
|
|
v-model="queryForm.supervisorId"
|
|
|
- @change="getPassList"
|
|
|
+ @change="getUnPassList"
|
|
|
placeholder="请选择参与导师"
|
|
|
clearable
|
|
|
filterable
|
|
@@ -24,24 +24,6 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="请选择项目" prop="projectId">
|
|
|
- <el-select
|
|
|
- v-model="queryForm.projectId"
|
|
|
- @change="getPassList"
|
|
|
- placeholder="请选择项目"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- class="!w-240px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="project in projects"
|
|
|
- :key="project.id"
|
|
|
- :label="project.projectName"
|
|
|
- :value="project.id"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
<el-form-item label="参与学生年级" prop="studentGrade">
|
|
|
<el-select
|
|
|
v-model="queryForm.studentGrade"
|
|
@@ -61,26 +43,24 @@
|
|
|
|
|
|
<el-form-item label="学生姓名">
|
|
|
<el-input
|
|
|
- v-model="queryForm.studentName"
|
|
|
+ v-model="queryForm.nickname"
|
|
|
placeholder="请输入学生名称"
|
|
|
clearable
|
|
|
@keyup.enter="handleQuery"
|
|
|
class="!w-240px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="选择状态" prop="selectType">
|
|
|
+ <el-form-item label="选择状态" prop="selectStatus">
|
|
|
<el-select
|
|
|
- v-model="queryForm.selectType"
|
|
|
- @change="getPassList"
|
|
|
+ v-model="queryForm.selectStatus"
|
|
|
+ @change="getUnPassList"
|
|
|
placeholder="请选择选择状态"
|
|
|
clearable
|
|
|
class="!w-240px"
|
|
|
>
|
|
|
- <el-option label="撤回" value="0" />
|
|
|
<el-option label="待处理" value="1" />
|
|
|
- <el-option label="同意" value="2" />
|
|
|
- <el-option label="退回" value="3" />
|
|
|
- <el-option label="志愿编辑" value="4" />
|
|
|
+ <el-option label="已通过" value="2" />
|
|
|
+ <el-option label="未提交" value="0" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
@@ -91,50 +71,63 @@
|
|
|
</ContentWrap>
|
|
|
|
|
|
<ContentWrap>
|
|
|
- <el-table :data="passList" :loading="loading" :show-overflow-tooltip="true">
|
|
|
+ <el-table :data="unpassList" :loading="loading" :show-overflow-tooltip="true">
|
|
|
<el-table-column type="index" />
|
|
|
- <el-table-column label="项目名称" align="center" prop="projectName" />
|
|
|
- <el-table-column label="学生姓名" align="center" prop="studentName" />
|
|
|
+ <el-table-column label="学生姓名" align="center" prop="nickname" />
|
|
|
+ <el-table-column label="学号" align="center" prop="userNumber" />
|
|
|
+ <el-table-column label="年级" align="center" prop="grade" />
|
|
|
<el-table-column label="硕士类型" align="center" prop="masterType" >
|
|
|
<template #default="scope">
|
|
|
<dict-tag :type="DICT_TYPE.SYSTEM_STUDENT_MASTER_TYPE" :value="scope.row.masterType" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="导师姓名" align="center" prop="supervisor" />
|
|
|
- <el-table-column label="导师类型" align="center" prop="supervisorType" />
|
|
|
- <el-table-column label="申请状态" align="center" prop="selectType" >
|
|
|
+ <el-table-column label="电话号码" align="center" prop="mobile" />
|
|
|
+ <!-- <el-table-column label="导师姓名" align="center" prop="supervisor" /> -->
|
|
|
+ <el-table-column label="选择状态" align="center" prop="selectStatus">
|
|
|
<template #default="scope">
|
|
|
- <dict-tag :type="DICT_TYPE.SYSTEM_STUDENT_SELECT_RECORD_SELECT_TYPE" :value="scope.row.selectType" />
|
|
|
+ <dict-tag :type="DICT_TYPE.SYSTEM_STUDENT_SELECT_RECORD_SELECT_STATUS" :value="scope.row.selectStatus" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="学生电子签名" align="center" prop="studentSignature" min-width="100px">
|
|
|
+ <el-table-column label="照片" align="center" prop="photoUrl">
|
|
|
<template #default="scope">
|
|
|
- <img v-if="scope.row.studentSignature" :src="scope.row.studentSignature" style="width: 100px; height: 50px;" />
|
|
|
+ <img :src="scope.row.photoUrl" class="w-100px h-100px" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="导师电子签名" align="center" prop="supervisorSignature" min-width="100px">
|
|
|
+ <el-table-column label="操作" align="center">
|
|
|
<template #default="scope">
|
|
|
- <img v-if="scope.row.supervisorSignature" :src="scope.row.supervisorSignature" style="width: 100px; height: 50px;" />
|
|
|
+ <!-- 待处理 -->
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="openForm('update', scope.row.projectId,scope.row.supervisorId,scope.row.id,scope.row.studentId)"
|
|
|
+ v-hasPermi="['system:student-select-supervisor-record:update']"
|
|
|
+ v-if="scope.row.selectStatus === 1"
|
|
|
+ >
|
|
|
+ 志愿编辑
|
|
|
+ </el-button>
|
|
|
+ <!-- 未提交 -->
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="openForm('updatetwo', scope.row.projectId,scope.row.supervisorId,scope.row.id,scope.row.studentId)"
|
|
|
+ v-hasPermi="['system:student-select-supervisor-record:update']"
|
|
|
+ v-if="scope.row.selectStatus === 0"
|
|
|
+ >
|
|
|
+ 志愿编辑
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="提交时间"
|
|
|
- align="center"
|
|
|
- prop="createTime"
|
|
|
- :formatter="dateFormatter"
|
|
|
- width="180px"
|
|
|
- />
|
|
|
</el-table>
|
|
|
</ContentWrap>
|
|
|
+ <studentSelectSupervisorRecordForm ref="formRef" @success="getUnPassList" />
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { ref } from 'vue'
|
|
|
import {DICT_TYPE} from "@/utils/dict";
|
|
|
-import { dateFormatter } from '@/utils/formatTime'
|
|
|
+// import { dateFormatter } from '@/utils/formatTime'
|
|
|
import {studentSelectSupervisorRecordApi, studentSelectSupervisorRecordVO} from "@/api/system/studentSelectSupervisorRecord";
|
|
|
import {studentSelectionProjectApi, studentSelectionProjectVO} from "@/api/system/studentSelectionProject"
|
|
|
import * as UserApi from '@/api/system/user'
|
|
|
+import studentSelectSupervisorRecordForm from '../studentSelectSupervisorRecord/studentSelectSupervisorRecordForm.vue'
|
|
|
|
|
|
defineOptions({ name: 'StudentSelectionWait' })
|
|
|
|
|
@@ -152,21 +145,22 @@ const queryForm = ref({
|
|
|
externalSupervisorId:undefined,
|
|
|
supervisor:undefined,
|
|
|
userType:undefined,
|
|
|
- studentName:"",
|
|
|
+ nickname:"",
|
|
|
createTime: [],
|
|
|
projectName:"",
|
|
|
studentGrade:"",
|
|
|
selectType:undefined,
|
|
|
+ selectStatus:undefined,
|
|
|
})
|
|
|
|
|
|
-const passList = ref<studentSelectSupervisorRecordVO[]>([]) //下面的选择记录列表
|
|
|
-const getPassList = async () => {
|
|
|
+const unpassList = ref<studentSelectSupervisorRecordVO[]>([]) //下面的选择记录列表
|
|
|
+const getUnPassList = async () => {
|
|
|
loading.value = true
|
|
|
try {
|
|
|
- const data = await studentSelectSupervisorRecordApi.getStudentSelectSupervisorRecordPage(queryForm)
|
|
|
- passList.value = data
|
|
|
- // console.log("passList", passList.value);
|
|
|
- passList.value = data.list
|
|
|
+ const data = await UserApi.getUnPassedStudentsPage(queryForm.value)
|
|
|
+ unpassList.value = data
|
|
|
+ console.log("unpassList", unpassList.value);
|
|
|
+ unpassList.value = data.list
|
|
|
total.value = data.total
|
|
|
} finally {
|
|
|
loading.value = false
|
|
@@ -205,7 +199,7 @@ const gradeOptions = computed(() => {
|
|
|
|
|
|
const handleQuery = () => {
|
|
|
queryForm.value.pageNo = 1
|
|
|
- getPassList()
|
|
|
+ getUnPassList()
|
|
|
}
|
|
|
|
|
|
const queryFormRef = ref()
|
|
@@ -214,9 +208,14 @@ const resetQuery = () => {
|
|
|
handleQuery()
|
|
|
}
|
|
|
|
|
|
+const formRef = ref(); // 确保初始化为 null
|
|
|
+const openForm = (type: string, projectId?: number, supervisorId?:number, id?:number, studentId?:number) => {
|
|
|
+ formRef.value.open(type, projectId, supervisorId, id, studentId)
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
onMounted(() => {
|
|
|
- getPassList()
|
|
|
+ getUnPassList()
|
|
|
getSupervisor()
|
|
|
getAllProject()
|
|
|
})
|