Mini.Crm/Mini.Web/Areas/Admin/Views/Right/Edit.cshtml

95 lines
3.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model Air.Model.AirAdminViewModel.Bas_RightModel
@using Mini.Web.WebHelper
@{
ViewBag.Title = "Edit";
Layout = "~/Areas/Admin/Views/Shared/_Index_LayoutEdit.cshtml";
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "Edit",
type: "Post",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
window.parent.frameReturnByMes(data.message);
window.parent.frameReturnByReload(@Model.GroupId);
window.parent.frameReturnByClose()
}
else {
window.parent.frameReturnByMes(data.message);
}
}
});
}
return false;
});
$('#GroupId').combotree({
url: "../RightGroup/GetAllGroupTree",
required: true,
heiht: "400"
});
});
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
<form id="CreateForm">
@Html.ValidationSummary(true)
<table class="fromEditTable setTextWidth300">
<tbody>
<tr>
<td width="60px" style="width:100px;">
权限组:
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.GroupId, new { style = "width:305px;" })
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.GroupId)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
权限Id
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.RightId, new { @readonly = true, style = "width:303px;" })
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.RightId)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
权限名:
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.RName)
@Html.HiddenFor(m => m.RightId)
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.RName)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
排序:
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.SortId)
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.SortId)
</td>
</tr>
</tbody>
</table>
</form>