feat: 统一操作列样式并优化按钮交互与构建配置

- 新增全局样式文件兼容旧浏览器的表格操作列居中布局
- 调整操作列宽度、对齐方式和按钮类型以优化交互体验
- 修改 vite 配置每次构建清空输出目录,避免冗余文件
- 为关键操作添加确认弹窗,防止误操作
- 简化下拉菜单按钮,提升界面简洁性
This commit is contained in:
SunYF
2026-10-12 18:16:56 +08:00
parent 59ee3f685f
commit 6c181b9242
38 changed files with 538 additions and 111 deletions
@@ -25,10 +25,10 @@
<el-table-column label="操作工签字时间" min-width="160">
<template #default="{ row }">{{ row.operatorSignedAt || row.signedAt || '-' }}</template>
</el-table-column>
<el-table-column label="操作" width="160" align="center" fixed="right">
<el-table-column label="操作" width="200" align="center" fixed="right">
<template #default="{ row }">
<el-button type="primary" size="small" :loading="row._doing" @click="approve(row)">审核通过</el-button>
<el-button link type="danger" size="small" :loading="row._doing" @click="reject(row)">退回重做</el-button>
<el-button type="success" size="small" :loading="row._doing" @click="approve(row)">审核通过</el-button>
<el-button type="warning" size="small" :loading="row._doing" @click="reject(row)">退回重做</el-button>
</template>
</el-table-column>
</el-table>
@@ -82,6 +82,13 @@ function onPage(p) {
}
async function approve(row) {
try {
await ElMessageBox.confirm('确认审核通过?该操作将记录审核人签字并放行工序。', '审核通过', {
confirmButtonText: '确认通过', cancelButtonText: '取消', type: 'warning'
})
} catch {
return // 取消
}
row._doing = true
try {
await request.post('/signs/auditor', {