<commit_before><?php
// 授权管理控制器
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2018 https://www.eacoophp.com, All rights reserved.         
// +----------------------------------------------------------------------
// | [EacooPHP] 并不是自由软件,可免费使用,未经许可不能去掉EacooPHP相关版权。
// | 禁止在EacooPHP整体或任何部分基础上发展任何派生、修改或第三方版本用于重新分发
// +----------------------------------------------------------------------
// | Author:  心云间、凝听 <<EMAIL>>
// +----------------------------------------------------------------------
namespace app\admin\controller;

use app\admin\model\AuthRule as AuthRuleModel;
use app\admin\model\AuthGroup as AuthGroupModel;
use app\admin\model\AuthGroupAccess as AuthGroupAccessModel;

class Menu extends Admin {

    protected $authRuleModel;
    protected $authGroupModel;

    function _initialize()
    {
        parent::_initialize();

        $this->authRuleModel  = new AuthRuleModel();
        $this->authGroupModel = new AuthGroupModel();

    }

    /**
     * 后台菜单管理
     * @return [type] [description]
     */
    public function index(){
        $depend_flag = input('param.depend_flag','all');//管理类型
        $menus = logic('Auth')->getAdminMenu($depend_flag);
        $total = model('AuthRule')->count();

        //移动上级按钮属性
        $move_position_attr = [
            'title'   => '移动位置',
            'icon'    => 'fa fa-exchange',
            'class'   => 'btn btn-info btn-sm',
            'onclick' => 'move_menuposition()'
        ];
        $extra_html = logic('Auth')->moveMenuHtml();//添加移动按钮html

        //是否标记为菜单：0否，1是
        $marker_menu0_attr = [
            'title'       => '取消菜单标记',
            'class'       => 'btn btn-primary btn-sm confirm ajax-post',
            'href'        => url('markerMenu',['status'=>0]),
            'target-form' => 'ids'
        ];

        $marker_menu1_attr = [
            'title'       =>'标记为菜单',
            'class'       =>'btn btn-primary btn-sm ajax-post',
            'href'        =>url('markerMenu',['status'=>1]),
            'target-form' =>'ids'<commit_msg>修复自定义按钮批量操作问题<commit_after><?php
// 授权管理控制器
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2018 https://www.eacoophp.com, All rights reserved.         
// +----------------------------------------------------------------------
// | [EacooPHP] 并不是自由软件,可免费使用,未经许可不能去掉EacooPHP相关版权。
// | 禁止在EacooPHP整体或任何部分基础上发展任何派生、修改或第三方版本用于重新分发
// +----------------------------------------------------------------------
// | Author:  心云间、凝听 <<EMAIL>>
// +----------------------------------------------------------------------
namespace app\admin\controller;

use app\admin\model\AuthRule as AuthRuleModel;
use app\admin\model\AuthGroup as AuthGroupModel;
use app\admin\model\AuthGroupAccess as AuthGroupAccessModel;

class Menu extends Admin {

    protected $authRuleModel;
    protected $authGroupModel;

    function _initialize()
    {
        parent::_initialize();

        $this->authRuleModel  = new AuthRuleModel();
        $this->authGroupModel = new AuthGroupModel();

    }

    /**
     * 后台菜单管理
     * @return [type] [description]
     */
    public function index(){
        $depend_flag = input('param.depend_flag','all');//管理类型
        $menus = logic('Auth')->getAdminMenu($depend_flag);
        $total = model('AuthRule')->count();

        //移动上级按钮属性
        $move_position_attr = [
            'title'   => '移动位置',
            'icon'    => 'fa fa-exchange',
            'class'   => 'btn btn-info btn-sm',
            'onclick' => 'move_menuposition()'
        ];
        $extra_html = logic('Auth')->moveMenuHtml();//添加移动按钮html

        //是否标记为菜单：0否，1是
        $marker_menu0_attr = [
            'title'       => '取消菜单标记',
            'class'       => 'btn btn-primary btn-sm confirm ajax-table-btn',
            'href'        => url('markerMenu',['status'=>0]),
            'target-form' => 'ids'
        ];

        $marker_menu1_attr = [
            'title'       =>'标记为菜单',
            'class'       =>'btn btn-primary btn-sm ajax-table-btn',
            'href'        =>url('markerMenu',['status'=>1]),
            'target-form' =>'ids'
{'fraction_non_alphanumeric': 0.2735533237685318, 'fraction_numerical': 0.006695361071257772, 'mean_word_length': 1.450497949619215, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 45, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3371963', 'n_tokens_mistral': 1339, 'n_tokens_neox': 1405, 'n_words': 199}