修复按钮判断

This commit is contained in:
liaozetao
2023-11-20 10:59:07 +08:00
parent 8e654d1680
commit 2c95c7fbd3
2 changed files with 2 additions and 3 deletions

View File

@@ -45,7 +45,7 @@
<el-table-column align="center" label="操作" width="200">
<template v-slot="scope">
<el-button @click="editClick(scope.row)" class="primary" type="primary" size="default">编辑</el-button>
<el-button @click="delClick(scope.row)" class="danger" type="danger" size="default" v-if="scope.row.skipType">删除</el-button>
<el-button @click="delClick(scope.row)" class="danger" type="danger" size="default" v-if="scope.row.skipType != 1">删除</el-button>
</template>
</el-table-column>
</el-table>

View File

@@ -33,8 +33,7 @@
<el-table-column align="center" label="操作" width="200">
<template v-slot="scope">
<el-button @click="editClick(scope.row)" class="primary" type="primary" size="default">编辑</el-button>
<el-button @click="delClick(scope.row)" class="danger" type="danger" size="default"
v-if="scope.row.skipType">删除</el-button>
<el-button @click="delClick(scope.row)" class="danger" type="danger" size="default">删除</el-button>
</template>
</el-table-column>
</el-table>