From 3e02defc49302e3841aedf885363b9b58d63460c Mon Sep 17 00:00:00 2001 From: hdm Date: Thu, 13 Oct 2022 17:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E8=BF=87=E5=A4=9A=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=A1=A8=E5=AD=97=E6=AE=B5=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E4=B8=8D=E5=A4=9F=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E6=A8=A1=E5=9D=97=E6=96=B0=E5=A2=9E=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=88=B0=E9=83=A8=E9=97=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/home/controller/Cate.php | 5 +++ app/home/controller/Index.php | 1 - app/home/view/cate/flow_type.html | 9 ++--- app/home/view/cate/flow_type_add.html | 28 +++++++++++++-- app/home/view/flow/add.html | 12 ++++--- app/install/data/gouguoa.sql | 51 ++++++++++++++------------- app/install/data/oa_city.sql | 2 +- app/oa/controller/Approve.php | 17 ++++++++- 8 files changed, 87 insertions(+), 38 deletions(-) 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"}