346 lines
16 KiB
HTML
346 lines
16 KiB
HTML
<!--<div>
|
||
<iframe width="100%" height="900px" src="http://192.168.0.251/shipinshengchanjingyingxuke.html"></iframe>
|
||
</div>-->
|
||
|
||
|
||
<style>
|
||
.SortTop {
|
||
padding: 15px;
|
||
line-height: 25px;
|
||
background-color: #CCECF4;
|
||
}
|
||
|
||
#myTable thead th, #myTable tbody td {
|
||
text-align: center;
|
||
width: 6.66%;
|
||
vertical-align: middle;
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.SortTop .btn {
|
||
height: 28px;
|
||
padding: 3px 12px;
|
||
}
|
||
|
||
.modal_select {
|
||
width: 200px;
|
||
height: 30px;
|
||
padding: 5px 10px;
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
border-radius: 3px;
|
||
border: 1px solid #ccc;
|
||
}
|
||
|
||
.btnModal {
|
||
width: 140px;
|
||
}
|
||
|
||
.dictClass {
|
||
background-color: white;
|
||
border-radius: 5px;
|
||
border: 1px solid #d3d3d3;
|
||
width: 20px;
|
||
height: 20px;
|
||
display: inline-block;
|
||
text-align: center;
|
||
vertical-align: middle;
|
||
line-height: 20px;
|
||
}
|
||
</style>
|
||
|
||
|
||
<div class="container">
|
||
<div class="row text-left SortTop">
|
||
<div class="panel-group">
|
||
<div class="panel panel-default">
|
||
<div class="panel-heading">
|
||
<h4 class="panel-title" data-toggle="collapse" data-parent="#accordion"
|
||
href="#collapseOne" style="cursor:pointer;">
|
||
新各类检测项目
|
||
</h4>
|
||
</div>
|
||
<div id="collapseOne" class="panel-collapse collapse in text-center ">
|
||
<div class="panel-body">
|
||
<div style="display: flex;margin: 10px; align-items: center; justify-content: center;">
|
||
<span>查询条件:</span>
|
||
<select ng-model="mysel" ng-options="a.mytext for a in Myjson"
|
||
style="margin-right:10px; height: 30px;" ng-change="MyjsonChange()">
|
||
<option value="">选择</option>
|
||
</select>
|
||
<select ng-model="mysel1" ng-options="a.mytext for a in Myjson1"
|
||
style="margin-right:10px; height: 30px;" ng-show="!isdate">
|
||
<option value="">选择</option>
|
||
</select>
|
||
<!--<select ng-model="myselpublic" ng-options="a.mytext for a in RELYdata" ng-show="RWLYSHOW">
|
||
<option value="">选择</option>
|
||
</select>-->
|
||
<div ng-show="RWLYSHOW">
|
||
<select name="dept" ng-model="myselpublic" data-placeholder="请选择" id="dept"
|
||
class="dept_select">
|
||
<option value="-1"></option>
|
||
<option ng-repeat="item in RELYdata" value="{{item.mytext}}">{{item.mytext}}
|
||
</option>
|
||
</select>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<input type="date" ng-model="datebegin" placeholder=""
|
||
class="form-control input-sm w-sm inline m-r" ng-show="isdate"/>
|
||
<input type="date" ng-model="dateend" placeholder=""
|
||
class="form-control input-sm w-sm inline m-r" ng-show="isdate"/>
|
||
|
||
<div style="margin: 10px;">
|
||
搜索:<input type="text" ng-model="mytxt" placeholder="" style="width:400px;"
|
||
class="form-control input-sm w-sm inline m-r" ng-show="SouSuoShow"/>
|
||
</div>
|
||
<input style="background-color:burlywood;border-color:burlywood;" type="button"
|
||
class="btn btn-success" ng-click="addTJ('and')" value="+并且"/>
|
||
<input style="background-color:burlywood;border-color:burlywood;" type="button"
|
||
class="btn btn-success" ng-click="addTJ('or')" value="+或"/>
|
||
<input type="button" class="btn btn-success" name="搜索" value="搜索" ng-click="ChaXun()"/>
|
||
<span>
|
||
共有:{{myttt}}条数据
|
||
</span>
|
||
<!--<input type="button" id="delete" class="btn btn-success" name="删除" value="删除" ng-click="SQLDeleteOne(1)" />-->
|
||
<!--<input type="button" id="delete2" class=" btn btn-success" name="条件删除" value="条件删除" ng-click="showDialog(2)" data-toggle="modal" data-target="#myModal5" />-->
|
||
<!--ExportAll-->
|
||
|
||
<button class="btn btn-primary" data-toggle="modal" ng-click="ValueAdd()"
|
||
data-target="#myModalSQLValueEdit">新增
|
||
</button>
|
||
<input type="button" class="btn btn-success" name="导出" value="导出" ng-click="ExportAll()"/>
|
||
<br/>
|
||
<br/>
|
||
|
||
</div>
|
||
<div style=" width: 100%;">
|
||
|
||
<table st-table="dispData1" st-safe-src="TJTable"
|
||
class="table table-hover table-bordered text-center" id="myTable" style="width:100%">
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th>查询条件</th>
|
||
<th>查询类型</th>
|
||
<th>查询内容</th>
|
||
<th>操作</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr ng-repeat="item in dispData1">
|
||
<td> {{item.lianjietype}}</td>
|
||
<td> {{item.CXTJ}}</td>
|
||
<td> {{item.CXLX}}</td>
|
||
<td> {{item.CXNR}}</td>
|
||
<td ng-click="deleteTJ(item)"> 删除</td>
|
||
</tr>
|
||
</tbody>
|
||
|
||
<tfoot>
|
||
<tr>
|
||
<td colspan="8" class="text-center">
|
||
<div st-pagination="" st-items-by-page="10" st-displayed-pages="15"></div>
|
||
</td>
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row" style="width:100%; margin-left: -3px;">
|
||
<div style="width:100%;overflow: auto;">
|
||
<table class=" layui-hide" id="test">
|
||
</table>
|
||
<table st-table="displayed" st-pipe="getService" class="table table-hover table-bordered " id="myTable">
|
||
<thead>
|
||
<tr>
|
||
<th>
|
||
全选
|
||
<st-checkbox-all select-list="selectList" current-ids="ids"
|
||
check-init="checkinit"></st-checkbox-all>
|
||
</th>
|
||
<th st-ratio="10" st-sort="JCDL" style="padding: 2px;min-width:120px">检测大类</th>
|
||
<th st-ratio="10" st-sort="JCYL" style="padding: 2px;min-width:120px">检测亚类</th>
|
||
<th st-ratio="10" st-sort="JCXIAOLEI" style="padding: 2px;min-width:120px">检测小类</th>
|
||
<th st-ratio="10" st-sort="JCXILEI" style="padding: 2px;min-width:120px">检测细类</th>
|
||
<th st-ratio="10" st-sort="REMARK" style="padding: 2px;min-width:120px">备注</th>
|
||
|
||
<th st-ratio="10" style="padding: 2px; min-width: 120px">值修改</th>
|
||
<th st-ratio="10" style="padding: 2px; min-width: 120px">删除</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr ng-repeat="item in displayed">
|
||
<td st-ratio="{{tiao}}">
|
||
<st-checkbox select-list="selectList" id="{{item.ID}}"></st-checkbox>
|
||
</td>
|
||
<!--<td st-ratio="80">{{item.ID}}</td>-->
|
||
<td st-ratio="60">{{item.JCDL}}</td>
|
||
<td st-ratio="10">{{item.JCYL}}</td>
|
||
<td st-ratio="10">{{item.JCXIAOLEI}}</td>
|
||
<td st-ratio="10">{{item.JCXILEI}}</td>
|
||
<td st-ratio="10">{{item.REMARK}}</td>
|
||
|
||
<td>
|
||
<a data-toggle="modal" data-target="#myModalSQLValueEdit"
|
||
ng-click="ValueEdit({{item}})">值修改</a>
|
||
</td>
|
||
<td>
|
||
<a ng-click="SQLDeleteOne(item.ID)">删除</a>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
<st-loading is-show="isShow" tip-show="正在加载请稍后!!"></st-loading>
|
||
<tfoot>
|
||
<!--<tr>
|
||
<td colspan="10" style="text-align:end;vertical-align: inherit;"></td>
|
||
<td>企业数量</td>
|
||
<td>{{qiyeshuliang}}</td>
|
||
</tr>-->
|
||
<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="myModalSQLValueEdit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
||
aria-hidden="true">
|
||
<div class="modal-dialog" style=" width: 50%;">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h4 class="modal-title" id="myModalLabel">{{FormTitle}}</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div style="margin-left: 10px; width:100%; display:flex; flex-direction:column; justify-content:center; align-items:center">
|
||
|
||
|
||
<div style=" width: 80%; display: flex; flex-direction: row; padding-bottom: 12px; ">
|
||
<span style="min-width:150px">主键</span>
|
||
<input type="text" id="ID" class="form-control input-sm w-sm inline " disabled
|
||
ng-model="FormData.ID">
|
||
</div>
|
||
|
||
|
||
<div style=" width: 80%; display: flex; flex-direction: row; padding-bottom: 12px; ">
|
||
<span style="min-width:150px">检测大类</span>
|
||
<input type="text" id="ID" class="form-control input-sm w-sm inline "
|
||
ng-model="FormData.JCDL">
|
||
</div>
|
||
|
||
|
||
<div style=" width: 80%; display: flex; flex-direction: row; padding-bottom: 12px; ">
|
||
<span style="min-width:150px">检测亚类</span>
|
||
<input type="text" id="ID" class="form-control input-sm w-sm inline "
|
||
ng-model="FormData.JCYL">
|
||
</div>
|
||
|
||
|
||
<div style=" width: 80%; display: flex; flex-direction: row; padding-bottom: 12px; ">
|
||
<span style="min-width:150px">检测小类</span>
|
||
<input type="text" id="ID" class="form-control input-sm w-sm inline "
|
||
ng-model="FormData.JCXIAOLEI">
|
||
</div>
|
||
|
||
|
||
<div style=" width: 80%; display: flex; flex-direction: row; padding-bottom: 12px; ">
|
||
<span style="min-width:150px">检测细类</span>
|
||
<input type="text" id="ID" class="form-control input-sm w-sm inline "
|
||
ng-model="FormData.JCXILEI">
|
||
</div>
|
||
|
||
|
||
<div style=" width: 80%; display: flex; flex-direction: row; padding-bottom: 12px; ">
|
||
<span style="min-width:150px">备注</span>
|
||
<input type="text" id="ID" class="form-control input-sm w-sm inline "
|
||
ng-model="FormData.REMARK">
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="SaveData()">保存
|
||
</button>
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<!--<div class="modal fade" id="myModalDaoChu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog" style=" width: 820px; margin-top: 10%;">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h4 class="modal-title" id="myModalLabel">导出选择</h4>
|
||
</div>
|
||
<div style=" padding-left:12px">
|
||
<button type="button" class=" btn btn-success" ng-click="selectExportAll()">全部选择</button>
|
||
<button type="button" class="btn btn-success" ng-click="unselectExportAll()">取消全选</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div style="float:left;padding:0 5px;" data-ng-repeat="item in dictData">
|
||
<input type="checkbox" class="dictClass" style="width: 20px; margin-bottom: 5px;" id="{{item.FieldName}}" name="dictName" value="{{item.TableName}}">
|
||
<label for="{{item.FieldName}}">{{item.TableName}}</label>
|
||
</div>
|
||
|
||
<button ng-click="DaoChu()" type="button" style=" width: 700px; margin-top: 20px;" class="btn btn-default" data-dismiss="modal">确认</button>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>-->
|
||
|
||
|
||
<div class="modal fade" id="myModal5" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal"
|
||
aria-hidden="true">
|
||
×
|
||
</button>
|
||
<h4 class="modal-title" id="myModalLabel">
|
||
删除提示
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
是否确认删除数据!
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default"
|
||
data-dismiss="modal">
|
||
关闭
|
||
</button>
|
||
<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="numDelete()">
|
||
确认删除
|
||
</button>
|
||
</div>
|
||
</div><!-- /.modal-content -->
|
||
</div><!-- /.modal-dialog -->
|
||
|
||
</div>
|
||
|
||
<script>
|
||
$(function () {
|
||
$('.dept_select').chosen();
|
||
});
|
||
</script>
|
||
|
||
|
||
|