代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico">
<title>Preclinic - Medical & Hospital - Bootstrap 4 Admin Template</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-datetimepicker.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="content">
<div class="row">
<div class="col-sm-8 col-6">
<h4 class="page-title">资产</h4>
</div>
<div class="col-sm-4 col-6 text-right m-b-30">
<a href="add-asset.html" class="btn btn-primary btn-rounded float-right"><i class="fa fa-plus"></i> 新增资产</a>
</div>
</div>
<div class="row filter-row">
<div class="col-sm-6 col-md-3">
<div class="form-group form-focus">
<label class="focus-label">员工</label>
<input type="text" class="form-control floating">
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="form-group form-focus">
<label class="focus-label">From</label>
<div class="cal-icon">
<input class="form-control floating datetimepicker" type="text">
</div>
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="form-group form-focus">
<label class="focus-label">To</label>
<div class="cal-icon">
<input class="form-control floating datetimepicker" type="text">
</div>
</div>
</div>
<div class="col-sm-6 col-md-3">
<a href="#" class="btn btn-success btn-block"> 查询 </a>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-striped custom-table mb-0 datatable">
<thead>
<tr>
<th>使用者</th>
<th>资产名称</th>
<th>资产编号</th>
<th>购置日期</th>
<th>保修期</th>
<th>保修截止日期</th>
<th class="text-center">状态</th>
<th class="text-right">操作</th>
</tr>
</thead>
<tbody id="assets">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="delete_asset" class="modal fade delete-modal" role="dialog">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body text-center">
<h3>Are you sure want to delete this Asset?</h3>
<div class="m-t-20"> <a href="#" class="btn btn-white" data-dismiss="modal">Close</a>
<button type="submit" class="btn btn-danger">Delete</button>
</div>
</div>
</div>
</div>
</div>
<div class="sidebar-overlay" data-reff=""></div>
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.dataTables.min.js"></script>
<script src="assets/js/dataTables.bootstrap4.min.js"></script>
<script src="assets/js/jquery.slimscroll.js"></script>
<script src="assets/js/moment.min.js"></script>
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
<script src="assets/js/app.js"></script>
<!--json data-->
<script type="text/javascript" src="json/assets.json"></script>
<script type="text/javascript">
$(document).ready(function () {
var assetsStr = "";
for(var i = 0; i < assets.length; i++){
assetsStr = assetsStr + '<tr>';
assetsStr = assetsStr + '<td>'+ assets[i].employeeName +'</td>';
assetsStr = assetsStr + '<td>';
assetsStr = assetsStr + '<strong>'+ assets[i].name +'</strong>';
assetsStr = assetsStr + '</td>';
assetsStr = assetsStr + '<td>'+ assets[i].id +'</td>';
assetsStr = assetsStr + '<td>'+ assets[i].purdate +'</td>';
assetsStr = assetsStr + '<td>'+ assets[i].warr +'年</td>';
assetsStr = assetsStr + '<td>'+ assets[i].end +'</td>';
assetsStr = assetsStr + '<td class="text-center">'+ assets[i].status +'</td>';
assetsStr = assetsStr + '<td class="text-right">';
assetsStr = assetsStr + '<div class="dropdown dropdown-action">';
assetsStr = assetsStr + '<a href="#" class="action-icon dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-ellipsis-v"></i></a>';
assetsStr = assetsStr + '<div class="dropdown-menu dropdown-menu-right">';
assetsStr = assetsStr + '<a class="dropdown-item" href="edit-asset.html"><i class="fa fa-pencil m-r-5"></i> Edit</a>';
assetsStr = assetsStr + '<a class="dropdown-item" href="#" data-toggle="modal" data-target="#delete_asset"><i class="fa fa-trash-o m-r-5"></i> Delete</a>';
assetsStr = assetsStr + '</div></div></td></tr>';
}
$("#assets").html(assetsStr);
});
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。