解决所有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

@@ -77,23 +77,89 @@
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
@sort-change="sortChangeHandle">
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column prop="classNo" label="班级" show-overflow-tooltip />
<el-table-column prop="realName" label="班主任" show-overflow-tooltip />
<el-table-column prop="recordDate" label="考核日期" width="120" align="center" />
<el-table-column prop="createTime" label="申诉日期" width="120" align="center" />
<el-table-column prop="assessmentCategory" label="考核项目" show-overflow-tooltip />
<el-table-column prop="assessmentPoint" label="考核指标" show-overflow-tooltip />
<el-table-column prop="remarks" label="情况说明" show-overflow-tooltip />
<el-table-column prop="appealReason" label="申诉原因" show-overflow-tooltip />
<el-table-column prop="createBy" label="考核人" show-overflow-tooltip />
<el-table-column prop="appealStatus" label="申诉结果" width="100" align="center">
<template #default="scope">
<span>{{ getAppealStatusText(scope.row.appealStatus) }}</span>
<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="classNo" label="班级" show-overflow-tooltip>
<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>
<template #header>
<el-icon><UserFilled /></el-icon>
<span style="margin-left: 4px">班主任</span>
</template>
</el-table-column>
<el-table-column prop="recordDate" label="考核日期" width="120" align="center">
<template #header>
<el-icon><Calendar /></el-icon>
<span style="margin-left: 4px">考核日期</span>
</template>
</el-table-column>
<el-table-column prop="createTime" label="申诉日期" width="120" align="center">
<template #header>
<el-icon><Calendar /></el-icon>
<span style="margin-left: 4px">申诉日期</span>
</template>
</el-table-column>
<el-table-column prop="assessmentCategory" label="考核项目" show-overflow-tooltip>
<template #header>
<el-icon><Tickets /></el-icon>
<span style="margin-left: 4px">考核项目</span>
</template>
</el-table-column>
<el-table-column prop="assessmentPoint" label="考核指标" show-overflow-tooltip>
<template #header>
<el-icon><DataAnalysis /></el-icon>
<span style="margin-left: 4px">考核指标</span>
</template>
</el-table-column>
<el-table-column prop="remarks" label="情况说明" show-overflow-tooltip>
<template #header>
<el-icon><Document /></el-icon>
<span style="margin-left: 4px">情况说明</span>
</template>
</el-table-column>
<el-table-column prop="appealReason" label="申诉原因" show-overflow-tooltip>
<template #header>
<el-icon><Warning /></el-icon>
<span style="margin-left: 4px">申诉原因</span>
</template>
</el-table-column>
<el-table-column prop="createBy" label="考核人" show-overflow-tooltip>
<template #header>
<el-icon><User /></el-icon>
<span style="margin-left: 4px">考核人</span>
</template>
</el-table-column>
<el-table-column prop="appealStatus" label="申诉结果" width="100" align="center">
<template #header>
<el-icon><CircleCheck /></el-icon>
<span style="margin-left: 4px">申诉结果</span>
</template>
<template #default="scope">
<StatusTag
:value="scope.row.appealStatus"
:options="[{ label: '待审核', value: '0' }, { label: '通过', value: '1' }, { label: '驳回', value: '2' }]"
:type-map="{ '0': { type: 'warning', effect: 'light' }, '1': { type: 'success', effect: 'light' }, '2': { type: 'danger', effect: 'light' } }"
/>
</template>
</el-table-column>
<el-table-column prop="appealReply" label="反馈意见" show-overflow-tooltip>
<template #header>
<el-icon><EditPen /></el-icon>
<span style="margin-left: 4px">反馈意见</span>
</template>
</el-table-column>
<el-table-column prop="appealReply" label="反馈意见" show-overflow-tooltip />
<el-table-column label="操作" width="150" align="center" fixed="right">
<template #header>
<el-icon><Setting /></el-icon>
<span style="margin-left: 4px">操作</span>
</template>
<template #default="scope">
<el-button
v-if="!scope.row.appealStatus || scope.row.appealStatus === '0'"
@@ -186,6 +252,9 @@ import { fetchList, delObjs, auditAppeal } from "/@/api/stuwork/classmasterevalu
import { useMessage, useMessageBox } from "/@/hooks/message";
import { getDeptList, getClassListByRole } from '/@/api/basic/basicclass'
import { getTypeValue } from '/@/api/admin/dict'
import { List, Grid, UserFilled, Calendar, Tickets, DataAnalysis, Document, Warning, User, CircleCheck, EditPen, Setting } from '@element-plus/icons-vue'
import { defineAsyncComponent } from 'vue'
const StatusTag = defineAsyncComponent(() => import('/@/components/StatusTag/index.vue'))
// 定义变量内容
const searchFormRef = ref()