140 lines
5.5 KiB
Plaintext
140 lines
5.5 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8"%>
|
||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
||
<style type="text/css">
|
||
.select2-container .select2-selection--single{
|
||
height:34px;
|
||
line-height: 34px;
|
||
}
|
||
.select2-selection__arrow{
|
||
margin-top:3px;
|
||
}
|
||
.tools{
|
||
margin-right: 8px;
|
||
margin-top: 8px;
|
||
}
|
||
</style>
|
||
<script type="text/javascript">
|
||
var showStructureCard4SelectFun = function() {
|
||
$.post(ext.contextPath + '/structure/showList4Select.do', {formId:"subForm",hiddenId:"pid",textId:"_pname"} , function(data) {
|
||
$("#fault4SelectDiv").html(data);
|
||
openModal('fault4SelectModal');
|
||
});
|
||
};
|
||
|
||
$(function() {
|
||
//设计参数
|
||
dopoint('design');
|
||
});
|
||
function dopoint(structureCodeType){
|
||
|
||
//关联测量点
|
||
$("#table_"+structureCodeType).bootstrapTable({ // 对应table标签的id
|
||
url: ext.contextPath + '/work/mpoint/getlist.do', // 获取表格数据的url
|
||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [10, 20,50], // 设置页面可以显示的数据条数
|
||
pageSize: 10, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
sidePagination: 'server', // 设置为服务器端分页
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
rows: params.limit, // 每页要显示的数据条数
|
||
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
||
sort: params.sort, // 要排序的字段
|
||
order: params.order,
|
||
search_name : $('#search_name').val(),
|
||
companyId: companyId,
|
||
structureId:'${structureCard.id}',
|
||
structureCodeType:structureCodeType
|
||
}
|
||
},
|
||
sortName: 'id', // 要排序的字段
|
||
sortOrder: 'desc', // 排序规则
|
||
columns: [
|
||
{
|
||
/* checkbox: true, // 显示一个勾选框
|
||
},{ */
|
||
field: 'parmname', // 返回json数据中的name
|
||
title: '名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
},{
|
||
field: 'mpointcode', // 返回json数据中的name
|
||
title: '测量点Code', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
},{
|
||
field: 'parmvalue', // 返回json数据中的name
|
||
title: '数据', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}
|
||
],
|
||
onLoadSuccess: function(){ //加载成功时执行
|
||
adjustBootstrapTableView("table_"+structureCodeType);
|
||
},
|
||
onLoadError: function(){ //加载失败时执行
|
||
console.info("加载数据失败");
|
||
}
|
||
|
||
})
|
||
}
|
||
|
||
</script>
|
||
<div class="box box-primary" >
|
||
<div class="box-header with-border">
|
||
<h3 class="box-title">详情</h3>
|
||
</div>
|
||
<!-- /.box-header -->
|
||
<div class="box-body ">
|
||
<form class="form-horizontal " id="subForm">
|
||
<input id="id" name="id" type="hidden" value="${structureCard.id}"/>
|
||
<!-- 界面提醒div强制id为alertDiv -->
|
||
<div id="alertDiv"></div>
|
||
<div id="fault4SelectDiv"></div>
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">名称</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${structureCard.name }</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">类型</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">
|
||
<c:if test="${0==structureCard.type}">构筑物</c:if>
|
||
<c:if test="${1==structureCard.type}">工艺单体</c:if>
|
||
</p>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">最大设计能力</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${structureCard._design }</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">可调能力</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${structureCard._adjustable }</p>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">当前能力</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${structureCard._current }</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">当前负荷率</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${structureCard._load }</p>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<div class="box box-primary" >
|
||
<div class="box-header with-border">
|
||
<h3 class="box-title">设计参数</h3>
|
||
</div>
|
||
<!-- /.box-header -->
|
||
<div class="box-body ">
|
||
<table id="table_design"></table>
|
||
</div>
|
||
</div> |