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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!--
功能描述:应用程序-图文列表
-->
<style type="text/css">
    .div_zy {
        float: left;
        width: 525px;
        height: 180px;
        /*padding: 7px 0 0 15px;*/
        background-color: white;
        border-radius: 10px;
        box-shadow: 0px 0px 1px 1px #bfbfbf;
        margin-bottom: 12px;
        /*border-bottom: 1px solid #E0DEDB;*/
    }
 
    .div_zy:nth-child(2n) {
        margin-left: 7px;
    }
 
    .div_zy:hover {
        background-color: #ebf8fe;
    }
 
    .div_zy:hover .div_img {
        -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_img {
        float: left;
        width: 114px;
        height: 72px;
    }
 
    .div_img img {
        /*width: 100%;*/
        /*height: 100%;*/
        cursor: pointer;
        margin-top: 16px;
        margin-left: 20px;
        width: 94px;
        height: 96px;
    }
 
    .div_info {
        width: 73%;
        /*height: 100%;*/
        float: left;
        font-size: 16px;
        margin-left: 15px;
        margin-top: 6px;
        line-height: 28px;
    }
 
    #div_title {
        /*width: 100%;*/
        /*float: left;*/
        font-size: 20px;
        color: #2B56BF;
        cursor: pointer;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    .appButton {
        color: #fff;
        background-color: #039cfd;
        border-color: #039cfd;
        float: right;
    }
 
    .div_info div {
        overflow-x: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    .div_info div:not(:first-child) {
        width: 100%;
        float: left;
    }
 
    /*边框公共样式*/
    .div_border {
        box-shadow: 0px 0px 1px 1px #bfbfbf;
    }
 
    .pagination {
        margin: 13px 15px;
        float: right;
    }
 
    /*.pagination > li > a, .pagination > li > span {*/
        /*margin: 0 5px;*/
        /*color: #5C5C5C;*/
    /*}*/
</style>
<div width="100%" xmlns:th="http://www.w3.org/1999/xhtml">
    <div th:each="Ziyuan,ZiyuanStat:${SysList}" class="div_zy">
        <div id="div_title" >
            <div style='margin-top:20px;margin-left: 35px;' th:onclick="'javascript:OpenSystem(\''+${Ziyuan.sysaddress}+'\')'" th:title="${Ziyuan.appfullname}">
                <span style="font-size: 16px;color: white;padding: 2px 15px;border-radius: 5px;background-color: #2B85FF;" th:text="${Ziyuan.systype}"></span>
                <span th:text="${Ziyuan.appfullname}"></span>
            </div>
        </div>
        <div class="div_img" th:onclick="'javascript:OpenSystem(\''+${Ziyuan.sysaddress}+'\')'" th:title="${Ziyuan.remark}">
            <img th:if="${#lists.isEmpty(Ziyuan.sysimgurl)}" src="/image/NewMenHu/sys.png" />
            <img th:if="${not #lists.isEmpty(Ziyuan.sysimgurl)}" th:src="${Ziyuan.sysimgurl}" />
        </div>
        <div class="div_info">
            <div><span th:text="'单位名称:'+${Ziyuan.unitname}"></span><span th:if="${not #lists.isEmpty(Ziyuan.chinesename)}" th:text="'('+${Ziyuan.chinesename}+')'" title="系统负责人"></span></div>
            <div style="text-overflow: ellipsis;overflow: hidden;white-space: nowrap;"><span>系统地址:<a style="color: grey;" th:href="${Ziyuan.sysaddress}" th:text="${Ziyuan.sysaddress}"></a></span></div>
            <div>
                <span>系统状态:</span>
                <span th:if="${Ziyuan.sysstatusname} == '正常'" th:text="'系统'+${Ziyuan.sysstatusname}"></span>
                <span th:if="${Ziyuan.sysstatusname} == '暂停'" style="background-color: #FF6B6B;padding: 0px 12px;color: #FFFFFF;" th:text="'系统'+${Ziyuan.sysstatusname}"></span>
                <span th:if="${Ziyuan.iscaslogin} == 1" style="display:none;background-color: #1bb99a;padding: 0px 12px;color: #FFFFFF;">集成单点登录</span>
 
            </div>
            <><span th:text="'浏览器推荐:'"></span>
                <img src="/image/Systeminfo/IEicon.png" style="margin-bottom: 4px;" />
                <span th:if="${not #lists.isEmpty(Ziyuan.browser)}" th:text="${Ziyuan.browser}"></span>
                <button onclick="test(this)" class="appButton" th:value="${Ziyuan}">申请系统</button>
<!--                <input type="button" class="appButton" value="申请系统" />-->
                <div id="myDialog" closed="true"></div>
            </div>
 
        </div>
    </div>
</div>
<div id="pagediv" class="row-fluid" style="float:left;width: 100%;margin-bottom: 50px; height: 60px;box-shadow: 0px 0px 1px 1px #bfbfbf;border-radius: 10px;background-color: white;line-height: 60px;">
    <span style="font-size: 16px;margin-left: 25px;color: grey;">搜索到<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 type="text/javascript" th:inline="javascript" >
    var obj;
    var template;
    var content;
    var modal;
    $(function () {
        var count = [[${Count}]];
        $("#countNum").text(count);
        // $("#div_bg").css("height",$("#pagebody").height() - 115 +'px');
        $("#pagediv").css("width",$(".div_right").width() - 3 +'px');
    });
 
    function test(param) {
        let div=document.getElementById("tokenPanel");
        obj=JSON.parse(param.value);
        obj.date=new Date();
         template = `
        <div class="modal fade" id="tokenPanel">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                        <h4 class="modal-title" id="tokenPanelClose">系统申请信息</h4>
                    </div>
                    <div class="modal-body">
                        customHtml
                    </div>
                    <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" id="closeBtn">关闭</button>
<!--                    <button type="button" class="btn btn-default" onclick="close()">关闭</button>-->
                    <button type="button" class="btn btn-primary" onclick="apply()">确认</button>
                    </div>
                </div>
            </div>
        </div>
    `;
 
         content = `
        <div class="form-group" >
            <div class="input-group">
                <span class="input-group-addon">申请系统:</span>
                <input id="applySys" type="text" class="form-control" value="${obj.appfullname}" style="text-align: center" readonly />
            </div>
        </div>
        <div class="form-group" >
            <div class="input-group">
                <span class="input-group-addon">系统管理:</span>
                <input id="applyMana" type="text" class="form-control" value="${obj.chinesename}" style="text-align: center" readonly/>
            </div>
        </div>
        <div class="form-group">
            <div class="input-group">
                <span class="input-group-addon">申请日期:</span>
                <input id="applyDate" type="text" class="form-control" value="${obj.date.getFullYear()}/${obj.date.getMonth()+1}/${obj.date.getDate()}" style="text-align: center" readonly />
            </div>
        </div>
        <div class="form-group">
            <div class="input-group">
                <span class="input-group-addon">申请理由:</span>
                <input id="appreason" type="text" class="form-control"  style="text-align: center" placeholder="请填写申请该系统理由,便于管理员审批"/>
            </div>
        </div>
        `;
        template = template.replace('customHtml', content);
        $("body").append(template);
        debugger
        modal = $("#tokenPanel");
        modal.modal();
        $("#applySys").val(obj.appfullname);
        $("#applyMana").val(obj.chinesename);
        $("#applyDate").val(obj.date.getFullYear()+'/'+(obj.date.getMonth()+1)+'/'+obj.date.getDate());
        $("#appreason").val(null);
    }
    function close() {
        let div=document.getElementById("tokenPanel");
        div.style.display="none";
    }
    function apply() {
        obj.appreason=$("#appreason").val();
        const record = {};
        record.apptype=3;
        record.sysid=obj.appid;
        record.appreason=obj.appreason;
        $.ajax(
            {type:"POST",
             url:"/res/manage/applyrecommend/saveSysApply",//添加系统申请的接口
             // url:"http://localhost:8082/res/manage/applyrecommend/saveSysApply",//添加系统申请的接口
             data:record,
             dataType:"json",
             success:function (data) {
                 if(data.code==0){
                     modal.modal("hide");
                     try {
                         $("body").remove($("#tokenPanel"));
                     }
                     catch (ex) {
                     }
                     alert("系统申请成功,请等待管理员审批")
                 }
             }
            }
        );
 
    }
 
</script>