<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>转发代理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
	<link rel="stylesheet" href="../css/public.css" media="all">
</head>
<body>
<div class="layuimini-container">
	<div class="layuimini-main">
		<table class="layui-hide" id="forwardParaTableId" lay-filter="forwardParaTableFilter"></table>
	</div>

</div>
<script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script th:inline="none">
    layui.use(['form', 'table'], function () {
        var $ = layui.$,
            form = layui.form,
            table = layui.table;

		/**
		 **   推送参数组
		 **/
		table.render({
		    elem: '#forwardParaTableId',
		    url: '/fwd/agents',
		    cols: [[
		        {field: 'name', title: '名称'},
		        {field: 'description', title: '描述'},
				{field: 'updatetime', title: '更新时间', templet: "<div>{{layui.util.toDateString(d.updatetime, 'yyyy-MM-dd HH:mm:ss')}}</div>"},
				{field: 'fwd_device_num', title: '推送设备数'},
				{field: 'result', title: '推送结果',templet: "<div>{{d.result==1?'成功':'失败'}}</div>"}
			]],
		    limit: 10,
		    page: true,
		    skin: 'line'
		});

    });

</script>

</body>
</html>