style: 表格操作按钮统一添加图标

评测列表与模型管理列表的详情、编辑、删除按钮补充 Font Awesome 图标,提升操作可辨识度。
This commit is contained in:
caoxiaozhu
2026-07-13 11:51:50 +08:00
parent 91a7c84d7c
commit bff07b7a31
2 changed files with 12 additions and 4 deletions

View File

@@ -91,8 +91,12 @@ onMounted(() => {
</el-table-column> </el-table-column>
</template> </template>
<template #actions="{ row }"> <template #actions="{ row }">
<el-button link type="primary" size="small" @click="handleViewDetail(row)">详情</el-button> <el-button link type="primary" size="small" @click="handleViewDetail(row)">
<el-button link type="danger" size="small" @click="handleDeleteEval(row)">删除</el-button> <i class="fa fa-file-text-o" style="margin-right: 4px" />详情
</el-button>
<el-button link type="danger" size="small" @click="handleDeleteEval(row)">
<i class="fa fa-trash-o" style="margin-right: 4px" />删除
</el-button>
</template> </template>
</DataTablePage> </DataTablePage>

View File

@@ -167,8 +167,12 @@ onMounted(loadData)
</el-table-column> </el-table-column>
</template> </template>
<template #actions="{ row }"> <template #actions="{ row }">
<el-button type="primary" link size="small" @click="editModel(row)">编辑</el-button> <el-button type="primary" link size="small" @click="editModel(row)">
<el-button type="danger" link size="small" @click="handleDeleteConfig(row)">删除</el-button> <i class="fa fa-edit" style="margin-right: 4px" />编辑
</el-button>
<el-button type="danger" link size="small" @click="handleDeleteConfig(row)">
<i class="fa fa-trash-o" style="margin-right: 4px" />删除
</el-button>
</template> </template>
</DataTablePage> </DataTablePage>