-
Notifications
You must be signed in to change notification settings - Fork 0
/
_backend_tables_scho.html
215 lines (200 loc) · 10.6 KB
/
_backend_tables_scho.html
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html lang="zh-CN">
</html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>大恒光伏鹰眼后台管理</title>
<!-- Bootstrap -->
<link href="lib/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!-- hack -->
<!--[if lt IE 9]>
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="./css/flat-ui.min.css">
<!-- 导入 自己的css -->
<link rel="stylesheet" type="text/css" href="css/base.css">
<!-- 导入 index.css -->
<link rel="stylesheet" type="text/css" href="./css/backend-common.css">
<link rel="stylesheet" tyoe="text/css" href="./css/backend-scho.css">
<!-- <body > -->
</head>
<body>
<!-- backend -->
<div id="dh-backend-scho">
<!-- backend-scho-form start -->
<div id="backend-scho-form">
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">故障列表</div>
<div class="panel-body">
<div class="wrap clearfix">
<div class="form1 pull-left">
<label>电站</label>
<select class="dh-form-control">
<option>全部</option>
<option>集团</option>
<option>经销商</option>
</select>
</div>
<div class="form2 pull-left">
<label>功率段</label>
<input class="dh-form-control" type="text" placeholder=""> ~
<input class="dh-form-control" type="text" placeholder="">
<label>KW</label>
</div>
<div class="form3 pull-left">
<input class="dh-form-control" type="text" placeholder="请输入搜索内容">
</div>
<div class="form4 pull-left">
<button type="submit" class="btn btn-default">搜索</button>
</div>
</div>
<table class="table table-bordered table-striped table-hover ">
<thead>
<tr>
<th> 展开</th>
<th>序号</th>
<th>电站名称</th>
<th>装机功率</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<td class="slide-down" data-toggle="collapse" data-target="#collapseExample">
<span class="dh-font dh-xiala"></span>
</td>
<td>1</td>
<td>东城区333.0千瓦电站</td>
<td>8KW</td>
<td>建成</td>
<td>
<a href="#">查看</a> /
<a href="#">停用</a> /
<a href="#">下钻</a>
</td>
</tr>
<tr class="slide">
<td colspan="6" class="row">
<div class="col-xs-5">
<div class="row">
<div class="block blue col-xs-6">
<div>
<p class="info-first">当前功率</p>
<p class="info-second">11.38万千瓦</p>
</div>
<p>装机功率 88.52万千瓦</p>
</div>
<div class="block red col-xs-6">
<div>
<p class="info-first">当前功率</p>
<p class="info-second">11.38万千瓦</p>
</div>
<p>装机功率 88.52万千瓦</p>
</div>
</div>
<div class="row">
<div class="block purple col-xs-6">
<div>
<p class="info-first">当前功率</p>
<p class="info-second">11.38万千瓦</p>
</div>
<p>装机功率 88.52万千瓦</p>
</div>
<div class="block green col-xs-6">
<div>
<p class="info-first">当前功率</p>
<p class="info-second">11.38万千瓦</p>
</div>
<p>装机功率 88.52万千瓦</p>
</div>
</div>
</div>
<div class="col-xs-5 block2" style="background-color:red"></div>
<div class="col-xs-2 block3">
<div class="xiazuan"></div>
<p>
<span>20</span>条故障</p>
<p>
<span>20</span>条告警</p>
<p>
<span>20</span>条提议</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- backend-scho-form end -->
</html>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="./lib/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="./lib/js/bootstrap.min.js"></script>
<script>
$('a[href="#"]').click(function (e) {
e.preventDefault ? e.preventDefault() : e.returnValue = false;
});
// $('.collapseBTN').on('click', function (e) {
// console.log(e.currentTarget.parentNode);
// $(e.currentTarget.parentNode).css('background-color','red');
// $(e.currentTarget.parentNode).css('position','relative');
// $(e.currentTarget.parentNode).appendChild('#collapseExample');
// $('#collapseExample').css('position','absolute');
// $('#collapseExample').collapse('toggle');
// })
// $('#collapseExample').on('show.bs.collapse', function () {
// $('#collapseExample').collapse('hide');
// })
$('.slide').hide();
$("tr").on("click","td.slide-down" ,function (e) {
$('.slide').show();
$(e.currentTarget).removeClass('slide-down');
$(e.currentTarget).addClass('slide-up');
$(e.currentTarget).parent('tr').next(".slide")
.find('td')
.wrapInner('<div class="aaa" style="display: none;" />').debugger()
.parent()
.find('td > div')
.slideDown(700, function () {
var $set = $(this);
$set.replaceWith($set.contents());
});
});
$("tr").on("click","td.slide-up" ,function (e) {
$(e.currentTarget).removeClass('slide-up');
$(e.currentTarget).addClass('slide-down');
$(e.currentTarget).debugger().parent('tr').next(".slide")
.find('td')
.wrapInner('<div style="display: block;" />').debugger()
.parent()
.find('td > div')
.slideUp(700, function () {
var $set = $(this);
$set.replaceWith($set.contents());
$('.slide').hide();
});
});
// $('#my_table > tbody > tr.my_row')
// .find('td')
// .wrapInner('<div style="display: none;" />')
// .parent()
// .find('td > div')
// .slideDown(700, function () {
// var $set = $(this);
// $set.replaceWith($set.contents());
// });
// $("tr.slide").on("click", function () {
// $(this).slideToggle();
// });
</script>