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

@@ -20,21 +20,57 @@
border
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle">
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column prop="unionName" label="学生会名称" show-overflow-tooltip align="center" min-width="200" />
<el-table-column prop="unionType" label="类型" show-overflow-tooltip align="center" width="120">
<template #default="scope">
<span>{{ formatUnionType(scope.row.unionType) }}</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="address" label="联系地址" show-overflow-tooltip align="center" min-width="200" />
<el-table-column prop="maintainer" label="负责人" show-overflow-tooltip align="center" width="120" />
<el-table-column prop="sort" label="排序" show-overflow-tooltip align="center" width="80">
<el-table-column prop="unionName" label="学生会名称" show-overflow-tooltip align="center" min-width="200">
<template #header>
<el-icon><OfficeBuilding /></el-icon>
<span style="margin-left: 4px">学生会名称</span>
</template>
</el-table-column>
<el-table-column prop="unionType" label="类型" show-overflow-tooltip align="center" width="120">
<template #header>
<el-icon><Collection /></el-icon>
<span style="margin-left: 4px">类型</span>
</template>
<template #default="scope">
<span>{{ scope.row.sort !== undefined && scope.row.sort !== null ? scope.row.sort : '-' }}</span>
<el-tag size="small" type="info" effect="plain">
{{ formatUnionType(scope.row.unionType) }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="address" label="联系地址" show-overflow-tooltip align="center" min-width="200">
<template #header>
<el-icon><Location /></el-icon>
<span style="margin-left: 4px">联系地址</span>
</template>
</el-table-column>
<el-table-column prop="maintainer" label="负责人" show-overflow-tooltip align="center" width="120">
<template #header>
<el-icon><UserFilled /></el-icon>
<span style="margin-left: 4px">负责人</span>
</template>
</el-table-column>
<el-table-column prop="sort" label="排序" show-overflow-tooltip align="center" width="80">
<template #header>
<el-icon><Sort /></el-icon>
<span style="margin-left: 4px">排序</span>
</template>
<template #default="scope">
<el-tag v-if="scope.row.sort !== undefined && scope.row.sort !== null" size="small" type="primary" effect="plain">
{{ scope.row.sort }}
</el-tag>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="操作" width="100" 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"
@@ -66,6 +102,9 @@ import { fetchList } from "/@/api/stuwork/stuunion";
import { useMessage } from "/@/hooks/message";
import { getDicts } from "/@/api/admin/dict";
import FormDialog from './form.vue'
import {
List, OfficeBuilding, Collection, Location, UserFilled, Sort, Setting
} from '@element-plus/icons-vue'
// 定义变量内容
const formDialogRef = ref()