2025-06-27 10:04:22 +08:00

130 lines
5.2 KiB
HTML

<style>
.col-sm-6 select, .col-sm-6 input {
width: 40%;
margin-right: 0px;
}
</style>
<div class="container">
<div class="row Top">
<i></i>
<h2>不合格项目限量值基础库</h2>
<i style="float:right"></i>
</div>
<div class="row SortTop">
<div class="col-sm-6 text-right">
<p>
<label for="SPXL">食品小类:</label>
<input type="text" id="SPXL" class="form-control input-sm w-sm inline " ng-model="SPXL1">
</p>
</div>
<div class="col-sm-6" style=" text-align: -webkit-right; right: 80px;">
<p>
<label for="JCXM">检验项目:</label>
<input type="text" id="JCXM" class="form-control input-sm w-sm inline " ng-model="JCXM1">
</p>
</div>
</div>
<div class="row AllBtn text-center">
<button class="btn btn-default" ng-click="MyChaXun()">查询</button>
<span>查询出: {{zongTiaoShu}} 条数据</span>
<button class="btn btn-primary" data-toggle="modal" ng-click="insert_click()" data-target="#myModal">新增</button>
<button class="btn btn-success" ngf-select="ImportAll(file)" ng-model="file" name="file"
ngf-max-size="20MB" ngf-min-height="100" ngf-multiple="true">
导入
</button>
<!--<button class="btn" style="width:10%">导入进度{{uploadImg}}</button>-->
<button class="btn btn-success" ng-click="ExportAll()">导出</button>
</div>
<div class="row">
<st-loading is-show="isShow" tip-show="正在加载请稍后!!"></st-loading>
<table st-table="displayed" st-pipe="getService" class="table table-hover table-bordered " id="myTable">
<thead>
<tr>
<th st-ratio="10" st-sort="SPXL">食品小类</th>
<th st-ratio="10" st-sort="JCXM">检验项目</th>
<th st-ratio="10" st-sort="MIN">最小限量值</th>
<th st-ratio="10" st-sort="MAX">最大限量值</th>
<th st-ratio="10" st-sort="DW">限量值单位</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in displayed">
<td>{{item.SPXL}}</td>
<td>{{item.JCXM}}</td>
<td>{{item.MIN}}</td>
<td>{{item.MAX}}</td>
<td>{{item.DW}}</td>
<td>
<a data-toggle="modal" data-target="#myModal" ng-click="EditByID({{item.ID}})">修改</a>
<a ng-click="byID_delete({{item.ID}})">删除</a>
</td>
</tr>
</tbody>
<!-- <st-loading is-show="isShow" tip-show="正在加载请稍后!!"></st-loading>-->
<tfoot>
<tr>
<td colspan="15" class="text-center">
<div st-items-by-page="curpageNumber" st-pagination="" st-template="app/pagination.custom.html"></div>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style=" width: 80%;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">不合格项目</h4>
</div>
<div class="modal-body">
<div style="margin-left: 6%;">
<span>食品小类</span>
<input type="hidden" id="ID" class="form-control input-sm w-sm inline " ng-model="EditData.id">
<input type="text" id="SPXL" class="form-control input-sm w-sm inline " ng-model="EditData.spxl">
<br />
<br />
<span>检验项目</span>
<input type="text" id="JCXM" class="form-control input-sm w-sm inline " ng-model="EditData.jcxm">
<br />
<br />
<span>最小限量值</span>
<input type="text" id="MIN" class="form-control input-sm w-sm inline " ng-model="EditData.min">
<br />
<br />
<span>最大限量值</span>
<input type="text" id="MAX" class="form-control input-sm w-sm inline " ng-model="EditData.max">
<br />
<br />
<span>限量值单位</span>
<input type="text" id="DW" class="form-control input-sm w-sm inline " ng-model="EditData.dw">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="SaveByID()">确定</button>
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>