| | |
| | | { |
| | | $model = new MemberModel; |
| | | $postData = $this->postData(); |
| | | $branch = $this->branch['user']; |
| | | $postData['branch_id'] = $branch['branch_id']; |
| | | $list = $model->getList($postData); |
| | | |
| | | return $this->renderSuccess('', compact('list')); |
| | |
| | | return $this->renderSuccess('', compact('positionList', 'areaList')); |
| | | } |
| | | $model = new MemberModel; |
| | | $postData = $this->postData(); |
| | | $branch = $this->branch['user']; |
| | | $postData['branch_id'] = $branch['branch_id']; |
| | | // 新增记录 |
| | | if ($model->add($this->postData())) { |
| | | if ($model->add($postData)) { |
| | | return $this->renderSuccess('添加成功'); |
| | | } |
| | | return $this->renderError($model->getError() ?: '添加失败'); |