122 lines
4.2 KiB
Plaintext
122 lines
4.2 KiB
Plaintext
|
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
||
|
|
<%@ include file="/webpage/include/taglib.jsp" %>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>*</title>
|
||
|
|
<meta name="decorator" content="default"/>
|
||
|
|
<script type="text/javascript">
|
||
|
|
|
||
|
|
$(document).ready(function() {
|
||
|
|
var val = $("#indexs").val();
|
||
|
|
if (val == '') {
|
||
|
|
$("#nodeVariable").hide();
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
function change(){
|
||
|
|
$("#nodeVariable").show();
|
||
|
|
$("#count").hide();
|
||
|
|
var id = $("#indexId").val();
|
||
|
|
$.ajax({
|
||
|
|
url: '${ctx}/reportCustomModel/findkhtxVar',
|
||
|
|
type: 'post',
|
||
|
|
data: {"id": id},
|
||
|
|
dataType: 'json',
|
||
|
|
success: function (data) {
|
||
|
|
var jsonobj= eval( data );
|
||
|
|
$("#indexs").empty();
|
||
|
|
for (var i = 0; i < data.a.length; i++) {
|
||
|
|
$("#indexs").append("<option value=" + data.a[i].id + ">" + data.a[i].varName + "</option>")
|
||
|
|
}
|
||
|
|
var isFinal = jsonobj.s;
|
||
|
|
if (isFinal == "2") {
|
||
|
|
$("#nodeVariable").hide();
|
||
|
|
$("#count").show();
|
||
|
|
}else{
|
||
|
|
$("#nodeVariable").show();
|
||
|
|
$("#count").hide();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body class="gray-bg">
|
||
|
|
<div class="wrapper wrapper-content" >
|
||
|
|
<div class="ibox-content" >
|
||
|
|
<form id="inputForm" action="/" method="post" class="form-horizontal">
|
||
|
|
<table class="table table-bordered table-condensed dataTables-example dataTable no-footer" id = "customDetail">
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
|
||
|
|
<tr id = "node">
|
||
|
|
<td class="width-30 active" colspan="1"><label class="pull-right"><font color="red">*</font> 节点</label></td>
|
||
|
|
<td class="width-30" colspan="1" >
|
||
|
|
<sys:mytreeselect id="indexId" isOnchange = "true" name="assessmentSystemId" value="" labelName="assessmentSystemId" labelValue="${detail.khtxVar.assessmentIndex.name eq null? indexValue : detail.khtxVar.assessmentIndex.name }"
|
||
|
|
title="节点" url="/reportCustomModel/assessmentIndexTreeData?assessmentSystemId=${assessmentSystemId }" cssClass=" form-control input-sm" allowClear="true"/>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id = "nodeVariable">
|
||
|
|
<td class="width-30 active" colspan="1"><label class="pull-right"><font color="red">*</font> 节点变量列表</label></td>
|
||
|
|
<td class="width-30" colspan="1" >
|
||
|
|
<select id="indexs" name="indexid" class="form-control m-b required">
|
||
|
|
<c:choose>
|
||
|
|
<c:when test="${detail != '' }">
|
||
|
|
<option >${detail.khtxVar.varName }</option>
|
||
|
|
</c:when>
|
||
|
|
<c:otherwise>
|
||
|
|
<option >请先选择节点变量</option>
|
||
|
|
</c:otherwise>
|
||
|
|
</c:choose>
|
||
|
|
|
||
|
|
</select>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
|
||
|
|
|
||
|
|
<tr id = "detailName">
|
||
|
|
<td class="width-30 active" colspan="1"><label class="pull-right"><font color="red">*</font> 名称</label></td>
|
||
|
|
<td class="width-30" colspan="1" >
|
||
|
|
|
||
|
|
<input id='name' type='text' class='form-control input-sm' style='margin-top:1px' value = "${detail.name }"/>
|
||
|
|
<input id='nameInputId' type='hidden' value = "${ nameInputId}"/>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<tr id = "remark">
|
||
|
|
<td class="width-30 active" colspan="1"><label class="pull-right"><font color="red">*</font> 备注</label></td>
|
||
|
|
<td class="width-30" colspan="1" >
|
||
|
|
|
||
|
|
<input id='remarks' type='text' class='form-control input-sm' style='margin-top:1px' value = "${detail.remarks }"/>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<tr id = "sorts">
|
||
|
|
<td class="width-30 active" colspan="1"><label class="pull-right"><font color="red">*</font> 排序</label></td>
|
||
|
|
<td class="width-30" colspan="1" >
|
||
|
|
|
||
|
|
<input id='sort' type='text' class='form-control input-sm' style='margin-top:1px' value = "${detail.sort }" onchange = "sortChange(this.value)"/>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
<br/>
|
||
|
|
<br/>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<script type="text/javascript">
|
||
|
|
function sortChange(value){
|
||
|
|
var reg=/^\d{1,2}$/; /*定义验证表达式*/
|
||
|
|
if (!reg.test(value)) {
|
||
|
|
layer.msg('排序必须为数字且必须在1到99之间');
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|