From f9a667e0906fb0ec58ad45a62bb5fa5385c459ea Mon Sep 17 00:00:00 2001 From: liyang Date: Tue, 20 May 2025 11:28:17 +0800 Subject: [PATCH] * [task#143866, doing, 0.5h] add instance count in page. --- module/system/control.php | 9 +++++---- module/system/ui/dashboard.html.php | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/module/system/control.php b/module/system/control.php index d00c41dd94..995168433d 100644 --- a/module/system/control.php +++ b/module/system/control.php @@ -43,10 +43,11 @@ class system extends control $actions = $this->loadModel('action')->getDynamic('all', 'today'); - $this->view->title = $this->lang->my->common; - $this->view->instances = $instances; - $this->view->actions = $actions; - $this->view->pager = $pager; + $this->view->title = $this->lang->my->common; + $this->view->instances = $instances; + $this->view->actions = $actions; + $this->view->pager = $pager; + $this->view->instanceTotal = $this->instance->getInstanceCount(); $this->display(); } diff --git a/module/system/ui/dashboard.html.php b/module/system/ui/dashboard.html.php index 897aea60f7..9edcaeedc5 100644 --- a/module/system/ui/dashboard.html.php +++ b/module/system/ui/dashboard.html.php @@ -67,7 +67,7 @@ div div ( setClass('text-4xl font-semibold text-primary'), - zget($pageInfo, 'recTotal', 0) + zget($pageInfo, 'recTotal', 0) == $instanceTotal ? $instanceTotal : zget($pageInfo, 'recTotal', 0) . '/' . $instanceTotal ), span (