wristband first
This commit is contained in:
@@ -17,7 +17,8 @@ const WristbandModal = ({ i18n, open, type, data, closeModal, submitModal }) =>
|
||||
monitor: 0,
|
||||
notify: 0,
|
||||
id: type == 1 ? data.uid : '',
|
||||
mac: ''
|
||||
mac: '',
|
||||
switch: 0
|
||||
};
|
||||
|
||||
let mac = e.querySelector('input[name="mac"]');
|
||||
@@ -30,6 +31,8 @@ const WristbandModal = ({ i18n, open, type, data, closeModal, submitModal }) =>
|
||||
if(monitor && 'checked' in monitor) json.monitor = monitor.checked ? 1 : 0;
|
||||
let notify = e.querySelector('input[name="notify"]');
|
||||
if(notify && 'checked' in notify) json.notify = notify.checked ? 1 : 0;
|
||||
let sw = e.querySelector('input[name="switch"]');
|
||||
if(sw && 'checked' in sw) json.switch = sw.checked ? 1 : 0;
|
||||
|
||||
return json;
|
||||
}}>
|
||||
|
||||
Reference in New Issue
Block a user