You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
3.5 KiB
79 lines
3.5 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>系统中心--科宁权限资源管理系统</title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="format-detection" content="telephone=no">
|
|
<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
|
|
<link rel="stylesheet" href="/css/public.css" media="all" />
|
|
<link rel="stylesheet" href="/css/ztree/metro/ztree.css">
|
|
<script src="/js/jquery-2.1.3.min.js"></script>
|
|
<script src="/js/jq_extend.js"></script>
|
|
<script type="text/javascript" src="/layui/layui.js"></script>
|
|
<style>
|
|
.layui-form-label {
|
|
width: 75px;
|
|
}
|
|
.layui-input-block{
|
|
margin-left: 120px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div style="padding:20px 20px 20px 20px;" id="divBody">
|
|
<form class="layui-form">
|
|
<div class="layui-form-item layui-row layui-col-xs12">
|
|
<div class="layui-form-item layui-row layui-col-xs12" style="display: none" id="isShow">
|
|
<label class="layui-form-label" style="color: #fff">审批人:</label>
|
|
<div class="layui-input-block">
|
|
<select id="cert" lay-search="" class="ipttycls">
|
|
<option value="">---请选择审批人---</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item layui-row layui-col-xs12">
|
|
<label class="layui-form-label" style="color: #fff">审批意见:</label>
|
|
<div class="layui-input-block">
|
|
<textarea placeholder="请填写审批意见" class="layui-textarea" id="opComment" maxlength="80"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<script type="text/javascript">
|
|
layui.use(['form'], function () {
|
|
var form = layui.form
|
|
$ = layui.jquery;
|
|
|
|
var userInfo = JSON.parse(window.sessionStorage.getItem("userInfo"));
|
|
var OrgId = userInfo.OrgID;
|
|
var AdminLevel = userInfo.AdminLevel;
|
|
|
|
// 上级管理员审批
|
|
$.ajax({
|
|
type: "post",
|
|
url: "/ashx/OAEmpApprovalHandler.ashx",
|
|
async: false,
|
|
data: { Action: "GetUpLevelEmp", OrgId: OrgId, ADMIN_LEVEL: AdminLevel, random: new Date().getTime() },
|
|
dataType: "json",
|
|
success: function (result) {
|
|
console.log(result);
|
|
var htmlStr = "";
|
|
result.data.forEach(function (value, index, array) {
|
|
// var showName = value.EMP_NAME + '(' + value.ORG_NAME + ')';
|
|
//htmlStr += '<div id="' + value.ID + '" class="divLi" empId="' + value.ID + '" empName="' + showName + '">' + showName + '</div>';
|
|
htmlStr += "<option value='" + value.ID + "," + value.EMP_NAME + "," + value.ORG_ID + "'>" + value.EMP_NAME + "</option>";
|
|
});
|
|
$("#cert").append(htmlStr);
|
|
form.render('select');
|
|
}
|
|
});
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|