|
@@ -16,6 +16,7 @@
|
16
|
16
|
href="../librarys/bootstrapValidator@0.5.3/bootstrapValidator.css"
|
17
|
17
|
/>
|
18
|
18
|
<link rel="stylesheet" href="../css/comm.css" />
|
|
19
|
+ <link rel="stylesheet" href="../css/header.css" />
|
19
|
20
|
<style>
|
20
|
21
|
body {
|
21
|
22
|
background-color: #fff;
|
|
@@ -59,7 +60,17 @@
|
59
|
60
|
</style>
|
60
|
61
|
</head>
|
61
|
62
|
<body>
|
62
|
|
- <div class="top_header_root" data-header_page="history"></div>
|
|
63
|
+ <div class="top_header_root" data-header_page="history">
|
|
64
|
+ <div class="header_html_root">
|
|
65
|
+ <div class="header_html_item" data-url="index">用户信息</div>
|
|
66
|
+ <div class="header_html_item" data-url="history">发展历程</div>
|
|
67
|
+ <div class="header_html_item" data-url="service">服务案例</div>
|
|
68
|
+ <div class="header_html_item" data-url="school">学校图标</div>
|
|
69
|
+ <div class="header_html_item" data-url="trial">申请试用</div>
|
|
70
|
+ <div class="header_html_item" data-url="news">新闻资讯</div>
|
|
71
|
+ <div class="header_html_item" data-url="log">登录日志</div>
|
|
72
|
+ </div>
|
|
73
|
+ </div>
|
63
|
74
|
<div class="history_main">
|
64
|
75
|
<div class="header_box">
|
65
|
76
|
<div class="header_left">
|
|
@@ -123,11 +134,22 @@
|
123
|
134
|
<script src="../utils/index.js"></script>
|
124
|
135
|
<script>
|
125
|
136
|
$(function () {
|
|
137
|
+ let page_url = $(".top_header_root").data("header_page");
|
|
138
|
+ $(
|
|
139
|
+ '.header_html_root .header_html_item[data-url="' + page_url + '"]'
|
|
140
|
+ ).addClass("selected");
|
|
141
|
+ $(".header_html_root").on("click", ".header_html_item", function () {
|
|
142
|
+ let _url = $(this).data("url");
|
|
143
|
+ if (_url === "index") {
|
|
144
|
+ window.location.href = "/index.html";
|
|
145
|
+ } else {
|
|
146
|
+ window.location.href = "/sections/" + _url + ".html";
|
|
147
|
+ }
|
|
148
|
+ });
|
126
|
149
|
if (!$.isLogin()) {
|
127
|
150
|
window.location.href = "/sections/login.html";
|
128
|
151
|
return;
|
129
|
152
|
}
|
130
|
|
- $(".top_header_root").load("./header.html");
|
131
|
153
|
let historySearch = {
|
132
|
154
|
page: Number($.getQueryletiable("page")) || 1,
|
133
|
155
|
size: 10,
|
|
@@ -231,24 +253,24 @@
|
231
|
253
|
"</td><td>" +
|
232
|
254
|
(_historyItem.dhmonth ? _historyItem.dhmonth : "") +
|
233
|
255
|
"</td><td>" +
|
234
|
|
- (_historyItem.content ? _historyItem.content : "") +
|
|
256
|
+ (_historyItem.ltype === 1 ? "中文" : "英文") +
|
235
|
257
|
"</td><td>" +
|
236
|
|
- (_historyItem.userstate === 1 ? "正常" : "已删除") +
|
|
258
|
+ (_historyItem.content ? _historyItem.content : "") +
|
237
|
259
|
"</td><td>" +
|
238
|
260
|
(_historyItem.createname ? _historyItem.createname : "") +
|
239
|
261
|
"</td><td>" +
|
240
|
262
|
$.dateFormat(_historyItem.createtime) +
|
241
|
|
- '</td><td><span class="my_theme_color action_btn modify_btn" data-userid="' +
|
242
|
|
- _historyItem.userid +
|
243
|
|
- '">修改</span><span class="my_theme_color">|</span><span class="del_color action_btn del_btn" data-userid="' +
|
244
|
|
- _historyItem.userid +
|
|
263
|
+ '</td><td><span class="my_theme_color action_btn modify_btn" data-dhid="' +
|
|
264
|
+ _historyItem.dhid +
|
|
265
|
+ '">修改</span><span class="my_theme_color">|</span><span class="del_color action_btn del_btn" data-dhid="' +
|
|
266
|
+ _historyItem.dhid +
|
245
|
267
|
'">删除</span></td></tr>';
|
246
|
268
|
});
|
247
|
269
|
$(".historyTableBody").html(historyTableBodyHtml);
|
248
|
|
- let del_userid = null;
|
|
270
|
+ let del_dhid = null;
|
249
|
271
|
$(".historyTableBody").on("click", ".del_btn", function () {
|
250
|
272
|
$("#userDelModal").modal("show");
|
251
|
|
- del_userid = $(this).data("userid");
|
|
273
|
+ del_dhid = $(this).data("dhid");
|
252
|
274
|
});
|
253
|
275
|
$("#userDelModal .del_save").on("click", function () {
|
254
|
276
|
$.ajax({
|
|
@@ -257,7 +279,7 @@
|
257
|
279
|
dataType: "json",
|
258
|
280
|
contentType: "application/json; charset=utf-8",
|
259
|
281
|
data: JSON.stringify({
|
260
|
|
- userid: del_userid,
|
|
282
|
+ dhid: del_dhid,
|
261
|
283
|
}),
|
262
|
284
|
success: function (data) {
|
263
|
285
|
$("#userDelModal").modal("hide");
|
|
@@ -276,6 +298,10 @@
|
276
|
298
|
});
|
277
|
299
|
});
|
278
|
300
|
}
|
|
301
|
+ function setPageList() {
|
|
302
|
+
|
|
303
|
+ }
|
|
304
|
+ getHistoryList();
|
279
|
305
|
});
|
280
|
306
|
</script>
|
281
|
307
|
</body>
|