WebUI/AchieveManageWeb/Views/Department/Index.cshtml
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>部门管理</title>
<link href="~/Scripts/jquery-easyui-1.4.4/themes/bootstrap/easyui.css" rel="stylesheet" />
<script src="~/Scripts/jquery-easyui-1.4.4/jquery.min.js"></script>
<script src="~/Scripts/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
<script src="~/Scripts/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
<link href="~/Content/themes/icon.css" rel="stylesheet" />
<script src="~/Content/js/common.js"></script>
<link href="~/Content/themes/table.css" rel="stylesheet" />
<script type="text/javascript">
var oldSelectDepartmentId;
$(function () {
$.ajax({ //请求当前用户可以操作的按钮
url: "/Button/GetUserAuthorizeButton?r=" + Math.random(),
type: "post",
data: { "KeyCode": "department", "KeyName": "Department" },
dataType: "json",
timeout: 5000,
success: function (data) {
if (data.success) {
var toolbar = getToolBar(data); //common.js
if (data.search) { //判断是否有浏览权限
$("#ui_department_tg").treegrid({ //初始化treegrid
url: "/Department/GetAllDepartmentInfo",
idField: 'id',
treeField: 'text',
rownumbers: true,
columns: [[
{ field: 'text', title: '部门名称', width: 250 },
{ field: 'Sort', title: '排序', width: 50 },
{ field: 'UpdateBy', title: '最后更新人', width: 150 },
{ field: 'UpdateTime', title: '最后更新时间', width: 150 }
]],
toolbar: toolbar.length == 0 ? null : toolbar,
onClickRow: function (row) {
departmentIds = ""; //必须先清空全局变量,否则一直累加
recursionGetIds(row); //递归获取所有子部门id
if (oldSelectDepartmentId == row.id) { //点选的是相同的部门就不再请求数据
return;
}
oldSelectDepartmentId = row.id; //赋值
var $ui_department_layout = $("#ui_department_layout");
var eastDepartmentUser = $ui_department_layout.layout("panel", "east");
if (eastDepartmentUser.panel("options").collapsed) { //判断是否展开
$ui_department_layout.layout("expand", "east");
}
eastDepartmentUser.panel("setTitle", row.text + "成员");
if ($("#ui_department_user_dg").data("datagrid")) {
$("#ui_department_user_dg").datagrid({ //请求数据
url: "/Department/GetDepartmentUser?departmentId=" + departmentIds + row.id
后面还有 239 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。