<!--
time:2021-01-12 15:45:09
desc:edit the dt_cems_emission_data
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:insert="~{templates/hcommon :: h-common}">
</head>
<body>
<div class="row">
<div class="toolbar-panel">
<div class="toolbar-box">
<div class="toolbar-head clearfix">
<!-- 顶部按钮 -->
<div class="buttons">
<a class="btn btn-primary fa fa-save save-link"><span>保存</span></a>
<a class="btn btn-primary fa fa-th-list return-link" th:href="${returnUrl}"><span>返回</span></a>
</div>
</div>
</div>
</div>
</div>
<form role="form" class="search-form" id="cemsEmissionDataForm" action="save" method="post">
<!-- <div class="form-group">-->
<!-- <label th:text="'企业id*:'" class="red" />-->
<!-- <input type="text" class="form-control" id="factoryId" name="factoryId" placeholder="请输入企业id" th:value="${data!=null}?${data.factoryId}" validate="{required:true,number:true,maxIntLen:19}"/>-->
<!-- </div>-->
<div class="form-inline p-xxs">
<div class="form-group"style="display: inline;white-space:nowrap;">
<label class="search-label font-color" th:text="'企业:'" />
<select class="multiplEdit form-control multiple" name="factoryId" id="factoryId" style="upd">
<optgroup th:each="town:${factoryList}" th:label="${town.text}">
<option th:each="fact:${town.nodes}" th:value="${fact.id}" th:text="${fact.text}" th:selected="${fact.id==factoryId}"></option>
</optgroup>
</select>
</div>
</div>
<div class="table-responsive">
<table class="table table-striped jambo_table bulk_action" id="table-thead" >
<thead>
<tr>
<th style="width: 20%">排口名称</th>
<th style="width: 20%">监测时间</th>
<th style="width: 20%" >VOCS</th>
<th style="width: 10%">SO2</th>
<th style="width: 10%">NO</th>
<th style="width: 10%">颗粒物</th>
</tr>
</thead>
</table>
<div class="boxscroll">
<table type="subtable" class="table">
<tbody id="tbody">
<tr th:each="station,stat:${data.pointList}" type="subdata">
<td style="width: 20%">
<span th:text="${station.stationName}"></span>
<input type="hidden" th:name="'pointList['+${stat.index}+'].stationId'" th:value="${station.stationId}">
</td>
<td style="width: 20%">
<input style="border: none;" type="text" id="collectTime" name="collectTime" class="wdateTime dateRange form-control" datefmt="yyyy-MM-dd HH:mm:ss" th:value="${#dates.format(data.collectTime,'yyyy-MM-dd HH:mm:ss')}"/>
</td>
<td style="width: 20%">
<input type="text" class="form-control" th:name="'pointList['+${stat.index}+'].vocs'" validate="{required:false,number:true}" th:value="${station?.vocs}">
</td>
<td style="width: 10%">
<input type="text" class="form-control" th:name="'pointList['+${stat.index}+'].sox'" validate="{required:false,number:true}" th:value="${station?.sox}">
</td>
<td style="width: 10%">
<input type="text" class="form-control" th:name="'pointList['+${stat.index}+'].nox'" validate="{required:false,number:true}" th:value="${station?.nox}">
</td>
<td style="width: 10%">
<input type="text" class="form-control" th:name="'pointList['+${stat.index}+'].smoke'" validate="{required:false,number:true}" th:value="${station?.smoke}">
</td>
</tr>
</tbody>
</table>
</div>
</div>
<input type="hidden" name="id" th:value="${data!=null}?${data.id}" />
</form>
<div th:insert="~{templates/fcommon :: f-common}"></div>
<script type="text/javascript" th:src="@{/js/platform/cemsEmissionData.js}"></script>
</body>
</html>
test指的是传递进来的参数,判断这个参数是否为空,不为空就进行下面的SQL语句