refactor: 移除 customModal Section

This commit is contained in:
Argo Zhang 2020-03-04 17:12:50 +08:00
parent c617cde4c3
commit 64f1ddbf39
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
5 changed files with 64 additions and 73 deletions

View File

@ -57,12 +57,10 @@
</form>
</div>
}
@section customModal {
@await Html.PartialAsync("RoleConfig")
@await Html.PartialAsync("UserConfig")
}
@section cardbody {
<div class="alert alert-info" role="alert" asp-condition="@Model.IsDemo">
<span>部门与组织结构中的带有层次关系的部门不同,用于资源权限的分配与管理 <a href="https://gitee.com/LongbowEnterprise/BootstrapAdmin/wikis/%E6%95%B0%E6%8D%AE%E6%9D%83%E9%99%90?sort_id=1680495" target="_blank">参考文档</a></span>
</div>
}
@await Html.PartialAsync("RoleConfig")
@await Html.PartialAsync("UserConfig")

View File

@ -180,9 +180,7 @@
</form>
</div>
}
@section customModal {
@await Html.PartialAsync("RoleConfig")
<div id="dialogIcon" class="modal-content icon-content">
<div id="dialogIcon" class="modal-content icon-content">
<div class="modal-header">
<h5 class="modal-title" id="myIconModalLabel">请选择图标</h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
@ -201,6 +199,6 @@
<span>确定</span>
</button>
</div>
</div>
@await Html.PartialAsync("NavigatorConfig")
}
</div>
@await Html.PartialAsync("RoleConfig")
@await Html.PartialAsync("NavigatorConfig")

View File

@ -81,9 +81,7 @@
</form>
</div>
}
@section customModal{
@await Html.PartialAsync("UserConfig")
@await Html.PartialAsync("GroupConfig")
@await Html.PartialAsync("NavigatorConfig")
@await Html.PartialAsync("AppConfig")
}
@await Html.PartialAsync("UserConfig")
@await Html.PartialAsync("GroupConfig")
@await Html.PartialAsync("NavigatorConfig")
@await Html.PartialAsync("AppConfig")

View File

@ -69,10 +69,9 @@
</form>
</div>
}
@section customModal {
@await Html.PartialAsync("RoleConfig")
@await Html.PartialAsync("GroupConfig")
<div class="modal fade" id="dialogReset" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myResetModalLabel" aria-hidden="true">
@await Html.PartialAsync("RoleConfig")
@await Html.PartialAsync("GroupConfig")
<div class="modal fade" id="dialogReset" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myResetModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content" data-toggle="LgbValidate" data-valid-button="#btnReset" data-valid-modal="#dialogReset">
<div class="modal-header">
@ -109,5 +108,4 @@
</div>
</div>
</div>
</div>
}
</div>

View File

@ -67,7 +67,6 @@
@RenderSection("tableButtons", false)
</div>
</div>
@await RenderSectionAsync("body", false)
<div class="modal fade" id="dialogNew" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content" data-toggle="LgbValidate" data-valid-button="#btnSubmit" data-valid-modal="#dialogNew">
@ -102,4 +101,4 @@
</div>
</div>
</div>
@RenderSection("customModal", false)
@RenderBody()