From 582b3f0e67e5bf2f5806b70600faaa89f44215a6 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 07 五月 2024 16:01:33 +0800 Subject: [PATCH] 可转债 --- kp_html/kp/js/code_list.js | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/kp_html/kp/js/code_list.js b/kp_html/kp/js/code_list.js index 5945752..47c4b53 100644 --- a/kp_html/kp/js/code_list.js +++ b/kp_html/kp/js/code_list.js @@ -73,7 +73,9 @@ kpl_open_limit_up_count_rank:[], // 澶у崟涔板崠鏁伴噺 big_buy_order_count:0, - big_sell_order_count:0 + big_sell_order_count:0, + // 杩囨护鐨勭储寮� + filter_indexes:[] }, watch: { @@ -168,6 +170,7 @@ } http_util.get_l2_h_cancel_datas(app.code, app.operate_index, function(res) { res = JSON.parse(res); + console.log("H鎾ゆ暩鎿�",res) if (res.code == 0) { app.h_cancel_indexes = res.data; } @@ -459,9 +462,21 @@ }, need_show: function(item) { + if(app.filter_indexes.length>0){ + if(app.filter_indexes.indexOf(item[2][0])>=0) + { + return true; + }else{ + return false; + } + } + + if(app.real_order_indexes.includes( item[2][0])){ return true; } + + if (app.hidden_canceled && (item[2][6].indexOf('涔版挙') >= 0 || (item[2][8] != null && item[2][8].indexOf("-") > 0))) { @@ -552,6 +567,7 @@ app.refresh_l2_data(); } }); + app.get_l2_cant_buy_reasons(app.origin_code); http_util.get_open_limit_up_count_rank(null,function(res){ res = JSON.parse(res); @@ -616,6 +632,18 @@ }else{ app.l2_max_volume=null; } + watch_indexes_str = $("#watch_indexes").val(); + if(watch_indexes_str!=null&&watch_indexes_str.length>0){ + var final_indexes=[]; + var indexes = watch_indexes_str.split(","); + indexes.forEach(function(e){ + final_indexes.push(parseInt(e)); + }); + app.filter_indexes = final_indexes; + console.log("閫変腑绱㈠紩锛�",final_indexes); + }else{ + app.filter_indexes =[]; + } }, fordbidden_buy:function(code){ -- Gitblit v1.8.0