后台客户组 只剩一个时不能删除

This commit is contained in:
pushuo 2022-08-19 09:28:10 +08:00
parent f62863876f
commit e9d3ba13cd
1 changed files with 1 additions and 9 deletions

View File

@ -16,10 +16,6 @@
<th>描述</th>
<th>等级</th>
<th>创建时间</th>
{{-- <th>消费额度</th>
<th>折扣率</th>
<th>奖励积分系数</th>
<th>使用积分系数</th> --}}
<th>操作</th>
</tr>
</thead>
@ -30,13 +26,9 @@
<td>@{{ group.description?.description || '' }}</td>
<td>@{{ group.level }}</td>
<td>@{{ group.created_at }}</td>
{{-- <td>@{{ group.total }}</td>
<td>@{{ group.discount_factor }}</td>
<td>@{{ group.reward_point_factor }}</td>
<td>@{{ group.use_point_factor }}</td> --}}
<td>
<button class="btn btn-outline-secondary btn-sm" @click="checkedCustomersCreate('edit', index)">编辑</button>
<button class="btn btn-outline-danger btn-sm ml-1" type="button" @click="deleteCustomer(group.id, index)">删除</button>
<button class="btn btn-outline-danger btn-sm ml-1" type="button" @click="deleteCustomer(group.id, index)" v-if="customer_groups.length > 1">删除</button>
</td>
</tr>
</tbody>