Commit b38988878d388c51e1fd0d85461da1e8b2a37df2
1 parent
dbba585d
fix: DEFECT-1241 设备公开和私有使用效果(看图修改)
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -124,7 +124,7 @@ | @@ -124,7 +124,7 @@ | ||
124 | ? { | 124 | ? { |
125 | label: '取消分配', | 125 | label: '取消分配', |
126 | icon: 'mdi:account-arrow-left', | 126 | icon: 'mdi:account-arrow-left', |
127 | - ifShow: authBtn(role), | 127 | + ifShow: authBtn(role) && !record?.customerAdditionalInfo?.isPublic, |
128 | popConfirm: { | 128 | popConfirm: { |
129 | title: '是否取消分配客户', | 129 | title: '是否取消分配客户', |
130 | confirm: handleCancelDispatchCustomer.bind(null, record), | 130 | confirm: handleCancelDispatchCustomer.bind(null, record), |
@@ -141,6 +141,7 @@ | @@ -141,6 +141,7 @@ | ||
141 | icon: record?.customerAdditionalInfo?.isPublic | 141 | icon: record?.customerAdditionalInfo?.isPublic |
142 | ? 'ant-design:lock-outlined' | 142 | ? 'ant-design:lock-outlined' |
143 | : 'ant-design:unlock-outlined', | 143 | : 'ant-design:unlock-outlined', |
144 | + ifShow: record?.customerAdditionalInfo?.isPublic === undefined ? false : true, | ||
144 | onClick: handlePublicDevice.bind(null, record), | 145 | onClick: handlePublicDevice.bind(null, record), |
145 | }, | 146 | }, |
146 | { | 147 | { |