sbd-npm 1.4.86 → 1.4.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/status.js +10 -3
package/package.json
CHANGED
package/status.js
CHANGED
@@ -178,7 +178,7 @@ $(function () {
|
|
178
178
|
|
179
179
|
fetch_mysql_access_data: function() {
|
180
180
|
Util.show_loading();
|
181
|
-
Util.post(location.pathname, {"active_div": "mysql_access"}, function (j) {
|
181
|
+
Util.post(location.pathname, {"active_div": "mysql_access", "filter_type": $("#mysql_access_filter").val()}, function (j) {
|
182
182
|
let html = [], ip_num = 0;
|
183
183
|
j["data"].forEach(function (item) {
|
184
184
|
ip_num++;
|
@@ -196,7 +196,7 @@ $(function () {
|
|
196
196
|
html.push("</tr>");
|
197
197
|
});
|
198
198
|
Util.render_table_html("mysql_access_modal_body_body", html);
|
199
|
-
$("#mysql_access_summary").html(" 共 <span class='label label-info'>" +
|
199
|
+
$("#mysql_access_summary").html(" 共 <span class='label label-info'>" + j["total_len"] + "</span> 条,屏蔽 <span class='label label-danger'>" + j["block_len"] + "</span> 条");
|
200
200
|
$("#mysql_access_modal_body_body .block_ip").each(function() {
|
201
201
|
$(this).click(function() {
|
202
202
|
let ip = $(this).parent().parent().children('td').eq(1).text();
|
@@ -1642,6 +1642,7 @@ $(function () {
|
|
1642
1642
|
Status.fetch_mysql_process_data();
|
1643
1643
|
});
|
1644
1644
|
mpm_obj.on('hidden.bs.modal', function () {
|
1645
|
+
$("#mysql_process_summary").html("");
|
1645
1646
|
Util.set_table_loading("mysql_process_modal_body_body");
|
1646
1647
|
});
|
1647
1648
|
|
@@ -1651,7 +1652,7 @@ $(function () {
|
|
1651
1652
|
"element_id": "mysql_access_modal_body",
|
1652
1653
|
"caption": '<caption class="' + (Util.is_mobile() ? "text-left" : "text-right") + '" id="mysql_access_summary"></caption>',
|
1653
1654
|
"head_cols": [
|
1654
|
-
{"name": "
|
1655
|
+
{"name": "", "select_id": "mysql_access_filter", "select_options": [{"key": "0", "val": "全部"},{"key": "1", "val": "正常"},{"key": "2", "val": "屏蔽"}]},
|
1655
1656
|
{"name": "IP", "table_sort": 1, "tooltip": "IP地址(Internet Protocol Address)是指互联网协议地址"},
|
1656
1657
|
{"name": "地址信息", "table_sort": 1},
|
1657
1658
|
{"name": "连接次数", "table_sort": 1},
|
@@ -1659,11 +1660,17 @@ $(function () {
|
|
1659
1660
|
{"name": "最后一次连接时间", "class": "info", "table_sort": 1},
|
1660
1661
|
]
|
1661
1662
|
});
|
1663
|
+
$("#mysql_access_filter").change(function() {
|
1664
|
+
$("#mysql_access_summary").html("");
|
1665
|
+
Util.set_table_loading("mysql_access_modal_body_body");
|
1666
|
+
Status.fetch_mysql_access_data();
|
1667
|
+
});
|
1662
1668
|
let mam_obj = $('#mysql_access_modal');
|
1663
1669
|
mam_obj.on('shown.bs.modal', function (e) {
|
1664
1670
|
Status.fetch_mysql_access_data();
|
1665
1671
|
});
|
1666
1672
|
mam_obj.on('hidden.bs.modal', function () {
|
1673
|
+
$("#mysql_access_summary").html("");
|
1667
1674
|
Util.set_table_loading("mysql_access_modal_body_body");
|
1668
1675
|
});
|
1669
1676
|
|