浏览代码

fix(bugs): 修改问题

tangning 3 年之前
父节点
当前提交
007bcc7dd4
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/views/rightsEnterprises/list.vue

+ 5 - 2
src/views/rightsEnterprises/list.vue

@@ -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),
             },