最新服务器上的版本,以后用这个
zhangmeng
2023-04-21 0d314d9137c74c1d2daf5c65dc84896dcbca0c99
增加订单导出按钮权限控制---未完
3 files modified
21 ■■■■■ changed files
controllers/mall/RoleController.php 3 ●●●●● patch | view | raw | blame | history
forms/Menus.php 10 ●●●●● patch | view | raw | blame | history
plugins/exchange/Plugin.php 8 ●●●●● patch | view | raw | blame | history
controllers/mall/RoleController.php
@@ -40,6 +40,7 @@
    {
        if (\Yii::$app->request->isAjax) {
            if (\Yii::$app->request->isPost) {
                \Yii::warning("角色权限1");
                $form = new RoleEditForm();
                $data = \Yii::$app->request->post();
                $form->attributes = $data['form'];
@@ -48,6 +49,7 @@
                return $this->asJson($res);
            } else {
                \Yii::warning("角色权限2");
                $form = new RoleForm();
                $form->attributes = \Yii::$app->request->get();
                $detail = $form->getDetail();
@@ -55,6 +57,7 @@
                return $this->asJson($detail);
            }
        } else {
            \Yii::warning("角色权限3");
            return $this->render('edit');
        }
    }
forms/Menus.php
@@ -659,6 +659,16 @@
                        ],
                    ],
                    [
                        'name' => '批量导出订单',
                        'route' => 'mall/order/export',
                        'action' => [
                            [
                                'name' => '批量导出订单',
                                'route' => 'mall/order/export',
                            ],
                        ],
                    ],
                    [
                        'name' => '售后订单',
                        'route' => 'mall/order/refund',
                        'action' => [
plugins/exchange/Plugin.php
@@ -66,6 +66,14 @@
                        'name' => '回收战列表',
                        'route' => 'plugin/exchange/mall/library/recycle-list',
                    ],
                    [
                        'name' => '批量导入卡号',
                        'route' => 'plugin/exchange/mall/library/import',
                    ],
                    [
                        'name' => '导出卡密数据',
                        'route' => 'plugin/exchange/mall/library/export',
                    ],
                ]
            ],
            [