解决所有bug 优化table内容

This commit is contained in:
2026-01-21 18:43:39 +08:00
parent 9984200814
commit 7f0280ec8a
80 changed files with 5202 additions and 744 deletions

View File

@@ -110,35 +110,98 @@
border
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle">
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column prop="schoolYear" label="学年" show-overflow-tooltip align="center" />
<el-table-column type="index" label="序号" width="60" align="center">
<template #header>
<el-icon><List /></el-icon>
</template>
</el-table-column>
<el-table-column prop="schoolYear" label="学年" show-overflow-tooltip align="center">
<template #header>
<el-icon><Calendar /></el-icon>
<span style="margin-left: 4px">学年</span>
</template>
</el-table-column>
<el-table-column prop="schoolTerm" label="学期" show-overflow-tooltip align="center">
<template #header>
<el-icon><Clock /></el-icon>
<span style="margin-left: 4px">学期</span>
</template>
<template #default="scope">
<span>{{ formatSchoolTerm(scope.row.schoolTerm) }}</span>
<el-tag size="small" type="primary" effect="plain">
{{ formatSchoolTerm(scope.row.schoolTerm) }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="deptName" label="学院" show-overflow-tooltip align="center">
<template #header>
<el-icon><OfficeBuilding /></el-icon>
<span style="margin-left: 4px">学院</span>
</template>
</el-table-column>
<el-table-column prop="classNo" label="班级" show-overflow-tooltip align="center">
<template #header>
<el-icon><Grid /></el-icon>
<span style="margin-left: 4px">班级</span>
</template>
</el-table-column>
<el-table-column prop="realName" label="姓名" show-overflow-tooltip align="center">
<template #header>
<el-icon><Avatar /></el-icon>
<span style="margin-left: 4px">姓名</span>
</template>
</el-table-column>
<el-table-column prop="teacherRealName" label="班主任姓名" show-overflow-tooltip align="center">
<template #header>
<el-icon><UserFilled /></el-icon>
<span style="margin-left: 4px">班主任姓名</span>
</template>
</el-table-column>
<el-table-column prop="teacherTel" label="班主任电话" show-overflow-tooltip align="center">
<template #header>
<el-icon><Phone /></el-icon>
<span style="margin-left: 4px">班主任电话</span>
</template>
</el-table-column>
<el-table-column prop="deptName" label="学院" show-overflow-tooltip align="center" />
<el-table-column prop="classNo" label="班级" show-overflow-tooltip align="center" />
<el-table-column prop="realName" label="姓名" show-overflow-tooltip align="center" />
<el-table-column prop="teacherRealName" label="班主任姓名" show-overflow-tooltip align="center" />
<el-table-column prop="teacherTel" label="班主任电话" show-overflow-tooltip align="center" />
<el-table-column prop="careType" label="需关爱类型" show-overflow-tooltip align="center">
<template #header>
<el-icon><Heart /></el-icon>
<span style="margin-left: 4px">需关爱类型</span>
</template>
<template #default="scope">
<span>{{ formatCareType(scope.row.careType) }}</span>
<el-tag size="small" type="danger" effect="plain">
{{ formatCareType(scope.row.careType) }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="present" label="危机表现" show-overflow-tooltip align="center" min-width="150">
<template #header>
<el-icon><Warning /></el-icon>
<span style="margin-left: 4px">危机表现</span>
</template>
</el-table-column>
<el-table-column prop="present" label="危机表现" show-overflow-tooltip align="center" min-width="150" />
<el-table-column prop="recordDate" label="记录时间" show-overflow-tooltip align="center" width="120">
<template #header>
<el-icon><Calendar /></el-icon>
<span style="margin-left: 4px">记录时间</span>
</template>
<template #default="scope">
<span>{{ scope.row.recordDate || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="result" label="干预结果" show-overflow-tooltip align="center" min-width="150">
<template #header>
<el-icon><CircleCheck /></el-icon>
<span style="margin-left: 4px">干预结果</span>
</template>
<template #default="scope">
<span>{{ scope.row.result || '-' }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="250" align="center" fixed="right">
<template #header>
<el-icon><Setting /></el-icon>
<span style="margin-left: 4px">操作</span>
</template>
<template #default="scope">
<el-button
icon="Edit"