921 lines
50 KiB
Plaintext
921 lines
50 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8" %>
|
|
<%@page import="com.sipai.entity.process.DataVisualContent" %>
|
|
<%request.setAttribute("Type_GaugeChart", DataVisualContent.Type_GaugeChart); %>
|
|
<%request.setAttribute("Isfull_True", DataVisualContent.Isfull_True); %>
|
|
<%request.setAttribute("Isfull_False", DataVisualContent.Isfull_False); %>
|
|
|
|
<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>
|
|
|
|
<style type="text/css">
|
|
|
|
</style>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#backgroundContainer').colorpicker({format: null});
|
|
$('#dataColorContainer').colorpicker({format: null});
|
|
$('#titleColorContainer').colorpicker({format: null});
|
|
$('#pointerColorContainer').colorpicker({format: null});
|
|
$('#splitlineColorContainer').colorpicker({format: null});
|
|
$('#axistickColorContainer').colorpicker({format: null});
|
|
$('#axislabelColorContainer').colorpicker({format: null});
|
|
|
|
$('#switchBtnIsFull').bootstrapSwitch({
|
|
onText: '是',
|
|
offText: '否',
|
|
size: "small",
|
|
});
|
|
if ('${dataVisualContent.isfull}' == '${Isfull_False}') {
|
|
$('#switchBtnIsFull').bootstrapSwitch('state', false, true);
|
|
} else if ('${dataVisualContent.isfull}' == '${Isfull_True}') {
|
|
$('#switchBtnIsFull').bootstrapSwitch('state', true, true);
|
|
} else {
|
|
$('#switchBtnIsFull').bootstrapSwitch('state', false, true);
|
|
}
|
|
|
|
$('#switchBtnIsFixed').bootstrapSwitch({
|
|
onText: '是',
|
|
offText: '否',
|
|
size: "small",
|
|
});
|
|
|
|
if ('${dataVisualContent.isfixed}' == 'false') {
|
|
$('#switchBtnIsFixed').bootstrapSwitch('state', false, true);
|
|
} else if ('${dataVisualContent.isfixed}' == 'true') {
|
|
$('#switchBtnIsFixed').bootstrapSwitch('state', true, true);
|
|
} else {
|
|
$('#switchBtnIsFixed').bootstrapSwitch('state', false, true);
|
|
}
|
|
|
|
$('#switchBtnDatast').bootstrapSwitch({
|
|
onText: '是',
|
|
offText: '否',
|
|
size: "small",
|
|
});
|
|
if ('${dataVisualGaugeChart.datast}' == 'false') {
|
|
$('#switchBtnDatast').bootstrapSwitch('state', false, true);
|
|
} else if ('${dataVisualGaugeChart.datast}' == 'true') {
|
|
$('#switchBtnDatast').bootstrapSwitch('state', true, true);
|
|
} else {
|
|
$('#switchBtnDatast').bootstrapSwitch('state', false, true);
|
|
}
|
|
|
|
$('#switchBtnPointerst').bootstrapSwitch({
|
|
onText: '是',
|
|
offText: '否',
|
|
size: "small",
|
|
});
|
|
if ('${dataVisualGaugeChart.pointerst}' == 'false') {
|
|
$('#switchBtnPointerst').bootstrapSwitch('state', false, true);
|
|
} else if ('${dataVisualGaugeChart.pointerst}' == 'true') {
|
|
$('#switchBtnPointerst').bootstrapSwitch('state', true, true);
|
|
} else {
|
|
$('#switchBtnPointerst').bootstrapSwitch('state', false, true);
|
|
}
|
|
|
|
$('#switchBtnSplitlinest').bootstrapSwitch({
|
|
onText: '是',
|
|
offText: '否',
|
|
size: "small",
|
|
});
|
|
if ('${dataVisualGaugeChart.splitlinest}' == 'false') {
|
|
$('#switchBtnSplitlinest').bootstrapSwitch('state', false, true);
|
|
} else if ('${dataVisualGaugeChart.splitlinest}' == 'true') {
|
|
$('#switchBtnSplitlinest').bootstrapSwitch('state', true, true);
|
|
} else {
|
|
$('#switchBtnSplitlinest').bootstrapSwitch('state', false, true);
|
|
}
|
|
|
|
$('#switchBtnAxislinest').bootstrapSwitch({
|
|
onText: '是',
|
|
offText: '否',
|
|
size: "small",
|
|
});
|
|
if ('${dataVisualGaugeChart.axislinest}' == 'false') {
|
|
$('#switchBtnAxislinest').bootstrapSwitch('state', false, true);
|
|
} else if ('${dataVisualGaugeChart.axislinest}' == 'true') {
|
|
$('#switchBtnAxislinest').bootstrapSwitch('state', true, true);
|
|
} else {
|
|
$('#switchBtnAxislinest').bootstrapSwitch('state', false, true);
|
|
}
|
|
|
|
$('#switchBtnAxistickst').bootstrapSwitch({
|
|
onText: '是',
|
|
offText: '否',
|
|
size: "small",
|
|
});
|
|
if ('${dataVisualGaugeChart.axistickst}' == 'false') {
|
|
$('#switchBtnAxistickst').bootstrapSwitch('state', false, true);
|
|
} else if ('${dataVisualGaugeChart.axistickst}' == 'true') {
|
|
$('#switchBtnAxistickst').bootstrapSwitch('state', true, true);
|
|
} else {
|
|
$('#switchBtnAxistickst').bootstrapSwitch('state', false, true);
|
|
}
|
|
|
|
$('#switchBtnAxislabelst').bootstrapSwitch({
|
|
onText: '是',
|
|
offText: '否',
|
|
size: "small",
|
|
});
|
|
if ('${dataVisualGaugeChart.axislabelst}' == 'false') {
|
|
$('#switchBtnAxislabelst').bootstrapSwitch('state', false, true);
|
|
} else if ('${dataVisualGaugeChart.axislabelst}' == 'true') {
|
|
$('#switchBtnAxislabelst').bootstrapSwitch('state', true, true);
|
|
} else {
|
|
$('#switchBtnAxislabelst').bootstrapSwitch('state', false, true);
|
|
}
|
|
|
|
|
|
$(".select2-selection--single").css({'height': '30px', 'paddingTop': '4px'});//选中元素上下居中
|
|
var datavaluemethod = JSON.parse("[{\"id\":\"nowTime\",\"text\":\"nowTime\"},{\"id\":\"sum\",\"text\":\"sum\"},{\"id\":\"diff\",\"text\":\"diff\"},{\"id\":\"avg\",\"text\":\"avg\"},{\"id\":\"max\",\"text\":\"max\"},{\"id\":\"min\",\"text\":\"min\"},{\"id\":\"first\",\"text\":\"first\"},{\"id\":\"last\",\"text\":\"last\"}]");
|
|
var selectvaluemethod = $("#valuemethod").select2({
|
|
data: datavaluemethod,
|
|
placeholder: '请选择',//默认文字提示
|
|
allowClear: false,//允许清空
|
|
escapeMarkup: function (markup) {
|
|
return markup;
|
|
}, // 自定义格式化防止xss注入
|
|
language: "zh-CN",
|
|
minimumInputLength: 0,
|
|
minimumResultsForSearch: 10,//数据超过十个启用搜索框
|
|
formatResult: function formatRepo(repo) {
|
|
return repo.text;
|
|
}, // 函数用来渲染结果
|
|
formatSelection: function formatRepoSelection(repo) {
|
|
return repo.text;
|
|
} // 函数用于呈现当前的选择
|
|
});
|
|
selectvaluemethod.val('${dataVisualGaugeChart.valuemethod}').trigger("change");//设置选中
|
|
|
|
});
|
|
|
|
function doGaugeChartsave() {
|
|
$("#contentsubForm").bootstrapValidator('validate');//提交验证
|
|
if ($("#contentsubForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
|
let form = $("#contentsubForm").serialize();
|
|
const isFullStatus = $('#switchBtnIsFull').bootstrapSwitch('state');
|
|
if (isFullStatus) {
|
|
form = form + "&isfull=${Isfull_True}";
|
|
} else {
|
|
form = form + "&isfull=${Isfull_False}";
|
|
}
|
|
const isFixedStatus = $('#switchBtnIsFixed').bootstrapSwitch('state');
|
|
if (isFixedStatus) {
|
|
form = form + "&isfixed=true";
|
|
} else {
|
|
form = form + "&isfixed=false";
|
|
}
|
|
$.post(ext.contextPath + "/process/dataVisualContent/doupdate.do", form, function (data) {
|
|
if (data.code == 1) {
|
|
let chartsubForm = $("#chartsubForm").serialize();
|
|
const datastStatus = $('#switchBtnDatast').bootstrapSwitch('state');
|
|
if (datastStatus) {
|
|
chartsubForm = chartsubForm + "&datast=true";
|
|
} else {
|
|
chartsubForm = chartsubForm + "&datast=false";
|
|
}
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: ext.contextPath + "/process/dataVisualGaugeChart/doupdate.do",
|
|
async: false,
|
|
globle: false,
|
|
data: chartsubForm,
|
|
dataType: 'json',
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
}
|
|
});
|
|
|
|
let chartsubForm2 = $("#chartsubForm2").serialize();
|
|
const pointerstStatus = $('#switchBtnPointerst').bootstrapSwitch('state');
|
|
if (pointerstStatus) {
|
|
chartsubForm2 = chartsubForm2 + "&pointerst=true";
|
|
} else {
|
|
chartsubForm2 = chartsubForm2 + "&pointerst=false";
|
|
}
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: ext.contextPath + "/process/dataVisualGaugeChart/doupdate.do",
|
|
async: false,
|
|
globle: false,
|
|
data: chartsubForm2,
|
|
dataType: 'json',
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
}
|
|
});
|
|
|
|
let chartsubForm3 = $("#chartsubForm3").serialize();
|
|
const splitlinestStatus = $('#switchBtnSplitlinest').bootstrapSwitch('state');
|
|
if (splitlinestStatus) {
|
|
chartsubForm3 = chartsubForm3 + "&splitlinest=true";
|
|
} else {
|
|
chartsubForm3 = chartsubForm3 + "&splitlinest=false";
|
|
}
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: ext.contextPath + "/process/dataVisualGaugeChart/doupdate.do",
|
|
async: false,
|
|
globle: false,
|
|
data: chartsubForm3,
|
|
dataType: 'json',
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
}
|
|
});
|
|
|
|
let chartsubForm4 = $("#chartsubForm4").serialize();
|
|
const axislinestStatus = $('#switchBtnAxislinest').bootstrapSwitch('state');
|
|
if (axislinestStatus) {
|
|
chartsubForm4 = chartsubForm4 + "&axislinest=true";
|
|
} else {
|
|
chartsubForm4 = chartsubForm4 + "&axislinest=false";
|
|
}
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: ext.contextPath + "/process/dataVisualGaugeChart/doupdate.do",
|
|
async: false,
|
|
globle: false,
|
|
data: chartsubForm4,
|
|
dataType: 'json',
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
}
|
|
});
|
|
|
|
let chartsubForm5 = $("#chartsubForm5").serialize();
|
|
const axistickstStatus = $('#switchBtnAxistickst').bootstrapSwitch('state');
|
|
if (axistickstStatus) {
|
|
chartsubForm5 = chartsubForm5 + "&axistickst=true";
|
|
} else {
|
|
chartsubForm5 = chartsubForm5 + "&axistickst=false";
|
|
}
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: ext.contextPath + "/process/dataVisualGaugeChart/doupdate.do",
|
|
async: false,
|
|
globle: false,
|
|
data: chartsubForm5,
|
|
dataType: 'json',
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
}
|
|
});
|
|
|
|
let chartsubForm6 = $("#chartsubForm6").serialize();
|
|
const axislabelstStatus = $('#switchBtnAxislabelst').bootstrapSwitch('state');
|
|
if (axislabelstStatus) {
|
|
chartsubForm6 = chartsubForm6 + "&axislabelst=true";
|
|
} else {
|
|
chartsubForm6 = chartsubForm6 + "&axislabelst=false";
|
|
}
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: ext.contextPath + "/process/dataVisualGaugeChart/doupdate.do",
|
|
async: false,
|
|
globle: false,
|
|
data: chartsubForm6,
|
|
dataType: 'json',
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
}
|
|
});
|
|
|
|
closeModal('gaugeChartSubModal');
|
|
if ('${dataVisualContent.istab}' == 'true') {
|
|
showOneContent('${dataVisualContent.id}', 'tab');
|
|
} else {
|
|
showOneContent('${dataVisualContent.id}');
|
|
}
|
|
|
|
} else if (data.code == 0) {
|
|
showAlert('d', '保存失败');
|
|
} else {
|
|
showAlert('d', data.res);
|
|
}
|
|
}, 'json');
|
|
}
|
|
}
|
|
|
|
function doGaugeChartDel() {
|
|
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 + '/process/dataVisualContent/dodelete.do', {
|
|
id: '${dataVisualContent.id}',
|
|
did: '${dataVisualGaugeChart.id}',
|
|
type: '${Type_GaugeChart}'
|
|
}, function (data) {
|
|
var datajson = JSON.parse(data);
|
|
if (datajson.code == 1) {
|
|
closeModal('gaugeChartSubModal');
|
|
$('#${dataVisualContent.id}').remove();
|
|
} else {
|
|
showAlert('d', '删除失败', 'mainAlertdiv');
|
|
}
|
|
});
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectmpid() {
|
|
$.post(ext.contextPath + '/work/mpoint/mpointListSingle4LayerES.do', {
|
|
// mpids: mpids,
|
|
mpids: '',
|
|
fucname: 'ckmpidDone'
|
|
}, function (data) {
|
|
$("#mpSelectDiv").html(data);
|
|
openModal('subModalMpoint');
|
|
});
|
|
}
|
|
|
|
function ckmpidDone(data) {
|
|
data = JSON.parse(data);
|
|
$('#chartsubForm #mpid').val(data[0].mpid);
|
|
closeModal('subModalMpoint');
|
|
}
|
|
|
|
</script>
|
|
<div class="modal fade" id="gaugeChartSubModal">
|
|
<div class="modal-dialog" style="width: 800px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title">编辑</h4>
|
|
</div>
|
|
|
|
<div id="alertDiv"></div>
|
|
|
|
<ul class="nav nav-tabs" id="myTab">
|
|
<li class="active"><a href="#tab1" data-toggle="tab"
|
|
index="0" aria-expanded="true">区块配置</a></li>
|
|
<li class=""><a href="#tab2" data-toggle="tab" index="1"
|
|
aria-expanded="true">基础配置</a></li>
|
|
<li class=""><a href="#tab3" data-toggle="tab" index="2"
|
|
aria-expanded="true">指针设置</a></li>
|
|
<li class=""><a href="#tab4" data-toggle="tab" index="3"
|
|
aria-expanded="true">分隔线设置</a></li>
|
|
<li class=""><a href="#tab5" data-toggle="tab" index="4"
|
|
aria-expanded="true">轴线设置</a></li>
|
|
<li class=""><a href="#tab6" data-toggle="tab" index="5"
|
|
aria-expanded="true">刻度线设置</a></li>
|
|
<li class=""><a href="#tab7" data-toggle="tab" index="6"
|
|
aria-expanded="true">刻度值设置</a></li>
|
|
</ul>
|
|
|
|
<div class="tab-content no-padding">
|
|
<div class="chart tab-pane active" id="tab1"
|
|
style="position: relative; padding:5px;">
|
|
<div class="modal-body">
|
|
<!-- 新增界面formid强制为subForm -->
|
|
<form class="form-horizontal" id="contentsubForm" autocomplete="off">
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|
<input type="hidden" name="id" id="id" value="${dataVisualContent.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="postx" name="postx" placeholder="左侧距离"
|
|
value="${dataVisualContent.postx}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">上侧距离</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="posty" name="posty" placeholder="上侧距离"
|
|
value="${dataVisualContent.posty}">
|
|
</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="width" name="width" placeholder="宽度"
|
|
value="${dataVisualContent.width}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">高度</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="height" name="height" placeholder="高度"
|
|
value="${dataVisualContent.height}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">自适应</label>
|
|
<div class="col-sm-4">
|
|
<div class="switch" data-on="primary" data-off="info">
|
|
<input id="switchBtnIsFull" type="checkbox"/>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">固定组件</label>
|
|
<div class="col-sm-4">
|
|
<div class="switch" data-on="primary" data-off="info">
|
|
<input id="switchBtnIsFixed" type="checkbox"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">刷新时间</label>
|
|
<div class="col-sm-3">
|
|
<input type="text" class="form-control" id="refreshtime" name="refreshtime"
|
|
placeholder="刷新时间"
|
|
value="${dataVisualContent.refreshtime}">
|
|
</div>
|
|
<div class="col-sm-1">
|
|
<div style="line-height: 34px;text-align: center;">min</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">图层</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="zIndex" name="zIndex" placeholder="图层"
|
|
value="${dataVisualContent.zIndex}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">样式</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="style" name="style" placeholder="样式"
|
|
value="${dataVisualContent.style}">
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class=" tab-pane" id="tab2"
|
|
style="position: relative; padding:5px;">
|
|
<form class="form-horizontal" id="chartsubForm" autocomplete="off">
|
|
<input type="hidden" name="id" id="id" value="${dataVisualGaugeChart.id}"/>
|
|
<div class="modal-body">
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">固定值</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="fixedvalue" name="fixedvalue"
|
|
placeholder="固定值"
|
|
value="${dataVisualGaugeChart.fixedvalue}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">测量点</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="mpid" name="mpid"
|
|
placeholder="测量点"
|
|
value="${dataVisualGaugeChart.mpid}" onclick="selectmpid();">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">计算方式</label>
|
|
<div class="col-sm-4">
|
|
<select class="form-control select2 " id="valuemethod" name="valuemethod"
|
|
style="width: 170px;"></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="startangle" name="startangle"
|
|
placeholder="起始角度"
|
|
value="${dataVisualGaugeChart.startangle}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">结束角度</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="endangle" name="endangle"
|
|
placeholder="结束角度"
|
|
value="${dataVisualGaugeChart.endangle}">
|
|
</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="max" name="max"
|
|
placeholder="最大值"
|
|
value="${dataVisualGaugeChart.max}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">最小值</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="min" name="min"
|
|
placeholder="最小值"
|
|
value="${dataVisualGaugeChart.min}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">数据文本显示</label>
|
|
<div class="col-sm-4">
|
|
<div class="switch" data-on="primary" data-off="info">
|
|
<input id="switchBtnDatast" type="checkbox"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">数据字体颜色</label>
|
|
<div class="col-sm-4">
|
|
<div class="input-group" id="dataColorContainer">
|
|
<input name="dataColor" id="dataColor" type="text" class="form-control"
|
|
placeholder="数据字体颜色"
|
|
value="${dataVisualGaugeChart.dataColor}">
|
|
<div class="input-group-addon">
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">数据字体大小</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="dataFontSize" name="dataFontSize"
|
|
placeholder="数据字体大小"
|
|
value="${dataVisualGaugeChart.dataFontSize}">
|
|
</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="dataFontWeight" name="dataFontWeight"
|
|
placeholder="数据字体粗细"
|
|
value="${dataVisualGaugeChart.dataFontWeight}">
|
|
</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="dataXPosition" name="dataXPosition"
|
|
placeholder="数据水平位置"
|
|
value="${dataVisualGaugeChart.dataXPosition}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">数据垂直位置</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="dataYPosition" name="dataYPosition"
|
|
placeholder="数据垂直位置"
|
|
value="${dataVisualGaugeChart.dataYPosition}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<%-- <label class="col-sm-2 control-label">标题文本</label>--%>
|
|
<%-- <div class="col-sm-4">--%>
|
|
<%-- <div class="switch" data-on="primary" data-off="info">--%>
|
|
<%-- <input id="switchBtnTitlest" type="checkbox"/>--%>
|
|
<%-- </div>--%>
|
|
<%-- </div>--%>
|
|
<label class="col-sm-2 control-label">标题内容</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="titleText" name="titleText"
|
|
placeholder="标题内容"
|
|
value="${dataVisualGaugeChart.titleText}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">标题字体颜色</label>
|
|
<div class="col-sm-4">
|
|
<div class="input-group" id="titleColorContainer">
|
|
<input name="titleColor" id="titleColor" type="text" class="form-control"
|
|
placeholder="标题字体颜色"
|
|
value="${dataVisualGaugeChart.titleColor}">
|
|
<div class="input-group-addon">
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">标题字体大小</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="titleFontSize" name="titleFontSize"
|
|
placeholder="标题字体大小"
|
|
value="${dataVisualGaugeChart.titleFontSize}">
|
|
</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="titleFontWeight" name="titleFontWeight"
|
|
placeholder="标题字体粗细"
|
|
value="${dataVisualGaugeChart.titleFontWeight}">
|
|
</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="titleXPosition" name="titleXPosition"
|
|
placeholder="标题水平位置"
|
|
value="${dataVisualGaugeChart.titleXPosition}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">标题垂直位置</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="titleYPosition" name="titleYPosition"
|
|
placeholder="标题垂直位置"
|
|
value="${dataVisualGaugeChart.titleYPosition}">
|
|
</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="radius" name="radius"
|
|
placeholder="图形大小"
|
|
value="${dataVisualGaugeChart.radius}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">背景色</label>
|
|
<div class="col-sm-4">
|
|
<div class="input-group" id="backgroundContainer">
|
|
<input name="background" id="background" type="text" class="form-control"
|
|
placeholder="背景色"
|
|
value="${dataVisualGaugeChart.background}">
|
|
<div class="input-group-addon">
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class=" tab-pane" id="tab3"
|
|
style="position: relative; padding:5px;">
|
|
<div class="modal-body">
|
|
<form class="form-horizontal" id="chartsubForm2" autocomplete="off">
|
|
<input type="hidden" name="id" id="id" value="${dataVisualGaugeChart.id}"/>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">是否显示</label>
|
|
<div class="col-sm-4">
|
|
<div class="switch" data-on="primary" data-off="info">
|
|
<input id="switchBtnPointerst" type="checkbox"/>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">颜色</label>
|
|
<div class="col-sm-4">
|
|
<div class="input-group" id="pointerColorContainer">
|
|
<input name="pointerColor" id="pointerColor" type="text" class="form-control"
|
|
placeholder="颜色"
|
|
value="${dataVisualGaugeChart.pointerColor}">
|
|
<div class="input-group-addon">
|
|
<i></i>
|
|
</div>
|
|
</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="pointerLength" name="pointerLength"
|
|
placeholder="长度"
|
|
value="${dataVisualGaugeChart.pointerLength}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">宽度</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="pointerWidth" name="pointerWidth"
|
|
placeholder="宽度"
|
|
value="${dataVisualGaugeChart.pointerWidth}">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class=" tab-pane" id="tab4"
|
|
style="position: relative; padding:5px;">
|
|
<div class="modal-body">
|
|
<form class="form-horizontal" id="chartsubForm3" autocomplete="off">
|
|
<input type="hidden" name="id" id="id" value="${dataVisualGaugeChart.id}"/>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">是否显示</label>
|
|
<div class="col-sm-4">
|
|
<div class="switch" data-on="primary" data-off="info">
|
|
<input id="switchBtnSplitlinest" type="checkbox"/>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">颜色</label>
|
|
<div class="col-sm-4">
|
|
<div class="input-group" id="splitlineColorContainer">
|
|
<input name="splitlineColor" id="splitlineColor" type="text"
|
|
class="form-control"
|
|
placeholder="颜色"
|
|
value="${dataVisualGaugeChart.splitlineColor}">
|
|
<div class="input-group-addon">
|
|
<i></i>
|
|
</div>
|
|
</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="splitlineLength" name="splitlineLength"
|
|
placeholder="长度"
|
|
value="${dataVisualGaugeChart.splitlineLength}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">宽度</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="splitlineWidth" name="splitlineWidth"
|
|
placeholder="宽度"
|
|
value="${dataVisualGaugeChart.splitlineWidth}">
|
|
</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="splitlineDistance"
|
|
name="splitlineDistance"
|
|
placeholder="与轴线距离"
|
|
value="${dataVisualGaugeChart.splitlineDistance}">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class=" tab-pane" id="tab5"
|
|
style="position: relative; padding:5px;">
|
|
<div class="modal-body">
|
|
<form class="form-horizontal" id="chartsubForm4" autocomplete="off">
|
|
<input type="hidden" name="id" id="id" value="${dataVisualGaugeChart.id}"/>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">是否显示</label>
|
|
<div class="col-sm-4">
|
|
<div class="switch" data-on="primary" data-off="info">
|
|
<input id="switchBtnAxislinest" type="checkbox"/>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">宽度</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="axislineWidth" name="axislineWidth"
|
|
placeholder="宽度"
|
|
value="${dataVisualGaugeChart.axislineWidth}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">颜色</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="axislineColor" name="axislineColor"
|
|
placeholder="颜色(不少于两种)"
|
|
value="${dataVisualGaugeChart.axislineColor}">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class=" tab-pane" id="tab6"
|
|
style="position: relative; padding:5px;">
|
|
<div class="modal-body">
|
|
<form class="form-horizontal" id="chartsubForm5" autocomplete="off">
|
|
<input type="hidden" name="id" id="id" value="${dataVisualGaugeChart.id}"/>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">是否显示</label>
|
|
<div class="col-sm-4">
|
|
<div class="switch" data-on="primary" data-off="info">
|
|
<input id="switchBtnAxistickst" type="checkbox"/>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">颜色</label>
|
|
<div class="col-sm-4">
|
|
<div class="input-group" id="axistickColorContainer">
|
|
<input name="axistickColor" id="axistickColor" type="text"
|
|
class="form-control"
|
|
placeholder="颜色"
|
|
value="${dataVisualGaugeChart.axistickColor}">
|
|
<div class="input-group-addon">
|
|
<i></i>
|
|
</div>
|
|
</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="axistickLength" name="axistickLength"
|
|
placeholder="长度"
|
|
value="${dataVisualGaugeChart.axistickLength}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">宽度</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="axistickWidth" name="axistickWidth"
|
|
placeholder="宽度"
|
|
value="${dataVisualGaugeChart.axistickWidth}">
|
|
</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="axistickDistance"
|
|
name="axistickDistance"
|
|
placeholder="与轴线距离"
|
|
value="${dataVisualGaugeChart.axistickDistance}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">分割段数</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="axistickSplitnumber"
|
|
name="axistickSplitnumber"
|
|
placeholder="分割段数"
|
|
value="${dataVisualGaugeChart.axistickSplitnumber}">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class=" tab-pane" id="tab7"
|
|
style="position: relative; padding:5px;">
|
|
<div class="modal-body">
|
|
<form class="form-horizontal" id="chartsubForm6" autocomplete="off">
|
|
<input type="hidden" name="id" id="id" value="${dataVisualGaugeChart.id}"/>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">刻度值显示</label>
|
|
<div class="col-sm-4">
|
|
<div class="switch" data-on="primary" data-off="info">
|
|
<input id="switchBtnAxislabelst" type="checkbox"/>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-2 control-label">字体颜色</label>
|
|
<div class="col-sm-4">
|
|
<div class="input-group" id="axislabelColorContainer">
|
|
<input name="axislabelColor" id="axislabelColor" type="text"
|
|
class="form-control"
|
|
placeholder="字体颜色"
|
|
value="${dataVisualGaugeChart.axislabelColor}">
|
|
<div class="input-group-addon">
|
|
<i></i>
|
|
</div>
|
|
</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="axislabelFontSize"
|
|
name="axislabelFontSize"
|
|
placeholder="字体大小"
|
|
value="${dataVisualGaugeChart.axislabelFontSize}">
|
|
</div>
|
|
<label class="col-sm-2 control-label">字体粗细</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="axislabelFontWeight"
|
|
name="axislabelFontWeight"
|
|
placeholder="字体粗细"
|
|
value="${dataVisualGaugeChart.axislabelFontWeight}">
|
|
</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="axislabelDistance"
|
|
name="axislabelDistance"
|
|
placeholder="与刻度线的距离"
|
|
value="${dataVisualGaugeChart.axislabelDistance}">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
|
|
<button type="button" class="btn" onclick="doGaugeChartDel();">删除</button>
|
|
<button type="button" class="btn btn-primary" onclick="doGaugeChartsave()">保存</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div> |