2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
222
223
224
225
<!--
功能描述:资源目录-图文列表
-->
 
<style type="text/css">
    .div_img:hover {
        box-shadow: 0px 0px 1px 1px #0094ff;
        -webkit-animation: blink 1s;
        animation: blink 1s;
    }
 
    @-webkit-keyframes blink {
        0% {
            opacity: 1
        }
 
        50% {
            opacity: .7
        }
 
        100% {
            opacity: 1
        }
    }
 
    @keyframes blink {
        0% {
            opacity: 1
        }
 
        50% {
            opacity: .7
        }
 
        100% {
            opacity: 1
        }
    }
 
    /*当鼠标悬浮到div上方是,给div添加阴影*/
    .jieguo {
        font-size: 20px !important;
        color: #004bb0 !important;
        margin-bottom: 15px !important;
        width: 90%;
        cursor: pointer;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: normal;
        line-height: normal;
 
        text-decoration: none;
        transition: 0.3s;
        -moz-transition: 0.3s; /* Firefox 4 */
        -webkit-transition: 0.3s; /* Safari 和 Chrome */
        -o-transition: 0.3s; /* Opera */
        float:left;
    }
 
    .jieguo > hover {
        transform: scale(1.1);
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: translateX(4px);
    }
 
    .div_zy {
        float: left;
        width: 50%;
        height: 185px;
        padding: 20px 0 0 0px;
        background-color: white;
    }
 
    .div_img {
        float: left;
        width: 192px;
        height: 107px;
    }
 
    .div_img img {
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
 
    .div_info {
        width: 56%;
        /*height: 100%;*/
        float: left;
        margin-left: 20px;
    }
 
    /*.div_info div:first-child {*/
        /*width: 100%;*/
        /*float: left;*/
        /*cursor: pointer;*/
        /*overflow: hidden;*/
        /*text-overflow: ellipsis;*/
        /*font-size: 16px;*/
        /*color: #0259FF;*/
        /*font-weight: bold;*/
        /*white-space: nowrap;*/
    /*}*/
 
    .div_info div {
        width: 100%;
        float: left;
        font-size: 15px;
        /*font-family: "Roboto", sans-serif;*/
        color: #8e8e8e;
        line-height: 23px;
    }
 
    .div_info div span {
        width: 100%;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    .ShuJuGuanJianZi {
        font-size: 12px;
        background-color: #B6DAFA;
        padding: 3px 8px;
        border-radius: 4px;
    }
 
    .pagination {
        float: right;
        margin: 13px 15px;
    }
    .error_btn
    {
        float: left;
        width: 46px;
        height: 26px;
        padding-left: 8px;
        padding-top: 2px;
        background-color: #1bd402;
        border:0;
    }
    .jieguo{
        width:84%;
    }
</style>
<div width="100%" style="display: flex;flex-wrap: wrap;" xmlns:th="http://www.w3.org/1999/xhtml">
    <div th:each="Ziyuan,ZiyuanStat:${ZyList}" class="div_zy">
        <div>
            <div class="jieguo" th:onclick="'javascript:OpenZiYuan('+${Ziyuan.resourceid}+')'" th:title="${Ziyuan.title}" th:text="${Ziyuan.title}"></div>
                <button type="button" class="btn btn-primary error_btn" th:value="${Ziyuan.resourceid}" >正常</button>
        </div>
        <div class="div_img" th:onclick="'javascript:OpenZiYuan('+${Ziyuan.resourceid}+')'">
            <img th:src="${Ziyuan.imgurl}"/>
        </div>
        <div class="div_info">
            <div><span th:text="'资源类型:'+${Ziyuan.resourceclass}"></span>
                <!--<span th:if="${Ziyuan.status == 1}">| 资源状态:<span style="color: #f01c00;">【异常】</span></span>-->
                <!--<span th:if="${Ziyuan.status == 3}">| 资源状态:<span style="color: #f01c00;">【注销】</span></span>-->
            </div>
            <div><span th:text="'发布时间:'+${Ziyuan.pubdate}"></span></div>
            <div><span th:text="'发布单位:'+${Ziyuan.pubunitname}"></span></div>
            <div><span th:text="'发布人:'+${Ziyuan.createusername}"></span></div>
            <!--<div>-->
                <!--&lt;!&ndash;<span th:text="'关键字:'+${Ziyuan.Keywords}"></span>&ndash;&gt;-->
                <!--<span class="td-title">数据关键字:</span>-->
                <!--<span class="ShuJuGuanJianZi" th:each="item:${Ziyuan.list}" th:if="${Ziyuan.Keywords!=''}"-->
                      <!--th:text="${item}"></span>-->
            <!--</div>-->
        </div>
    </div>
</div>
<div class="row-fluid" style="border-radius: 10px; height: 60px; line-height: 60px; box-shadow: 0px 0px 1px 1px #bfbfbf; background-color: white;margin-top: 30px;">
    <span style="color: grey; font-size: 16px; margin-left: 25px;">搜索到<span th:text="${Count}"></span>条结果</span>
    <input th:value="${Page}" type="hidden" id="curren"/>
    <input th:value="${Count}" type="hidden" id="total"/>
    <div id="Paginator" class="pagination">
    </div>
</div>
 
<script th:inline="javascript">
    /*<![CDATA[*/
    $(function () {
    var count = [[${pageSize}]];
    if(count%2 == 0) {
        $(".div_zy:not(:last-child):not(:nth-last-child(2))").css("border-bottom", "1px #c6c6c6 solid");
    }
    else {
        $(".div_zy:not(:last-child)").css("border-bottom", "1px #c6c6c6 solid");
    }
    })
    /*]]>*/
</script>
<script>
    $(document).ready(function(){
        $(".error_btn").on("mouseover",function()
        {
            if ($(this).css("background-color")!= "rgb(255, 0, 0)")
            {
                $(this).css("background-color","#1bd402");
            }
 
        });
        $.ajax({
            url:lanCatalog+'/monitor/jitmonitor/warningIdList',
            dataType:"json",
            type:"get",
            success:function(response){
                //获取异常请求列表判断接口状态
                $("button").each(function(){
 
                   if ($.inArray(Number($(this).attr("value")),response.data)>=0)
                   {
                      $(this).css("background-color","red");
                      $(this).text("异常");
                   }
                });
            }
 
        });
    });
</script>