diff --git a/app/home/controller/Cate.php b/app/home/controller/Cate.php index 82bf532..5cc01fa 100644 --- a/app/home/controller/Cate.php +++ b/app/home/controller/Cate.php @@ -37,6 +37,11 @@ class Cate extends BaseController $value['type_name'] = $val['title']; } } + $value['department']='全公司'; + if($value['department_ids']!=''){ + $department = Db::name('Department')->whereIn('id',$value['department_ids'])->column('title'); + $value['department'] = implode(',',$department); + } } return to_assign(0, '', $cate); } else { diff --git a/app/home/controller/Index.php b/app/home/controller/Index.php index 66856c9..e3c18b1 100644 --- a/app/home/controller/Index.php +++ b/app/home/controller/Index.php @@ -278,7 +278,6 @@ class Index extends BaseController { if (request()->isAjax()) { $param = get_params(); - //set_system_config('other','theme',$param['theme']); Db::name('Admin')->where('id',$this->uid)->update(['theme'=>$param['theme']]); return to_assign(); } diff --git a/app/home/view/cate/flow_type.html b/app/home/view/cate/flow_type.html index eea71af..0fb426a 100644 --- a/app/home/view/cate/flow_type.html +++ b/app/home/view/cate/flow_type.html @@ -27,13 +27,14 @@ ,cellMinWidth: 120 ,cols: [[ {field:'id',width:80, title: 'ID号', align:'center'} - ,{field:'title',title: '审批类型名称'} - ,{field:'name',title: '审批类型标识'} - ,{field:'icon',title: '审批类型图标',templet: function(d){ + ,{field:'title',title: '名称',width:120} + ,{field:'department',title: '应用部门'} + ,{field:'name',title: '标识',width:150} + ,{field:'icon',title: '图标',width:220,templet: function(d){ var html=' '+d.icon; return html; }} - ,{field:'type_name', title: '所属分类',width:100,align:'center'} + ,{field:'type_name', title: '所属分类',width:90,align:'center'} ,{field:'status', title: '状态',width:80,align:'center',templet: function(d){ var html1='正常'; var html2='禁用'; diff --git a/app/home/view/cate/flow_type_add.html b/app/home/view/cate/flow_type_add.html index 8df1f41..1536140 100644 --- a/app/home/view/cate/flow_type_add.html +++ b/app/home/view/cate/flow_type_add.html @@ -20,6 +20,15 @@ + + 应用部门 + +
+ +
+ (如果不选,默认是全公司) + + 标识* @@ -54,6 +63,15 @@ + + 应用部门 + +
+ +
+ (如果不选,默认是全公司) + + 标识* @@ -79,9 +97,15 @@ {block name="script"}