员工类型新增领导与普通员工区分

This commit is contained in:
fuenmao
2026-04-02 13:54:11 +08:00
parent c2c72fb66c
commit fd90aa3e19
3 changed files with 581 additions and 106 deletions
@@ -11,7 +11,11 @@
<!-- 原有:就诊人类型自定义插槽(不变) -->
<template #personType="scope">
<el-space>
<span v-if="scope.row.personType === 1">公司员工</span>
<div v-if="scope.row.personType === 1" class="flex items-center">
<span>公司员工</span>
<el-tag v-if="scope.row.type == 1" type="success" size="small" class="ml-2">领导</el-tag>
<el-tag v-if="scope.row.type == 2" type="info" size="small" class="ml-2">普通员工</el-tag>
</div>
<span v-else-if="scope.row.personType === 2">
员工家属,所属员工:{{ scope.row.employeeName || "未知" }}
</span>