|
|
@@ -202,23 +202,7 @@ const GoodsTypeManage = () => { |
|
|
|
> |
|
|
|
更新 |
|
|
|
</a>, |
|
|
|
<a |
|
|
|
key="status" |
|
|
|
onClick={async () => { |
|
|
|
actionRef.current.reload(); |
|
|
|
record.status = record.status ? 0 : 1; |
|
|
|
|
|
|
|
await UpdateDeviceInfo(record).then((r) => { |
|
|
|
if (r.succeeded) { |
|
|
|
message.success('配置成功'); |
|
|
|
} else { |
|
|
|
message.error('配置失败请重试!'); |
|
|
|
} |
|
|
|
}); |
|
|
|
}} |
|
|
|
> |
|
|
|
{record.status == 0 ? '停用' : '正常'} |
|
|
|
</a>, |
|
|
|
|
|
|
|
// <a |
|
|
|
// key="copy" |
|
|
|
// onClick={() => { |
|
|
|