source/Repid.MvcApplication/Areas/Manage/Views/Function/script.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var mfunction = {
//表格初始化
gridInit: function () {
$("#mfunction-grid").datagrid({
url: "/manage/function/grid",
nowrap: false,
rownumbers: true,
border: false,
fit: true,
singleSelect: true,
pageSize: 20,
pagination: true,
idField: "ID",
toolbar: "#mfunction-tools",
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" }
]]
});
},
//添加
insert: function () {
mfunction.mutual("添加", null);
},
//修改
update: function () {
var row = $("#mfunction-grid").datagrid("getSelected");
if (row) {
mfunction.mutual("修改", row.ID);
}
else { manage.slide(manage.nullRowMsg); }
},
//删除
remove: function () {
var row = $("#mfunction-grid").datagrid("getSelected");
if (row) {
manage.confirm("确认删除?", function (del) {
if (del) {
manage.ajax({
url: "/manage/function/remove",
type: "post", data: { id: row.ID },
success: function (result) {
manage.slide(result.message);
if (result.success) { mfunction.reload(); }
}
});
}
});
后面还有 78 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。