|
@@ -101,7 +101,7 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</ContentWrap>
|
|
|
-
|
|
|
+
|
|
|
<ContentWrap v-if="userInfo?.userType === '3' || userInfo?.userType === '5'">
|
|
|
<el-table v-loading="loading" :data="oneList">
|
|
|
<el-table-column label="导师姓名" align="center" prop="supervisorName"/>
|
|
@@ -153,9 +153,9 @@
|
|
|
<el-table-column label="操作" align="center" min-width="120px" >
|
|
|
<template #default="scope">
|
|
|
<!--学院查看招生详情-->
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- @click="openStudentSelectSupervisorRecord2(scope.row.projectId,scope.row.supervisorId)"
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="openStudentSelectSupervisorRecord2(scope.row.projectId,scope.row.supervisorId)"
|
|
|
v-hasPermi="['system:student-select-supervisor-record:query']"
|
|
|
>
|
|
|
<Icon icon="ep:bell" />
|
|
@@ -204,7 +204,11 @@
|
|
|
详情
|
|
|
</el-button>
|
|
|
|
|
|
- <el-button type="text" v-if="userInfo?.userType === '4' || userInfo?.userType === '1'" @click="openSupervisorSelectionSetting(scope.row.id)" v-hasPermi="['system:supervisor-selection-setting:query']" >
|
|
|
+ <el-button type="text"
|
|
|
+ v-if="userInfo?.userType === '4' || userInfo?.userType === '1'"
|
|
|
+ @click="openCampusSupervisorSetting(scope.row.id)"
|
|
|
+ v-hasPermi="['system:supervisor-selection-setting:query']"
|
|
|
+ >
|
|
|
<Icon icon="ep:bell" />
|
|
|
校内导师分配
|
|
|
</el-button>
|
|
@@ -246,6 +250,8 @@
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
|
<studentSelectionProjectForm ref="formRef" @success="getList" />
|
|
|
+
|
|
|
+ <openCampusSupervisorForm ref="campusFormRef" @success="getList" />
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
@@ -256,8 +262,7 @@ import studentSelectionProjectForm from './studentSelectionProjectForm.vue'
|
|
|
import { ref } from 'vue'
|
|
|
import { getUserProfile, ProfileVO } from '@/api/system/user/profile'
|
|
|
import { getPopData, updateIsPop,PopDo } from '@/api/system/user/pop'
|
|
|
-import { supervisorSelectionSettingApi, supervisorSelectionSettingVO } from '@/api/system/supervisorSelectionSetting'
|
|
|
-import teacherRequireForm from '@/views/system/userDetail/teacher.vue'
|
|
|
+import openCampusSupervisorForm from './openCampusSupervisorForm.vue'
|
|
|
|
|
|
/** 师生互选项目 列表 */
|
|
|
defineOptions({ name: 'StudentSelectionProject' })
|
|
@@ -300,7 +305,7 @@ const getList = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const oneList = ref([])
|
|
|
+const oneList = ref([])
|
|
|
const getOneList = async () => {
|
|
|
loading.value = true
|
|
|
try {
|
|
@@ -340,6 +345,11 @@ const openForm = (type: string, id?: number, projectId?: number) => {
|
|
|
formRef.value.open(type, id, projectId)
|
|
|
}
|
|
|
|
|
|
+const campusFormRef = ref()
|
|
|
+const openCampusSupervisorSetting = (id) => {
|
|
|
+ campusFormRef.value.open(id)
|
|
|
+}
|
|
|
+
|
|
|
/** 删除按钮操作 */
|
|
|
const handleDelete = async (id: number) => {
|
|
|
try {
|
|
@@ -384,6 +394,9 @@ const router = useRouter()
|
|
|
const openStudentSelectSupervisorRecord = (id) => {
|
|
|
router.push({ name: 'studentSelectSupervisorRecord', query: { projectId: id} });
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// 招生详情
|
|
|
const openStudentSelectSupervisorRecord2 = (projectId,supervisorId) => {
|
|
|
router.push({ name: 'studentSelectSupervisorRecord', query: { projectId: projectId ,supervisorId :supervisorId} });
|