From 7e67e54fe94d013a955499a8bb496ae28c512b08 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Mon, 15 Aug 2022 11:10:09 +0800 Subject: [PATCH] * Define table. --- config/zentaopms.php | 4 ++++ module/tree/control.php | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/config/zentaopms.php b/config/zentaopms.php index 593a24f637..6a14237d24 100644 --- a/config/zentaopms.php +++ b/config/zentaopms.php @@ -333,6 +333,10 @@ if(!defined('TABLE_PROJECTSPEC')) define('TABLE_PROJECTSPEC', '`' . $config->db- if(!defined('TABLE_SEARCHINDEX')) define('TABLE_SEARCHINDEX', $config->db->prefix . 'searchindex'); if(!defined('TABLE_SEARCHDICT')) define('TABLE_SEARCHDICT', $config->db->prefix . 'searchdict'); +define('TABLE_CHART', '`' . $config->db->prefix . 'chart`'); +define('TABLE_DASHBOARD', '`' . $config->db->prefix . 'dashboard`'); +define('TABLE_DATASET', '`' . $config->db->prefix . 'dataset`'); + $config->objectTables['product'] = TABLE_PRODUCT; $config->objectTables['productplan'] = TABLE_PRODUCTPLAN; $config->objectTables['story'] = TABLE_STORY; diff --git a/module/tree/control.php b/module/tree/control.php index 59a5c60d66..ddc0bf6b97 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -207,6 +207,17 @@ class tree extends control $title = $this->lang->tree->manageLine; $position[] = $this->lang->tree->manageLine; } + elseif($viewType == 'dashboard') + { + $root = new stdclass(); + $root->name = $this->lang->dashboard->common; + + $this->view->root = $root; + $this->lang->tree->menu = $this->lang->report->menu; + + $title = $this->lang->tree->manageDashboard; + $position[] = $this->lang->tree->manageDashboard; + } elseif($viewType == 'trainskill') { $this->lang->tree->menu = $this->lang->trainskill->menu;