From f265374a4b3ae2452bb97f5f5cc8010d1a041c2f Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Mon, 4 Jan 2021 09:40:50 +0800 Subject: [PATCH] update Former-commit-id: c0fb45dae966f9fce616b8428e193b54879857bf Former-commit-id: 1b8b693498d2b423218db4ba3993371139fe1564 --- .../Shared/EditorTemplates/Object.cshtml | 2 +- .../Controllers/AccountController.cs | 10 +- .../TeacherExt/Controllers/HomeController.cs | 98 +- .../TeacherExt/Models/EditTeacherModel.cs | 14 +- .../TeacherExt/Views/Account/Login.cshtml | 46 +- .../TeacherExt/Views/Home/Index.cshtml | 41 +- labs/Teacher/TeacherExt/wwwroot/edit.html | 1992 +++++++++-------- labs/Teacher/TeacherExt/wwwroot/index.html | 234 ++ 8 files changed, 1413 insertions(+), 1024 deletions(-) create mode 100644 labs/Teacher/TeacherExt/wwwroot/index.html diff --git a/labs/Teacher/Infrastructure/Views/Shared/EditorTemplates/Object.cshtml b/labs/Teacher/Infrastructure/Views/Shared/EditorTemplates/Object.cshtml index 17aad0d8..7d46707f 100644 --- a/labs/Teacher/Infrastructure/Views/Shared/EditorTemplates/Object.cshtml +++ b/labs/Teacher/Infrastructure/Views/Shared/EditorTemplates/Object.cshtml @@ -7,7 +7,7 @@ var controller = this.ViewContext.RouteData.Values["controller"].ToString(); var action = this.ViewContext.RouteData.Values["action"].ToString(); var url = HtmlAction ?? (ViewData.Keys.Any(o => o.ToLower() == "returnurl") ? Url.Action(null, null, new { ReturnUrl = ViewData["ReturnUrl"] }) : Url.Action(null, null)); - var props = ViewData.ModelMetadata.Properties.Where(pm => pm.ShowForEdit); + var props = ViewData.ModelMetadata.Properties; }
行号 | 申请修改状态 | 审核状态 | @@ -71,13 +72,19 @@性别 | 民族 | 籍贯 | -查看 | -修改 | + @if (User.IsInRole("局管理员") || User.IsInRole("校管理员")) + { +审核 | + } +编辑 | |
---|---|---|---|---|---|---|---|---|---|---|
+ + | @index | @item.RequestEditStatus | @item.CheckStatus | @@ -85,8 +92,11 @@@item.Sex | @item.Nation | @item.NativePlace | -查看 | -编辑 | + @if (User.IsInRole("局管理员") || User.IsInRole("校管理员")) + { +审核 | + } +编辑 |