原文:https://sourceforge.net/p/itop/discussion/922360/thread/24498390/?limit=25#8e0b
自定义itop的首页展示,
效果图如下:
[email protected]:/var/www/html/itop.new# cat env-production/itop-welcome-itil/welcomemenupage_dashboard_menu.xml <?xml version="1.0"?> <dashboard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <layout>DashboardLayoutOneCol</layout> <title></title> <auto_reload> <enabled>false</enabled> <interval>300</interval> </auto_reload> <cells> <cell id="0"> <rank>0</rank> <dashlets> <dashlet id="20" xsi:type="DashletHeaderStatic"> <rank>0</rank> <title>Requests</title> <icon>itop-request-mgmt-itil/images/user-request.png</icon> </dashlet> <dashlet id="12" xsi:type="DashletObjectList"> <rank>1</rank> <title>UI:WelcomeMenu:MyCalls</title> <query>SELECT UserRequest AS i WHERE i.agent_id = :current_contact_id AND status NOT IN ("closed", "resolved")</query> <menu>true</menu> </dashlet> <dashlet id="19" xsi:type="DashletObjectList"> <rank>2</rank> <title>My team requests</title> <query>SELECT UserRequest AS i JOIN Team AS t ON i.team_id = t.id JOIN lnkPersonToTeam AS lnk ON lnk.team_id = t.id WHERE lnk.person_id = :current_contact_id AND i.status NOT IN ("closed","resolved")</query> <menu>false</menu> </dashlet> </dashlets> </cell> <cell id="1"> <rank>1</rank> <dashlets> <dashlet id="21" xsi:type="DashletHeaderStatic"> <rank>0</rank> <title>Incidents</title> <icon>itop-incident-mgmt-itil/images/incident.png</icon> </dashlet> <dashlet id="15" xsi:type="DashletObjectList"> <rank>1</rank> <title>My incidents</title> <query>SELECT Incident AS i WHERE i.agent_id = :current_contact_id AND status NOT IN ("closed","resolved")</query> <menu>true</menu> </dashlet> <dashlet id="17" xsi:type="DashletObjectList"> <rank>2</rank> <title>My team incidents</title> <query>SELECT Incident AS i JOIN Team AS t ON i.team_id = t.id JOIN lnkPersonToTeam AS lnk ON lnk.team_id = t.id WHERE lnk.person_id = :current_contact_id AND i.status NOT IN ("closed", "resolved")</query> <menu>false</menu> </dashlet> </dashlets> </cell> <cell id="2"> <rank>2</rank> <dashlets> <dashlet id="22" xsi:type="DashletHeaderStatic"> <rank>0</rank> <title>Work Orders</title> <icon>itop-tickets/images/workorder.png</icon> </dashlet> <dashlet id="16" xsi:type="DashletObjectList"> <rank>1</rank> <title>My work orders</title> <query>SELECT WorkOrder AS i WHERE i.agent_id = :current_contact_id AND status NOT IN ("closed")</query> <menu>true</menu> </dashlet> <dashlet id="18" xsi:type="DashletObjectList"> <rank>2</rank> <title>My team work orders</title> <query>SELECT WorkOrder AS i JOIN Team AS t ON i.team_id = t.id JOIN lnkPersonToTeam AS lnk ON lnk.team_id = t.id WHERE lnk.person_id = :current_contact_id AND i.status NOT IN ("closed")</query> <menu>true</menu> </dashlet> </dashlets> </cell> <cell id="3"> <rank>3</rank> <dashlets> <dashlet id="0" xsi:type="DashletEmptyCell"> <rank>0</rank> </dashlet> </dashlets> </cell> <cell id="4"> <rank>4</rank> <dashlets> <dashlet id="0" xsi:type="DashletEmptyCell"> <rank>0</rank> </dashlet> </dashlets> </cell> <cell id="5"> <rank>5</rank> <dashlets> <dashlet id="0" xsi:type="DashletEmptyCell"> <rank>0</rank> </dashlet> </dashlets> </cell> </cells> </dashboard> [email protected]:/var/www/html/itop.new# [email protected]:/var/www/html/itop.new# [email protected]:/var/www/html/itop.new# [email protected]:/var/www/html/itop.new# 重启apache
时间: 2024-11-06 00:50:05