|
|
|
@ -81,7 +81,11 @@
|
|
|
|
|
<td>{$data.add_user}</td>
|
|
|
|
|
<td>{$data.create_ime}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a href="{:U('TestWhiteList/edit',array('user_id'=>$data['user_id'],'account'=>$data['account'],'status'=>$data['show_status']))}" style="width:100%;">编辑</a>
|
|
|
|
|
<!-- <a href="{:U('TestWhiteList/edit',array('user_id'=>$data['user_id'],'account'=>$data['account'],'status'=>$data['show_status']))}" style="width:100%;">编辑</a>-->
|
|
|
|
|
<!-- <a href="{:U('TestWhiteList/deleteWhileUser',array('id'=>$data['id']))}" style="width:100%;">删除</a>-->
|
|
|
|
|
|
|
|
|
|
<a class="del_user" href-hhh="{:U('TestWhiteList/deleteWhileUser',array('id'=>$data['id']))}" style="width:100%;">删除</a>
|
|
|
|
|
|
|
|
|
|
<if condition="$data['show_status'] eq 1">
|
|
|
|
|
<a class="froze-btn" href-hhh="{:U('TestWhiteList/edit_user1',array('user_id'=>$data['user_id'],'status'=>0,'account'=>$data['account']))}" style="width:100%;">锁定</a>
|
|
|
|
|
<else />
|
|
|
|
@ -151,6 +155,25 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$('.del_user').on({
|
|
|
|
|
click: function() {
|
|
|
|
|
var url = $(this).attr('href-hhh');
|
|
|
|
|
console.log(url);
|
|
|
|
|
layer.confirm('是否确认删除测试账号?', {icon: 3, title:'提示',skin:'textColor'}, function(index){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: url,
|
|
|
|
|
type: 'post',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function(response) {
|
|
|
|
|
layer.msg(response.msg, {time: 1000,skin:'msgClolor'}, function() {
|
|
|
|
|
window.location.href = window.location.href
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//搜索功能
|
|
|
|
|
$("#search").click(function () {
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|