|
@@ -24,12 +24,15 @@
|
|
|
{
|
|
|
label: '绑定',
|
|
|
color: 'success',
|
|
|
- ifShow: record.state == 0 && !record.userId,
|
|
|
+ ifShow: (record.state == 0 || record.state == 1) && !record.userId,
|
|
|
onClick: handleDelete.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '解绑',
|
|
|
- ifShow: getCheckRole([RoleEnum.PLAT_ADMIN]) && record.state == 0 && !!record.userId,
|
|
|
+ ifShow:
|
|
|
+ getCheckRole([RoleEnum.PLAT_ADMIN]) &&
|
|
|
+ (record.state == 0 || record.state == 1) &&
|
|
|
+ !!record.userId,
|
|
|
color: 'error',
|
|
|
onClick: handleUpBind.bind(null, record),
|
|
|
},
|