sbd-npm 1.5.13 → 1.5.16

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/constant.js CHANGED
@@ -39,6 +39,7 @@ const MenuList = [
39
39
  'icon': 'edit',
40
40
  'menu': [
41
41
  {'key': 'trend_boll_breakthrough', 'name': '布林中轨突破', 'url': '/0x948dafbd3c218b21bb8a63e75ba0dcf01c48cf05'},
42
+ {'key': 'trend_upside_gap', 'name': '跳空', 'url': '/0x6d45b8fbb09097a8f0b74d7dba86d033e2e8169d'},
42
43
  {'key': 'trend_boll_lower_band', 'name': '布林下轨统计分析', 'url': '/0x3b8132154797a6971a73da743122cb1e8a3c22ca', 'is_hide': 1},
43
44
  {'key': 'trend_price', 'name': '股价阶段涨跌幅度', 'url': '/0x84527c7c3487b39afd820f2b309355cd75c01653'},
44
45
  {'key': 'trend_day3_stabilize', 'name': '连续三日收涨', 'url': '/0x7e9df652521f334030e0be383f5fe10f01a67243'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.13",
3
+ "version": "1.5.16",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -75,13 +75,12 @@ $(function () {
75
75
  handle_status: function () {
76
76
  Util.post(location.pathname, {active_div: localStorage[Status.tab_token], date: $("#ip_date").val()}, function (j) {
77
77
  let html = [];
78
- if (!$("#start_time").length) {
79
- html.push("<tr><th width='25%'>系统时区</th><td>", Status.map_url(j.timezone), "</td>");
78
+ if (!document.getElementById("start_time")) {
79
+ let error_tips = j.error_num > 0 ? ("class='danger' title='" + j.error_num + "' ") : "";
80
+ html.push("<tr><th ", error_tips, "width='25%'>系统时区</th><td>", Status.map_url(j.timezone), "</td>");
80
81
  html.push("<th id='start_time' width='25%'>服务器运行时间</th><td colspan='3'>", Util.seconds_to_format(j.start_time), "(" + j.up_time + ")</td></tr>");
81
82
  html.push("<tr><th>数据库最后同步时间</th><td>", Util.seconds_to_format(j.sync_end_time), "</td>");
82
83
  html.push("<th>数据库句柄更新时间</th><td colspan='3'>", Util.seconds_to_format(j.db_time), "</td></tr>");
83
- html.push("<tr><th>成交量最后同步时间</th><td>", Util.seconds_to_format(j.sync_amount_time), "</td>");
84
- html.push("<th>位置数据最后同步时间</th><td colspan='3'>", Util.seconds_to_format(j.location_time), "</td></tr>");
85
84
  // 数据库
86
85
  html.push("<tr><th>数据库版本</th><td>", j.db_version, "</td>");
87
86
  let mysql_connections = "<a data-toggle='modal' data-target='.mysql_process_modal'><b>" + j.mysql_process_num + "</b></a> / " + j.max_connections;
package/util.js CHANGED
@@ -1979,15 +1979,14 @@ const Util = {
1979
1979
  if (!document.getElementById(component_id + "_start_date")) {
1980
1980
  Util.init_date_range_picker(component_id + "_start_end_date", Util, "render_btc_modal", 60);
1981
1981
  }
1982
- let title_obj = $("#" + component_id + "_title");
1983
- title_obj.html(coin);
1984
- title_obj.attr("data-coin", coin);
1982
+ $("#" + component_id + "_title").html(coin).attr("data-coin", coin);
1985
1983
  $("#" + component_id + "_query").click(function () {
1986
1984
  Util.render_btc_modal();
1987
1985
  });
1988
1986
  Util.render_btc_modal();
1989
1987
  });
1990
1988
  component_obj.on('hidden.bs.modal', function () { // 此事件在模态框被隐藏(并且同时在 CSS 过渡效果完成)之后被触发
1989
+ Util.set_table_loading("btc_modal_body_body");
1991
1990
  Util.hide_tips();
1992
1991
  });
1993
1992
  },