fix:输出日志详情操作列固定

This commit is contained in:
shijing 2025-02-18 09:28:56 +08:00
parent 539b911968
commit 2a36b210b2
1 changed files with 12 additions and 14 deletions

View File

@ -119,39 +119,37 @@
<el-input v-else v-model="scope.row.note" placeholder="备注"></el-input>
</template>
</el-table-column>
<el-table-column prop="open" label="操作" width="60" align="center" v-if="!isSubmit">
<el-table-column prop="open" label="操作" width="90" align="center" fixed="right" v-if="!isSubmit">
<template #default="scope">
<el-button
<el-link
v-if="scope.row.isEdit"
text
type="primary"
size="small"
@click="formTableSave(scope.row)"
>保存</el-button
>保存</el-link
>
<el-button
<el-link
v-if="scope.row.isEdit"
text
type="primary"
type="danger"
size="small"
style="margin-left: 5px;"
@click="formTableCancel(scope.row)"
>取消</el-button
>取消</el-link
>
<el-button
<el-link
v-else
text
type="primary"
size="small"
@click="formTableEdit(scope.row)"
>编辑</el-button
>编辑</el-link
>
<el-button
<el-link
v-if="!scope.row.isEdit"
text
type="danger"
size="small"
style="margin-left: 5px;"
@click="formTableDel(scope.row.id)"
>删除</el-button
>删除</el-link
>
</template>
</el-table-column>