From f0aa5ce84b4febebbbc590cc706f2012e72767e8 Mon Sep 17 00:00:00 2001 From: hdm Date: Fri, 10 Feb 2023 12:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=E6=9C=AA?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E6=97=B6=E5=BD=93=E5=89=8D=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=98=B6=E6=AE=B5=E5=8F=8A=E8=B4=9F=E8=B4=A3=E4=BA=BA=E8=AF=BB?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/project/controller/Index.php | 4 ++-- app/project/view/index/view_overview.html | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/project/controller/Index.php b/app/project/controller/Index.php index 05df692..6a74e15 100644 --- a/app/project/controller/Index.php +++ b/app/project/controller/Index.php @@ -72,8 +72,8 @@ class Index extends BaseController $item->tasks_pensent = "100%"; } - if($item->status == 2){ - $step = Db::name('Step')->where(['action_id' => $item->id,'sort'=>$item->step_sort,'type'=>2,'delete_time'=>0])->find(); + $step = Db::name('Step')->where(['action_id' => $item->id,'sort'=>$item->step_sort,'type'=>2,'delete_time'=>0])->find(); + if(!empty($step)){ $item->step_user = Db::name('Admin')->where(['id'=>$step['flow_uid']])->value('name'); $item->step = $step['flow_name'] . '-' . $item->step_user; } diff --git a/app/project/view/index/view_overview.html b/app/project/view/index/view_overview.html index 8f96c85..a8594d6 100644 --- a/app/project/view/index/view_overview.html +++ b/app/project/view/index/view_overview.html @@ -4,7 +4,6 @@ 项目状态: {$detail.status_name} - 负责人: {$detail.director_name}