NFine.Web/Areas/SystemManage/Views/Area/Form.cshtml
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
ViewBag.Title = "Form";
Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
var keyValue = $.request("keyValue");
$(function () {
initControl();
if (!!keyValue) {
$.ajax({
url: "/SystemManage/Area/GetFormJson",
data: { keyValue: keyValue },
dataType: "json",
async: false,
success: function (data) {
$("#form1").formSerialize(data);
}
});
}
});
function initControl() {
$("#F_ParentId").bindSelect({
url: "/SystemManage/Area/GetTreeSelectJson"
});
}
function submitForm() {
if (!$('#form1').formValid()) {
return false;
}
$.submitForm({
url: "/SystemManage/Area/SubmitForm?keyValue=" + keyValue,
param: $("#form1").formSerialize(),
success: function () {
$.currentWindow().$("#gridList").resetSelection();
$.currentWindow().$("#gridList").trigger("reloadGrid");
}
})
}
</script>
<form id="form1">
<div style="padding-top: 20px; margin-right: 20px;">
<table class="form">
<tr>
<th class="formTitle">上级</th>
<td class="formValue">
<select id="F_ParentId" name="F_ParentId" class="form-control required">
<option value="0">父节点</option>
</select>
</td>
</tr>
<tr>
<th class="formTitle">名称</th>
<td class="formValue">
<input id="F_FullName" name="F_FullName" type="text" class="form-control required" placeholder="请输入名称" />
</td>
</tr>
<tr>
<th class="formTitle">排序</th>
<td class="formValue">
后面还有 21 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
