|
|
@@ -74,6 +74,9 @@
|
|
|
<Button @click="filterLive" :disabled="buttonDisabled">
|
|
|
筛选滚球
|
|
|
</Button>
|
|
|
+ <Button @click="filterHalf" :disabled="buttonDisabled">
|
|
|
+ 筛选中场
|
|
|
+ </Button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -204,6 +207,17 @@ const filterLive = () => {
|
|
|
console.log('liveSolutions', liveSolutions);
|
|
|
}
|
|
|
|
|
|
+const filterHalf = () => {
|
|
|
+ const solutions = gamesSolution.value.solutions;
|
|
|
+ const halfSolutions = solutions.filter((solution) => {
|
|
|
+ const { info: { ob, hg, ps } } = solution;
|
|
|
+ return ps.stage === 'HT';
|
|
|
+ });
|
|
|
+ dataCount.value = `${halfSolutions.length}`;
|
|
|
+ showDataPretty(halfSolutions, 2);
|
|
|
+ console.log('halfSolutions', halfSolutions);
|
|
|
+}
|
|
|
+
|
|
|
// const currentTime = ref('')
|
|
|
|
|
|
// const updateTime = () => {
|