OA.WEB/Views/UserInfo/SetUserActionInfo.cshtml
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
Layout = null;
}
@using OA.Model
@model OA.Model.UserInfo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>为用户设置权限</title>
<link href="~/Content/themes/default/easyui.css" rel="stylesheet" />
<link href="~/Content/tableStyle.css" rel="stylesheet" />
<script src="~/Scripts/jquery-1.7.1.min.js"></script>
<script src="~/Scripts/jquery.easyui.min.js"></script>
<script src="~/Scripts/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
$(function () {
$(".setActions").click(function () {
$.post("/UserInfo/SetActionForUser", {"userId":@Model.ID,"actionId":$(this).attr("ids"),"value":$(this).val()}, function (data) {
if (data=="ok") {
$.messager.show({
title:'提示信息',
msg:'设置成功!',
showType:'fade'
});
}
});
});
$(".btnClearAction").click(function(){
$(this).parent().find(".setActions").attr("checked",false);//找点击清除的当前行
$.post("/UserInfo/ClearActionUser",{"userId":@Model.ID,"actionId":$(this).attr("ids")},function(data){
if (data=="ok") {
$.messager.show({
title:'提示信息',
msg:'清除成功!',
showType:'fade'
});
}
});
});
});
</script>
</head>
<body>
<div>
为当前用户分配@{
UserInfo userInfo = (UserInfo)ViewBag.UserInfo;
<span style="font-size:18px;color:red;">@userInfo.UserName</span>
}权限
</div>
@using (Ajax.BeginForm("SetUserAction", new { }, new AjaxOptions() { OnSuccess = "afterSet" }, new { id = "form1" }))
{
List<ActionInfo> AllActionList = (List<ActionInfo>)ViewBag.AllActions;
List<R_UserInfo_ActionInfo> AllExtActionList = (List<R_UserInfo_ActionInfo>)ViewBag.AllExtActions;
<table>
<tr><th>权限编号</th>
后面还有 53 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。