first commit
This commit is contained in:
272
WebRoot/jsp/process/dataVisualTabContainerEdit.jsp
Normal file
272
WebRoot/jsp/process/dataVisualTabContainerEdit.jsp
Normal file
@ -0,0 +1,272 @@
|
||||
<%@ taglib prefix="c" uri="/jodd" %>
|
||||
<%@ page language="java" pageEncoding="UTF-8" %>
|
||||
<%@page import="com.sipai.entity.process.DataVisualTab" %>
|
||||
<%request.setAttribute("TabType_Radio", DataVisualTab.TabType_Radio); %>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('#ckfontcolorContainer').colorpicker({format: null});
|
||||
$('#unckfontcolorContainer').colorpicker({format: null});
|
||||
$('#radioBackgroundContainer').colorpicker({format: null});
|
||||
$('#radioCkBackgroundContainer').colorpicker({format: null});
|
||||
|
||||
$('#switchBtnFirstck').bootstrapSwitch({
|
||||
onText: '是',
|
||||
offText: '否',
|
||||
size: "small",
|
||||
});
|
||||
if ('${dataVisualTab.firstck}' == 'false') {
|
||||
$('#switchBtnFirstck').bootstrapSwitch('state', false, true);
|
||||
} else if ('${dataVisualTab.firstck}' == 'true') {
|
||||
$('#switchBtnFirstck').bootstrapSwitch('state', true, true);
|
||||
} else {
|
||||
$('#switchBtnFirstck').bootstrapSwitch('state', false, true);
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
function doTabDSave() {
|
||||
let form = $("#tabForm").serialize();
|
||||
const firstcklStatus = $('#switchBtnFirstck').bootstrapSwitch('state');
|
||||
if (firstcklStatus) {
|
||||
form = form + "&firstck=true";
|
||||
} else {
|
||||
form = form + "&firstck=false";
|
||||
}
|
||||
$.post(ext.contextPath + "/process/dataVisualTab/doupdate.do", form, function (data) {
|
||||
if (data.code == 1) {
|
||||
closeModal('tabSubModal');
|
||||
$("#tabTable").bootstrapTable('refresh');
|
||||
// showOneContent('${param.contentId}');
|
||||
} else if (data.code == 0) {
|
||||
showAlert('d', '保存失败');
|
||||
} else {
|
||||
showAlert('d', data.res);
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
|
||||
function doTabAllDSave() {
|
||||
let form = $("#tabForm").serialize();
|
||||
const firstcklStatus = $('#switchBtnFirstck').bootstrapSwitch('state');
|
||||
if (firstcklStatus) {
|
||||
form = form + "&firstck=true";
|
||||
} else {
|
||||
form = form + "&firstck=false";
|
||||
}
|
||||
$.post(ext.contextPath + "/process/dataVisualTab/doTabAllUpdate.do", form, function (data) {
|
||||
if (data.code == 1) {
|
||||
closeModal('tabSubModal');
|
||||
$("#tabTable").bootstrapTable('refresh');
|
||||
// showOneContent('${param.contentId}');
|
||||
} else if (data.code == 0) {
|
||||
showAlert('d', '保存失败');
|
||||
} else {
|
||||
showAlert('d', data.res);
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
|
||||
</script>
|
||||
<div class="modal fade" id="tabSubModal">
|
||||
<div class="modal-dialog">
|
||||
<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>
|
||||
|
||||
<div class="modal-body">
|
||||
<!-- 新增界面formid强制为subForm -->
|
||||
<form class="form-horizontal" id="tabForm" autocomplete="off">
|
||||
<!-- 界面提醒div强制id为alertDiv -->
|
||||
<input type="hidden" name="id" id="id" value="${dataVisualTab.id}"/>
|
||||
<input type="hidden" name="pid" id="pid" value="${dataVisualTab.pid}"/>
|
||||
<input type="hidden" name="morder" id="morder" value="${dataVisualTab.morder}"/>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">名称</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="text" name="text" placeholder="名称"
|
||||
value="${dataVisualTab.text}">
|
||||
</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="switchBtnFirstck" 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="width" name="width" placeholder="宽"
|
||||
value="${dataVisualTab.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="${dataVisualTab.height}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label"></label>
|
||||
<div class="col-sm-4">
|
||||
选中时文字
|
||||
</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="ckfontsize" name="ckfontsize" placeholder="大小"
|
||||
value="${dataVisualTab.ckfontsize}">
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">粗细</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="ckfontweight" name="ckfontweight"
|
||||
placeholder="粗细"
|
||||
value="${dataVisualTab.ckfontweight}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">颜色</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group" id="ckfontcolorContainer">
|
||||
<input name="ckfontcolor" id="ckfontcolor" type="text" class="form-control"
|
||||
placeholder="颜色"
|
||||
value="${dataVisualTab.ckfontcolor}">
|
||||
<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="ckbackground" name="ckbackground"
|
||||
placeholder="背景"
|
||||
value="${dataVisualTab.ckbackground}">
|
||||
</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="ckstyle" name="ckstyle" placeholder="样式"
|
||||
value="${dataVisualTab.ckstyle}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label"></label>
|
||||
<div class="col-sm-4">
|
||||
未选中时文字
|
||||
</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="unckfontsize" name="unckfontsize"
|
||||
placeholder="大小"
|
||||
value="${dataVisualTab.unckfontsize}">
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">粗细</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="unckfontweight" name="unckfontweight"
|
||||
placeholder="粗细"
|
||||
value="${dataVisualTab.unckfontweight}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">颜色</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group" id="unckfontcolorContainer">
|
||||
<input name="unckfontcolor" id="unckfontcolor" type="text" class="form-control"
|
||||
placeholder="颜色"
|
||||
value="${dataVisualTab.unckfontcolor}">
|
||||
<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="unckbackground" name="unckbackground"
|
||||
placeholder="背景"
|
||||
value="${dataVisualTab.unckbackground}">
|
||||
</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="unckstyle" name="unckstyle" placeholder="样式"
|
||||
value="${dataVisualTab.unckstyle}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<c:if test="${param.type==TabType_Radio}">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label"></label>
|
||||
<div class="col-sm-4">
|
||||
单选球
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">背景色</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group" id="radioBackgroundContainer">
|
||||
<input name="radioBackground" id="radioBackground" type="text" class="form-control"
|
||||
placeholder="背景色"
|
||||
value="${dataVisualTab.radioBackground}">
|
||||
<div class="input-group-addon">
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">球颜色</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group" id="radioCkBackgroundContainer">
|
||||
<input name="radioCkBackground" id="radioCkBackground" type="text"
|
||||
class="form-control" placeholder="球颜色"
|
||||
value="${dataVisualTab.radioCkBackground}">
|
||||
<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="radioSize" name="radioSize" placeholder="背景大小"
|
||||
value="${dataVisualTab.radioSize}">
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">球大小</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="radioCkSize" name="radioCkSize"
|
||||
placeholder="球大小"
|
||||
value="${dataVisualTab.radioCkSize}">
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
|
||||
<button type="button" class="btn btn-primary" onclick="doTabAllDSave()">整体保存</button>
|
||||
<button type="button" class="btn btn-primary" onclick="doTabDSave()">保存</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user