110 lines
5.2 KiB
Plaintext
110 lines
5.2 KiB
Plaintext
|
|
<%@ page language="java" pageEncoding="UTF-8" %>
|
|||
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
|||
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|||
|
|
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
|
|||
|
|
$(function () {
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
function doContentCurveAxisSave() {
|
|||
|
|
$("#contentCurveAxisSubForm").bootstrapValidator('validate');//提交验证
|
|||
|
|
if ($("#contentCurveAxisSubForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
|||
|
|
$.post(ext.contextPath + "/work/wordAnalysisReportContentCurveAxis/dosave.do", $("#contentCurveAxisSubForm").serialize(), function (data) {
|
|||
|
|
if (data.code == 1) {
|
|||
|
|
closeModal('contentCurveAxisSubModal');
|
|||
|
|
$("#contentCurveAxisTable").bootstrapTable('refresh');
|
|||
|
|
} else if (data.code == 0) {
|
|||
|
|
showAlert('d', '保存失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.msg);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// $("#contentCurveAxisSubForm").bootstrapValidator({
|
|||
|
|
// live: 'disabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
|||
|
|
// fields: {
|
|||
|
|
// name: {
|
|||
|
|
// validators: {
|
|||
|
|
// notEmpty: {
|
|||
|
|
// message: '名称不能为空'
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
// });
|
|||
|
|
|
|||
|
|
function doContentCurveAxisClose() {
|
|||
|
|
closeModal('contentCurveAxisSubModal');
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
|
|||
|
|
<div class="modal fade" id="contentCurveAxisSubModal">
|
|||
|
|
<div class="modal-dialog modal-md">
|
|||
|
|
<div class="modal-content">
|
|||
|
|
<div class="modal-header">
|
|||
|
|
<button type="button" class="close" data-dismiss="modal" onclick="doContentCurveAxisClose()">
|
|||
|
|
<span aria-hidden="true">×</span></button>
|
|||
|
|
<h4 class="modal-title">添加</h4>
|
|||
|
|
</div>
|
|||
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|||
|
|
<div class="modal-body">
|
|||
|
|
<!-- 新增界面formid强制为contentCurveAxisSubForm -->
|
|||
|
|
<form class="form-horizontal" id="contentCurveAxisSubForm">
|
|||
|
|
<input id="pid" name="pid" type="hidden" value="${param.pid}"/>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">所属轴</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="number" class="form-control" id="num" name="num" placeholder="第...轴"
|
|||
|
|
value="${wordAnalysisReportContentCurveAxis.num}">
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">曲线名称</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="text" class="form-control" id="unit" name="unit" placeholder="曲线名称"
|
|||
|
|
value="${wordAnalysisReportContentCurveAxis.unit}">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">位置</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<select id="position" name="position" class="form-control select2">
|
|||
|
|
<option value="left">左侧</option>
|
|||
|
|
<option value="right">右侧</option>
|
|||
|
|
</select>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">分割间隔</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="text" class="form-control" id="curveinterval" name="curveinterval"
|
|||
|
|
placeholder="分割间隔" value="${wordAnalysisReportContent.curveinterval}">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">最小值</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="text" class="form-control" id="curveminvalue" name="curveminvalue"
|
|||
|
|
placeholder="最小值" value="${wordAnalysisReportContent.curveminvalue}">
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">最大值</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="text" class="form-control" id="curvemaxvalue" name="curvemaxvalue"
|
|||
|
|
placeholder="最大值" value="${wordAnalysisReportContent.curvemaxvalue}">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
<div class="modal-footer">
|
|||
|
|
<button type="button" class="btn btn-default pull-left" onclick="doContentCurveAxisClose()">关闭</button>
|
|||
|
|
<button type="button" class="btn btn-primary" onclick="doContentCurveAxisSave()" id="btn_save">保存
|
|||
|
|
</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<!-- /.modal-content -->
|
|||
|
|
</div>
|
|||
|
|
<!-- /.modal-dialog -->
|
|||
|
|
</div>
|