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

@@ -31,7 +31,6 @@
<el-button
icon="Plus"
type="primary"
class="ml10"
@click="formDialogRef.openDialog()">
新增
</el-button>
@@ -51,15 +50,45 @@
border
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle">
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column prop="ruleName" label="奖项名称" show-overflow-tooltip align="center" min-width="200" />
<el-table-column prop="ruleType" label="奖项类型" show-overflow-tooltip align="center">
<template #default="scope">
<span>{{ formatRuleType(scope.row.ruleType) }}</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="ruleName" label="奖项名称" show-overflow-tooltip align="center" min-width="200">
<template #header>
<el-icon><Trophy /></el-icon>
<span style="margin-left: 4px">奖项名称</span>
</template>
<template #default="scope">
<el-tag v-if="scope.row.ruleName" size="small" type="warning" effect="light">
{{ scope.row.ruleName }}
</el-tag>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column prop="ruleType" label="奖项类型" show-overflow-tooltip align="center">
<template #header>
<el-icon><Collection /></el-icon>
<span style="margin-left: 4px">奖项类型</span>
</template>
<template #default="scope">
<el-tag size="small" type="info" effect="plain">
{{ formatRuleType(scope.row.ruleType) }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="remarks" label="备注" show-overflow-tooltip align="center" min-width="200">
<template #header>
<el-icon><EditPen /></el-icon>
<span style="margin-left: 4px">备注</span>
</template>
</el-table-column>
<el-table-column prop="remarks" label="备注" show-overflow-tooltip align="center" min-width="200" />
<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
icon="Edit"
@@ -98,6 +127,7 @@ import { fetchList, delObj } from "/@/api/stuwork/rewardrule";
import { getDicts } from "/@/api/admin/dict";
import { useMessage, useMessageBox } from "/@/hooks/message";
import FormDialog from './form.vue'
import { List, Trophy, Collection, EditPen, Setting } from '@element-plus/icons-vue'
// 定义变量内容
const formDialogRef = ref()