From 3e1361ecd1d0e6a7d6e8ab356e1fccafe17b5d40 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Wed, 16 Aug 2023 17:09:23 +0800 Subject: [PATCH] * Adjust code. --- module/screen/config.php | 2 +- module/screen/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/screen/config.php b/module/screen/config.php index 06c3dfb264..bd4b624a01 100644 --- a/module/screen/config.php +++ b/module/screen/config.php @@ -1,5 +1,5 @@ screen->builtinScreen = array(6, 8, 13); +$config->screen->builtinScreen = array(6, 8); $config->screen->builtinChart = array(10018, 10019, 10020, 10021, 10022, 10211, 10212, 10213, 10214, 10215, 10216, 10217, 10218, 10219, 10220); $config->screen->builtinPivot = array(1000, 1001, 1002); diff --git a/module/screen/model.php b/module/screen/model.php index 30fba9cbc5..53cdccb28c 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -890,7 +890,7 @@ class screenModel extends model $component->option->value = $this->filter->month; $options = array(); - for($month = 12; $month > 1; $month--) $options[] = array('label' => $month, 'value' => $month); + for($month = 12; $month >= 1; $month--) $options[] = array('label' => $month, 'value' => $month); $component->option->dataset = $options; $url = "createLink('screen', 'view', 'screenID=" . $this->filter->screen. "&year=" . $this->filter->year . "&month=' + value + '&dept=" . $this->filter->dept . "&account=" . $this->filter->account . "')";