This commit is contained in:
2026-06-14 10:03:27 +08:00
parent ddc675a03d
commit 67f4bffb2d
2 changed files with 47 additions and 0 deletions
+38
View File
@@ -445,6 +445,29 @@
border: none; border: none;
} }
/* 首页标签文字显色 + 修复common.css重置导致的样式丢失 */
.f-tabstrip-header .f-tab-header {
color: #1ab1ff !important;
padding: 5px 10px !important;
line-height: normal !important;
}
.f-tabstrip-header .f-tab-header.f-state-active {
color: #ffffff !important;
background-color: #0B2A56 !important;
}
.f-tabstrip-header .f-tab-header.f-state-active .f-icon {
color: #ffffff !important;
}
.f-tabstrip-header .f-tab-header .f-icon {
color: #1ab1ff !important;
}
.f-tabstrip-header .f-tab-header-text {
line-height: normal !important;
}
.f-tabstrip-header-clip {
line-height: normal !important;
}
.f-panel > .f-panel-bodyct { .f-panel > .f-panel-bodyct {
background: #001B35; background: #001B35;
} }
@@ -1058,6 +1081,16 @@
} }
$this.addClass('activeClick') $this.addClass('activeClick')
} }
// 显示mainTabStrip的头部
var $tabHeader = $('.f-tabstrip-header');
$tabHeader.attr('style', ';display:block !important;');
});
// 点击首页/Logo区域时隐藏mainTabStrip的头部
$(".bgbtn3").click(function () {
var $tabHeader = $('.f-tabstrip-header');
$tabHeader.attr('style', ';display:none !important;');
$(".bgbtn,.bgbtntop").removeClass("activeClick");
}); });
var mainTabStrip = F(mainTabStripClientID); var mainTabStrip = F(mainTabStripClientID);
var leftPanel = F(leftPanelClientID); var leftPanel = F(leftPanelClientID);
@@ -1142,6 +1175,11 @@
methods: { methods: {
onSwitchMenu(idx) { onSwitchMenu(idx) {
this.navIdx = idx; this.navIdx = idx;
// 显示mainTabStrip的头部
var $tabHeader = $('.f-tabstrip-header');
if ($tabHeader.length) {
$tabHeader.attr('style', ';display:block !important;');
}
}, },
onRefresh() { onRefresh() {
alert("刷新"); alert("刷新");
@@ -620,6 +620,8 @@ namespace FineUIPro.Web
this.leftPanel.Hidden = true; this.leftPanel.Hidden = true;
this.Tab1.IFrameUrl = "~/common/mainProject.aspx"; this.Tab1.IFrameUrl = "~/common/mainProject.aspx";
this.CurrUser.LastProjectId = null; this.CurrUser.LastProjectId = null;
this.mainTabStrip.ShowTabHeader = false;
if (!string.IsNullOrEmpty(type)) if (!string.IsNullOrEmpty(type))
{ {
this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId; this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId;
@@ -628,18 +630,25 @@ namespace FineUIPro.Web
this.XmlDataSource1.DataFile = "common/" + type + ".xml"; this.XmlDataSource1.DataFile = "common/" + type + ".xml";
this.leftPanel.Hidden = false; this.leftPanel.Hidden = false;
this.Tab1.IFrameUrl = "~/common/main" + type + ".aspx"; this.Tab1.IFrameUrl = "~/common/main" + type + ".aspx";
this.mainTabStrip.ShowTabHeader = true;
if (type == Const.Menu_Personal) if (type == Const.Menu_Personal)
{ {
//this.Tab1.IFrameUrl = "~/Personal/PersonalInfo.aspx"; //this.Tab1.IFrameUrl = "~/Personal/PersonalInfo.aspx";
this.Tab1.IFrameUrl = "~/Workflow/WorkflowTodo.aspx"; this.Tab1.IFrameUrl = "~/Workflow/WorkflowTodo.aspx";
} }
else if (type == Const.Menu_ProjectSet) else if (type == Const.Menu_ProjectSet)
{ {
this.Tab1.IFrameUrl = "~/ProjectData/ProjectSetView.aspx"; this.Tab1.IFrameUrl = "~/ProjectData/ProjectSetView.aspx";
} }
else if (type == Const.Menu_ToDo) else if (type == Const.Menu_ToDo)
{ {
this.Tab1.IFrameUrl = "~/common/todolist.aspx"; this.Tab1.IFrameUrl = "~/common/todolist.aspx";
} }
else if (type == Const.Menu_PThreeYearAction) else if (type == Const.Menu_PThreeYearAction)
{ {