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.
50 lines
1.7 KiB
50 lines
1.7 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title></title>
|
|
<script src="/js/jquery-2.1.3.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
|
|
|
|
$.ajax({
|
|
url: "http://xzcamp.xfzn365.com/ashx/SysEmpHandler.ashx?page=2&limit=200&Action=OrgEmpList&OrgId=D8DC637B8B984848A63F82A018AFAEB0&is_content=1&is_manage_cadre=3&is_admin=0&DeptID=&IsAdmin=1&random=1716189756358"
|
|
, success: function (result) {
|
|
//console.log(result);
|
|
var obj = JSON.parse(result);
|
|
//console.log(obj);
|
|
var htmlStr = "";
|
|
for (var i = 0; i < obj.data.length; i++) {
|
|
htmlStr += '<li><a href="FengHuoServicePage.html?typ=3&code=' + obj.data[i].USERS_UID + '" target="_blank">' + obj.data[i].EMP_NAME + '</a></li>';
|
|
}
|
|
$("#ulHtml").html(htmlStr);
|
|
}
|
|
, error: function (xhr, status, error) {
|
|
if (xhr.status === 0) {
|
|
// 网络连接失败
|
|
console.log("网络连接失败,请检查网络是否正常");
|
|
} else {
|
|
// 请求出现其他错误
|
|
console.log("ajax请求错误:" + error);
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
</script>
|
|
<style type="text/css">
|
|
.float-list li {
|
|
float: left;
|
|
list-style-type: none; /* 移除列表的标记,如果需要的话 */
|
|
margin-right: 10px; /* 添加一些间距 */
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul class="float-list" id="ulHtml">
|
|
</ul>
|
|
|
|
</body>
|
|
</html>
|