g=='true'?'<a class="btn btn-danger btn-xs " href="#"  onclick="deleteBy(' + row.id + ')" ><i class="fa fa-remove"></i>删除</a>':'');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });
    /*角色管理-分配资源*/
    function rule(id) {
        var url = ctx + "role/rule/"+id;
        $.modal.open("分配资源", url);
    }
    /**删除**/
    function deleteBy(id) {
        $.modal.confirm("确定删除该条