sbd-npm 1.1.90 → 1.1.93
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/menu.js +9 -9
- package/package.json +1 -1
- package/util.js +10 -1
package/menu.js
CHANGED
@@ -32,15 +32,6 @@ const MenuList = [
|
|
32
32
|
{'key': 'daily_block', 'name': '大宗交易', 'url': '/3eec763b6402d5327a2f1d8964f78c93'},
|
33
33
|
]
|
34
34
|
},
|
35
|
-
{
|
36
|
-
'name': '沪深港股通',
|
37
|
-
'icon': 'cogs',
|
38
|
-
'menu': [
|
39
|
-
{'key': 'hsgt_flow', 'name': '资金流向', 'url': '/e0c6105a6de37e91aa886c70d2227948'},
|
40
|
-
{'key': 'hsgt_trade_stock', 'name': '成交股统计', 'url': '/521e408d5c995460426beba4d039df06'},
|
41
|
-
{'key': 'hsgt_hkex_holding', 'name': '港资持股比例', 'url': '/4cb33e167aca1978b304af3bbe6ea2dd'},
|
42
|
-
]
|
43
|
-
},
|
44
35
|
{
|
45
36
|
'name': '趋势分析',
|
46
37
|
'icon': 'edit',
|
@@ -62,6 +53,15 @@ const MenuList = [
|
|
62
53
|
{'key': 'trend_query', 'name': '趋势查询', 'url': '/7a7cec0124836383ad76faa457d19403'},
|
63
54
|
]
|
64
55
|
},
|
56
|
+
{
|
57
|
+
'name': '沪深港股通',
|
58
|
+
'icon': 'cogs',
|
59
|
+
'menu': [
|
60
|
+
{'key': 'hsgt_flow', 'name': '资金流向', 'url': '/e0c6105a6de37e91aa886c70d2227948'},
|
61
|
+
{'key': 'hsgt_trade_stock', 'name': '成交股统计', 'url': '/521e408d5c995460426beba4d039df06'},
|
62
|
+
{'key': 'hsgt_hkex_holding', 'name': '港资持股比例', 'url': '/4cb33e167aca1978b304af3bbe6ea2dd'},
|
63
|
+
]
|
64
|
+
},
|
65
65
|
{
|
66
66
|
'name': '宏观数据',
|
67
67
|
'icon': 'globe',
|
package/package.json
CHANGED
package/util.js
CHANGED
@@ -651,6 +651,7 @@ const Util = {
|
|
651
651
|
if (options["head_cols"]) {
|
652
652
|
let is_table_sort = 0;
|
653
653
|
let is_tooltip = 0;
|
654
|
+
let head_length = options["head_cols"].length;
|
654
655
|
let _html = [];
|
655
656
|
if (options["alert"]) {
|
656
657
|
_html.push('<div class="alert alert-info" role="alert">');
|
@@ -697,6 +698,12 @@ const Util = {
|
|
697
698
|
if (col["class"]) {
|
698
699
|
td_class.push(col["class"]);
|
699
700
|
}
|
701
|
+
if (col["colspan"]) {
|
702
|
+
if (col["colspan"] > 1) {
|
703
|
+
head_length += (col["colspan"] - 1);
|
704
|
+
}
|
705
|
+
td_attr += ' colspan="' + col["colspan"] + '"';
|
706
|
+
}
|
700
707
|
if (col["table_sort"]) {
|
701
708
|
is_table_sort = 1;
|
702
709
|
td_class.push("table_sort");
|
@@ -725,7 +732,7 @@ const Util = {
|
|
725
732
|
});
|
726
733
|
_html.push('</tr></thead>');
|
727
734
|
_html.push('<tbody id="', options["element_id"], '_body"><tr>');
|
728
|
-
_html.push('<td class="text-center" colspan="',
|
735
|
+
_html.push('<td class="text-center" colspan="', head_length, '">', (options["body_tips"] ? options["body_tips"] : "Loading..."), '</td>');
|
729
736
|
_html.push('</tr></tbody>');
|
730
737
|
_html.push('</table>');
|
731
738
|
let tz_obj = $("#" + options["element_id"]);
|
@@ -826,6 +833,7 @@ const Util = {
|
|
826
833
|
{"name": "最高价"},
|
827
834
|
{"name": "最低价"},
|
828
835
|
{"name": "年初至今", "table_sort": 1},
|
836
|
+
{"name": "近5日", "table_sort": 1},
|
829
837
|
{"name": "52周最高", "table_sort": 1}
|
830
838
|
];
|
831
839
|
if (stock_category !== "us") {
|
@@ -876,6 +884,7 @@ const Util = {
|
|
876
884
|
_html.push("<td id='high_", item["code"], "'>0</td>");
|
877
885
|
_html.push("<td id='low_", item["code"], "'>0</td>");
|
878
886
|
_html.push("<td class='year_price_", item["code"], "'>", (item["stock_price"] ? Util.year_price_rate(item["stock_price"], item["year_price"]) : "--"), "</td>");
|
887
|
+
_html.push("<td class='d5_price_", item["code"], "'>", (item["stock_price"] ? Util.year_price_rate(item["stock_price"], item["d5_price"]) : "--"), "</td>");
|
879
888
|
_html.push("<td class='high_52week_", item["code"], "'>--</td>");
|
880
889
|
if (is_us === 0) {
|
881
890
|
_html.push("<td id='amount_", item["code"], "'>--</td>");
|