|
|
|
@ -54,7 +54,7 @@ const pregame = { |
|
|
|
|
<div><span class="label">Player 1:</span><d-playerElem v-index="active" @click="selectPlayer(0)" :player="page.players[0]"></d-playerElem></div> |
|
|
|
|
<div><span class="label">Player 2:</span><d-playerElem v-index="active" @click="selectPlayer(1)" :player="page.players[1]"></d-playerElem></div> |
|
|
|
|
<div><span class="label">X01:</span><d-plainElem v-index="active" @click="selectX01()" :text="page.modus"></d-plainElem></div> |
|
|
|
|
<div><span class="label">Out:</span><d-plainElem v-index="active" @click="selectIn()" :text="page.in"></d-plainElem></div> |
|
|
|
|
<div><span class="label">In:</span><d-plainElem v-index="active" @click="selectIn()" :text="page.in"></d-plainElem></div> |
|
|
|
|
<!-- <div><span class="label">Best of Sets:</span><d-inputElem v-index="active" v-model="page.sets"></d-inputElem></div> --> |
|
|
|
|
<div><span class="label">Best of Legs (per Set):</span><d-inputElem v-index="active" v-model="page.legs"></d-inputElem></div> |
|
|
|
|
<div><d-plainElem text="Start" v-index="active" @click="$emit('resolve', page)"></d-plainElem></div> |
|
|
|
@ -127,8 +127,7 @@ const player = { |
|
|
|
|
props: ['page', 'id', 'current_stat'], |
|
|
|
|
setup(props) { |
|
|
|
|
const addStats = (stat1, stat2) => { |
|
|
|
|
console.log(stat1); |
|
|
|
|
return { |
|
|
|
|
let res = { |
|
|
|
|
average: [stat1.average[0]+stat2.average[0], stat1.average[1]+stat2.average[1]], |
|
|
|
|
first9: [stat1.first9[0]+stat2.first9[0], stat1.first9[1]+stat2.first9[1]], |
|
|
|
|
"60+": stat1["60+"]+stat2["60+"], |
|
|
|
@ -138,6 +137,12 @@ const player = { |
|
|
|
|
"checkouts": [stat1.checkouts[0]+stat2.checkouts[0], stat1.checkouts[1]+stat2.checkouts[1]], |
|
|
|
|
"checkoutPoints": [...stat1.checkoutPoints, ...stat2.checkoutPoints] |
|
|
|
|
} |
|
|
|
|
if ("checkins" in stat1 && "checkins" in stat2){ |
|
|
|
|
res["checkins"] = [stat1.checkins[0]+stat2.checkins[0], stat1.checkins[1]+stat2.checkins[1]]; |
|
|
|
|
res["checkinPoints"] = [...stat1.checkinPoints, ...stat2.checkinPoints];
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return res; |
|
|
|
|
} |
|
|
|
|
const inspect = !!props.page.enddate; |
|
|
|
|
const tourStats = computed(() => { |
|
|
|
|