main
周文涛 2 years ago
parent cd80a25daf
commit b7821ac266

@ -97,7 +97,7 @@ public class ZxCelueServiceImpl extends ServiceImpl<ZxCelueMapper, ZxCelue> impl
action.append("&&");
}
//设备号.设备型号.下行方法.参数.操作值
action.append(String.format("%s.%s.%s.%s=\"%s\"",serial,modelCode,method,parameter,type));
action.append(String.format("%s.%s.%s.%s=\"%s\"",serial,modelCode,method,parameter,zxCelue.getStatus()));
}
//String s = "s10001.switch1.controlSwitch1.ctrl_ch0_status=\"1\"&&s10002.switch1.controlSwitch1.ctrl_ch0_status=\"1\"";
}

@ -191,6 +191,7 @@
<tr>
<td>操作类型</td>
<td>
<input type="hidden" id="status" th:value="${detail.status}"/>
<div class="layui-form layui-row layui-col-space16">
<div class="layui-col-md3">
<input type="hidden" th:value="${detail.type}" id="typeValue"/>
@ -583,7 +584,8 @@
layer.msg('请选择[执行时段]', {icon: 0}, function(){});
return false;
}
var status = $("#status").val();
status=checkNull(status)?'0':status;
var index = layer.load(0, {shade: false});
var obj = {
'name':celueName,
@ -595,6 +597,7 @@
'day':day,
'startTime':startDate,
'endTime':endDate,
'status':status,
'description':description
};
let ajaxType='POST'//请求类型

Loading…
Cancel
Save