wristband first

This commit is contained in:
Jay
2017-04-07 16:23:41 +08:00
parent 05e38c2e2d
commit 2434db599d
6 changed files with 1384 additions and 979 deletions
@@ -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;
}}>