table2.html
5.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
<title></title>
<link href="../../js/bstable/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="../../js/bstable/css/bootstrap-table.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="../css/jquery.treegrid.css">
<link href="../../css/table.css" rel="stylesheet" type="text/css">
<style>
.th th{background-color: #e9dfd7 !important;}
</style>
</head>
<body style="background-color: #ecf0f5;font-family: 微软雅黑;color: #475059;min-width: 1000px;overflow: auto" onload="onload()">
<div class="notice_main">
<h6>加载进度条</h6>
<div class="notice_check">
<div class="btn-group l_left" style="margin-right: 4px">
<button type="button" class="btn btn-default change" style="height: 30px;line-height: 30px;padding: 0 12px !important;font-size: 12px">选择条件</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="height: 30px;line-height: 30px">
<span class="caret"></span>
<span class="sr-only"></span>
</button>
<ul class="dropdown-menu">
<li>角色名称</li>
<li>角色描述</li>
</ul>
</div>
<div class="l_left">
<input type="text" class="find_input">
</div>
<button class="check_btn" onclick="clicks()">查询</button>
<div class="notice_nav r_right">
<a class="btn btn-default" onclick="addRole()"><span class="glyphicon glyphicon-plus"></span>新增</a>
<a class="btn btn-default"><span class="glyphicon glyphicon-remove"></span>删除</a>
<a class="btn btn-default" onclick="addRole()"><span class="glyphicon glyphicon-pencil"></span>编辑</a>
</div>
</div>
<table id="table" class="table_style" style="margin: 0 auto" > </table>
</div>
<script src="../../js/jquery/jQuery-2.2.0.min.js"></script>
<script src="../../js/bstable/js/bootstrap.min.js"></script>
<script src="../../js/bstable/js/bootstrap-table.js"></script>
<script src="../../js/bstable/js/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="../js/jquery.treegrid.js"></script>
<script type="text/javascript" src="../js/jquery.treegrid.bootstrap3.js"></script>
<script>
// function onload(){
//
// layer.load();
// setTimeout(function(){
// layer.closeAll('loading');
// $('#table').bootstrapTable({
// method: "get",
// striped: true,
// singleSelect: false,
// url: "json/role.json",
// dataType: "json",
// pagination: true, //分页
// pageSize: 10,
// pageNumber: 1,
// search: false, //显示搜索框
// contentType: "application/x-www-form-urlencoded",
// queryParams:null,
// columns: [
// {
// checkbox: "true",
// field: 'check',
// align: 'center',
// valign: 'middle'
// }
// ,
// {
// title: "角色编号",
// field: 'id',
// align: 'center',
// valign: 'middle'
// },
// {
// title: '角色名称',
// field: 'title',
// align: 'center',
// valign: 'middle'
// },
// {
// title: '创建时间',
// field: 'date',
// align: 'center',
// valign: 'middle'
// },
// {
// title: '角色描述',
// field: 'person',
// align: 'center'
// }
// ]
// });
// }, 2000);
// }
// function clicks(){
// layer.msg('数据刷新中', {
// icon: 16,
// shade: 0.01,
// time: 20000
// });
// setTimeout(function(){
// layer.closeAll('dialog');
// }, 3000);
// }
// function change(){
// $(".dropdown-menu>li").click(function(){
// $(".change").html($(this).html())
// })
// }
// function addRole(){
// layer.open({
// type: 2,
// title: '添加详情',
// shadeClose: true,
// shade: 0.5,
// skin: 'layui-layer-rim',
// closeBtn:1,
// area: ['700px', '474px'],
// content: 'table2_tail.html'
// });
// }
</script>
</body>
</html>