<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
|
<!DOCTYPE HTML>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
<meta charset="UTF-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<title>系统设置</title>
|
<link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
|
<link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
|
<link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
|
<link rel="stylesheet" href="static/plugins/jquery-steps/css/main.css" type="text/css">
|
<link rel="stylesheet" href="static/styles/material-teal.css" type="text/css">
|
<link rel="stylesheet" href="static/styles/common.css" type="text/css">
|
<link rel="stylesheet" href="static/plugins/webuploader/webuploader.css" type="text/css">
|
|
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
|
<script type="text/javascript" src="static/scripts/easyuiExtend.js"></script>
|
<script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
|
<script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
<script type="text/javascript" src="static/plugins/webuploader/webuploader.js"></script>
|
<script type="text/javascript" src="static/plugins/ace/src-noconflict/ace.js"></script>
|
|
<!-- 弹窗加载组件 -->
|
<script type="text/javascript" src="static/plugins/layer/layer.js"></script>
|
<script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
|
<script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
|
|
<!-- wcp组件 -->
|
<script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
|
|
<!--[if lt IE 9]>
|
<script type="text/javascript" src="static/plugins/json2.js"></script>
|
<![endif]-->
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.infoPicker.js"></script>
|
<style>
|
html, body {
|
height: 100%;
|
}
|
|
body {
|
overflow: hidden;
|
}
|
|
.sourceBody {
|
border-top: 1px solid #eee;
|
}
|
|
.viewBody {
|
padding: 0 20px;
|
}
|
|
.pt-form td.tbtitle {
|
width: 200px;
|
}
|
|
.uploadBtn div {
|
width: 94px !important;
|
height: 41px !important;
|
}
|
|
.webuploader-pick {
|
border: none !important;
|
}
|
</style>
|
</head>
|
|
<body>
|
<form id="formConfig" style="width:100%; height:100%">
|
<div id="allView" class="easyui-tabs" style="width:100%; height:100%" data-options="tabPosition:'left'">
|
<div title="授权信息" data-options="iconCls:'fa fa-file-text-o'" class="pt-form viewBody">
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">授权单位:</td>
|
<td>
|
${licenseInfo.licenseCompany}
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">授权版本:</td>
|
<td>
|
${licenseInfo.licenseEdition}
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">授权机器码:</td>
|
<td>
|
${licenseInfo.machineCode == "" ? "不限制" : licenseInfo.machineCode}
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">授权日期:</td>
|
<td>
|
<fmt:formatDate value="${licenseInfo.licenseDate}" pattern="yyyy-MM-dd"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">是否永久有效:</td>
|
<td>
|
${licenseInfo.licenseType==1?"是":"否"}
|
</td>
|
</tr>
|
<c:if test="${licenseInfo.licenseType==0}">
|
<tr>
|
<td class="tbtitle">到期日期:</td>
|
<td>
|
<fmt:formatDate value="${licenseInfo.expiryDate}" pattern="yyyy-MM-dd"/>
|
</td>
|
</tr>
|
</c:if>
|
<tr>
|
<td class="tbtitle">更新许可文件:</td>
|
<td>
|
<div id="picker">上传许可文件</div>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="平台基本参数" data-options="iconCls:'fa fa-file-text-o'" class="pt-form viewBody">
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">平台名称:</td>
|
<td>
|
<input class="easyui-textbox" id="platformName" name="platformName" type="text"
|
style="width:500px;" value="${systemConfig.platformName}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">平台网址:</td>
|
<td>
|
<input class="easyui-textbox" id="platformUrl" name="platformUrl" type="text"
|
style="width:500px;" value="${systemConfig.platformUrl}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">平台标题:</td>
|
<td>
|
<input class="easyui-textbox" id="platformTitle" name="platformTitle" type="text"
|
style="width:500px;" value="${systemConfig.platformTitle}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">版本信息:</td>
|
<td>
|
<input class="easyui-textbox" id="platformCopyRight" name="platformCopyRight" type="text"
|
style="width:500px;" value="${systemConfig.platformCopyRight}"/>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="系统界面配置" data-options="iconCls:'fa fa-empire'" class="pt-form viewBody">
|
<div class="form-unit1">参数设置</div>
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">系统主题:</td>
|
<td>
|
<select id="systemTheme" name="systemTheme" class="easyui-combobox"
|
data-options="editable: false" style="width:300px;">
|
<option value="v1">主题一</option>
|
<option value="v2">主题二</option>
|
<option value="v3">主题三</option>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">主题视图:</td>
|
<td>
|
<input id="systemThemeIndex" name="systemThemeIndex" class="easyui-textbox" type="text"
|
value="${systemConfig.systemThemeIndex}" style="width:300px;"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">菜单点击时刷新已经存在的页签:</td>
|
<td>
|
<input type="hidden" id="menuItemClickRefreshExistTab" name="menuItemClickRefreshExistTab"
|
value="${systemConfig.menuItemClickRefreshExistTab}"/>
|
<input id="menuItemClickRefreshExistTabText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
</table>
|
<div class="form-unit1">登录界面 Logo</div>
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">当前Logo:</td>
|
<td>
|
<img id="imgLoginLogoUrl" src="${systemConfig.loginLogoUrl}" class="pt-config-logo"
|
alt="登录 Logo">
|
<input type="hidden" id="loginLogoUrl" name="loginLogoUrl" value="${systemConfig.loginLogoUrl}">
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">更改Logo:</td>
|
<td>
|
<div id="pickerLoginLogoUrl" class="uploadBtn">选择图片</div>
|
<span class="pt-text-color"> 注:该图片宽度为355px,高度为72px,请选择大小相同的图片上传</span>
|
</td>
|
</tr>
|
</table>
|
<div class="form-unit1">头部 Logo</div>
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">当前Logo:</td>
|
<td>
|
<img id="imgHeadLogoUrl" src="${systemConfig.headLogoUrl}" class="pt-config-logo" alt="头部 Logo">
|
<input type="hidden" id="headLogoUrl" name="headLogoUrl" value="${systemConfig.headLogoUrl}">
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">更改Logo:</td>
|
<td>
|
<div id="pickerHeadLogoUrl" class="uploadBtn">选择图片</div>
|
<span class="pt-text-color"> 注:该图片宽度为200px,高度为58px,请选择大小相同的图片上传</span>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="用户登录配置" data-options="iconCls:'fa fa-sign-in'" class="pt-form viewBody">
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">启用登录验证码:</td>
|
<td>
|
<input type="hidden" id="enableLoginVerificationCode" name="enableLoginVerificationCode"
|
value="${systemConfig.enableLoginVerificationCode}"/>
|
<input id="enableLoginVerificationCodeText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:loginVerificationCodeButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr id="tr_VerificationCodeType">
|
<td class="tbtitle">验证码类型:</td>
|
<td>
|
<select id="verificationCodeType" name="verificationCodeType" class="easyui-combobox"
|
data-options="editable: false" style="width:300px;">
|
<option value="4Bit">四位数字+字母</option>
|
<option value="6Bit">六位数字+字母</option>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">启用IP登录验证:</td>
|
<td>
|
<input type="hidden" id="enableLoginIpVerification" name="enableLoginIpVerification"
|
value="${systemConfig.enableLoginIpVerification}"/>
|
<input id="enableLoginIpVerificationText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">启用防止重复登录:</td>
|
<td>
|
<input type="hidden" id="enablePreventDuplicateLogin" name="enablePreventDuplicateLogin"
|
value="${systemConfig.enablePreventDuplicateLogin}"/>
|
<input id="enablePreventDuplicateLoginText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">启用密码强度控制:</td>
|
<td>
|
<input type="hidden" id="enablePasswordStrength" name="enablePasswordStrength"
|
value="${systemConfig.enablePasswordStrength}"/>
|
<input id="enablePasswordStrengthText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr id="tr_passwordMinLength">
|
<td class="tbtitle">密码最低长度:</td>
|
<td>
|
<input class="easyui-numberspinner" type="text" id="passwordMinLength" name="passwordMinLength"
|
value="${systemConfig.passwordMinLength}" style="width:300px;"/>
|
</td>
|
</tr>
|
<tr id="tr_passwordCombination">
|
<td class="tbtitle">密码组合形式:</td>
|
<td>
|
<select id="passwordCombination" name="passwordCombination" class="easyui-combobox"
|
data-options="editable: false" style="width:300px;">
|
<option value="0">不限制</option>
|
<option value="1">数字+字母</option>
|
<option value="2">数字+大写+小写</option>
|
<option value="3">数字+字母+特殊符号</option>
|
<option value="4">数字+大写+小写+特殊符号</option>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">启用密码过期控制:</td>
|
<td>
|
<input type="hidden" id="enablePasswordExpired" name="enablePasswordExpired"
|
value="${systemConfig.enablePasswordExpired}"/>
|
<input id="enablePasswordExpiredText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr id="tr_passwordExpiredDays">
|
<td class="tbtitle">密码过期设置:</td>
|
<td>
|
<input class="easyui-numberspinner" type="text" id="passwordExpiredDays"
|
name="passwordExpiredDays" value="${systemConfig.passwordExpiredDays}"
|
style="width:300px;"/> 天 <span class="pt-text-color"> 注:0天表示不启用密码过期</span>
|
</td>
|
</tr>
|
<tr id="tr_passwordExpiredDueDays">
|
<td class="tbtitle">密码到期时间:</td>
|
<td>
|
剩余 <input class="easyui-numberspinner" type="text" id="passwordExpiredDueDays"
|
name="passwordExpiredDueDays" value="${systemConfig.passwordExpiredDueDays}"
|
style="width:268px;"/> 天 <span class="pt-text-color"> 注:不要超过密码过期设置的天数</span>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">启用密码输错控制:</td>
|
<td>
|
<input type="hidden" id="enablePasswordMistake" name="enablePasswordMistake"
|
value="${systemConfig.enablePasswordMistake}"/>
|
<input id="enablePasswordMistakeText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr id="tr_allowPasswordMistakeTimes">
|
<td class="tbtitle">允许输错次数:</td>
|
<td>
|
<input class="easyui-numberspinner" type="text" id="allowPasswordMistakeTimes"
|
name="allowPasswordMistakeTimes" value="${systemConfig.allowPasswordMistakeTimes}"
|
style="width:300px;"/>
|
</td>
|
</tr>
|
<tr id="tr_lockLoginTime">
|
<td class="tbtitle">锁定登录时间:</td>
|
<td>
|
<input class="easyui-numberspinner" type="text" id="lockLoginTime" name="lockLoginTime"
|
value="${systemConfig.lockLoginTime}" style="width:300px;"/> 分钟
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">首次登录强制修改密码:</td>
|
<td>
|
<input type="hidden" id="enableForceModifyPassword" name="enableForceModifyPassword"
|
value="${systemConfig.enableForceModifyPassword}"/>
|
<input id="enableForceModifyPasswordText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">启用系统屏保控制:</td>
|
<td>
|
<input type="hidden" id="enableScreenSaver" name="enableScreenSaver"
|
value="${systemConfig.enableScreenSaver}"/>
|
<input id="enableScreenSaverText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr id="tr_screenSaverWaitTime">
|
<td class="tbtitle">等待时间:</td>
|
<td>
|
<input class="easyui-numberspinner" type="text" id="screenSaverWaitTime"
|
name="screenSaverWaitTime" value="${systemConfig.screenSaverWaitTime}"
|
style="width:300px;"/> 分钟
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">登录控制器Url:</td>
|
<td>
|
<input class="easyui-textbox" type="text" id="loginControllerUrl" name="loginControllerUrl"
|
value="${systemConfig.loginControllerUrl}" style="width:500px;"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">登录视图名称:</td>
|
<td>
|
<input class="easyui-textbox" type="text" id="loginViewName" name="loginViewName"
|
value="${systemConfig.loginViewName}" style="width:500px;"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">显示当前登录用户数:</td>
|
<td>
|
<input type="hidden" id="showOnlineUserCount" name="showOnlineUserCount"
|
value="${systemConfig.showOnlineUserCount}"/>
|
<input id="showOnlineUserCountText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="数据视图参数" data-options="iconCls:'fa fa-server'" class="pt-form viewBody">
|
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">分页显示位置:</td>
|
<td>
|
<select id="paginationPosition" name="paginationPosition" class="easyui-combobox"
|
data-options="editable: false" style="width:300px;">
|
<option value="top">顶部</option>
|
<option value="bottom">底部</option>
|
<option value="both">顶部+底部</option>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">默认分页大小:</td>
|
<td>
|
<input id="defaultPageSize" name="defaultPageSize" class="easyui-textbox" type="text"
|
style="width:300px;" value="${systemConfig.defaultPageSize}"/>
|
<span class="pt-text-color">注:默认大小必须包含在分页大小列表中</span>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">分页大小列表:</td>
|
<td>
|
<input id="pageSizeList" name="pageSizeList" class="easyui-textbox" type="text"
|
style="width:300px;" value="${systemConfig.pageSizeList}"/>
|
<span class="pt-text-color"> 注:例 5,10,20,50请使用英文状态的下的逗号</span>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="附件参数" data-options="iconCls:'fa fa-file-word-o'" class="pt-form viewBody">
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">附件上传保存路径配置:</td>
|
<td>
|
<input id="attachStorageRule" name="attachStorageRule" class="easyui-textbox" type="text"
|
style="width:300px;" value="${systemConfig.attachStorageRule}"/>
|
<p style="line-height: 30px;">
|
<span class="pt-text-color">年</span>
|
<span class="pt-text-color">年月</span>
|
<span class="pt-text-color">年月日</span>
|
<span class="pt-text-color">模块名</span>
|
<span class="pt-text-color">创建人</span>
|
<span class="pt-text-color">创建人部门</span>
|
</p>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">附件存储物理地址:</td>
|
<td>
|
<input id="attachUploadPath" name="attachUploadPath" class="easyui-textbox" type="text"
|
style="width:300px;" value="${systemConfig.attachUploadPath}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">附件浏览虚拟目录:</td>
|
<td>
|
<input id="attachViewPath" name="attachViewPath" class="easyui-textbox" type="text"
|
style="width:300px;" value="${systemConfig.attachViewPath}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">外部虚拟目录配置:</td>
|
<td>
|
<input id="externalVirtualDirectory" name="externalVirtualDirectory" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.externalVirtualDirectory}"/>
|
<span class="pt-text-color">示例:D:\CGML|/CGML/;F:\IMAGE\|/IMAGE/</span>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">系统物理存储容量信息:</td>
|
<td>
|
<ul>
|
<c:forEach items="${systemConfig.spaceInfoList}" var="disk">
|
<li>
|
<span>盘符:${disk.diskName} 总容量:${disk.totalSpace}(G) 已用:${disk.usedSpace}(G) 剩余:${disk.freeSpace}(G) 使用百分比:${disk.usedRate}(%)</span>
|
<c:if test="${disk.usedRate >= 90}">
|
<label>容量已超90%</label>
|
</c:if>
|
</li>
|
</c:forEach>
|
</ul>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">是否启用附件浏览水印:</td>
|
<td>
|
<input type="hidden" id="enableWatermark" name="enableWatermark"
|
value="${systemConfig.enableWatermark}"/>
|
<input id="enableWatermarkText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:watermarkChangeEvent"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">是否启用附件打印带水印:</td>
|
<td>
|
<input type="hidden" id="enablePrintWithWatermark" name="enablePrintWithWatermark"
|
value="${systemConfig.enablePrintWithWatermark}"/>
|
<input id="enablePrintWithWatermarkText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:watermarkChangeEvent"/>
|
</td>
|
</tr>
|
<tr class="watermark">
|
<td class="tbtitle">水印文字:</td>
|
<td>
|
<input id="watermarkText" name="watermarkText" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.watermarkText}"/>
|
</td>
|
</tr>
|
<tr class="watermark">
|
<td class="tbtitle">水印文字字典:</td>
|
<td>
|
<input id="watermarkTextDic" name="watermarkTextDic" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.watermarkTextDic}"/>
|
<span class="pt-text-color">示例:DOC_STATE::-1:已作废,2:有效;FILE_STATE::-1:已作废,2:有效</span>
|
</td>
|
</tr>
|
<tr class="watermark">
|
<td class="tbtitle">水印透明度:</td>
|
<td>
|
<input id="watermarkTransparency" name="watermarkTransparency" class="easyui-numberspinner"
|
data-options="min:1,max:100" type="text" style="width:500px;"
|
value="${systemConfig.watermarkTransparency}"/>
|
</td>
|
</tr>
|
<tr class="watermark">
|
<td class="tbtitle">水印字体大小:</td>
|
<td>
|
<input id="watermarkFontsize" name="watermarkFontsize" class="easyui-numberspinner"
|
data-options="min:1,max:200" type="text" style="width:500px;"
|
value="${systemConfig.watermarkFontsize}"/>
|
</td>
|
</tr>
|
<tr class="watermark">
|
<td class="tbtitle">水印位置:</td>
|
<td>
|
<select id="watermarkPosition" name="watermarkPosition" class="easyui-combobox"
|
data-options="editable: false" style="width:300px;">
|
<option value="">默认</option>
|
<option value="leftTop">左上角</option>
|
<option value="topCenter">顶部居中</option>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">图像转换软件安装路径:</td>
|
<td>
|
<input id="imageMagickPath" name="imageMagickPath" class="easyui-textbox" type="text"
|
style="width:300px;" value="${systemConfig.imageMagickPath}"/>
|
<span class="pt-text-color"> 注:该软件用于处理图片转换,获取图片缩略图使用,在Windows服务器中需要配置该路径</span>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">不使用ImageMagick处理图像:</td>
|
<td>
|
<input type="hidden" id="enableNotUseImageMagick" name="enableNotUseImageMagick"
|
value="${systemConfig.enableNotUseImageMagick}"/>
|
<input id="enableNotUseImageMagickText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">启用附件自定义浏览脚本:</td>
|
<td>
|
<input type="hidden" id="enableCustomAttachViewScript" name="enableCustomAttachViewScript"
|
value="${systemConfig.enableCustomAttachViewScript}"/>
|
<input id="enableCustomAttachViewScriptText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:setEnableValue"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">pdf浏览插件(第三方插件需购买授权):</td>
|
<td>
|
<select id="pdfPlugin" name="pdfPlugin" class="easyui-combobox"
|
data-options="editable: false,panelHeight:'auto'" style="width:300px;">
|
<option value="">默认(pdfjs)</option>
|
<option value="PageOffice">PageOffice(专业或企业版)</option>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">office浏览/编辑插件(第三方插件需购买授权):</td>
|
<td>
|
<select id="officePlugin" name="officePlugin" class="easyui-combobox"
|
data-options="editable: false,panelHeight:'auto'" style="width:300px;">
|
<option value="">默认(OfficeViewer,WebViewer)</option>
|
<option value="NTKO">NTKO</option>
|
<option value="PageOffice">PageOffice</option>
|
</select>
|
</td>
|
</tr>
|
<tr id="tr_CustomAttachViewScript">
|
<td class="tbtitle">附件自定义浏览脚本:</td>
|
<td>
|
<pre id="customAttachViewScript"
|
style="height:400px; width:100%;">${systemConfig.customAttachViewScript}</pre>
|
<div id="customAttachViewScriptDefaultValue" style="display:none">//已有变量 //attachExtension 附件后缀
|
//agent HTTP请求的用户代理 //request HTTP请求 /* var viewUrl = ""; switch(attachExtension){ case
|
".jpg": case ".png": case ".bmp": case ".jpeg": case ".gif": viewUrl =
|
"general/attach/viewImage"; break; case ".tiff": viewUrl = "general/attach/viewTiff"; break;
|
case ".pdf": if (agent.indexOf("msie")
|
> -1) { viewUrl = "general/attach/viewPdf"; } else { viewUrl =
|
"general/attach/viewPdf_pdfjs"; } break; case ".doc": case ".docm": case ".docx": case
|
".xls": case ".xlsx": case ".ppt": case ".pptx": viewUrl = "general/attach/viewOffice";
|
break; default: viewUrl = "general/attach/viewError"; break; } return viewUrl; */
|
</div>
|
</td>
|
</tr>
|
</table>
|
<div class="form-unit1">附件转换&电子签章</div>
|
<table style="width: 100%">
|
<tr>
|
<td class="tbtitle">金格超阅附件转换服务URL:</td>
|
<td>
|
<input id="kgSurReadDCSServerUrl" name="kgSurReadDCSServerUrl" class="easyui-textbox"
|
type="text"
|
style="width:500px;" value="${systemConfig.kgSurReadDCSServerUrl}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格超阅转换服务接口AppKey:</td>
|
<td>
|
<input id="kgSurReadDCSAppKey" name="kgSurReadDCSAppKey" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.kgSurReadDCSAppKey}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格超阅转换服务接口AppSecret:</td>
|
<td>
|
<input id="kgSurReadDCSAppSecret" name="kgSurReadDCSAppSecret" class="easyui-textbox"
|
type="text"
|
style="width:500px;" value="${systemConfig.kgSurReadDCSAppSecret}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格PDF电子签章服务器地址:</td>
|
<td>
|
<input id="kgiSignaturePDFServerUrl" name="kgiSignaturePDFServerUrl" class="easyui-textbox"
|
type="text"
|
style="width:500px;" value="${systemConfig.kgiSignaturePDFServerUrl}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格PDF电子签章证书密码:</td>
|
<td>
|
<input id="kgiSignaturePDFCertPwd" name="kgiSignaturePDFCertPwd" class="easyui-textbox"
|
type="text"
|
style="width:500px;" value="${systemConfig.kgiSignaturePDFCertPwd}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格PDF电子签章密钥盘序号或用户编号:</td>
|
<td>
|
<input id="kgiSignaturePDFKeySN" name="kgiSignaturePDFKeySN" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.kgiSignaturePDFKeySN}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格PDF电子签章用户密码:</td>
|
<td>
|
<input id="kgiSignaturePDFPassword" name="kgiSignaturePDFPassword" class="easyui-textbox"
|
type="text"
|
style="width:500px;" value="${systemConfig.kgiSignaturePDFPassword}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格OFD电子签章服务器地址:</td>
|
<td>
|
<input id="kgiSignatureOFDServerUrl" name="kgiSignatureOFDServerUrl" class="easyui-textbox"
|
type="text"
|
style="width:500px;" value="${systemConfig.kgiSignatureOFDServerUrl}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格OFD电子签章证书密码:</td>
|
<td>
|
<input id="kgiSignatureOFDCertPwd" name="kgiSignatureOFDCertPwd" class="easyui-textbox"
|
type="text"
|
style="width:500px;" value="${systemConfig.kgiSignatureOFDCertPwd}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格OFD电子签章密钥盘序号或用户编号:</td>
|
<td>
|
<input id="kgiSignatureOFDKeySN" name="kgiSignatureOFDKeySN" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.kgiSignatureOFDKeySN}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">金格OFD电子签章用户密码:</td>
|
<td>
|
<input id="kgiSignatureOFDPassword" name="kgiSignatureOFDPassword" class="easyui-textbox"
|
type="text"
|
style="width:500px;" value="${systemConfig.kgiSignatureOFDPassword}"/>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="邮件参数" data-options="iconCls:'fa fa-envelope-open-o'" class="pt-form viewBody">
|
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">SMTP服务器:</td>
|
<td>
|
<input id="emailSMTPServer" name="emailSMTPServer" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.emailSMTPServer}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">SMTP端口:</td>
|
<td>
|
<input id="emailSMTPServerPort" name="emailSMTPServerPort" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.emailSMTPServerPort}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">发件人地址:</td>
|
<td>
|
<input id="emailSendAddress" name="emailSendAddress" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.emailSendAddress}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">邮箱账号:</td>
|
<td>
|
<input id="emailUserName" name="emailUserName" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.emailUserName}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">密码:</td>
|
<td>
|
<input id="emailPassword" name="emailPassword" class="easyui-textbox" type="text"
|
style="width:500px;" value="${systemConfig.emailPassword}"/>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="全文索引配置" data-options="iconCls:'fa fa-search'" class="pt-form viewBody">
|
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">ElasticSearch服务器:</td>
|
<td>
|
<input id="elasticSearchServerHost" name="elasticSearchServerHost" class="easyui-textbox"
|
type="text" style="width:500px;" value="${systemConfig.elasticSearchServerHost}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">ElasticSearch端口:</td>
|
<td>
|
<input id="elasticSearchServerPort" name="elasticSearchServerPort" class="easyui-textbox"
|
type="text" style="width:500px;" value="${systemConfig.elasticSearchServerPort}"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">ElasticSearch需要认证:</td>
|
<td>
|
<input type="hidden" id="elasticSearchRequiresAuthentication"
|
name="elasticSearchRequiresAuthentication"
|
value="${systemConfig.elasticSearchRequiresAuthentication}"/>
|
<input id="elasticSearchRequiresAuthenticationText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:esRequiresAuthenticationButtionChangeEvent"/>
|
<span class="pt-text-color">注:启用或者关闭认证后,请重启Tomcat等Web服务器。</span>
|
</td>
|
</tr>
|
<tr id="tr_ElasticSearchUserName">
|
<td class="tbtitle">ElasticSearch账号:</td>
|
<td>
|
<input id="elasticSearchUserName" name="elasticSearchUserName" class="easyui-textbox"
|
type="text" style="width:500px;" value="${systemConfig.elasticSearchUserName}"/>
|
</td>
|
</tr>
|
<tr id="tr_ElasticSearchPassword">
|
<td class="tbtitle">ElasticSearch密码:</td>
|
<td>
|
<input id="elasticSearchPassword" name="elasticSearchPassword" class="easyui-textbox"
|
type="text" style="width:500px;" value="${systemConfig.elasticSearchPassword}"/>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="初始化数据" data-options="iconCls:'fa fa-sun-o'" class="pt-form viewBody">
|
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">初始化业务数据:</td>
|
<td>
|
<div>
|
<a id="cnfData_but" class="pt-btn pt-btn-primary">选择模块</a>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">初始化系统数据:</td>
|
<td>
|
<div>
|
<a id="sysData_but" class="pt-btn pt-btn-primary">选择模块</a>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">初始化系统缓存:</td>
|
<td>
|
<div>
|
<a id="clear_cache" class="pt-btn pt-btn-primary">选择缓存</a>
|
</div>
|
</td>
|
</tr>
|
|
</table>
|
</div>
|
<div title="系统安全配置" data-options="iconCls:'fa fa-expeditedssl'" class="pt-form viewBody">
|
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">人员选择是否显示密级:</td>
|
<td>
|
<input type="hidden" id="enableUserClassification" name="enableUserClassification"
|
value="${systemConfig.enableUserClassification}"/>
|
<input id="enableUserClassificationText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
<span class="pt-text-color">注:若启用,请确保单级关键字中已配置“涉密等级”,且与用户编辑页面保持一致,与文件密级控制关系为“一般-秘密”、“重要-机密”、“核心-绝密”。</span>
|
</td>
|
</tr>
|
<tr>
|
<td class="tbtitle">启用三员管理:</td>
|
<td>
|
<input type="hidden" id="enableThreeMemberManagement" name="enableThreeMemberManagement"
|
value="${systemConfig.enableThreeMemberManagement}"/>
|
<input id="enableThreeMemberManagementText" class="easyui-switchbutton"
|
data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
|
<span class="pt-text-color">注:启用三员管理并设置好管理员后,管理员用户不能在后期进行修改。</span>
|
</td>
|
</tr>
|
<tr class="tr_threeMember">
|
<td class="tbtitle">系统管理员:</td>
|
<td>
|
<input type="hidden" id="systemAdminIds" name="systemAdminIds"
|
value="${systemConfig.systemAdminIds}"/>
|
<input id="systemAdminNames" name="systemAdminNames" class="easyui-textbox" type="text"
|
value="${systemConfig.systemAdminNames}"
|
data-options="buttonText:'选',prompt:'',onClickButton:selectUser,readonly:${systemConfig.enableThreeMemberManagement && systemConfig.systemAdminIds!=null && !systemConfig.systemAdminIds.equals("")}"
|
style="width:500px;"/>
|
</td>
|
</tr>
|
<tr class="tr_threeMember">
|
<td class="tbtitle">安全管理员:</td>
|
<td>
|
<input type="hidden" id="securityAdminIds" name="securityAdminIds"
|
value="${systemConfig.securityAdminIds}"/>
|
<input id="securityAdminNames" name="securityAdminNames" class="easyui-textbox" type="text"
|
value="${systemConfig.securityAdminNames}"
|
data-options="buttonText:'选',prompt:'',onClickButton:selectUser,readonly:${systemConfig.enableThreeMemberManagement && systemConfig.securityAdminIds!=null && !systemConfig.securityAdminIds.equals("")}"
|
style="width:500px;"/>
|
</td>
|
</tr>
|
<tr class="tr_threeMember">
|
<td class="tbtitle">审计管理员:</td>
|
<td>
|
<input type="hidden" id="auditAdminIds" name="auditAdminIds"
|
value="${systemConfig.auditAdminIds}"/>
|
<input id="auditAdminNames" name="auditAdminNames" class="easyui-textbox" type="text"
|
value="${systemConfig.auditAdminNames}"
|
data-options="buttonText:'选',prompt:'',onClickButton:selectUser,readonly:${systemConfig.enableThreeMemberManagement && systemConfig.auditAdminIds!=null && !systemConfig.auditAdminIds.equals("")}"
|
style="width:500px;"/>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div title="定时任务配置" data-options="iconCls:'fa fa-server'" class="pt-form viewBody">
|
<table style="width: 100%;">
|
<tr>
|
<td class="tbtitle">启动任务服务器IP:</td>
|
<td>
|
<div>
|
<input id="runTaskIps" name="runTaskIps" class="easyui-textbox"
|
type="text" style="width:500px;" value="${systemConfig.runTaskIps}"/>
|
</div>
|
</td>
|
</tr>
|
</table>
|
</div>
|
</div>
|
</form>
|
<div class="pt-form-btn" style="bottom:0px;">
|
<div class="form-group">
|
<button id="btnSave" class="pt-btn pt-btn-primary">保存</button>
|
<button id="btnClose" class="pt-btn pt-btn-default">关闭</button>
|
</div>
|
</div>
|
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
|
|
<script>
|
var editor_customAttachViewScript;
|
$(function () {
|
//初始化表单值
|
$('#systemTheme').combobox('setValue', '${systemConfig.systemTheme}');
|
$('#paginationPosition').combobox('setValue', '${systemConfig.paginationPosition}');
|
$('#verificationCodeType').combobox('setValue', '${systemConfig.verificationCodeType}');
|
$('#passwordCombination').combobox('setValue', '${systemConfig.passwordCombination}');
|
$('#watermarkPosition').combobox('setValue', '${systemConfig.watermarkPosition}');
|
$('#officePlugin').combobox('setValue', '${systemConfig.officePlugin}');
|
$('#pdfPlugin').combobox('setValue', '${systemConfig.pdfPlugin}');
|
|
if ($("#menuItemClickRefreshExistTab").val() == "true") {
|
$('#menuItemClickRefreshExistTabText').switchbutton("check");
|
} else {
|
$('#menuItemClickRefreshExistTabText').switchbutton("uncheck");
|
}
|
if ($("#enableLoginVerificationCode").val() == "true") {
|
$('#enableLoginVerificationCodeText').switchbutton("check");
|
$('#tr_VerificationCodeType').show();
|
} else {
|
$('#enableLoginVerificationCodeText').switchbutton("uncheck");
|
$('#tr_VerificationCodeType').hide();
|
}
|
if ($("#enableLoginIpVerification").val() == "true") {
|
$('#enableLoginIpVerificationText').switchbutton("check");
|
} else {
|
$('#enableLoginIpVerificationText').switchbutton("uncheck");
|
}
|
if ($("#enablePreventDuplicateLogin").val() == "true") {
|
$('#enablePreventDuplicateLoginText').switchbutton("check");
|
} else {
|
$('#enablePreventDuplicateLoginText').switchbutton("uncheck");
|
}
|
|
if ($("#enableForceModifyPassword").val() == "true") {
|
$('#enableForceModifyPasswordText').switchbutton("check");
|
} else {
|
$('#enableForceModifyPasswordText').switchbutton("uncheck");
|
}
|
|
if ($("#enableWatermark").val() == "true") {
|
$('#enableWatermarkText').switchbutton("check");
|
$(".watermark").show();
|
} else {
|
$('#enableWatermarkText').switchbutton("uncheck");
|
$(".watermark").hide();
|
}
|
|
if ($("#enablePrintWithWatermark").val() == "true") {
|
$('#enablePrintWithWatermarkText').switchbutton("check");
|
|
} else {
|
$('#enablePrintWithWatermarkText').switchbutton("uncheck");
|
}
|
|
if ($("#enableNotUseImageMagick").val() == "true") {
|
$('#enableNotUseImageMagickText').switchbutton("check");
|
} else {
|
$('#enableNotUseImageMagickText').switchbutton("uncheck");
|
}
|
|
if ($("#enableCustomAttachViewScript").val() == "true") {
|
$('#enableCustomAttachViewScriptText').switchbutton("check");
|
$('#tr_CustomAttachViewScript').show();
|
} else {
|
$('#enableCustomAttachViewScriptText').switchbutton("uncheck");
|
$('#tr_CustomAttachViewScript').hide();
|
}
|
|
if ($("#elasticSearchRequiresAuthentication").val() == "true") {
|
$('#elasticSearchRequiresAuthenticationText').switchbutton("check");
|
$('#tr_ElasticSearchUserName').show();
|
$('#tr_ElasticSearchPassword').show();
|
} else {
|
$('#elasticSearchRequiresAuthenticationText').switchbutton("uncheck");
|
$('#tr_ElasticSearchUserName').hide();
|
$('#tr_ElasticSearchPassword').hide();
|
}
|
|
//初始化启用密码强度控制
|
if ($("#enablePasswordStrength").val() == "true") {
|
$('#enablePasswordStrengthText').switchbutton("check");
|
$('#tr_passwordMinLength').show();
|
$('#tr_passwordCombination').show();
|
} else {
|
$('#enablePasswordStrengthText').switchbutton("uncheck");
|
$('#tr_passwordMinLength').hide();
|
$('#tr_passwordCombination').hide();
|
}
|
|
//初始化启用密码过期控制
|
if ($("#enablePasswordExpired").val() == "true") {
|
$('#enablePasswordExpiredText').switchbutton("check");
|
$('#tr_passwordExpiredDays').show();
|
$('#tr_passwordExpiredDueDays').show();
|
$('#enableForceModifyPasswordText').switchbutton('disable');
|
|
} else {
|
$('#enablePasswordExpiredText').switchbutton("uncheck");
|
$('#tr_passwordExpiredDays').hide();
|
$('#tr_passwordExpiredDueDays').hide();
|
$('#enableForceModifyPasswordText').switchbutton('enable');
|
}
|
|
//初始化启用密码输错控制
|
if ($("#enablePasswordMistake").val() == "true") {
|
$('#enablePasswordMistakeText').switchbutton("check");
|
$('#tr_allowPasswordMistakeTimes').show();
|
$('#tr_lockLoginTime').show();
|
} else {
|
$('#enablePasswordMistakeText').switchbutton("uncheck");
|
$('#tr_allowPasswordMistakeTimes').hide();
|
$('#tr_lockLoginTime').hide();
|
}
|
|
//初始化启用系统屏保控制
|
if ($("#enableScreenSaver").val() == "true") {
|
$('#enableScreenSaverText').switchbutton("check");
|
$('#tr_screenSaverWaitTime').show();
|
|
} else {
|
$('#enableScreenSaverText').switchbutton("uncheck");
|
$('#tr_screenSaverWaitTime').hide();
|
|
}
|
|
//初始化显示当前登录用户数
|
if ($("#showOnlineUserCount").val() == "true") {
|
$('#showOnlineUserCountText').switchbutton("check");
|
|
} else {
|
$('#showOnlineUserCountText').switchbutton("uncheck");
|
}
|
|
//初始化系统安全配置
|
if ($("#enableUserClassification").val() == "true") {
|
$('#enableUserClassificationText').switchbutton("check");
|
} else {
|
$('#enableUserClassificationText').switchbutton("uncheck");
|
}
|
|
if ($("#enableThreeMemberManagement").val() == "true") {
|
$('#enableThreeMemberManagementText').switchbutton("check");
|
$('.tr_threeMember').show();
|
} else {
|
$('#enableThreeMemberManagementText').switchbutton("uncheck");
|
$('.tr_threeMember').hide();
|
}
|
|
editor_customAttachViewScript = ace.edit("customAttachViewScript"); //单击双击事件框
|
editor_customAttachViewScript.setTheme("ace/theme/monokai");
|
editor_customAttachViewScript.session.setMode("ace/mode/javascript");
|
editor_customAttachViewScript.setFontSize(16);
|
if (editor_customAttachViewScript.getValue().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
editor_customAttachViewScript.session.setValue($('#customAttachViewScriptDefaultValue').html());
|
}
|
|
new ResizeScroll({
|
"id": ".viewBody",
|
fun: function () {
|
var wh = $(window).height();
|
return (wh - 52);
|
}
|
});
|
|
var uploaderLicenseFile = WebUploader.create({
|
swf: 'static/plugins/webuploader/Uploader.swf',
|
server: 'config/setting/uploadLicenseFile',
|
pick: {
|
id: "#picker",
|
multiple: false
|
},
|
accept: {
|
title: '请选择许可文件',
|
extensions: 'lic',
|
mimeTypes: '.lic'
|
},
|
auto: true
|
});
|
uploaderLicenseFile.on("uploadSuccess", function (file, response) { //上传成功事件
|
if (response.success) {
|
window.location = window.location;
|
} else {
|
wcp.message.error(response.error.message, "提示");
|
}
|
});
|
uploaderLicenseFile.on("uploadError", function (file, reason) { //上传失败
|
wcp.message.error("上传失败:" + reason, "错误");
|
});
|
uploaderLicenseFile.on("beforeFileQueued", function (file) {
|
var ext = file.ext;
|
if ("lic".indexOf(ext.toLowerCase()) == -1) {
|
wcp.message.error("请选择许可文件!", "错误");
|
return false;
|
}
|
});
|
|
var imgFileExtensions = 'gif,jpg,jpeg,bmp,png';
|
var uploaderLoginLogoUrl = WebUploader.create({
|
swf: 'static/plugins/webuploader/Uploader.swf',
|
server: 'config/setting/uploadLogo',
|
pick: {
|
id: "#pickerLoginLogoUrl",
|
multiple: false
|
},
|
accept: {
|
title: 'Images',
|
extensions: imgFileExtensions,
|
mimeTypes: 'image/*'
|
},
|
auto: true
|
});
|
uploaderLoginLogoUrl.on("uploadSuccess", function (file, response) { //上传成功事件
|
var $img = $("#imgLoginLogoUrl");
|
$("#loginLogoUrl").val(response.result.fileName);
|
$img.attr("src", response.result.fileName);
|
});
|
uploaderLoginLogoUrl.on("uploadError", function (file, reason) { //上传失败
|
wcp.message.error("上传失败:" + reason, "错误");
|
});
|
uploaderLoginLogoUrl.on("beforeFileQueued", function (file) {
|
var ext = file.ext;
|
if (imgFileExtensions.indexOf(ext.toLowerCase()) == -1) {
|
wcp.message.error("请选择图片文件!", "错误");
|
return false;
|
}
|
});
|
|
var uploaderHeadLogoUrl = WebUploader.create({
|
swf: 'static/plugins/webuploader/Uploader.swf',
|
server: 'config/setting/uploadLogo',
|
pick: {
|
id: "#pickerHeadLogoUrl",
|
multiple: false
|
},
|
accept: {
|
title: 'Images',
|
extensions: imgFileExtensions,
|
mimeTypes: 'image/*'
|
},
|
auto: true
|
});
|
uploaderHeadLogoUrl.on("uploadSuccess", function (file, response) { //上传成功事件
|
var $img = $("#imgHeadLogoUrl");
|
$("#headLogoUrl").val(response.result.fileName);
|
$img.attr("src", response.result.fileName);
|
});
|
uploaderHeadLogoUrl.on("uploadError", function (file, reason) { //上传失败
|
wcp.message.error("上传失败:" + reason, "错误");
|
});
|
uploaderHeadLogoUrl.on("beforeFileQueued", function (file) {
|
var ext = file.ext;
|
if (imgFileExtensions.indexOf(ext.toLowerCase()) == -1) {
|
wcp.message.error("请选择图片文件!", "错误");
|
return false;
|
}
|
});
|
|
//绑定按钮事件
|
$("#btnSave").click(function () {
|
//验证表单信息
|
var isValid = $('#formConfig').form('validate');
|
if (!isValid) {
|
wcp.notify.warn('系统配置验证有误,请检查配置项!');
|
return false;
|
}
|
|
var obj = $("#formConfig").serializeObject();
|
|
var customAttachViewScript = {
|
'customAttachViewScript': editor_customAttachViewScript.getValue().replace(/(^\s*)|(\s*$)/g, "")
|
};
|
var objAll = $.extend(obj, customAttachViewScript);
|
|
wcp.ui.setBusy("body", wcp.ajax({
|
url: "config/setting/saveSystemConfig",
|
data: JSON.stringify(objAll),
|
}).done(function (result) {
|
top.wcp.notify.success("保存成功!");
|
}));
|
});
|
|
$("#btnClose").click(function () {
|
closeWindow();
|
});
|
|
$("#cnfData_but").click(function () {
|
initCnfData();
|
});
|
|
$("#sysData_but").click(function () {
|
initSysData();
|
});
|
$("#clear_cache").click(function () {
|
top.layer.open({
|
title: "清除缓存",
|
type: 2,
|
area: ["900px", "500px"],
|
fixed: false,
|
content: "management/cache/index",
|
success: function (layero, index) {
|
}
|
});
|
});
|
|
})
|
|
//关闭窗口事件
|
function closeWindow() {
|
top.closeNowPanel();
|
}
|
|
function switchButtonChangeEvent(checked) {
|
$('#' + this.id.replace("Text", "")).val(checked);
|
if (checked) {
|
if (this.id == "enablePasswordStrengthText") {
|
$("#tr_passwordMinLength").show();
|
$("#tr_passwordCombination").show();
|
} else if (this.id == "enablePasswordExpiredText") {
|
$("#tr_passwordExpiredDays").show();
|
$("#tr_passwordExpiredDueDays").show();
|
$('#enableForceModifyPasswordText').switchbutton('disable');
|
$('#enableForceModifyPasswordText').switchbutton("check");
|
} else if (this.id == "enablePasswordMistakeText") {
|
$("#tr_allowPasswordMistakeTimes").show();
|
$("#tr_lockLoginTime").show();
|
} else if (this.id == "enableScreenSaverText") {
|
$("#tr_screenSaverWaitTime").show();
|
} else if (this.id == "enableThreeMemberManagementText") {
|
$(".tr_threeMember").show();
|
}
|
} else {
|
if (this.id == "enablePasswordStrengthText") {
|
$("#tr_passwordMinLength").hide();
|
$("#tr_passwordCombination").hide();
|
} else if (this.id == "enablePasswordExpiredText") {
|
$("#tr_passwordExpiredDays").hide();
|
$("#tr_passwordExpiredDueDays").hide();
|
$('#enableForceModifyPasswordText').switchbutton('enable');
|
$('#enableForceModifyPasswordText').switchbutton("uncheck");
|
} else if (this.id == "enablePasswordMistakeText") {
|
$("#tr_allowPasswordMistakeTimes").hide();
|
$("#tr_lockLoginTime").hide();
|
} else if (this.id == "enableScreenSaverText") {
|
$("#tr_screenSaverWaitTime").hide();
|
} else if (this.id == "enableThreeMemberManagementText") {
|
$(".tr_threeMember").hide();
|
}
|
}
|
}
|
|
function setEnableValue(checked) {
|
$('#' + this.id.replace("Text", "")).val(checked);
|
if (checked) {
|
$("#tr_CustomAttachViewScript").show();
|
} else {
|
$("#tr_CustomAttachViewScript").hide();
|
}
|
}
|
|
function loginVerificationCodeButtonChangeEvent(checked) {
|
$('#' + this.id.replace("Text", "")).val(checked);
|
if (checked) {
|
$("#tr_VerificationCodeType").show();
|
} else {
|
$("#tr_VerificationCodeType").hide();
|
}
|
}
|
|
function esRequiresAuthenticationButtionChangeEvent(checked) {
|
$('#' + this.id.replace("Text", "")).val(checked);
|
if (checked) {
|
$('#tr_ElasticSearchUserName').show();
|
$('#tr_ElasticSearchPassword').show();
|
} else {
|
$('#tr_ElasticSearchUserName').hide();
|
$('#tr_ElasticSearchPassword').hide();
|
}
|
}
|
|
function watermarkChangeEvent(checked) {
|
$('#' + this.id.replace("Text", "")).val(checked);
|
if (checked) {
|
$('.watermark').show();
|
} else {
|
$('.watermark').hide();
|
}
|
}
|
|
function selectUser() {
|
var nameElement = this.id;
|
var idElement = nameElement.replace("Name", "Id");
|
|
wcp.picker.selectUser({
|
title: "请选择人员",
|
multiSelect: true,
|
idElement: idElement,
|
nameElement: nameElement,
|
hasSelectIds: $("#" + idElement).val(),
|
hasSelectNames: $("#" + nameElement).val(),
|
layerOpener: window
|
});
|
}
|
|
function initCnfData() {
|
var url = "config/setting/initCnfDataIndex";
|
var title = "初始化业务数据";
|
top.layer.open({
|
title: title,
|
type: 2,
|
area: ["500px", "600px"],
|
fixed: false,
|
content: url,
|
success: function (layero, index) {
|
var body = window.top.layer.getChildFrame('body', index);
|
var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
|
|
}
|
});
|
}
|
|
function initSysData() {
|
var url = "config/setting/initSysDataIndex";
|
var title = "初始化系统数据";
|
top.layer.open({
|
title: title,
|
type: 2,
|
area: ["850px", "320px"],
|
fixed: false,
|
content: url,
|
success: function (layero, index) {
|
var body = window.top.layer.getChildFrame('body', index);
|
var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
|
|
|
}
|
});
|
}
|
</script>
|
</body>
|
</html>
|