优化JS路径

pull/3/head
RuoYi 7 years ago
parent e74c244cdc
commit 55ccae57f8

@ -20,7 +20,7 @@
12. 在线构建器拖动表单元素生成相应的HTML代码
13. 连接池监视监视当期系统数据库连接池状态可进行分析SQL找出系统性能瓶颈。
## 系统演示 ## [www.ruoyi.name](http://www.ruoyi.name)
## 系统演示 ## [www.ruoyi.club](http://www.ruoyi.club)
![登录界面](https://static.oschina.net/uploads/space/2018/0425/110329_Ftsu_1438828.png)

@ -17,7 +17,6 @@ import com.ruoyi.framework.web.domain.Message;
*
* @author ruoyi
*/
// @RestController
@Controller
public class LoginController extends BaseController
{

@ -16,5 +16,5 @@ $("#form-job-add").validate({
});
function add() {
_ajax_save("/monitor/job/save", $("#form-job-add").serialize());
_ajax_save(ctx + "/monitor/job/save", $("#form-job-add").serialize());
}

@ -16,5 +16,5 @@ $("#form-job-edit").validate({
});
function edit() {
_ajax_save("/monitor/job/save", $("#form-job-edit").serialize());
_ajax_save(ctx + "/monitor/job/save", $("#form-job-edit").serialize());
}

@ -1,4 +1,4 @@
var prefix = "/monitor/job"
var prefix = ctx + "/monitor/job"
$(function() {
var columns = [{
@ -114,6 +114,6 @@ function batchRemove() {
//调度日志查询
function jobLog(id) {
var url = '/monitor/jobLog';
var url = ctx + '/monitor/jobLog';
createMenuItem(url, "调度日志");
}

@ -1,4 +1,4 @@
var prefix = "/monitor/jobLog"
var prefix = ctx + "/monitor/jobLog"
$(function() {
var columns = [{

@ -1,4 +1,4 @@
var prefix = "/monitor/logininfor"
var prefix = ctx + "/monitor/logininfor"
$(function() {
var columns = [{

@ -1,4 +1,4 @@
var prefix = "/monitor/online"
var prefix = ctx + "/monitor/online"
$(function() {
var columns = [{

@ -1,4 +1,4 @@
var prefix = "/monitor/operlog"
var prefix = ctx + "/monitor/operlog"
$(function() {
var columns = [{

@ -3,7 +3,7 @@ $("#form-dept-add").validate({
deptName:{
required:true,
remote: {
url: "/system/dept/checkDeptNameUnique",
url: ctx + "system/dept/checkDeptNameUnique",
type: "post",
dataType: "text",
data: {
@ -33,12 +33,12 @@ $("#form-dept-add").validate({
});
function update() {
_ajax_save("/system/dept/save", $("#form-dept-add").serialize());
_ajax_save(ctx + "system/dept/save", $("#form-dept-add").serialize());
}
/*部门管理-新增-选择父部门树*/
function selectDeptTree() {
var deptId = $("#treeId").val();
var url = "/system/dept/selectDeptTree/" + deptId;
var url = ctx + "system/dept/selectDeptTree/" + deptId;
layer_show("选择部门", url, '380', '380');
}

@ -1,4 +1,4 @@
var prefix = "/system/dept"
var prefix = ctx + "system/dept"
window.onload = function() {
loading();

@ -3,7 +3,7 @@ $("#form-dept-edit").validate({
deptName:{
required:true,
remote: {
url: "/system/dept/checkDeptNameUnique",
url: ctx + "system/dept/checkDeptNameUnique",
type: "post",
dataType: "text",
data: {
@ -36,12 +36,12 @@ $("#form-dept-edit").validate({
});
function update() {
_ajax_save("/system/dept/save", $("#form-dept-edit").serialize());
_ajax_save(ctx + "system/dept/save", $("#form-dept-edit").serialize());
}
/*部门管理-修改-选择部门树*/
function selectDeptTree() {
var deptId = $("#treeId").val();
var url = "/system/dept/selectDeptTree/" + deptId;
var url = ctx + "system/dept/selectDeptTree/" + deptId;
layer_show("选择部门", url, '380', '380');
}

@ -7,7 +7,7 @@ var setting = {view:{selectedMulti:false},data:{key:{title:"title"},simpleData:{
$("#treeName").val(treeName);
}}
}, tree, loadTree = function(){
$.get("/system/dept/treeData", function(data) {
$.get(ctx + "system/dept/treeData", function(data) {
var treeName = $("#treeName").val();
tree = $.fn.zTree.init($("#tree"), setting, data);
// 展开第一级节点

@ -13,5 +13,5 @@ $("#form-dict-add").validate({
});
function add() {
_ajax_save("/system/dict/data/save", $("#form-dict-add").serialize());
_ajax_save(ctx + "system/dict/data/save", $("#form-dict-add").serialize());
}

@ -1,4 +1,4 @@
var prefix = "/system/dict/data"
var prefix = ctx + "system/dict/data"
$(function() {
var columns = [{

@ -13,5 +13,5 @@ $("#form-dict-edit").validate({
});
function update() {
_ajax_save("/system/dict/data/save", $("#form-dict-edit").serialize());
_ajax_save(ctx + "system/dict/data/save", $("#form-dict-edit").serialize());
}

@ -7,7 +7,7 @@ $("#form-dict-add").validate({
required:true,
minlength: 5,
remote: {
url: "/system/dict/checkDictTypeUnique",
url: ctx + "system/dict/checkDictTypeUnique",
type: "post",
dataType: "text",
data: {
@ -33,5 +33,5 @@ $("#form-dict-add").validate({
});
function add() {
_ajax_save("/system/dict/save", $("#form-dict-add").serialize());
_ajax_save(ctx + "system/dict/save", $("#form-dict-add").serialize());
}

@ -7,7 +7,7 @@ $("#form-dict-edit").validate({
required:true,
minlength: 5,
remote: {
url: "/system/dict/checkDictTypeUnique",
url: ctx + "system/dict/checkDictTypeUnique",
type: "post",
dataType: "text",
data: {
@ -36,5 +36,5 @@ $("#form-dict-edit").validate({
});
function update() {
_ajax_save("/system/dict/save", $("#form-dict-edit").serialize());
_ajax_save(ctx + "system/dict/save", $("#form-dict-edit").serialize());
}

@ -1,4 +1,4 @@
var prefix = "/system/dict"
var prefix = ctx + "system/dict"
$(function() {
var columns = [{

@ -3,7 +3,7 @@ $("#form-menu-add").validate({
menuName:{
required:true,
remote: {
url: "/system/menu/checkMenuNameUnique",
url: ctx + "system/menu/checkMenuNameUnique",
type: "post",
dataType: "text",
data: {
@ -64,7 +64,7 @@ $(function() {
});
function add() {
_ajax_save("/system/menu/save", $("#form-menu-add").serialize());
_ajax_save(ctx + "system/menu/save", $("#form-menu-add").serialize());
}
/*菜单管理-新增-选择菜单树*/
@ -72,12 +72,12 @@ function selectMenuTree() {
var menuId = $("#treeId").val();
if(menuId > 0)
{
var url = "/system/menu/selectMenuTree/" + menuId;
var url = ctx + "system/menu/selectMenuTree/" + menuId;
layer_show("选择菜单", url, '380', '380');
}
else
{
var url = "/system/menu/selectMenuTree/1";
var url = ctx + "system/menu/selectMenuTree/1";
layer_show("选择菜单", url, '380', '380');
}
}

@ -8,7 +8,7 @@ $("#form-menu-edit").validate({
menuName:{
required:true,
remote: {
url: "/system/menu/checkMenuNameUnique",
url: ctx + "system/menu/checkMenuNameUnique",
type: "post",
dataType: "text",
data: {
@ -78,7 +78,7 @@ function menuVisible(menuType) {
}
function update() {
_ajax_save("/system/menu/save", $("#form-menu-edit").serialize());
_ajax_save(ctx + "system/menu/save", $("#form-menu-edit").serialize());
}
/*菜单管理-修改-选择菜单树*/
@ -86,7 +86,7 @@ function selectMenuTree() {
var menuId = $("#treeId").val();
if(menuId > 0)
{
var url = "/system/menu/selectMenuTree/" + menuId;
var url = ctx + "system/menu/selectMenuTree/" + menuId;
layer_show("选择菜单", url, '380', '380');
}
else

@ -1,4 +1,4 @@
var prefix = "/system/menu"
var prefix = ctx + "system/menu"
window.onload = function() {
loading();

@ -7,7 +7,7 @@ var setting = {view:{selectedMulti:false},data:{key:{title:"title"},simpleData:{
$("#treeName").val(treeName);
}}
}, tree, loadTree = function(){
$.get("/system/menu/menuTreeData", function(data) {
$.get(ctx + "system/menu/menuTreeData", function(data) {
var treeName = $("#treeName").val();
tree = $.fn.zTree.init($("#tree"), setting, data);
// 展开第一级节点

@ -17,5 +17,5 @@ $("#form-post-add").validate({
/** 岗位管理-新增岗位 */
function add() {
_ajax_save(ctx + "/system/post/save", $("#form-post-add").serialize());
_ajax_save(ctx + "system/post/save", $("#form-post-add").serialize());
}

@ -17,5 +17,5 @@ $("#form-post-edit").validate({
/** 岗位管理-修改岗位 */
function edit() {
_ajax_save(ctx + "/system/post/save", $("#form-post-edit").serialize());
_ajax_save(ctx + "system/post/save", $("#form-post-edit").serialize());
}

@ -1,5 +1,4 @@
var prefix = ctx + "/system/post"
var prefix = ctx + "system/post"
$(function() {
var columns = [{
checkbox: true

@ -11,7 +11,7 @@ var setting = {
}
}
}, menuTrees, loadTree = function(){
$.get("/system/menu/roleMenuTreeData", function(data) {
$.get(ctx + "system/menu/roleMenuTreeData", function(data) {
menuTrees = $.fn.zTree.init($("#menuTrees"), setting, data); //.expandAll(true);
}, null, null, "正在加载,请稍后...");
};loadTree();
@ -21,7 +21,7 @@ $("#form-role-add").validate({
roleName:{
required:true,
remote: {
url: "/system/role/checkRoleNameUnique",
url: ctx + "system/role/checkRoleNameUnique",
type: "post",
dataType: "text",
data: {
@ -75,7 +75,7 @@ function add() {
$.ajax({
cache : true,
type : "POST",
url : "/system/role/save",
url : ctx + "system/role/save",
data : {
"roleName": roleName,
"roleKey": roleKey,

@ -11,7 +11,7 @@ var setting = {
}
}
}, menuTrees, loadTree = function(){
$.get("/system/menu/roleMenuTreeData?roleId=" + $("#roleId").val(), function(data) {
$.get(ctx + "system/menu/roleMenuTreeData?roleId=" + $("#roleId").val(), function(data) {
menuTrees = $.fn.zTree.init($("#menuTrees"), setting, data); //.expandAll(true);
}, null, null, "正在加载,请稍后...");
};loadTree();
@ -21,7 +21,7 @@ $("#form-role-edit").validate({
roleName:{
required:true,
remote: {
url: "/system/role/checkRoleNameUnique",
url: ctx + "system/role/checkRoleNameUnique",
type: "post",
dataType: "text",
data: {
@ -79,7 +79,7 @@ function update() {
$.ajax({
cache : true,
type : "POST",
url : "/system/role/save",
url : ctx + "system/role/save",
data : {
"roleId": roleId,
"roleName": roleName,

@ -1,4 +1,4 @@
var prefix = "/system/role"
var prefix = ctx + "system/role"
$(function() {
var columns = [{

@ -4,7 +4,7 @@ $("#form-user-add").validate({
required:true,
minlength: 5,
remote: {
url: "/system/user/checkUserNameUnique",
url: ctx + "system/user/checkUserNameUnique",
type: "post",
dataType: "text",
data: {
@ -57,7 +57,7 @@ function add() {
$.ajax({
cache : true,
type : "POST",
url : "/system/user/save",
url : ctx + "system/user/save",
data : {
"userId": userId,
"deptId": deptId,
@ -91,6 +91,6 @@ function add() {
function selectDeptTree() {
var treeId = $("#treeId").val();
var deptId = treeId == null || treeId == "" ? "100" : treeId;
var url = "/system/dept/selectDeptTree/" + deptId;
var url = ctx + "system/dept/selectDeptTree/" + deptId;
layer_show("选择部门", url, '380', '380');
}

@ -33,7 +33,7 @@ function update() {
$.ajax({
cache : true,
type : "POST",
url : "/system/user/save",
url : ctx + "system/user/save",
data : {
"userId": userId,
"deptId": deptId,
@ -64,6 +64,6 @@ function update() {
/*用户管理-修改-选择部门树*/
function selectDeptTree() {
var deptId = $("#treeId").val();
var url = "/system/dept/selectDeptTree/" + deptId;
var url = ctx + "system/dept/selectDeptTree/" + deptId;
layer_show("选择部门", url, '380', '380');
}

@ -1,4 +1,4 @@
var prefix = "/system/user"
var prefix = ctx + "system/user"
$(document).ready(function(){
@ -76,7 +76,7 @@ function queryDeptTreeDaTa()
$('.bootstrap-table').bootstrapTable('refresh', opt);
}}
}, tree, loadTree = function(){
$.get("/system/dept/treeData", function(data) {
$.get(ctx + "system/dept/treeData", function(data) {
tree = $.fn.zTree.init($("#tree"), setting, data); //.expandAll(true);
// 展开第一级节点
var nodes = tree.getNodesByParam("level", 0);
@ -108,7 +108,7 @@ function queryDeptTreeDaTa()
/*用户管理-部门*/
function dept() {
var url = "/system/dept";
var url = ctx + "system/dept";
createMenuItem(url, "部门管理");
}

@ -1,4 +1,4 @@
var prefix = "/tool/gen"
var prefix = ctx + "tool/gen"
$(function() {
var columns = [{

@ -4,9 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RuoYi - 404</title>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/animate.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<link href="/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/css/animate.css" rel="stylesheet"/>
<link href="/css/style.css" rel="stylesheet"/>
</head>
<body class="gray-bg">
<div class="middle-box text-center animated fadeInDown">

@ -4,9 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RuoYi - 500</title>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/animate.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<link href="/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/css/animate.css" rel="stylesheet"/>
<link href="/css/style.css" rel="stylesheet"/>
</head>
<body class="gray-bg">
<div class="middle-box text-center animated fadeInDown">

@ -4,9 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RuoYi - 403</title>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/animate.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<link href="/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/css/animate.css" rel="stylesheet"/>
<link href="/css/style.css" rel="stylesheet"/>
</head>
<body class="gray-bg">
<div class="middle-box text-center animated fadeInDown">

@ -5,14 +5,14 @@
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="shortcut icon" href="favicon.ico">
<link href="../static/css/bootstrap.min.css" rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<link href="../static/css/font-awesome.css" rel="stylesheet" th:href="@{/css/font-awesome.css}">
<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
<link href="../static/css/font-awesome.css" th:href="@{/css/font-awesome.css}" rel="stylesheet"/>
<!-- bootstrap-table 表格插件样式 -->
<link href="../static/ajax/libs/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" th:href="@{/ajax/libs/bootstrap-table/bootstrap-table.min.css}">
<link href="../static/ajax/libs/jqTreeGrid/jquery.treegrid.css" rel="stylesheet" th:href="@{/ajax/libs/jqTreeGrid/jquery.treegrid.css}">
<link href="../static/css/animate.css" rel="stylesheet" th:href="@{/css/animate.css}">
<link href="../static/css/style.css" rel="stylesheet" th:href="@{/css/style.css}">
<link href="../static/css/checkbox.css" rel="stylesheet" th:href="@{/css/checkbox.css}">
<link href="../static/ajax/libs/bootstrap-table/bootstrap-table.min.css" th:href="@{/ajax/libs/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet"/>
<link href="../static/ajax/libs/jqTreeGrid/jquery.treegrid.css" th:href="@{/ajax/libs/jqTreeGrid/jquery.treegrid.css}" rel="stylesheet"/>
<link href="../static/css/animate.css" th:href="@{/css/animate.css}" rel="stylesheet"/>
<link href="../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/>
<link href="../static/css/checkbox.css" th:href="@{/css/checkbox.css}" rel="stylesheet"/>
</head>
<div th:fragment="footer">
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
@ -35,5 +35,6 @@
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script src="../static/ruoyi/js/common.js?v=1.1.1" th:src="@{/ruoyi/js/common.js?v=1.1.1}"></script>
<script src="../static/ruoyi/js/ry-ui.js?v=1.1.1" th:src="@{/ruoyi/js/ry-ui.js?v=1.1.1}"></script>
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
<script src="http://tajs.qq.com/stats?sId=62048022"></script>
</div>

@ -11,13 +11,12 @@
<!--[if lt IE 9]>
<meta http-equiv="refresh" content="0;ie.html"/>
<![endif]-->
<link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}">
<link href="../static/css/bootstrap.min.css" rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.css}" rel="stylesheet">
<link href="../static/css/animate.css" th:href="@{/css/animate.css}" rel="stylesheet">
<link href="../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet">
<link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}" rel="stylesheet"/>
<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
<link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.css}" rel="stylesheet"/>
<link href="../static/css/animate.css" th:href="@{/css/animate.css}" rel="stylesheet"/>
<link href="../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/>
</head>
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden">
<div id="wrapper">

@ -8,14 +8,14 @@
<title>若依管理系统 - 登录</title>
<meta name="keywords" content="若依管理系统">
<meta name="description" content="RuoYi">
<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
<link href="../static/css/font-awesome.css" th:href="@{/css/font-awesome.css}" rel="stylesheet">
<link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet">
<link href="../static/css/login.min.css" th:href="@{/css/login.min.css}" rel="stylesheet">
<link href="../static/css/bootstrap.min.css" th:href="@{css/bootstrap.min.css}" rel="stylesheet"/>
<link href="../static/css/font-awesome.css" th:href="@{css/font-awesome.css}" rel="stylesheet"/>
<link href="../static/css/style.min.css" th:href="@{css/style.min.css}" rel="stylesheet"/>
<link href="../static/css/login.min.css" th:href="@{css/login.min.css}" rel="stylesheet"/>
<!--[if lt IE 9]>
<meta http-equiv="refresh" content="0;ie.html" />
<![endif]-->
<link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}">
<link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}"/>
<script>
if(window.top!==window.self){window.top.location=window.location};
</script>
@ -60,12 +60,12 @@
</div>
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
<!-- 全局js -->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="../static/js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"></script>
<script src="../static/js/jquery.min.js" th:src="@{js/jquery.min.js}"></script>
<script src="../static/js/bootstrap.min.js" th:src="@{js/bootstrap.min.js}"></script>
<!-- 验证插件 -->
<script src="../static/ajax/libs/validate/jquery.validate.min.js" th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
<script src="../static/ajax/libs/validate/messages_zh.min.js" th:src="@{/ajax/libs/validate/messages_zh.min.js}"></script>
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script src="../static/ajax/libs/validate/jquery.validate.min.js" th:src="@{ajax/libs/validate/jquery.validate.min.js}"></script>
<script src="../static/ajax/libs/validate/messages_zh.min.js" th:src="@{ajax/libs/validate/messages_zh.min.js}"></script>
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{ajax/libs/layer/layer.min.js}"></script>
<script src="http://tajs.qq.com/stats?sId=62048022"></script>
<script type="text/javascript">
$(document).ready(function() {

@ -6,10 +6,10 @@
<!--360浏览器优先以webkit内核解析-->
<title>若依介绍</title>
<link rel="shortcut icon" href="favicon.ico">
<link href="../static/css/bootstrap.min.css" rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.css}" rel="stylesheet">
<link href="../static/css/main/animate.min.css" th:href="@{/css/main/animate.min.css}" rel="stylesheet">
<link href="../static/css/main/style.min862f.css" th:href="@{/css/main/style.min862f.css}" rel="stylesheet">
<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
<link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.css}" rel="stylesheet"/>
<link href="../static/css/main/animate.min.css" th:href="@{/css/main/animate.min.css}" rel="stylesheet"/>
<link href="../static/css/main/style.min862f.css" th:href="@{/css/main/style.min862f.css}" rel="stylesheet"/>
</head>
<body class="gray-bg">
@ -28,7 +28,7 @@
<small>移动设备访问请扫描以下二维码:</small>
<br>
<br>
<img src="../static/img/qr_code.png" width="100%" style="max-width:264px;">
<img th:src="@{/img/qr_code.png}" width="100%" style="max-width:264px;">
<br>
</div>
<div class="col-sm-5">
@ -297,7 +297,7 @@
请作者喝杯咖啡。
</div>
<p id="pay-qrcode">
<a href="javascript:;"><img src="../static/img/pay.png" width="100%" alt="请使用手机支付宝或者微信扫码支付">
<a href="javascript:;"><img th:src="@{/img/pay.png}" width="100%" alt="请使用手机支付宝或者微信扫码支付">
</a>
</p>

@ -63,7 +63,7 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/monitor/job/add.js">
<script src="/ruoyi/monitor/job/add.js" th:src="@{/ruoyi/monitor/job/add.js}">
</script>
</body>
</html>

@ -64,7 +64,7 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/monitor/job/edit.js">
<script src="/ruoyi/monitor/job/edit.js" th:src="@{/ruoyi/monitor/job/edit.js}">
</script>
</body>
</html>

@ -21,8 +21,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/monitor/job/job.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/monitor/job/job.js" th:src="@{/ruoyi/monitor/job/job.js}"></script>
<script th:inline="javascript">
var editFlag = [[${@permissionService.hasPermi('monitor:job:edit')}]];
var removeFlag = [[${@permissionService.hasPermi('monitor:job:remove')}]];
var statusFlag = [[${@permissionService.hasPermi('monitor:job:changeStatus')}]];

@ -15,8 +15,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/monitor/job/jobLog.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/monitor/job/jobLog.js" th:src="@{/ruoyi/monitor/job/jobLog.js}"></script>
<script th:inline="javascript">
var removeFlag = [[${@permissionService.hasPermi('monitor:job:remove')}]];
</script>
</body>

@ -15,6 +15,6 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/monitor/logininfor/logininfor.js"></script>
<script src="/ruoyi/monitor/logininfor/logininfor.js" th:src="@{/ruoyi/monitor/logininfor/logininfor.js}"></script>
</body>
</html>

@ -16,8 +16,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/monitor/online/online.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/monitor/online/online.js" th:src="@{/ruoyi/monitor/online/online.js}"></script>
<script th:inline="javascript">
var forceFlag = [[${@permissionService.hasPermi('monitor:online:forceLogout')}]];
</script>
</body>

@ -16,8 +16,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/monitor/operlog/operlog.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/monitor/operlog/operlog.js" th:src="@{/ruoyi/monitor/operlog/operlog.js}"></script>
<script th:inline="javascript">
var detailFlag = [[${@permissionService.hasPermi('monitor:operlog:detail')}]];
</script>
</body>

@ -65,7 +65,7 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/dept/add.js">
<script src="/ruoyi/system/dept/add.js" th:src="@{/ruoyi/system/dept/add.js}">
</script>
</body>
</html>

@ -15,8 +15,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/system/dept/dept.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/system/dept/dept.js" th:src="@{/ruoyi/system/dept/dept.js}"></script>
<script th:inline="javascript">
var addFlag = [[${@permissionService.hasPermi('system:dept:add')}]];
var editFlag = [[${@permissionService.hasPermi('system:dept:edit')}]];
var removeFlag = [[${@permissionService.hasPermi('system:dept:remove')}]];

@ -65,7 +65,7 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/dept/edit.js">
<script src="/ruoyi/system/dept/edit.js" th:src="@{/ruoyi/system/dept/edit.js}">
</script>
</body>
</html>

@ -2,8 +2,8 @@
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet">
<link href="/ruoyi/css/RuoYi.css" rel="stylesheet"/>
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/>
<link href="/ruoyi/css/RuoYi.css" th:href="@{/ruoyi/css/RuoYi.css}" rel="stylesheet"/>
<style>
body{height:auto;font-family: "Microsoft YaHei";}
button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;}
@ -30,9 +30,9 @@ button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;}
<a class="layui-layer-btn1" th:onclick="'javascript:layer_close()'"><i class="fa fa-close"></i> 关闭</a>
</div>
<div th:include="include::footer"></div>
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<script type="text/javascript" src="/ruoyi/system/dept/tree.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js" th:src="@{/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js}"></script>
<script src="/ruoyi/system/dept/tree.js" th:src="@{/ruoyi/system/dept/tree.js}"></script>
<script th:inline="javascript">
var treeName = [[${treeName}]];
$("#treeName").val(treeName);
</script>

@ -58,6 +58,6 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/dict/data/add.js"/>
<script src="/ruoyi/system/dict/data/add.js" th:src="@{/ruoyi/system/dict/data/add.js}"/>
</body>
</html>

@ -21,8 +21,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/system/dict/data/data.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/system/dict/data/data.js" th:src="@{/ruoyi/system/dict/data/data.js}"></script>
<script th:inline="javascript">
var editFlag = [[${@permissionService.hasPermi('system:dict:edit')}]];
var removeFlag = [[${@permissionService.hasPermi('system:dict:remove')}]];
</script>

@ -59,6 +59,6 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/dict/data/edit.js"/>
<script src="/ruoyi/system/dict/data/edit.js" th:src="@{/ruoyi/system/dict/data/edit.js}"/>
</body>
</html>

@ -46,6 +46,6 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/dict/type/add.js"/>
<script src="/ruoyi/system/dict/type/add.js" th:src="@{/ruoyi/system/dict/type/add.js}"/>
</body>
</html>

@ -47,6 +47,6 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/dict/type/edit.js"/>
<script src="/ruoyi/system/dict/type/edit.js" th:src="@{/ruoyi/system/dict/type/edit.js}"/>
</body>
</html>

@ -19,8 +19,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/system/dict/type/type.js" th:src="@{/ruoyi/system/dict/type/type.js}"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/system/dict/type/type.js" th:src="@{/ruoyi/system/dict/type/type.js}"></script>
<script th:inline="javascript">
var editFlag = [[${@permissionService.hasPermi('system:dict:edit')}]];
var listFlag = [[${@permissionService.hasPermi('system:dict:list')}]];
var removeFlag = [[${@permissionService.hasPermi('system:dict:remove')}]];

@ -2,7 +2,7 @@
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/iCheck/custom.css" rel="stylesheet">
<link href="/ajax/libs/iCheck/custom.css" th:href="@{/ajax/libs/iCheck/custom.css}" rel="stylesheet"/>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-menu-add">
@ -78,8 +78,8 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/menu/add.js"></script>
<script src="/ajax/libs/iCheck/icheck.min.js"></script>
<script src="/ruoyi/system/menu/add.js" th:src="@{/ruoyi/system/menu/add.js}"></script>
<script src="/ajax/libs/iCheck/icheck.min.js" th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
<script>
$(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>

@ -2,7 +2,7 @@
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/iCheck/custom.css" rel="stylesheet">
<link href="/ajax/libs/iCheck/custom.css" th:href="@{/ajax/libs/iCheck/custom.css}" rel="stylesheet"/>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-menu-edit">
@ -79,8 +79,8 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/menu/edit.js"></script>
<script src="/ajax/libs/iCheck/icheck.min.js"></script>
<script src="/ruoyi/system/menu/edit.js" th:src="@{/ruoyi/system/menu/edit.js}"></script>
<script src="/ajax/libs/iCheck/icheck.min.js" th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
<script>
$(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Font Awesome Ico list</title>
<link href="/css/font-awesome.min.css" rel="stylesheet">
<link href="/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
<script src="/js/jquery.min.js"></script>
<style type="text/css">
.ico-list .fa{

@ -15,8 +15,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/system/menu/menu.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/system/menu/menu.js" th:src="@{/ruoyi/system/menu/menu.js}"></script>
<script th:inline="javascript">
var addFlag = [[${@permissionService.hasPermi('system:menu:add')}]];
var editFlag = [[${@permissionService.hasPermi('system:menu:edit')}]];
var removeFlag = [[${@permissionService.hasPermi('system:menu:remove')}]];

@ -2,8 +2,8 @@
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet">
<link href="/ruoyi/css/RuoYi.css" rel="stylesheet"/>
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/>
<link href="/ruoyi/css/RuoYi.css" th:href="@{/ruoyi/css/RuoYi.css}" rel="stylesheet"/>
<style>
body{height:auto;font-family: "Microsoft YaHei";}
button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;}
@ -30,9 +30,9 @@ button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;}
<a class="layui-layer-btn1" th:onclick="'javascript:layer_close()'"><i class="fa fa-close"></i> 关闭</a>
</div>
<div th:include="include::footer"></div>
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<script type="text/javascript" src="/ruoyi/system/menu/tree.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js" th:src="@{/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js}"></script>
<script src="/ruoyi/system/menu/tree.js" th:src="@{/ruoyi/system/menu/tree.js}"></script>
<script th:inline="javascript">
var treeName = [[${treeName}]];
$("#treeName").val(treeName);
</script>

@ -51,7 +51,7 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/post/add.js" th:src="@{/ruoyi/system/post/add.js}">
<script src="/ruoyi/system/post/add.js" th:src="@{/ruoyi/system/post/add.js}">
</script>
</body>
</html>

@ -52,7 +52,7 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/post/edit.js" th:src="@{/ruoyi/system/post/edit.js}">
<script src="/ruoyi/system/post/edit.js" th:src="@{/ruoyi/system/post/edit.js}">
</script>
</body>
</html>

@ -18,8 +18,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/system/post/post.js" th:src="@{/ruoyi/system/post/post.js}"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/system/post/post.js" th:src="@{/ruoyi/system/post/post.js}"></script>
<script th:inline="javascript">
var editFlag = [[${@permissionService.hasPermi('system:post:edit')}]];
var removeFlag = [[${@permissionService.hasPermi('system:post:remove')}]];
</script>

@ -2,7 +2,7 @@
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet">
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-role-add">
@ -57,8 +57,8 @@
</form>
</div>
<div th:include="include::footer"></div>
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<script type="text/javascript" src="/ruoyi/system/role/add.js">
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js" th:src="@{/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js}"></script>
<script src="/ruoyi/system/role/add.js" th:src="@{/ruoyi/system/role/add.js}">
</script>
</body>
</html>

@ -2,7 +2,7 @@
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet">
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-role-edit">
@ -58,8 +58,8 @@
</form>
</div>
<div th:include="include::footer"></div>
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<script type="text/javascript" src="/ruoyi/system/role/edit.js">
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js" th:src="@{/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js}"></script>
<script src="/ruoyi/system/role/edit.js" th:src="@{/ruoyi/system/role/edit.js}">
</script>
</body>
</html>

@ -18,10 +18,10 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script src="/ajax/libs/bootstrap-table/extensions/export/bootstrap-table-export.js"></script>
<script src="/ajax/libs/bootstrap-table/extensions/export/tableExport.js"></script>
<script type="text/javascript" src="/ruoyi/system/role/role.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ajax/libs/bootstrap-table/extensions/export/bootstrap-table-export.js" th:src="@{/ajax/libs/bootstrap-table/extensions/export/bootstrap-table-export.js}"></script>
<script src="/ajax/libs/bootstrap-table/extensions/export/tableExport.js" th:src="@{/ajax/libs/bootstrap-table/extensions/export/tableExport.js}"></script>
<script src="/ruoyi/system/role/role.js" th:src="@{/ruoyi/system/role/role.js}"></script>
<script th:inline="javascript">
var editFlag = [[${@permissionService.hasPermi('system:role:edit')}]];
var removeFlag = [[${@permissionService.hasPermi('system:role:remove')}]];
</script>

@ -2,9 +2,9 @@
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/iCheck/custom.css" rel="stylesheet">
<link href="/ajax/libs/select/select2.css" rel="stylesheet">
<link href="/ruoyi/css/RuoYi.css" rel="stylesheet"/>
<link href="/ajax/libs/iCheck/custom.css" th:href="@{/ajax/libs/iCheck/custom.css}" rel="stylesheet"/>
<link href="/ajax/libs/select/select2.css" th:href="@{/ajax/libs/select/select2.css}" rel="stylesheet"/>
<link href="/ruoyi/css/RuoYi.css" th:href="@{/ruoyi/css/RuoYi.css}" rel="stylesheet"/>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-user-add">
@ -84,10 +84,10 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/user/add.js">
<script src="/ruoyi/system/user/add.js" th:src="@{/ruoyi/system/user/add.js}">
</script>
<script src="/ajax/libs/iCheck/icheck.min.js"></script>
<script src="/ajax/libs/select/select2.js"></script>
<script src="/ajax/libs/iCheck/icheck.min.js" th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
<script src="/ajax/libs/select/select2.js" th:src="@{/ajax/libs/select/select2.js}"></script>
<script>
$(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>

@ -2,9 +2,9 @@
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/iCheck/custom.css" rel="stylesheet">
<link href="/ajax/libs/select/select2.css" rel="stylesheet">
<link href="/ruoyi/css/RuoYi.css" rel="stylesheet"/>
<link href="/ajax/libs/iCheck/custom.css" th:href="@{/ajax/libs/iCheck/custom.css}" rel="stylesheet"/>
<link href="/ajax/libs/select/select2.css" th:href="@{/ajax/libs/select/select2.css}" rel="stylesheet"/>
<link href="/ruoyi/css/RuoYi.css" th:href="@{/ruoyi/css/RuoYi.css}" rel="stylesheet"/>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-user-edit">
@ -79,10 +79,10 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/system/user/edit.js">
<script src="/ruoyi/system/user/edit.js" th:src="@{/ruoyi/system/user/edit.js}">
</script>
<script src="/ajax/libs/iCheck/icheck.min.js"></script>
<script src="/ajax/libs/select/select2.js"></script>
<script src="/ajax/libs/iCheck/icheck.min.js" th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
<script src="/ajax/libs/select/select2.js" th:src="@{/ajax/libs/select/select2.js}"></script>
<script>
$(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>

@ -28,7 +28,7 @@
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript">
<script>
$("#form-user-resetPwd").validate({
rules:{
password:{
@ -45,7 +45,7 @@
$.ajax({
cache : true,
type : "post",
url : "/system/user/resetPwd",
url : ctx + "/system/user/resetPwd",
data : $('#form-user-resetPwd').serialize(),
async : false,
error : function(request) {

@ -3,9 +3,9 @@
xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/jquery-layout/jquery.layout-latest.css" rel="stylesheet">
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet">
<link href="/ruoyi/css/RuoYi.css" rel="stylesheet"/>
<link href="/ruoyi/css/RuoYi.css" th:href="@{/ruoyi/css/RuoYi.css}" rel="stylesheet"/>
<link href="/ajax/libs/jquery-layout/jquery.layout-latest.css" th:href="@{/ajax/libs/jquery-layout/jquery.layout-latest.css}" rel="stylesheet"/>
<link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/>
<body class="white-bg">
<div class="ui-layout-west">
@ -44,10 +44,10 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/system/user/user.js"></script>
<script src="/ajax/libs/jquery-layout/jquery.layout-latest.js"></script>
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/system/user/user.js" th:src="@{/ruoyi/system/user/user.js}"></script>
<script src="/ajax/libs/jquery-layout/jquery.layout-latest.js" th:src="@{/ajax/libs/jquery-layout/jquery.layout-latest.js}"></script>
<script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js" th:src="@{/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js}"></script>
<script th:inline="javascript">
var editFlag = [[${@permissionService.hasPermi('system:user:edit')}]];
var removeFlag = [[${@permissionService.hasPermi('system:user:remove')}]];
var resetPwdFlag = [[${@permissionService.hasPermi('system:user:resetPwd')}]];

@ -3,8 +3,8 @@
xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/ajax/libs/iCheck/custom.css" rel="stylesheet">
<link href="/ajax/libs/datapicker/datepicker3.css" rel="stylesheet">
<link href="/ajax/libs/iCheck/custom.css" th:href="@{/ajax/libs/iCheck/custom.css}" rel="stylesheet"/>
<link href="/ajax/libs/datapicker/datepicker3.css" th:href="@{/ajax/libs/datapicker/datepicker3.css}" rel="stylesheet"/>
<style>
.droppable-active{background-color:#ffe!important}.tools a{cursor:pointer;font-size:80%}.form-body .col-md-6,.form-body .col-md-12{min-height:400px}.draggable{cursor:move}
</style>
@ -156,10 +156,10 @@
</div>
</div>
<div th:include="include :: footer"></div>
<script src="/js/jquery-ui-1.10.4.min.js"></script>
<script src="/ajax/libs/iCheck/icheck.min.js"></script>
<script src="/ajax/libs//datapicker/bootstrap-datepicker.js"></script>
<script src="/ajax/libs/beautifyhtml/beautifyhtml.js"></script>
<script src="/js/jquery-ui-1.10.4.min.js" th:src="@{/js/jquery-ui-1.10.4.min.js}"></script>
<script src="/ajax/libs/iCheck/icheck.min.js" th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
<script src="/ajax/libs//datapicker/bootstrap-datepicker.js" th:src="@{/ajax/libs//datapicker/bootstrap-datepicker.js}">
<script src="/ajax/libs/beautifyhtml/beautifyhtml.js" th:src="@{/ajax/libs/beautifyhtml/beautifyhtml.js}"></script>
<script>
$(document).ready(function(){setup_draggable();$("#n-columns").on("change",function(){var v=$(this).val();if(v==="1"){var $col=$(".form-body .col-md-12").toggle(true);$(".form-body .col-md-6 .draggable").each(function(i,el){$(this).remove().appendTo($col)});$(".form-body .col-md-6").toggle(false)}else{var $col=$(".form-body .col-md-6").toggle(true);$(".form-body .col-md-12 .draggable").each(function(i,el){$(this).remove().appendTo(i%2?$col[1]:$col[0])});$(".form-body .col-md-12").toggle(false)}});$("#copy-to-clipboard").on("click",function(){var $copy=$(".form-body").clone().appendTo(document.body);$copy.find(".tools, :hidden").remove();$.each(["draggable","droppable","sortable","dropped","ui-sortable","ui-draggable","ui-droppable","form-body"],function(i,c){$copy.find("."+c).removeClass(c).removeAttr("style")});var html=html_beautify($copy.html());$copy.remove();$modal=get_modal(html).modal("show");$modal.find(".btn").remove();$modal.find(".modal-title").html("复制HTML代码");$modal.find(":input:first").select().focus();return false})});var setup_draggable=function(){$(".draggable").draggable({appendTo:"body",helper:"clone"});$(".droppable").droppable({accept:".draggable",helper:"clone",hoverClass:"droppable-active",drop:function(event,ui){$(".empty-form").remove();var $orig=$(ui.draggable);if(!$(ui.draggable).hasClass("dropped")){var $el=$orig.clone().addClass("dropped").css({"position":"static","left":null,"right":null}).appendTo(this);var id=$orig.find(":input").attr("id");if(id){id=id.split("-").slice(0,-1).join("-")+"-"+(parseInt(id.split("-").slice(-1)[0])+1);$orig.find(":input").attr("id",id);$orig.find("label").attr("for",id)}$('<p class="tools col-sm-12 col-sm-offset-3"> <a class="edit-link">编辑HTML<a> | <a class="remove-link">移除</a></p>').appendTo($el)}else{if($(this)[0]!=$orig.parent()[0]){var $el=$orig.clone().css({"position":"static","left":null,"right":null}).appendTo(this);$orig.remove()}}}}).sortable()};var get_modal=function(content){var modal=$('<div class="modal" style="overflow: auto;" tabindex="-1"> <div class="modal-dialog"><div class="modal-content"><div class="modal-header"><a type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</a><h4 class="modal-title">编辑HTML</h4></div><div class="modal-body ui-front"> <textarea class="form-control" style="min-height: 200px; margin-bottom: 10px;font-family: Monaco, Fixed">'+content+'</textarea><button class="btn btn-success">更新HTML</button></div> </div></div></div>').appendTo(document.body);return modal};$(document).on("click",".edit-link",function(ev){var $el=$(this).parent().parent();var $el_copy=$el.clone();var $edit_btn=$el_copy.find(".edit-link").parent().remove();var $modal=get_modal(html_beautify($el_copy.html())).modal("show");$modal.find(":input:first").focus();$modal.find(".btn-success").click(function(ev2){var html=$modal.find("textarea").val();if(!html){$el.remove()}else{$el.html(html);$edit_btn.appendTo($el)}$modal.modal("hide");return false})});$(document).on("click",".remove-link",function(ev){$(this).parent().parent().remove()});
$(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});

@ -15,6 +15,6 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/tool/gen/gen.js"></script>
<script src="/ruoyi/tool/gen/gen.js" th:src="@{/ruoyi/tool/gen/gen.js}"></script>
</body>
</html>

@ -23,7 +23,7 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/${moduleName}/${classname}/add.js">
<script src="/ruoyi/${moduleName}/${classname}/add.js">
</script>
</body>
</html>

@ -25,7 +25,7 @@
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/ruoyi/${moduleName}/${classname}/edit.js">
<script src="/ruoyi/${moduleName}/${classname}/edit.js">
</script>
</body>
</html>

@ -16,8 +16,8 @@
</table>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/ruoyi/${moduleName}/${classname}/${classname}.js"></script>
<script th:inline="javascript" type="text/javascript">
<script src="/ruoyi/${moduleName}/${classname}/${classname}.js"></script>
<script th:inline="javascript">
var editFlag = [[${@permissionService.hasPermi('${moduleName}:${classname}:edit')}]];
var removeFlag = [[${@permissionService.hasPermi('${moduleName}:${classname}:remove')}]];
</script>

@ -10,5 +10,5 @@ $("#form-${classname}-add").validate({
});
function add() {
_ajax_save("/${moduleName}/${classname}/save", $('#form-${classname}-add').serialize());
_ajax_save(ctx + "${moduleName}/${classname}/save", $('#form-${classname}-add').serialize());
}

@ -10,5 +10,5 @@ $("#form-${classname}-edit").validate({
});
function edit() {
_ajax_save("/${moduleName}/${classname}/save", $('#form-${classname}-edit').serialize());
_ajax_save(ctx + "${moduleName}/${classname}/save", $('#form-${classname}-edit').serialize());
}

@ -1,4 +1,4 @@
var prefix = "/${moduleName}/${classname}"
var prefix = ctx + "${moduleName}/${classname}"
$(function() {
var columns = [{

Loading…
Cancel
Save