flyzto hai 3 meses
pai
achega
eab00e08c4
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      web/apps/web-antd/src/views/match/datatest/index.vue

+ 12 - 0
web/apps/web-antd/src/views/match/datatest/index.vue

@@ -68,6 +68,9 @@
           <button class="btn btn-secondary" @click="verifyData">
             验证数据
           </button>
+          <button class="btn btn-secondary" @click="filterLive">
+            筛选滚球
+          </button>
         </div>
       </div>
     </div>
@@ -129,6 +132,15 @@ const verifyData = () => {
   console.log('invalidSolutions', invalidSolutions);
 }
 
+const filterLive = () => {
+  const solutions = gamesSolution.value.solutions;
+  const liveSolutions = solutions.filter((solution) => {
+    const { info: { ob, hg, ps } } = solution;
+    return ps.stage;
+  });
+  console.log('liveSolutions', liveSolutions);
+}
+
 // const currentTime = ref('')
 
 // const updateTime = () => {