admin
2024-05-07 582b3f0e67e5bf2f5806b70600faaa89f44215a6
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){