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> <el-input v-else v-model="scope.row.note" placeholder="备注"></el-input>
</template> </template>
</el-table-column> </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"> <template #default="scope">
<el-button <el-link
v-if="scope.row.isEdit" v-if="scope.row.isEdit"
text
type="primary" type="primary"
size="small" size="small"
@click="formTableSave(scope.row)" @click="formTableSave(scope.row)"
>保存</el-button >保存</el-link
> >
<el-button <el-link
v-if="scope.row.isEdit" v-if="scope.row.isEdit"
text type="danger"
type="primary"
size="small" size="small"
style="margin-left: 5px;"
@click="formTableCancel(scope.row)" @click="formTableCancel(scope.row)"
>取消</el-button >取消</el-link
> >
<el-button <el-link
v-else v-else
text
type="primary" type="primary"
size="small" size="small"
@click="formTableEdit(scope.row)" @click="formTableEdit(scope.row)"
>编辑</el-button >编辑</el-link
> >
<el-button <el-link
v-if="!scope.row.isEdit" v-if="!scope.row.isEdit"
text
type="danger" type="danger"
size="small" size="small"
style="margin-left: 5px;"
@click="formTableDel(scope.row.id)" @click="formTableDel(scope.row.id)"
>删除</el-button >删除</el-link
> >
</template> </template>
</el-table-column> </el-table-column>