Commit 581e2d39 authored by liudonghua123's avatar liudonghua123 Committed by 闲.大赋
Browse files

!21 Fix: 角色功能授权如果子节点部分选中时的渲染问题

Merge pull request !21 from liudonghua123/master
parents f10d0ec6 c1805ba6
......@@ -16,7 +16,8 @@ layui.define([ 'form', 'laydate', 'table','roleApi'], function(exports) {
var that = this;
$.post(Common.ctxPath + "/admin/function/tree.json", {}, function(response) {
var zNodes = response.data;
var setting = {"check":{"radioType":true,"enable":true}};
// select parent node does not affect the children node
var setting = {"check":{"chkStyle":"checkbox","enable":true, "chkboxType": { "Y": "p", "N": "p" }}};
zTreeObj = $.fn.zTree.init($("#functionTree"), setting, zNodes);
//功能树加载完毕后在初始化其他控件
that.initFirstRole();
......
......@@ -112,8 +112,8 @@ public class ${entity.name}Controller{
return new JsonResult().success();
}
\@PostMapping(MODEL + "/update.json")
\@Function("${basicfunctionCode}.update")
\@PostMapping(MODEL + "/edit.json")
\@Function("${basicfunctionCode}.edit")
\@ResponseBody
public JsonResult<String> update(\@Validated(ValidateConfig.UPDATE.class) ${entity.name} ${entity.code}) {
boolean success = ${service}.update(${entity.code});
......
......@@ -49,7 +49,6 @@ layui.define(['element'], function(exports){
element.on('tabDelete('+this.config.tabFilter+')', function(data){
debugger;
var li =$(this).parent();
var layId = $(li).attr("lay-id");
//删除tab上标记
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment