瀏覽代碼

求职者管理:是学生才展示学生信息

Xiao_123 1 月之前
父節點
當前提交
7901d329a1
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      src/views/menduner/system/person/details/index.vue
  2. 3 3
      src/views/menduner/system/person/index.vue

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

@@ -33,7 +33,7 @@
       </el-col>
     </el-row>
 
-    <el-row class="m-t-20px">
+    <el-row class="m-t-20px" v-if="type && type === '1'">
       <el-col :span="24">
         <Student />
       </el-col>
@@ -96,7 +96,7 @@ import Student from './components/student.vue'
 const { currentRoute } = useRouter() // 路由
 const { delView } = useTagsViewStore() // 视图操作
 const route = useRoute()
-const { id, userId } = route.query
+const { id, userId, type } = route.query
 onMounted(() => {
   if (!userId) {
     ElMessage.warning('参数错误,用户编号不能为空!')

+ 3 - 3
src/views/menduner/system/person/index.vue

@@ -160,7 +160,7 @@
       <el-table-column label="邀请人" align="center" prop="inviteUserStr" />
       <el-table-column label="操作" align="center" fixed="right" min-width="220">
         <template #default="scope">
-          <el-button link type="primary" @click="openDetail(scope.row.person?.id, scope.row.user.id)">详情</el-button>
+          <el-button link type="primary" @click="openDetail(scope.row.person?.id, scope.row.user.id, scope.row.person?.type)">详情</el-button>
           <el-button v-if="scope.row.user.status === '1'" link type="success" @click="handleAction(scope.row.user.id, 'enable')" v-hasPermi="['menduner:system:person-info:update']">启用</el-button>
           <el-button v-if="scope.row.user.status === '0'" link type="danger" @click="handleAction(scope.row.user.id, 'disabled')" v-hasPermi="['menduner:system:person-info:update']">禁用</el-button>
           <el-button link type="primary" @click="handleResetPassword(scope.row.user.id)" v-hasPermi="['menduner:system:mde-user:update-password']">修改登录密码</el-button>
@@ -243,8 +243,8 @@ const handleQuery = () => {
 
 /** 打开用户详情 */
 const { push } = useRouter()
-const openDetail = (id: string, userId: string) => {
-  push({ name: 'PersonDetail', query: { id, userId } })
+const openDetail = (id: string, userId: string, type: string) => {
+  push({ name: 'PersonDetail', query: { id, userId, type } })
 }
 
 /** 重置按钮操作 */