src/Fierce.Mvc/Areas/Basic/Views/Function/Index.cshtml
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@using Fierce.MvcExtend.Controls.Manage
<div class="easyui-layout" data-options="fit:true">
<div data-options="region:'north',border:false,height:112">
<div class="document-name">@ViewBag.Work.Menu.Name</div>
<div class="document-toolbar">@Easyui.Toolbar(ViewBag.Work)</div>
</div>
<div data-options="region:'center',border:false"><table id="igrid" /></div>
</div>
<script type="text/javascript">
$(function () {
//表格初始化
var gridInit = function () {
$("#igrid").datagrid({
url: "/basic/function/grid",
nowrap: false,
rownumbers: true,
fit: true,
singleSelect: true,
idField: "ID",
pageSize: 20,
pagination: true,
columns: [[
{
field: "Icon", title: "图标", width: 50, align: "center",
formatter: function (value, row, index) {
if (value) { return manage.icon(value); }
}
},
{ field: "Name", title: "名称", width: 80, align: "center" },
{ field: "Type", title: "类型", width: 80, align: "center" },
{ field: "Sequence", title: "排序", width: 50, align: "center" },
{ field: "Func", title: "功能", width: 100, align: "center" },
{ field: "Purview", title: "权限", width: 100, align: "center" },
{ field: "Remark", title: "描述", width: 280, align: "center" }
]]
});
}();
//添加
var insert = function () {
mutual("添加", null);
};
//修改
var update = function () {
var row = $("#igrid").datagrid("getSelected");
if (row) {
mutual("修改", row.ID);
}
else { manage.slide(manage.nullRowMsg); }
};
//删除
var remove = function () {
var row = $("#igrid").datagrid("getSelected");
if (row) {
manage.confirm("确认删除?", function (del) {
if (del) {
后面还有 88 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
