@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.PagesResourceMgBehaviorMg; //The menu item will be active for this page. string category = ViewBag.Category, role = ViewBag.Role, knowledge = ViewBag.Knowledge, environment = ViewBag.Environment; ViewBag.ActiveMenu = activeMenu; var searchForm = new SearchFormViewModel(new List() { new SearchItem("behaviorName","行为名称"), //new SearchItem("sceneCategory","场景类别").SetSelectItem(category,isTree:true) }); var table = new TableViewModel(IwbConsts.ApiAppUrl + "Behavior/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("id", "编码"), new FieldItem("behaviorName", "行为名称"), new FieldItem("sceneCategoryName", "类别名称",isSort:false), new FieldItem("behaviorTag", "行为标签"), new FieldItem("behaviorRoleNames", "角色名称",isSort:false), new FieldItem("ruleKeyword", "行为关键字"), }); } @section css{ }
场景类别
@Html.Partial("Table/_Table", table)
@section modal{ @{ var baseInput = new ModalBodyViewModel(new List() { new InputHide("id"), new Input("behaviorName", "行为名称"), new Input("sceneCategory", "场景类别").SetSelectOptions(category), //new Input("sceneCategory", "场景类别").SetSelectOptions(category,isAddBlank:false), new Input("behaviorTag", "行为标签").SetNotRequired(), new InputTextarea("description", "行为规则"), //new Input("ruleKeyword", "行为关键字").SetNotRequired(), }); }
}
@section scripts { }
@*@Html.DropDownList("hid-type", type)*@