Переглянути джерело

求职者管理:添加学生信息展示

Xiao_123 1 місяць тому
батько
коміт
d158e4cc3c

+ 5 - 0
src/api/menduner/system/person/index.ts

@@ -151,5 +151,10 @@ export const PersonInfoApi = {
   // 面试邀约分页
   getInterviewInvitePage: async (params: any) => {
     return await request.get({ url: `/menduner/system/interview-invite/page`, params })
+  },
+
+  // 获取学生基本信息
+  getStudentInfo: async (userId: string) => {
+    return await request.post({ url: `/menduner/system/student/get?userId=${userId}` })
   }
 }

+ 33 - 0
src/views/menduner/system/person/details/components/student.vue

@@ -0,0 +1,33 @@
+<template>
+  <el-card shadow="never">
+    <template #header>
+      <CardTitle title="学生信息" />
+    </template>
+    <el-descriptions class="margin-top" :column="3" border>
+      <el-descriptions-item label="就读学校">{{ info.schoolInfo?.name }}</el-descriptions-item>
+      <el-descriptions-item label="所在院系">{{ info.schoolDept?.name }}</el-descriptions-item>
+      <el-descriptions-item label="所属专业">{{ info.major?.nameCn }}</el-descriptions-item>
+      <el-descriptions-item label="所在班级">{{ info.schoolClass?.name }}</el-descriptions-item>
+      <el-descriptions-item label="学号">{{ info?.studentNo }}</el-descriptions-item>
+      <el-descriptions-item label="紧急联系人">{{ info?.emergencyContactName }}</el-descriptions-item>
+      <el-descriptions-item label="紧急联系人电话">{{ info?.emergencyContactPhone }}</el-descriptions-item>
+    </el-descriptions>
+  </el-card>
+</template>
+
+<script setup>
+defineOptions({ name: 'EnterpriseDetailsInfo'})
+import { PersonInfoApi } from '@/api/menduner/system/person'
+
+const props = defineProps({
+  userId: String
+})
+
+// 获取学生信息
+const info = ref({})
+const getInfo = async () => {
+  const data = await PersonInfoApi.getStudentInfo(props.userId)
+  info.value = data
+}
+if (props.userId) getInfo()
+</script>

+ 15 - 8
src/views/menduner/system/person/details/index.vue

@@ -9,14 +9,6 @@
           <Info :id="id" :user-id="userId" />
         </el-card>
       </el-col>
-      <el-col :span="6" v-hasPermi="['menduner:system:user-account:query']">
-        <el-card shadow="never">
-          <template #header>
-            <CardTitle title="账户信息" />
-          </template>
-          <Account :user-id="userId" />
-        </el-card>
-      </el-col>
       <el-col :span="6" v-hasPermi="['menduner:system:person-job-favorite:query']">
         <el-card shadow="never">
           <template #header>
@@ -31,6 +23,20 @@
           <Attachment :user-id="userId" />
         </el-card>
       </el-col>
+      <el-col :span="6" v-hasPermi="['menduner:system:user-account:query']">
+        <el-card shadow="never">
+          <template #header>
+            <CardTitle title="账户信息" />
+          </template>
+          <Account :user-id="userId" />
+        </el-card>
+      </el-col>
+    </el-row>
+
+    <el-row class="m-t-20px">
+      <el-col :span="24">
+        <Student />
+      </el-col>
     </el-row>
 
     <el-row class="m-t-20px">
@@ -84,6 +90,7 @@ import Attachment from './components/attachment.vue'
 import DeliveryJob from './components/deliveryJob.vue'
 import BalanceDetails from './components/balanceDetails.vue'
 import InterviewInvite from './components/interviewInvite.vue'
+import Student from './components/student.vue'
 
 /** 初始化 */
 const { currentRoute } = useRouter() // 路由

+ 5 - 0
src/views/menduner/system/person/index.vue

@@ -135,6 +135,11 @@
       <el-table-column label="职位" align="center" prop="work.positionName">
         <template #default="{ row }">{{ formatName(row.work?.positionName) }}</template>
       </el-table-column>
+      <el-table-column label="人才类型" align="center" prop="person.type">
+        <template #default="scope">
+          {{ scope.row.person?.type === '1' ? '在校学生' : '职场人士'}}
+        </template>
+      </el-table-column>
       <el-table-column label="求职状态" align="center" prop="person.jobStatus" width="130px">
         <template #default="scope">
           <dict-tag :type="DICT_TYPE.MENDUNER_JOB_SEEK_STATUS" :value="scope.row.person?.jobStatus" />