1
13693261870
2022-09-16 762f2fb45db004618ba099aa3c0bd89dba1eb843
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
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>服务管理</title>
    <link rel="stylesheet" href="js/layui/css/layui.css" media="all">
</head>
<style>
    .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"))); */
        layui.use("table", function () {
            table = layui.table;
            table.render({
                elem: "#test",
                url: restServerBaseURL+'/api/monitor/queryErrorSystem',
                cellMinwidth: "80",        
                parseData: function (res) {
                    return {
                        "code": 0,
                        "msg": "",
                        "count": res.count,
                        "data": res.errorsystem
                    }
                },
                cols: [
                        [{
                            type: 'checkbox'
                        },
                        {
                            field: 'APPID',
                            title: '应用系统id',
                            sort: true,
                            align: 'center',
                            edit: 'text'
                        },
                        {
                            field: 'ADDRESS',
                            title: '地址',
                            sort: true,
                            align: 'center'
                        },
                        {
                            field: 'STATUS',
                            title: '系统状态',
                            sort: true,
                            align: 'center',
                            edit: 'text'
                        },
                        {
                            field: 'CREATETIME',
                            title: '创建时间',
                            sort: true,
                            align: 'center',
                            edit: 'text'
                        },
                        {
                            field: 'PROBLEMREASON',
                            title: '出错原因',
                            sort: true,
                            align: 'center',
                            edit: 'text'
                        },
                        
                    ]
                ],
                page: true
            })
        
 
        })
 
 
    
 
    
    </script>
<div id="test"></div>
</body>
 
</html>