update modbus db and view

This commit is contained in:
Jay
2017-03-28 13:53:16 +08:00
parent 52e18de9ac
commit eeead43baf
10 changed files with 110 additions and 33 deletions
+1
View File
@@ -101,6 +101,7 @@ class ModbusPage extends React.Component {
submitIOModal = (type, data) => {
let {i18n} = this.props;
if((type == 1 && !data.id) || !('addr' in data) || !('num' in data) || !('type' in data)) return this.props.showDialog(i18n.t('tip.input_empty'));
if(data.datalen == 0) return this.props.showDialog('資料長度不能為0');
data.devuid = this.state.showDev;
if(type == 1){