Views/Roles/Index.cshtml
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@model IEnumerable<Mr.Model.RoleView>
@{
ViewBag.Title = "角色管理";
Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<table id="dg" class="easyui-datagrid" title="角色管理" style="height:auto"
data-options="
iconCls: 'icon-statistics',
singleSelect: true,
toolbar: '#tb',
fit:true,
url: '/Roles/GetRolesList',
onDblClickRow: onDblClickRow,
onClickRow:onClickRow
">
<thead>
<tr>
<th data-options="field:'ck',checkbox:true"></th>
<th data-options="field:'RoleID',align:'center',width:60">角色ID</th>
<th data-options="field:'RoleName',align:'center',width:150,editor:{
type:'validatebox',
options:{
required:true,
validType:'length[4,100]'
}
}">角色名称</th>
<th data-options="field:'RoleAction',width:200,align:'center',editor:'text'">角色对应动作</th>
<th data-options="field:'SortName',hidden:true">栏目名称</th>
<th data-options="field:'SiteName',hidden:true">站点名称</th>
<th data-options="field:'SortID',width:150,align:'center',editor:{
type:'combotree',
options:{
url:'/Sort/GetTreeData',
loadFilter:function(data){
return $.parseJSON(data);
}
}
}">栏目ID</th>
<th data-options="field:'SiteID',width:250,align:'center',editor:{
type:'combobox',
options:{
url:'/Site/GetList',
valueField:'SiteID',
textField:'SiteName'
}
}">站点ID</th>
</tr>
</thead>
</table>
<div id="tb" style="height:auto">
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="append()">添加</a>
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="accept()">保存</a>
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="removeRow()">删除</a>
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="reject()">撤销</a>
</div>
<script type="text/javascript">
var editIndex = undefined;//这个变量就是告诉当前还有没有正在编辑状态的行。如果值为undefined表示没有编辑行,否则就表示正存在编辑行
var selectIndex = undefined;
后面还有 87 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
