Browse Source

设备

master
zhaoy 11 months ago
parent
commit
c938e47133
1 changed files with 1 additions and 17 deletions
  1. +1
    -17
      src/pages/device/deviceInfo/index.jsx

+ 1
- 17
src/pages/device/deviceInfo/index.jsx View File

@@ -202,23 +202,7 @@ const GoodsTypeManage = () => {
> >
更新 更新
</a>, </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 // <a
// key="copy" // key="copy"
// onClick={() => { // onClick={() => {


Loading…
Cancel
Save