wugg 9 months ago
parent
commit
c4a67bc1ae
1 changed files with 8 additions and 2 deletions
  1. 8 2
      app/bug/controller/Work.php

+ 8 - 2
app/bug/controller/Work.php

@@ -90,12 +90,14 @@ class Work extends Base{
 	
 	public function WorkActionCreate(){
 		$param=$this->request->param([
-			'belong_action'=>'',
+			'belong_action'=>[],
+			'belong_process'=>[],
 			'menu_id'=>'',
 			'belong'=>0,
 			'action_name'=>''],'post','trim');
 			$valid =Validate::rule([
 			'belong_action|系统功能集合'=>'require|array',
+			'belong_process|系统流程集合'=>'array',
 			'menu_id|菜单页面Id'=>'require|number',
 			'belong|系统归属'=>'number|in:0,1,2,3',
 			'action_name|功能名称'=>'require|max:255',
@@ -106,6 +108,7 @@ class Work extends Base{
 			'belong'=>$param['belong'],
 			'menu_id'=>$param['menu_id'],
 			'belong_action'=>$param['belong_action'],
+			'belong_process'=>$param['belong_process'],
 			'apply_id'=>$this->uid,
 			'apply_name'=>$this->uname,
 			];
@@ -116,13 +119,15 @@ class Work extends Base{
 	public function WorkActionSave(){
 		$param=$this->request->param([
 			"id"=>"",
-			'belong_action'=>'',
+			'belong_action'=>[],
+			'belong_process'=>[],
 			'menu_id'=>'',
 			'belong'=>0,
 			'action_name'=>''],'post','trim');
 			$valid =Validate::rule([
 			'id|岗位功能ID'=>'require|number',
 			'belong_action|系统功能集合'=>'require|array',
+			'belong_process|系统流程集合'=>'|array',
 			'menu_id|菜单页面Id'=>'require|number',
 			'belong|系统归属'=>'number|in:0,1,2,3',
 			'action_name|岗位功能名称'=>'require|max:255',
@@ -134,6 +139,7 @@ class Work extends Base{
 		$info->belong=$param['belong'];
 		$info->menu_id=$param['menu_id'];
 		$info->belong_action=$param['belong_action'];
+		$info->belong_process=$param['belong_process'];
 		$add = $info->save();
 		return $add ? success('岗位功能修改成功'):error('岗位功能修改失败');
 	}