sbd-npm 1.4.99 → 1.5.0

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/status.js +2 -1
  3. package/util.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.4.99",
3
+ "version": "1.5.0",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -1669,7 +1669,7 @@ $(function () {
1669
1669
  });
1670
1670
 
1671
1671
  Util.init_modal_skeleton("mysql_access_modal");
1672
- $("#mysql_access_modal_title").html("连接 MySQL IP 日志统计数据");
1672
+ $("#mysql_access_modal_title").html("连接MySQL的IP日志统计数据");
1673
1673
  Util.init_table_skeleton({
1674
1674
  "element_id": "mysql_access_modal_body",
1675
1675
  "caption": '<caption class="' + (Util.is_mobile() ? "text-left" : "text-right") + '" id="mysql_access_summary"></caption>',
@@ -1689,6 +1689,7 @@ $(function () {
1689
1689
  });
1690
1690
  let mam_obj = $('#mysql_access_modal');
1691
1691
  mam_obj.on('shown.bs.modal', function (e) {
1692
+ $("#mysql_access_filter").val("0");
1692
1693
  Status.fetch_mysql_access_data();
1693
1694
  });
1694
1695
  mam_obj.on('hidden.bs.modal', function () {
package/util.js CHANGED
@@ -1797,7 +1797,7 @@ const Util = {
1797
1797
  Util.hide_tips();
1798
1798
  });
1799
1799
  let ctt_obj = $("#category_top_type");
1800
- ctt_obj.find("option[value='" + category_top_type + "']").attr("selected", true);
1800
+ ctt_obj.val(category_top_type);
1801
1801
  ctt_obj.change(function() {
1802
1802
  Util.render_category_top_modal();
1803
1803
  });
@@ -2159,7 +2159,7 @@ const Util = {
2159
2159
  html.push('</select>');
2160
2160
  let obj = $("#" + component_id);
2161
2161
  obj.html(html.join(""));
2162
- obj.find("option[value='" + (select_val > 0 ? select_val : 100) + "']").attr("selected", true);
2162
+ obj.val(select_val > 0 ? select_val : 100);
2163
2163
  },
2164
2164
 
2165
2165
  /**
@@ -3619,7 +3619,7 @@ const Util = {
3619
3619
  }
3620
3620
  nth -= 1;
3621
3621
  });
3622
- obj.find("option[value='" + option_val + "']").attr("selected", true);
3622
+ obj.val(option_val);
3623
3623
  },
3624
3624
 
3625
3625
  /**
@@ -3637,7 +3637,7 @@ const Util = {
3637
3637
  }
3638
3638
  });
3639
3639
  if (option_val !== "") {
3640
- obj.find("option[value='" + option_val + "']").attr("selected", true);
3640
+ obj.val(option_val);
3641
3641
  } else {
3642
3642
  Util.set_option_selected(obj, 100);
3643
3643
  }