src/main/java/com/zy/crm/common/web/AuthController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/static/js/weekly/weekly.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/views/weekly/weekly.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/crm/common/web/AuthController.java
@@ -450,12 +450,13 @@ @RequestMapping(value = "/power/menu/{resourceId}/auth") @ManagerAuth public R buttonResource(@PathVariable("resourceId") Long resourceId) { public R buttonResource(@PathVariable("resourceId") String resourceId) { long resourceId2 = Long.parseLong(resourceId); List<Resource> resources; if (getUserId() == 9527) { resources = resourceService.selectList(new EntityWrapper<Resource>().eq("level", 3).eq("resource_id", resourceId)); resources = resourceService.selectList(new EntityWrapper<Resource>().eq("level", 3).eq("resource_id", resourceId2)); } else { resources = roleResourceService.getMenuButtomResource(resourceId, getUserId()); resources = roleResourceService.getMenuButtomResource(resourceId2, getUserId()); } for (Resource resource : resources) { resource.setCode(resource.getCode().split("#")[1]); src/main/webapp/static/js/weekly/weekly.js
@@ -598,7 +598,12 @@ } } }) location.reload(); return false; }); $('#cancelBtn').on('click', function () { location.reload(); }); // 明细表格 var xxDataList = []; @@ -927,6 +932,7 @@ } } }) location.reload(); return false; }); // 明细表格 @@ -1226,8 +1232,10 @@ // 关闭动作 $(document).on('click','#data-detail-close', function () { parent.layer.closeAll(); location.reload(); }); function tableReload(child) { var searchData = {}; $.each($('#search-box [name]').serializeArray(), function() { src/main/webapp/views/weekly/weekly.html
@@ -156,7 +156,7 @@ </button> </div> <div class="layui-form-item text-right"> <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> <button id="cancelBtn" class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> <button class="layui-btn" lay-filter="weeklyEditSubmit" lay-submit>保存</button> </div> </form>