<!DOCTYPE html>
|
<html lang="zh-cn" xmlns:th=http://www.thymeleaf.org>
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta name="viewport"
|
content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta name="renderer" content="webkit">
|
<title>智慧粮库管理平台-制氮机控制</title>
|
<link rel="stylesheet"
|
th:href="@{../../static/plugins/layui/css/layui.css}">
|
|
<style>
|
.btn-mac {
|
height: 50px;
|
width: 135px;
|
}
|
|
.btn-mac img {
|
height: 25px;
|
margin-right: 6px;
|
}
|
|
.layui-form {
|
font-size: 14px;
|
}
|
|
.layui-btn-container {
|
font-size: 14px;
|
}
|
|
.i-center {
|
text-align: center;
|
}
|
|
#span_info {
|
margin-left: 10px;
|
font-weight: bold;
|
color: red;
|
}
|
</style>
|
</head>
|
|
<body>
|
<div class="layui-tab-content">
|
|
<div class="layui-btn-container">
|
<form class="layui-form" action="">
|
<div class="layui-form-item">
|
<label class="layui-form-label">切换制氮机</label>
|
<div class="layui-input-block">
|
<select name="name" id="select_mac" lay-filter="select_mac">
|
<option th:each="mac,macSet:${listN2Mac}" th:value="${mac.sn}" th:text="${mac.name}"></option>
|
</select>
|
</div>
|
</div>
|
</form>
|
</div>
|
<div class="layui-btn-container i-center">
|
<button class="layui-btn btn-mac" onClick="macExe('Y')">
|
<i><img th:src="@{../../static/images/icon-sm-fj.png}"/></i>开启制氮机
|
</button>
|
<button class="layui-btn btn-mac" onClick="macExe('N')">
|
<i><img th:src="@{../../static/images/icon-sm-g.png}"/></i>关闭制氮机
|
</button>
|
|
<button class="layui-btn btn-mac" onClick="macExe('STATUS')">
|
<i><img th:src="@{../../static/images/icon-sm-fc.png}"/></i>状态查询
|
</button>
|
</div>
|
|
<div class="layui-btn-container">
|
<span id="span_info">信息:无操作</span>
|
</div>
|
</div>
|
<script th:inline="javascript">
|
var userId = [[${loginUser.username}]];
|
var companyId = [[${loginUser.companyId}]];
|
var deptId = [[${deptId}]];// 分库Id
|
</script>
|
<script th:src="@{../../static/plugins/layui/layui.js}"></script>
|
<script th:src="@{../../static/js/jquery.min.js}"></script>
|
<script th:src="@{../../static/admin/n2/mac-control.js}"></script>
|
</body>
|
</html>
|