Commit b38988878d388c51e1fd0d85461da1e8b2a37df2

Authored by fengwotao
1 parent dbba585d

fix: DEFECT-1241 设备公开和私有使用效果(看图修改)

... ... @@ -124,7 +124,7 @@
124 124 ? {
125 125 label: '取消分配',
126 126 icon: 'mdi:account-arrow-left',
127   - ifShow: authBtn(role),
  127 + ifShow: authBtn(role) && !record?.customerAdditionalInfo?.isPublic,
128 128 popConfirm: {
129 129 title: '是否取消分配客户',
130 130 confirm: handleCancelDispatchCustomer.bind(null, record),
... ... @@ -141,6 +141,7 @@
141 141 icon: record?.customerAdditionalInfo?.isPublic
142 142 ? 'ant-design:lock-outlined'
143 143 : 'ant-design:unlock-outlined',
  144 + ifShow: record?.customerAdditionalInfo?.isPublic === undefined ? false : true,
144 145 onClick: handlePublicDevice.bind(null, record),
145 146 },
146 147 {
... ...