diff --git a/README.md b/README.md index 1ebe1b60..50471d69 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,50 @@ -# nanjing +## 平台简介 -#### 介绍 -南京生产线数据采集系统 +一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了若依管理系统。她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA。所有前端后台代码封装过后十分精简易上手,提高开发效率及质量。同时支持移动客户端访问。系统会陆续更新一些实用功能。 -#### 软件架构 -软件架构说明 +寓意:你若不离不弃,我必生死相依 +## 内置功能 -#### 安装教程 +1. 用户管理:用户是系统操作者。 +2. 部门管理:配置系统组织机构。 +3. 岗位管理:岗位是用户所属职务。 +4. 菜单管理:配置系统菜单(支持控制到按钮)。 +5. 角色管理:角色菜单权限分配。 +6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 +7. 操作日志:系统操作日志记录(含异常)。 +8. 登录日志:系统登录情况记录(含异常)。 +9. 在线用户:当前系统中活跃用户状态监控。 +10. 定时任务:在线添加、修改和删除任务调度(含执行日志)。 +11. 代码生成:生成包括 java、html、js、xml、sql +12. 在线构建器:拖动表单元素生成相应的HTML代码 +13. 连接池监视:监视当期系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。 -1. xxxx -2. xxxx -3. xxxx +## 系统演示 ## [www.ruoyi.club](http://www.ruoyi.club) -#### 使用说明 + -1. xxxx -2. xxxx -3. xxxx + -#### 参与贡献 + -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request + + -#### 特技 + -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) + + + + + + + + + + + +## 若依交流群 + +QQ群: [](http://shang.qq.com/wpa/qunwpa?idkey=9a7d9f3274e4bfbf7e40e4a485ff6dc2adbeee8086ce39e40667ed4387414f12) 或 [](https://jq.qq.com/?_wv=1027&k=5ONbr1w),推荐点击按钮入群,当然如果无法成功操作,请自行搜索群号`1389287`进行添加 \ No newline at end of file diff --git a/doc/若依环境使用手册v1.0.docx b/doc/若依环境使用手册v1.0.1.docx similarity index 94% rename from doc/若依环境使用手册v1.0.docx rename to doc/若依环境使用手册v1.0.1.docx index 6e7c1a0b..7cd906bd 100644 Binary files a/doc/若依环境使用手册v1.0.docx and b/doc/若依环境使用手册v1.0.1.docx differ diff --git a/src/main/java/com/ruoyi/project/system/user/controller/LoginController.java b/src/main/java/com/ruoyi/project/system/user/controller/LoginController.java index 2ff6f241..61183aa6 100644 --- a/src/main/java/com/ruoyi/project/system/user/controller/LoginController.java +++ b/src/main/java/com/ruoyi/project/system/user/controller/LoginController.java @@ -17,7 +17,6 @@ import com.ruoyi.framework.web.domain.Message; * * @author ruoyi */ -// @RestController @Controller public class LoginController extends BaseController { diff --git a/src/main/resources/static/ruoyi/monitor/job/add.js b/src/main/resources/static/ruoyi/monitor/job/add.js index c5438a1d..660c0a47 100644 --- a/src/main/resources/static/ruoyi/monitor/job/add.js +++ b/src/main/resources/static/ruoyi/monitor/job/add.js @@ -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()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/monitor/job/edit.js b/src/main/resources/static/ruoyi/monitor/job/edit.js index f1c85d44..fab7e860 100644 --- a/src/main/resources/static/ruoyi/monitor/job/edit.js +++ b/src/main/resources/static/ruoyi/monitor/job/edit.js @@ -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()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/monitor/job/job.js b/src/main/resources/static/ruoyi/monitor/job/job.js index e89861c9..03cd7188 100644 --- a/src/main/resources/static/ruoyi/monitor/job/job.js +++ b/src/main/resources/static/ruoyi/monitor/job/job.js @@ -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, "调度日志"); } diff --git a/src/main/resources/static/ruoyi/monitor/job/jobLog.js b/src/main/resources/static/ruoyi/monitor/job/jobLog.js index cd9ccb42..a5c713a9 100644 --- a/src/main/resources/static/ruoyi/monitor/job/jobLog.js +++ b/src/main/resources/static/ruoyi/monitor/job/jobLog.js @@ -1,4 +1,4 @@ -var prefix = "/monitor/jobLog" +var prefix = ctx + "/monitor/jobLog" $(function() { var columns = [{ diff --git a/src/main/resources/static/ruoyi/monitor/logininfor/logininfor.js b/src/main/resources/static/ruoyi/monitor/logininfor/logininfor.js index 3aa99e0f..7cb34ebd 100644 --- a/src/main/resources/static/ruoyi/monitor/logininfor/logininfor.js +++ b/src/main/resources/static/ruoyi/monitor/logininfor/logininfor.js @@ -1,4 +1,4 @@ -var prefix = "/monitor/logininfor" +var prefix = ctx + "/monitor/logininfor" $(function() { var columns = [{ diff --git a/src/main/resources/static/ruoyi/monitor/online/online.js b/src/main/resources/static/ruoyi/monitor/online/online.js index 10b3f90d..432461e9 100644 --- a/src/main/resources/static/ruoyi/monitor/online/online.js +++ b/src/main/resources/static/ruoyi/monitor/online/online.js @@ -1,4 +1,4 @@ -var prefix = "/monitor/online" +var prefix = ctx + "/monitor/online" $(function() { var columns = [{ diff --git a/src/main/resources/static/ruoyi/monitor/operlog/operlog.js b/src/main/resources/static/ruoyi/monitor/operlog/operlog.js index 2647c9db..aa4f3bd4 100644 --- a/src/main/resources/static/ruoyi/monitor/operlog/operlog.js +++ b/src/main/resources/static/ruoyi/monitor/operlog/operlog.js @@ -1,4 +1,4 @@ -var prefix = "/monitor/operlog" +var prefix = ctx + "/monitor/operlog" $(function() { var columns = [{ diff --git a/src/main/resources/static/ruoyi/system/dept/add.js b/src/main/resources/static/ruoyi/system/dept/add.js index c11df1da..7c0bde11 100644 --- a/src/main/resources/static/ruoyi/system/dept/add.js +++ b/src/main/resources/static/ruoyi/system/dept/add.js @@ -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'); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/dept/dept.js b/src/main/resources/static/ruoyi/system/dept/dept.js index 14a6ad8f..998ea177 100644 --- a/src/main/resources/static/ruoyi/system/dept/dept.js +++ b/src/main/resources/static/ruoyi/system/dept/dept.js @@ -1,4 +1,4 @@ -var prefix = "/system/dept" +var prefix = ctx + "system/dept" window.onload = function() { loading(); diff --git a/src/main/resources/static/ruoyi/system/dept/edit.js b/src/main/resources/static/ruoyi/system/dept/edit.js index be338378..4cce1924 100644 --- a/src/main/resources/static/ruoyi/system/dept/edit.js +++ b/src/main/resources/static/ruoyi/system/dept/edit.js @@ -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'); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/dept/tree.js b/src/main/resources/static/ruoyi/system/dept/tree.js index dcfdc32c..a17bd13a 100644 --- a/src/main/resources/static/ruoyi/system/dept/tree.js +++ b/src/main/resources/static/ruoyi/system/dept/tree.js @@ -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); // 展开第一级节点 diff --git a/src/main/resources/static/ruoyi/system/dict/data/add.js b/src/main/resources/static/ruoyi/system/dict/data/add.js index b620b090..45bedf82 100644 --- a/src/main/resources/static/ruoyi/system/dict/data/add.js +++ b/src/main/resources/static/ruoyi/system/dict/data/add.js @@ -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()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/dict/data/data.js b/src/main/resources/static/ruoyi/system/dict/data/data.js index fbb044a8..96ea91cb 100644 --- a/src/main/resources/static/ruoyi/system/dict/data/data.js +++ b/src/main/resources/static/ruoyi/system/dict/data/data.js @@ -1,4 +1,4 @@ -var prefix = "/system/dict/data" +var prefix = ctx + "system/dict/data" $(function() { var columns = [{ diff --git a/src/main/resources/static/ruoyi/system/dict/data/edit.js b/src/main/resources/static/ruoyi/system/dict/data/edit.js index 64415723..2815e37e 100644 --- a/src/main/resources/static/ruoyi/system/dict/data/edit.js +++ b/src/main/resources/static/ruoyi/system/dict/data/edit.js @@ -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()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/dict/type/add.js b/src/main/resources/static/ruoyi/system/dict/type/add.js index 26460537..c5b0dfde 100644 --- a/src/main/resources/static/ruoyi/system/dict/type/add.js +++ b/src/main/resources/static/ruoyi/system/dict/type/add.js @@ -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()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/dict/type/edit.js b/src/main/resources/static/ruoyi/system/dict/type/edit.js index 1c93cdf1..9964744f 100644 --- a/src/main/resources/static/ruoyi/system/dict/type/edit.js +++ b/src/main/resources/static/ruoyi/system/dict/type/edit.js @@ -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()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/dict/type/type.js b/src/main/resources/static/ruoyi/system/dict/type/type.js index 1a224923..10302089 100644 --- a/src/main/resources/static/ruoyi/system/dict/type/type.js +++ b/src/main/resources/static/ruoyi/system/dict/type/type.js @@ -1,4 +1,4 @@ -var prefix = "/system/dict" +var prefix = ctx + "system/dict" $(function() { var columns = [{ diff --git a/src/main/resources/static/ruoyi/system/menu/add.js b/src/main/resources/static/ruoyi/system/menu/add.js index d119f6e0..37958dfc 100644 --- a/src/main/resources/static/ruoyi/system/menu/add.js +++ b/src/main/resources/static/ruoyi/system/menu/add.js @@ -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'); } } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/menu/edit.js b/src/main/resources/static/ruoyi/system/menu/edit.js index 129b767e..4e1a096c 100644 --- a/src/main/resources/static/ruoyi/system/menu/edit.js +++ b/src/main/resources/static/ruoyi/system/menu/edit.js @@ -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 diff --git a/src/main/resources/static/ruoyi/system/menu/menu.js b/src/main/resources/static/ruoyi/system/menu/menu.js index fa44f863..651d7c9d 100644 --- a/src/main/resources/static/ruoyi/system/menu/menu.js +++ b/src/main/resources/static/ruoyi/system/menu/menu.js @@ -1,4 +1,4 @@ -var prefix = "/system/menu" +var prefix = ctx + "system/menu" window.onload = function() { loading(); diff --git a/src/main/resources/static/ruoyi/system/menu/tree.js b/src/main/resources/static/ruoyi/system/menu/tree.js index 3207e230..a9a372a2 100644 --- a/src/main/resources/static/ruoyi/system/menu/tree.js +++ b/src/main/resources/static/ruoyi/system/menu/tree.js @@ -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); // 展开第一级节点 diff --git a/src/main/resources/static/ruoyi/system/post/add.js b/src/main/resources/static/ruoyi/system/post/add.js index 9412877e..781aeac3 100644 --- a/src/main/resources/static/ruoyi/system/post/add.js +++ b/src/main/resources/static/ruoyi/system/post/add.js @@ -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()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/post/edit.js b/src/main/resources/static/ruoyi/system/post/edit.js index be65a4c6..bbf24040 100644 --- a/src/main/resources/static/ruoyi/system/post/edit.js +++ b/src/main/resources/static/ruoyi/system/post/edit.js @@ -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()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/post/post.js b/src/main/resources/static/ruoyi/system/post/post.js index f4c06c51..1d9e92d4 100644 --- a/src/main/resources/static/ruoyi/system/post/post.js +++ b/src/main/resources/static/ruoyi/system/post/post.js @@ -1,5 +1,4 @@ -var prefix = ctx + "/system/post" - +var prefix = ctx + "system/post" $(function() { var columns = [{ checkbox: true diff --git a/src/main/resources/static/ruoyi/system/role/add.js b/src/main/resources/static/ruoyi/system/role/add.js index d8ea9b09..8d4b4fe8 100644 --- a/src/main/resources/static/ruoyi/system/role/add.js +++ b/src/main/resources/static/ruoyi/system/role/add.js @@ -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, diff --git a/src/main/resources/static/ruoyi/system/role/edit.js b/src/main/resources/static/ruoyi/system/role/edit.js index 29871ed7..6a0ac8ba 100644 --- a/src/main/resources/static/ruoyi/system/role/edit.js +++ b/src/main/resources/static/ruoyi/system/role/edit.js @@ -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, diff --git a/src/main/resources/static/ruoyi/system/role/role.js b/src/main/resources/static/ruoyi/system/role/role.js index e1fff773..e6484d74 100644 --- a/src/main/resources/static/ruoyi/system/role/role.js +++ b/src/main/resources/static/ruoyi/system/role/role.js @@ -1,4 +1,4 @@ -var prefix = "/system/role" +var prefix = ctx + "system/role" $(function() { var columns = [{ diff --git a/src/main/resources/static/ruoyi/system/user/add.js b/src/main/resources/static/ruoyi/system/user/add.js index 4135cc0d..23579f4c 100644 --- a/src/main/resources/static/ruoyi/system/user/add.js +++ b/src/main/resources/static/ruoyi/system/user/add.js @@ -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'); } diff --git a/src/main/resources/static/ruoyi/system/user/edit.js b/src/main/resources/static/ruoyi/system/user/edit.js index d2e96581..53b0c576 100644 --- a/src/main/resources/static/ruoyi/system/user/edit.js +++ b/src/main/resources/static/ruoyi/system/user/edit.js @@ -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'); } diff --git a/src/main/resources/static/ruoyi/system/user/user.js b/src/main/resources/static/ruoyi/system/user/user.js index 8eb4a12b..670fb25e 100644 --- a/src/main/resources/static/ruoyi/system/user/user.js +++ b/src/main/resources/static/ruoyi/system/user/user.js @@ -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, "部门管理"); } diff --git a/src/main/resources/static/ruoyi/tool/gen/gen.js b/src/main/resources/static/ruoyi/tool/gen/gen.js index 608eff1a..170b5ad0 100644 --- a/src/main/resources/static/ruoyi/tool/gen/gen.js +++ b/src/main/resources/static/ruoyi/tool/gen/gen.js @@ -1,4 +1,4 @@ -var prefix = "/tool/gen" +var prefix = ctx + "tool/gen" $(function() { var columns = [{ diff --git a/src/main/resources/templates/error/404.html b/src/main/resources/templates/error/404.html index 8c4385a8..e5e00022 100644 --- a/src/main/resources/templates/error/404.html +++ b/src/main/resources/templates/error/404.html @@ -4,9 +4,9 @@