添加白名单数量判断

This commit is contained in:
liaozetao
2024-02-27 16:26:22 +08:00
committed by Dragon
parent 3a52b34239
commit 05721d3916

View File

@@ -98,7 +98,7 @@
<el-table-column align="center" fixed property="stickNum" label="参与魔法棒数量" />
<el-table-column align="center" fixed label="操作">
<template v-slot="scope">
<el-button @click="white(scope.row)" :type="scope.row.isWhite ? 'primary': 'warning'" size="small"
<el-button @click="white(scope.row)" :type="whiteCount == 0 ? 'primary' : (scope.row.isWhite ? 'warning' : 'info')" size="small"
>设为白名单</el-button
>
</template>
@@ -140,6 +140,7 @@ export default {
total: 10, //总页数
currentPage: 1, //页码
pageSize: 10, //条数
whiteCount: 0,
// 内表格
dialogTableVisible: false, //控制内表单
dialogTableVisibleTitle: "轮次idxxx的参与情况", //控制内表单