index_list.html
7.2 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
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
216
217
218
219
220
221
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>坝体渗压管理</title>
<script src="/run/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="/run/css/bootstrap-reset.css"/>
<link rel="stylesheet" type="text/css" href="/run/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="/run/css/default-theme.css"/>
<link rel="stylesheet" type="text/css" href="/run/css/font-awesome.css"/>
<link rel="stylesheet" type="text/css" href="/run/css/style.css"/>
<link rel="stylesheet" type="text/css" href="/run/css/style-responsive.css"/>
新增table样式
<link rel="stylesheet" type="text/css" href="/run/css/add_public.css"/>
<link rel="stylesheet" type="text/css" href="/run/css/other.css"/>
</head>
<body class="sticky-header">
<!-- 头部 -->
<
<div id="head">{include file="common/_header"}</div>
<!-- 头部 -->
<section>
<!-- 导航 -->
<div class="sidebar-left">{include file="common/_leftnav"}</div>
<!-- 导航 -->
<div class="body-content">
<!-- 当前位置 -->
<div class="page-head clearfix">
<ol class="breadcrumb pull-left">
<li><a href="home.html">主页</a></li>
<li class="active">坝体渗压管理</li>
</ol>
<div class="pull-right breadcrumbtn"></div>
</div>
<!-- 当前位置 -->
<div class="wrapper" id="task">
<section class="panel">
<header class="panel-heading head-border topbox">
<div class="getint">
<!--<a href="jyl.html" class="btn btn-success ad_fix" data-toggle="modal" data-target="#mymodal-data">新增</a>-->
</div>
<div class="searchs">
<form action="/run/Isotoniclist/search" method="" form_wid>
<input type="search" name="id" required="" placeholder="请输入id" lang="zh-CN">
<button class="btn btn-success ad_fix">查询</button>
</form>
</div>
</header>
<div class="panel-body">
<div class="listall yjgl sblx tree totrees ad_wid" style="">
<ul>
<li class="header" style="display:flex">
<span>id</span>
<span>设备名称</span>
<span>渗压值(单位:kPa)</span>
<span>采集时间</span>
<span>水库名称</span>
<span>操作</span>
</li>
{foreach $res as $vo}
<li class="ad_lb" style="display:flex">
<span>{$vo.id}</span>
<span>{$vo.eqname}</span>
<span>{$vo.value}</span>
<span>{:date('Y-m-d H:i:s',$vo['createtime'])}</span>
<span>{$vo.name}</span>
<span class="editor edit">
<a href=""><b class="del del_1" onclick="del({$vo.id})">删除</b></a>
</span>
</li>
{/foreach}
</ul>
</div>
<div class="page clearfix font" id="pagination">
<div class="pull-left num">共 {$paging} 页</div>
<!-- <div class="pull-right"> -->
<nav aria-label="..." class="pull-left">
<ul class="pagination">
<li class="disabled"><a href="?page=1" aria-label="Previous"><span>«</span></a></li>
{for start="1" end="$paging+1"}
<li class="on"><a href="?page={$i}" onclick="add()">{$i}</a></li>
{/for}
<li>
<a href="#" aria-label="Next"><span aria-hidden="true">»</span></a></li>
</ul>
</nav>
<!-- </div> -->
</div>
</div>
<!-- 推送 -->
</section>
</div>
</div>
</section>
<style type="text/css">
.box {
background-color: #fff;
height: 100%;
width: 600px;
position: absolute;
right: 0;
border-radius: 8px;
}
</style>
<script type="text/javascript">
$(function () {
$(".btn").click(function () {
$("#mymodal").modal("toggle");
});
});
</script>
<script>
function del(ids) {
res = confirm("确定删除该条记录吗?");
if (res == true) {
$.get('/run/Isotoniclist/del?id=' + ids, {},
function (status) {
alert(status);
});
}
}
</script>
<script>
$(document).ready(function () {
$(".pagination li").each(function () {
$(this).click(function () {
$(".pagination .on").removeClass("on");
$(this).addClass("on");
});
});
// $(function () {
// $('.pagination a').each(function () {
// if ($($(this))[0].href == String(window.location))
// $(this).addClass('on').attr('href', 'javascript:void(0);');
// });
// });
</script>
<script>
$(function () {
$('#pagination a').each(function () {
if ($($(this))[0].href == String(window.location))
$(this).addClass('on').attr('href', 'javascript:void(0);');
});
});
</script>
<style type="text/css" media="all">
.pagination .on {
background: #00559E;
color: #fff;
}
input[type=date]::-webkit-calendar-picker-indicator {
position: absolute;
right: 20px;
padding-left: calc(100% - 20px);
}
.form1 > ul > li > span {
width: 78px;
}
</style>
<script src="/run/js/bootstrap.js"></script>
<script src="/run/js/echarts.min.js"></script>
<script src="/run/js/scripts.js"></script>
<script src="/run/laydate/laydate.js"></script>
// 任务发布
<script>
function taskf(ids) {
// 获取员工数据
$.get('/api/inspection/task/add/ids/' + ids, function (data) {
staff = data.data
//console.log(staff)
$(staff).each(function () {
options = '<option value="' + this.user_id + '" >' + this.staff_name + '</option>';
$('#user').append(options)
// console.log(options)
})
});
}
function save() {
$.post('/api/inspection/task/add',
{
user_id: $("#user option:selected").val(),
title: $("#tle").val(),
statime: $("#statime").val(),
endtime: $("#endtime").val(),
desc: $("#desc").val()
},
function (res) {
console.log(res)
alert(res.msg)
}, "json");
}
</script>
</body>
</html>