attributes = get_params(); $result = $form->getAdminList(); return $this->asJson($result); } //获取详情 public function actionGetInfo() { $form = new StoreAdminForm(); $form->attributes = get_params(); $result = $form->getInfo(); return $this->asJson($result); } //保存管理员 public function actionSave() { $form = new StoreAdminForm(); $form->attributes = post_params(); $result = $form->save(); return $this->asJson($result); } //设置密码 public function actionSetPassword() { $form = new StoreAdminForm(); $form->attributes = post_params(); $result = $form->setPassword(); return $this->asJson($result); } //设置状态 public function actionSetStatus() { $form = new StoreAdminForm(); $form->attributes = post_params(); $result = $form->setStatus(); return $this->asJson($result); } //删除 public function actionDel() { $form = new StoreAdminForm(); $form->attributes = get_params(); $result = $form->del(); return $this->asJson($result); } }