1.控件器 NoticeController
/// <summary>
/// 公告公示详情
/// </summary>
/// <returns></returns>
public ActionResult Detail(int index=0)
{
ViewBag.CheckMenu = 5;
ViewBag.Index = index;
return View();
}
2.视图 DetailView
<div class="content_box">
<div class="title">
<div style="font-size: 24px;" id="tab_title">企业社保补贴人员信息公示</div>
</div>
@if (ViewBag.Index == 0 || ViewBag.Index == 1) {
@Html.Partial("~/Views/Notice/table01.cshtml")
}
@if (ViewBag.Index == 2 || ViewBag.Index == 3)
{
@Html.Partial("~/Views/Notice/table02