@using WePlatform @using WePlatform.Configuration @using WePlatform.Authorization @using WePlatform.Views.Shared.Modals @using WePlatform.Views.Shared.SearchForm @using WePlatform.Views.Shared.Table @{ ViewBag.Title = "评估指标"; string activeMenu = PermissionNames.PagesEngineModelMgEvalTargetMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string targetType = ViewBag.TargetType; var searchForm = new SearchFormViewModel(new List() { new SearchItem("name","指标名称"), new SearchItem("version","指标版本"), new SearchItem("targetType","指标类型",FieldType.I).SetSelectItem(targetType), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "EvalTarget/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("name", "指标名称",align:"left"), new FieldItem("tag", "指标标签"), new FieldItem("version", "指标版本"), //new FieldItem("description", "指标描述"), new FieldItem("targetType", "指标类型","TargetTypeFormatter"), new FieldItem("", "操作","ActionsFormatter"), }) .SetPageArray(1000); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("指标", new ModalBodyViewModel(new List() { new InputHide("id"), new InputHide("typePath"), new Input("parentNo", "父指标").SetSelectOptions(""), new Input("name", "指标名称"), new Input("tag", "指标标签"), new Input("version", "指标版本"), new Input("targetType", "指标类型").SetSelectOptions(targetType), new InputTextarea("description", "指标描述").SetNotRequired(), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@