| | |
| | | { |
| | | 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']; |
| | |
| | | |
| | | return $this->asJson($res); |
| | | } else { |
| | | \Yii::warning("角色权限2"); |
| | | $form = new RoleForm(); |
| | | $form->attributes = \Yii::$app->request->get(); |
| | | $detail = $form->getDetail(); |
| | |
| | | return $this->asJson($detail); |
| | | } |
| | | } else { |
| | | \Yii::warning("角色权限3"); |
| | | return $this->render('edit'); |
| | | } |
| | | } |
| | |
| | | ], |
| | | ], |
| | | [ |
| | | 'name' => '批量导出订单', |
| | | 'route' => 'mall/order/export', |
| | | 'action' => [ |
| | | [ |
| | | 'name' => '批量导出订单', |
| | | 'route' => 'mall/order/export', |
| | | ], |
| | | ], |
| | | ], |
| | | [ |
| | | 'name' => '售后订单', |
| | | 'route' => 'mall/order/refund', |
| | | 'action' => [ |
| | |
| | | 'name' => '回收战列表', |
| | | 'route' => 'plugin/exchange/mall/library/recycle-list', |
| | | ], |
| | | [ |
| | | 'name' => '批量导入卡号', |
| | | 'route' => 'plugin/exchange/mall/library/import', |
| | | ], |
| | | [ |
| | | 'name' => '导出卡密数据', |
| | | 'route' => 'plugin/exchange/mall/library/export', |
| | | ], |
| | | ] |
| | | ], |
| | | [ |