ZhiYeJianKang/职业健康平台后端/target/dzzyb/webpage/modules/assessmentCriterion/index/finalEditForm.jsp
2025-02-20 15:25:59 +08:00

91 lines
4.5 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">
function doSubmit() {
$('#isFinal').removeAttr("disabled");
var flag = false;
var formData = $("#inputForm").serialize();
$.ajax({
url: "${ctx}/assessmentCriterion/index/saveFinal",
async: false,
type: "POST",
data: formData,
success: function (result) {
if (result === "200") {
layer.msg('添加成功!', {icon: 1});
flag = true;
} else {
flag = false;
layer.msg('添加失败!', {icon: 2});
}
}
});
return flag;
}
</script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" style="height: 100%">
<div class="ibox" style="height: 100%">
<div class="ibox-content" style="height: 100%">
<form id="inputForm" class="form-horizontal">
<input type="hidden" id="parentID" name="parentID" value="${parentBean.id}">
<input type="hidden" name="id" value="${bean.id}">
<input type="hidden" name="method" value="${bean.method}">
<table class="table table-bordered table-condensed dataTables-example dataTable no-footer">
<tbody>
<tr>
<td class="width-15 active"><label class="pull-right">上级指标:</label></td>
<td class="width-35" colspan="3"><textarea disabled htmlEscape="false" maxlength="50" class="required form-control ">${parentBean.name}</textarea></td>
<td class="width-35"><input name="score" value="${bean.score}" htmlEscape="false" maxlength="16" class="form-control "/>
<span class="help-inline">该指标的总分数</span>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">最终指标:</label></td>
<td class="width-35" colspan="3">
<select id="isFinal" name="isFinal" style="width: 60px;height: 30px" >
<option value="2" <c:if test="${bean.isFinal == 2}">selected</c:if>>否</option>
<option value="1" <c:if test="${bean.isFinal == 1}">selected</c:if>>是</option>
</select>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">指标名称:</label></td>
<td class="width-35" colspan="4">
<input name="name" value="${bean.name}" style="height: 60px" htmlEscape="false" maxlength="1024" class="form-control "/>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">指标说明:</label></td>
<td class="width-35" colspan="4">
<textarea name="description" style="height: 80px" htmlEscape="false" maxlength="1024" class="form-control ">${bean.description}</textarea>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">数据资料来源:</label></td>
<td class="width-35" colspan="4">
<textarea name="datasource" style="height: 80px" htmlEscape="false" maxlength="1024" class="form-control ">${bean.datasource}</textarea>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">考核对象:</label></td>
<td class="width-35" colspan="4">
<textarea name="object" style="height: 80px" htmlEscape="false" maxlength="1024" class="form-control ">${bean.object}</textarea>
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
</div>
<script type="text/javascript">
</script>
</body>
</html>