| | |
| | | kpl_open_limit_up_count_rank:[], |
| | | // 大单买卖数量 |
| | | big_buy_order_count:0, |
| | | big_sell_order_count:0 |
| | | big_sell_order_count:0, |
| | | // 过滤的索引 |
| | | filter_indexes:[] |
| | | |
| | | }, |
| | | watch: { |
| | |
| | | } |
| | | 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; |
| | | } |
| | |
| | | }, |
| | | 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))) { |
| | |
| | | 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); |
| | |
| | | }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){ |