764 lines
36 KiB
Plaintext
764 lines
36 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" %>
|
||
<%@page import="com.sipai.entity.work.WordAnalysisReportContent" %>
|
||
<% request.setAttribute("Type_form", WordAnalysisReportContent.Type_form);%>
|
||
<% request.setAttribute("Type_curve", WordAnalysisReportContent.Type_curve);%>
|
||
<% request.setAttribute("Type_text", WordAnalysisReportContent.Type_text);%>
|
||
<% request.setAttribute("CurveType_line", WordAnalysisReportContent.CurveType_line);%>
|
||
<% request.setAttribute("CurveType_bar", WordAnalysisReportContent.CurveType_bar);%>
|
||
<% request.setAttribute("CurveType_pie", WordAnalysisReportContent.CurveType_pie);%>
|
||
<% request.setAttribute("Axis_single", WordAnalysisReportContent.Axis_single);%>
|
||
<% request.setAttribute("Axis_multi", WordAnalysisReportContent.Axis_multi);%>
|
||
<%@page import="com.sipai.entity.work.WordAnalysisReportContentForm" %>
|
||
<% request.setAttribute("Type_row", WordAnalysisReportContentForm.Type_row);%>
|
||
<% request.setAttribute("Type_column", WordAnalysisReportContentForm.Type_column);%>
|
||
|
||
<link rel="stylesheet"
|
||
href="<%=request.getContextPath()%>/node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css"/>
|
||
<script type="text/javascript"
|
||
src="<%=request.getContextPath()%>/node_modules/bootstrap-switch/dist/js/bootstrap-switch.min.js"
|
||
charset="utf-8"></script>
|
||
|
||
<script type="text/javascript">
|
||
|
||
$(function () {
|
||
$("#type").change(function () {
|
||
var typeValue = $(this).val();
|
||
if (typeValue == '${Type_curve}') {
|
||
$("#curvetypeC").css('display', 'block');
|
||
$("#textcontentC").css('display', 'none');
|
||
} else if (typeValue == '${Type_text}') {
|
||
$("#textcontentC").css('display', 'block');
|
||
$("#curvetypeC").css('display', 'none');
|
||
} else {
|
||
$("#curvetypeC").css('display', 'none');
|
||
$("#textcontentC").css('display', 'none');
|
||
}
|
||
});
|
||
|
||
$('#switchBtnscale').bootstrapSwitch({
|
||
onText: '是',
|
||
offText: '否',
|
||
size: "small",
|
||
});
|
||
if ('${wordAnalysisReportContent.curvescalest}' == 'false') {
|
||
$('#switchBtnscale').bootstrapSwitch('state', false, true);
|
||
} else if ('${wordAnalysisReportContent.curvescalest}' == 'true') {
|
||
$('#switchBtnscale').bootstrapSwitch('state', true, true);
|
||
} else {
|
||
$('#switchBtnscale').bootstrapSwitch('state', false, true);
|
||
}
|
||
|
||
var intype = $("#type").val();
|
||
if (intype == '${Type_curve}') {
|
||
$("#curvetypeC").css('display', 'block');
|
||
} else if (intype == '${Type_text}') {
|
||
$("#textcontentC").css('display', 'block');
|
||
}
|
||
|
||
if ('${wordAnalysisReportContent.type}' == '${Type_form }') {
|
||
$("#contentFormTable").bootstrapTable({ // 对应table标签的id
|
||
url: ext.contextPath + '/work/wordAnalysisReportContentForm/getList.do', // 获取表格数据的url
|
||
// cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [5, 10, 15], // 设置页面可以显示的数据条数
|
||
pageSize: 5, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
paginationDetailHAlign: ' hidden',//去除分页的显示
|
||
sidePagination: 'server', // 设置为服务器端分页
|
||
detailView: true,//父子表
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
type: '${Type_row}',
|
||
pid: '${wordAnalysisReportContent.id}'
|
||
}
|
||
},
|
||
sortName: 'insertRow', // 要排序的字段
|
||
sortOrder: 'asc', // 排序规则
|
||
onExpandRow: function (index, row, $detail) {
|
||
initDetailTable(index, row, $detail);
|
||
//存入sessionStorage
|
||
sessionStorage.setItem("index", index);
|
||
},
|
||
columns: [
|
||
{
|
||
field: 'name', // 返回json数据中的name
|
||
title: '名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
title: "操作",
|
||
align: 'center',
|
||
valign: 'middle',
|
||
width: 100, // 定义列的宽度,单位为像素px
|
||
formatter: function (value, row, index) {
|
||
return '<div class="btn-group"><button class="btn btn-default btn-sm" onclick="doContentFormForColumnAddFun(\'' + row.id + '\')"><i class="fa fa-plus-circle"></i></button>' +
|
||
'<button class="btn btn-default btn-sm" onclick="delContentFormForRowFun(\'' + row.id + '\')"><i class="fa fa-trash-o"></i></button></div>';
|
||
}
|
||
}
|
||
],
|
||
onLoadSuccess: function () { //加载成功时执行
|
||
$(".bs-checkbox").css({'text-align': 'center', 'vertical-align': 'middle'})
|
||
},
|
||
onLoadError: function () { //加载失败时执行
|
||
console.info("加载数据失败");
|
||
}
|
||
})
|
||
}
|
||
|
||
if ('${wordAnalysisReportContent.type}' == '${Type_curve }') {
|
||
$("#contentCurveTable").bootstrapTable({ // 对应table标签的id
|
||
url: ext.contextPath + '/work/wordAnalysisReportContentCurve/getList.do', // 获取表格数据的url
|
||
// cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [5, 10, 15], // 设置页面可以显示的数据条数
|
||
pageSize: 5, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
sidePagination: 'server', // 设置为服务器端分页
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
rows: params.limit, // 每页要显示的数据条数
|
||
page: params.offset / params.limit + 1, // 每页显示数据的开始页码
|
||
sort: params.sort, // 要排序的字段
|
||
order: params.order,
|
||
pid: '${wordAnalysisReportContent.id}'
|
||
}
|
||
},
|
||
sortName: 'morder', // 要排序的字段
|
||
sortOrder: 'asc', // 排序规则
|
||
columns: [
|
||
{
|
||
field: 'name', // 返回json数据中的name
|
||
title: '名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
title: "操作",
|
||
align: 'center',
|
||
valign: 'middle',
|
||
width: 100, // 定义列的宽度,单位为像素px
|
||
formatter: function (value, row, index) {
|
||
return '<div class="btn-group"><button class="btn btn-default btn-sm" onclick="doContentCurveEditFun(\'' + row.id + '\')"><i class="fa fa-edit"></i></button>' +
|
||
'<button class="btn btn-default btn-sm" onclick="delContentCurveFun(\'' + row.id + '\')"><i class="fa fa-trash-o"></i></button></div>';
|
||
}
|
||
}
|
||
],
|
||
onLoadSuccess: function () { //加载成功时执行
|
||
$(".bs-checkbox").css({'text-align': 'center', 'vertical-align': 'middle'})
|
||
},
|
||
onLoadError: function () { //加载失败时执行
|
||
console.info("加载数据失败");
|
||
}
|
||
})
|
||
}
|
||
|
||
if ('${wordAnalysisReportContent.axis}' == '${Axis_multi}') {
|
||
$("#contentCurveAxisTable").bootstrapTable({ // 对应table标签的id
|
||
url: ext.contextPath + '/work/wordAnalysisReportContentCurveAxis/getList.do', // 获取表格数据的url
|
||
// cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [5, 10, 15], // 设置页面可以显示的数据条数
|
||
pageSize: 5, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
sidePagination: 'server', // 设置为服务器端分页
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
rows: params.limit, // 每页要显示的数据条数
|
||
page: params.offset / params.limit + 1, // 每页显示数据的开始页码
|
||
sort: params.sort, // 要排序的字段
|
||
order: params.order,
|
||
pid: '${wordAnalysisReportContent.id}'
|
||
}
|
||
},
|
||
sortName: 'num', // 要排序的字段
|
||
sortOrder: 'asc', // 排序规则
|
||
columns: [
|
||
{
|
||
field: 'num', // 返回json数据中的name
|
||
title: '所属轴', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'position', // 返回json数据中的name
|
||
title: '位置', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle', // 上下居中
|
||
formatter: function (value, row, index) {
|
||
if (value == 'left') {
|
||
return '左侧';
|
||
} else if (value == 'right') {
|
||
return '右侧';
|
||
}
|
||
}
|
||
}, {
|
||
field: 'unit', // 返回json数据中的name
|
||
title: '曲线名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
title: "操作",
|
||
align: 'center',
|
||
valign: 'middle',
|
||
width: 100, // 定义列的宽度,单位为像素px
|
||
formatter: function (value, row, index) {
|
||
return '<div class="btn-group"><button class="btn btn-default btn-sm" onclick="doContentCurveAxisEditFun(\'' + row.id + '\')"><i class="fa fa-edit"></i></button>' +
|
||
'<button class="btn btn-default btn-sm" onclick="delContentCurveAxisFun(\'' + row.id + '\')"><i class="fa fa-trash-o"></i></button></div>';
|
||
}
|
||
}
|
||
],
|
||
onLoadSuccess: function () { //加载成功时执行
|
||
$(".bs-checkbox").css({'text-align': 'center', 'vertical-align': 'middle'})
|
||
},
|
||
onLoadError: function () { //加载失败时执行
|
||
console.info("加载数据失败");
|
||
}
|
||
})
|
||
}
|
||
|
||
})
|
||
|
||
var initDetailTable = function (index, row, $detail) {
|
||
var pid = row.id;
|
||
var detailTable = $detail.html('<table></table>').find('table');
|
||
$(detailTable).bootstrapTable({ // 对应table标签的id
|
||
url: ext.contextPath + '/work/wordAnalysisReportContentForm/getList.do', // 获取表格数据的url
|
||
// cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [15, 30, 50], // 设置页面可以显示的数据条数
|
||
pageSize: 15, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
paginationDetailHAlign: ' hidden',//去除分页的显示
|
||
sidePagination: 'server', // 设置为服务器端分页
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
type: '${Type_column}',
|
||
pid: pid
|
||
}
|
||
},
|
||
sortName: 'insertColumn', // 要排序的字段
|
||
sortOrder: 'asc', // 排序规则
|
||
columns: [{
|
||
field: 'name', // 返回json数据中的name
|
||
title: '名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'rows', // 返回json数据中的name
|
||
title: '所占行', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'columns', // 返回json数据中的name
|
||
title: '所占列', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'showtext', // 返回json数据中的name
|
||
title: '显示内容', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'mpid', // 返回json数据中的name
|
||
title: '测量点', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
title: "操作",
|
||
align: 'center',
|
||
valign: 'middle',
|
||
width: 100, // 定义列的宽度,单位为像素px
|
||
formatter: function (value, row, index) {
|
||
return '<div class="btn-group"><button class="btn btn-default btn-sm" onclick="editContentFormForColumnFun(\'' + row.id + '\')"><i class="fa fa-edit"></i></button>' +
|
||
'<button class="btn btn-default btn-sm" onclick="delContentFormForColumnFun(\'' + row.id + '\',\'' + pid + '\')"><i class="fa fa-trash-o"></i></button></div>';
|
||
}
|
||
},
|
||
],
|
||
onLoadSuccess: function () { //加载成功时执行
|
||
adjustBootstrapTableView("table");
|
||
console.info("加载数据成功");
|
||
},
|
||
onLoadError: function () { //加载失败时执行
|
||
console.info("加载数据失败");
|
||
}
|
||
})
|
||
}
|
||
|
||
//通过sessionStorage自动展开
|
||
var doExpend = function () {
|
||
if (sessionStorage.getItem("index") != null) {
|
||
$("#contentFormTable").bootstrapTable('expandRow', sessionStorage.getItem("index"));
|
||
}
|
||
};
|
||
|
||
function doContentClose() {
|
||
closeModal('contentSubModal');
|
||
}
|
||
|
||
function doContentUpdate() {
|
||
$("#contentSubForm").bootstrapValidator('validate');//提交验证
|
||
if ($("#contentSubForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
||
let form = $("#contentSubForm").serialize();
|
||
const scaleStatus = $('#switchBtnscale').bootstrapSwitch('state');
|
||
if (scaleStatus) {
|
||
form = form + "&curvescalest=true";
|
||
} else {
|
||
form = form + "&curvescalest=false";
|
||
}
|
||
$.post(ext.contextPath + "/work/wordAnalysisReportContent/doupdate.do", form, function (data) {
|
||
if (data.code == 1) {
|
||
closeModal('contentSubModal');
|
||
$("#contentTable").bootstrapTable('refresh');
|
||
} else if (data.code == 0) {
|
||
showAlert('d', '保存失败');
|
||
} else {
|
||
showAlert('d', data.msg);
|
||
}
|
||
}, 'json');
|
||
}
|
||
|
||
}
|
||
|
||
$("#contentSubForm").bootstrapValidator({
|
||
live: 'disabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
||
fields: {
|
||
name: {
|
||
validators: {
|
||
notEmpty: {
|
||
message: '名称不能为空'
|
||
}
|
||
}
|
||
},
|
||
morder: {
|
||
validators: {
|
||
notEmpty: {
|
||
message: '顺序不能为空'
|
||
},
|
||
regexp: {
|
||
regexp: /^[0-9]*$/,
|
||
message: '顺序必须为数字'
|
||
}
|
||
}
|
||
}
|
||
}
|
||
});
|
||
|
||
function addContentFormRowFun() {
|
||
$.post(ext.contextPath + "/work/wordAnalysisReportContentForm/dosaveForRow.do", {pid: '${wordAnalysisReportContent.id}'}, function (data) {
|
||
if (data.code == 1) {
|
||
$("#contentFormTable").bootstrapTable('refresh');
|
||
setTimeout(doExpend, 500);
|
||
} else if (data.code == 0) {
|
||
showAlert('d', '保存失败');
|
||
} else {
|
||
showAlert('d', data.msg);
|
||
}
|
||
}, 'json');
|
||
}
|
||
|
||
function doContentFormForColumnAddFun(pid) {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentForm/doadd.do', {pid: pid}, function (data) {
|
||
$("#contentFormSubDiv").html(data);
|
||
openModal('contentFormSubModal');
|
||
});
|
||
}
|
||
|
||
function editContentFormForColumnFun(id) {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentForm/doedit.do', {id: id}, function (data) {
|
||
$("#contentFormSubDiv").html(data);
|
||
openModal('contentFormSubModal');
|
||
});
|
||
}
|
||
|
||
function delContentFormForRowFun(id) {
|
||
swal({
|
||
text: "您确定要删除此记录?",
|
||
dangerMode: true,
|
||
buttons: {
|
||
cancel: {
|
||
text: "取消",
|
||
value: null,
|
||
visible: true,
|
||
className: "btn btn-default btn-sm",
|
||
closeModal: true,
|
||
},
|
||
confirm: {
|
||
text: "确定",
|
||
value: true,
|
||
visible: true,
|
||
className: "btn btn-danger btn-sm",
|
||
closeModal: true
|
||
}
|
||
}
|
||
})
|
||
.then(function (willDelete) {
|
||
if (willDelete) {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentForm/dodelForRow.do', {
|
||
id: id,
|
||
pid: '${wordAnalysisReportContent.id}'
|
||
}, function (data) {
|
||
if (data.code == 1) {
|
||
$("#contentFormTable").bootstrapTable('refresh');
|
||
setTimeout(doExpend, 500);
|
||
} else {
|
||
showAlert('d', data.msg, 'alertDiv');
|
||
}
|
||
}, 'json');
|
||
|
||
}
|
||
});
|
||
}
|
||
|
||
function delContentCurveFun(id) {
|
||
swal({
|
||
text: "您确定要删除此记录?",
|
||
dangerMode: true,
|
||
buttons: {
|
||
cancel: {
|
||
text: "取消",
|
||
value: null,
|
||
visible: true,
|
||
className: "btn btn-default btn-sm",
|
||
closeModal: true,
|
||
},
|
||
confirm: {
|
||
text: "确定",
|
||
value: true,
|
||
visible: true,
|
||
className: "btn btn-danger btn-sm",
|
||
closeModal: true
|
||
}
|
||
}
|
||
})
|
||
.then(function (willDelete) {
|
||
if (willDelete) {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentCurve/dodel.do', {id: id}, function (data) {
|
||
if (data.code == 1) {
|
||
$("#contentCurveTable").bootstrapTable('refresh');
|
||
} else {
|
||
showAlert('d', data.msg, 'alertDiv');
|
||
}
|
||
}, 'json');
|
||
|
||
}
|
||
});
|
||
}
|
||
|
||
function delContentCurveAxisFun(id) {
|
||
swal({
|
||
text: "您确定要删除此记录?",
|
||
dangerMode: true,
|
||
buttons: {
|
||
cancel: {
|
||
text: "取消",
|
||
value: null,
|
||
visible: true,
|
||
className: "btn btn-default btn-sm",
|
||
closeModal: true,
|
||
},
|
||
confirm: {
|
||
text: "确定",
|
||
value: true,
|
||
visible: true,
|
||
className: "btn btn-danger btn-sm",
|
||
closeModal: true
|
||
}
|
||
}
|
||
})
|
||
.then(function (willDelete) {
|
||
if (willDelete) {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentCurveAxis/dodel.do', {id: id}, function (data) {
|
||
if (data.code == 1) {
|
||
$("#contentCurveAxisTable").bootstrapTable('refresh');
|
||
} else {
|
||
showAlert('d', data.msg, 'alertDiv');
|
||
}
|
||
}, 'json');
|
||
|
||
}
|
||
});
|
||
}
|
||
|
||
function delContentFormForColumnFun(id, pid) {
|
||
swal({
|
||
text: "您确定要删除此记录?",
|
||
dangerMode: true,
|
||
buttons: {
|
||
cancel: {
|
||
text: "取消",
|
||
value: null,
|
||
visible: true,
|
||
className: "btn btn-default btn-sm",
|
||
closeModal: true,
|
||
},
|
||
confirm: {
|
||
text: "确定",
|
||
value: true,
|
||
visible: true,
|
||
className: "btn btn-danger btn-sm",
|
||
closeModal: true
|
||
}
|
||
}
|
||
})
|
||
.then(function (willDelete) {
|
||
if (willDelete) {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentForm/dodelForColumn.do', {
|
||
id: id,
|
||
pid: pid
|
||
}, function (data) {
|
||
if (data.code == 1) {
|
||
$("#contentFormTable").bootstrapTable('refresh');
|
||
setTimeout(doExpend, 500);
|
||
} else {
|
||
showAlert('d', data.msg, 'alertDiv');
|
||
}
|
||
}, 'json');
|
||
|
||
}
|
||
});
|
||
}
|
||
|
||
function addContentCurveFun() {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentCurve/doadd.do', {pid: '${wordAnalysisReportContent.id}'}, function (data) {
|
||
$("#contentCurveSubDiv").html(data);
|
||
openModal('contentCurveSubModal');
|
||
});
|
||
}
|
||
|
||
function addContentCurveAxisFun() {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentCurveAxis/doadd.do', {pid: '${wordAnalysisReportContent.id}'}, function (data) {
|
||
$("#contentCurveSubDiv").html(data);
|
||
openModal('contentCurveAxisSubModal');
|
||
});
|
||
}
|
||
|
||
function doContentCurveEditFun(id) {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentCurve/doedit.do', {id: id}, function (data) {
|
||
$("#contentCurveSubDiv").html(data);
|
||
openModal('contentCurveSubModal');
|
||
});
|
||
}
|
||
|
||
function doContentCurveAxisEditFun(id) {
|
||
$.post(ext.contextPath + '/work/wordAnalysisReportContentCurveAxis/doedit.do', {id: id}, function (data) {
|
||
$("#contentCurveSubDiv").html(data);
|
||
openModal('contentCurveAxisSubModal');
|
||
});
|
||
}
|
||
|
||
</script>
|
||
|
||
<div class="modal fade" id="contentSubModal">
|
||
<div class="modal-dialog modal-md">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" onclick="doContentClose()">
|
||
<span aria-hidden="true">×</span></button>
|
||
<h4 class="modal-title">编辑内容</h4>
|
||
</div>
|
||
<!-- 界面提醒div强制id为alertDiv -->
|
||
<div id="alertDiv"></div>
|
||
<div class="modal-body">
|
||
<!-- 新增界面formid强制为contentSubForm -->
|
||
<form class="form-horizontal" id="contentSubForm">
|
||
<input id="id" name="id" type="hidden" value="${wordAnalysisReportContent.id}"/>
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">名称</label>
|
||
<div class="col-sm-4">
|
||
<input type="text" class="form-control" id="name" name="name" placeholder="名称"
|
||
value="${wordAnalysisReportContent.name}">
|
||
</div>
|
||
<label class="col-sm-2 control-label">类别</label>
|
||
<div class="col-sm-4">
|
||
<select id="type" name="type" class="form-control select2">
|
||
<option value="${Type_form}"
|
||
<c:if test="${wordAnalysisReportContent.type==Type_form }">selected</c:if>>表格
|
||
</option>
|
||
<option value="${Type_curve}"
|
||
<c:if test="${wordAnalysisReportContent.type==Type_curve }">selected</c:if>>曲线
|
||
</option>
|
||
<option value="${Type_text}"
|
||
<c:if test="${wordAnalysisReportContent.type==Type_text }">selected</c:if>>文本
|
||
</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div id="curvetypeC" style="display: none;">
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">曲线类别</label>
|
||
<div class="col-sm-4">
|
||
<select id="curvetype" name="curvetype" class="form-control select2">
|
||
<option value="${CurveType_line}"
|
||
<c:if test="${wordAnalysisReportContent.curvetype==CurveType_line }">selected</c:if>>
|
||
折线图
|
||
</option>
|
||
<option value="${CurveType_bar}"
|
||
<c:if test="${wordAnalysisReportContent.curvetype==CurveType_bar }">selected</c:if>>
|
||
柱状图
|
||
</option>
|
||
<option value="${CurveType_pie}"
|
||
<c:if test="${wordAnalysisReportContent.curvetype==CurveType_pie }">selected</c:if>>
|
||
饼图
|
||
</option>
|
||
</select>
|
||
</div>
|
||
<label class="col-sm-2 control-label">单/多轴</label>
|
||
<div class="col-sm-4">
|
||
<select id="axis" name="axis" class="form-control select2">
|
||
<option value="${Axis_single}"
|
||
<c:if test="${wordAnalysisReportContent.axis==Axis_single }">selected</c:if>>
|
||
单轴
|
||
</option>
|
||
<option value="${Axis_multi}"
|
||
<c:if test="${wordAnalysisReportContent.axis==Axis_multi }">selected</c:if>>
|
||
多轴
|
||
</option>
|
||
</select>
|
||
</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="curvewidth" name="curvewidth"
|
||
placeholder="曲线宽度" value="${wordAnalysisReportContent.curvewidth}">
|
||
</div>
|
||
<label class="col-sm-2 control-label">曲线高度</label>
|
||
<div class="col-sm-4">
|
||
<input type="text" class="form-control" id="curveheight" name="curveheight"
|
||
placeholder="曲线高度" value="${wordAnalysisReportContent.curveheight}">
|
||
</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="curveunit" name="curveunit"
|
||
placeholder="曲线名称" value="${wordAnalysisReportContent.curveunit}">
|
||
</div>
|
||
<label class="col-sm-2 control-label">不含0刻度</label>
|
||
<div class="col-sm-4">
|
||
<div class="switch" data-on="primary" data-off="info">
|
||
<input id="switchBtnscale" type="checkbox"/>
|
||
</div>
|
||
</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>
|
||
<div class="form-group">
|
||
<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>
|
||
<div id="textcontentC" class="form-group" style="display: none;">
|
||
<label class="col-sm-2 control-label">默认内容</label>
|
||
<div class="col-sm-10">
|
||
<textarea class="form-control" wrap="soft" id="textcontent"
|
||
name="textcontent">${wordAnalysisReportContent.textcontent}</textarea>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">顺序</label>
|
||
<div class="col-sm-4">
|
||
<input type="number" class="form-control" id="morder" name="morder"
|
||
value="${wordAnalysisReportContent.morder}">
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default pull-left" onclick="doContentClose()">关闭</button>
|
||
<button type="button" class="btn btn-primary" onclick="doContentUpdate()" id="btn_save">保存</button>
|
||
</div>
|
||
|
||
<c:if test="${wordAnalysisReportContent.type==Type_form}">
|
||
<div class="box box-solid">
|
||
<div class="box-header with-border">
|
||
<h3 class="box-title">表格配置信息</h3>
|
||
|
||
<div class="box-tools pull-right">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="box-body ">
|
||
<div>
|
||
<div class="btn-group" style="width: 220px;padding-bottom:10px;">
|
||
<button type="button" class="btn btn-default" onclick="addContentFormRowFun();"><i
|
||
class="fa fa-minus"></i> 插入行
|
||
</button>
|
||
</div>
|
||
<br>
|
||
<table id="contentFormTable"></table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</c:if>
|
||
|
||
<c:if test="${wordAnalysisReportContent.axis==Axis_multi}">
|
||
<div class="box box-solid">
|
||
<div class="box-header with-border">
|
||
<h3 class="box-title">曲线轴信息</h3>
|
||
|
||
<div class="box-tools pull-right">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="box-body ">
|
||
<div>
|
||
<div class="btn-group" style="width: 220px;padding-bottom:10px;">
|
||
<button type="button" class="btn btn-default" onclick="addContentCurveAxisFun();"><i
|
||
class="fa fa-plus"></i> 新增
|
||
</button>
|
||
</div>
|
||
<br>
|
||
<table id="contentCurveAxisTable"></table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</c:if>
|
||
|
||
<c:if test="${wordAnalysisReportContent.type==Type_curve}">
|
||
<div class="box box-solid">
|
||
<div class="box-header with-border">
|
||
<h3 class="box-title">曲线配置信息</h3>
|
||
|
||
<div class="box-tools pull-right">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="box-body ">
|
||
<div>
|
||
<div class="btn-group" style="width: 220px;padding-bottom:10px;">
|
||
<button type="button" class="btn btn-default" onclick="addContentCurveFun();"><i
|
||
class="fa fa-plus"></i> 新增
|
||
</button>
|
||
</div>
|
||
<br>
|
||
<table id="contentCurveTable"></table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</c:if>
|
||
|
||
</div>
|
||
<!-- /.modal-content -->
|
||
</div>
|
||
<!-- /.modal-dialog -->
|
||
</div>
|
||
|