Ticket/Views/User/Index.cshtml
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<table id="tbl"></table>
<div id="btn">
<div style="padding:2px 5px;">
<a href="#" class="easyui-linkbutton" id="addBtn" iconCls="icon-add" plain="true" οnclick="add();">添加</a>
</div>
<div style="padding:2px 5px;">
昵称:<input type="text" name="name" class="easyui-textbox" />
<a id="standardQueryBtn" href="javascript:void(0)" class="easyui-linkbutton"
data-options="iconCls:'icon-search'">搜索</a>
</div>
</div>
<div id="addModal">
</div>
<div id="editModal"></div>
<script type="text/javascript">
var role = @ViewData["Role"];
$(document).ready(function () {
$('#tbl').datagrid({
url: "@Url.Action("GetData","User",new { role=ViewData["Role"]})", //请求后台的地址
fitColumns: true,
scrollbarSize: 0,
selected: false,
pagination: true, //分页开关
pageNumber: 1, //初始页
rownumbers: true,
method: 'get',
toolbar: '#btn',
loadMsg:'加载中...',
nowrap: false,
pageSize: 10, //每页显示条数
pageList: [10, 20, 50, 100, 150, 200], //每页显示条数供选项
striped: true, //设置表格奇偶行颜色是否不同
columns: [[
{ field: 'Account', title: '账号', width: 100 },
{ field: 'NickName', title: '昵称', width: 80 },
{ field: 'RealName', title: '真实姓名', width: 80 },
{
field: 'CreateTime', title: '修改时间', width: 120, formatter: function (value) {
if (value)
return getFDate(value);
return '';
}
},
{
field: 'sss', title: '操作', width: 240, formatter: function (value, row, index) {
return '<a href="#" onclick="edit(' + row.Id + ');" name="edit" class="easyui-linkbutton" >编辑</a>'
+ '<a href="#" onclick="view(' + row.Id + ');" name="view" class="easyui-linkbutton" >查看</a>'
+ '<a href="#" onclick="deleteR(' + row.Id + ');" name="delete" class="easyui-linkbutton" >删除</a>';
}
后面还有 114 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。