3
13693261870
2022-09-16 63ba114e70e380442fcbed4a5157ee52c9491216
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
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>服务管理</title>
      <script src="../lanwebapp/js/paramconfig.js"></script>
    <link rel="stylesheet" href="js/layui/css/layui.css" media="all">
</head>
<style>
  /*异常资源
     异常应用
     在线人员
     访问日志 http://wwww.nmsmp.com:8082/res/manage/actionrecord/index
  */
  
 
    
    .fromsys {
        height: 38px;
 
    }
 
    .searchgroup {
        width: 100%;
        height: 100%;
        margin-top: 20px;
    }
 
    .layui-btn,
    .layui-laypage-em {
        background-color: #659cff !important;
    }
 
    select[name='fromsys']{
        width: 90px;
        border-color: #e6e6e6;
        border-radius: 2px;
        text-align: center!important;
text-indent: 0.1rem;
    }
    select[name='fromsys'] option{
        width:90px;
        text-align: center!important;
        /* text-indent: 1rem; */
 
    }
</style>
 
<body>
    <script src="js/layui/layui.js" charset="utf-8"></script>
    <script src="js/jquery.js" charset="utf-8"></script>
    <script>
        var table = null;
        var resourcedata = [];
        function getQueryString(name){
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}
     var res=JSON.parse(decodeURI(getQueryString("data")));
     if(res==null || res=='' ||res==undefined||res==[]){
         
         alert("数据为空");
         //windows.close();
     }
    //  var res=[{"userid":"1","username":"张三","uptime":"2233"},
    //  {"userid":"2","username":"张三","uptime":"2233"},
    //  {"userid":"3","username":"张三","uptime":"2233"}];
        layui.use("table", function () {
            table = layui.table;
            table.render({
                elem: "#test",
                data: res,
                cellMinwidth: "80",
                cols: [
                    [{
                            type: 'checkbox'
                        },
                        {
                            field: 'USERID',
                            title: '用户id',
                            sort: true,
                            align: 'center',
                            edit: 'text'
                        },
                        {
                            field: 'CHINESENAME',
                            title: '用户名',
                            sort: true,
                            align: 'center'
                        }/* ,
                        {
                            field: 'uptime',
                            title: '上线时间',
                            sort: true,
                            align: 'center',
                            edit: 'text'
                        }, */
                        
                    ]
                ],
                page: true
            })
        
 
        })
 
 
    
 
    
    </script>
<div id="test"></div>
</body>
 
</html>