@golstats/gsc-lineups-reports 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -4,6 +4,10 @@ import GSCMatchSummary from './components/gsc-lineups-reports.vue'
|
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
6
|
<div style="max-width: 968px; height: auto">
|
|
7
|
-
<GSCMatchSummary
|
|
7
|
+
<GSCMatchSummary
|
|
8
|
+
:game="{ game_id: 90572, season_id: 2015, prematch: true }"
|
|
9
|
+
:gamehome="{ game_id: 90564, season_id: 2015, prematch: true }"
|
|
10
|
+
:gameaway="{ game_id: 90565, season_id: 2015, prematch: true }"
|
|
11
|
+
/>
|
|
8
12
|
</div>
|
|
9
13
|
</template>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<!-- Aquí va tu contenido -->
|
|
4
|
-
<GSCLineups :game="game" selected-option="
|
|
4
|
+
<GSCLineups :game="game" :gamehome="gamehome" :gameaway="gameaway" selected-option="Prematch" />
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
@@ -14,6 +14,14 @@ defineProps({
|
|
|
14
14
|
type: Object,
|
|
15
15
|
default: () => {},
|
|
16
16
|
},
|
|
17
|
+
gamehome: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => {},
|
|
20
|
+
},
|
|
21
|
+
gameaway: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => {},
|
|
24
|
+
},
|
|
17
25
|
})
|
|
18
26
|
|
|
19
27
|
// Función para manejar el evento onOpenProfile
|
|
@@ -287,10 +287,19 @@ export default {
|
|
|
287
287
|
type: Boolean,
|
|
288
288
|
default: false,
|
|
289
289
|
},
|
|
290
|
+
|
|
290
291
|
game: {
|
|
291
292
|
type: Object,
|
|
292
293
|
default: () => {},
|
|
293
294
|
},
|
|
295
|
+
gamehome: {
|
|
296
|
+
type: Object,
|
|
297
|
+
default: () => {},
|
|
298
|
+
},
|
|
299
|
+
gameaway: {
|
|
300
|
+
type: Object,
|
|
301
|
+
default: () => {},
|
|
302
|
+
},
|
|
294
303
|
selectedOption: {
|
|
295
304
|
type: String,
|
|
296
305
|
default: 'Prematch',
|
|
@@ -315,7 +324,7 @@ export default {
|
|
|
315
324
|
return {
|
|
316
325
|
lastGetLineUpGameId: '',
|
|
317
326
|
lastGetMXMUrl: '',
|
|
318
|
-
selectOptMenuheader: '
|
|
327
|
+
selectOptMenuheader: 'Probables',
|
|
319
328
|
token:
|
|
320
329
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE',
|
|
321
330
|
tokenPremium:
|
|
@@ -829,7 +838,17 @@ export default {
|
|
|
829
838
|
if (newValue != oldValue) {
|
|
830
839
|
if (this.selectedOption !== 'Postmatch') {
|
|
831
840
|
if (newValue === 'Probables') {
|
|
832
|
-
|
|
841
|
+
setTimeout(() => {
|
|
842
|
+
this.auxProbablesIDGameHome = this.gamehome.game_id
|
|
843
|
+
this.auxProbablesIDGameAway = this.gameaway.game_id
|
|
844
|
+
|
|
845
|
+
this.cleaneDataAway()
|
|
846
|
+
this.cleaneDataHome()
|
|
847
|
+
this.getLineUpProbablesHome3D(this.gamehome.game_id)
|
|
848
|
+
this.getLineUpProbablesAway3D(this.gameaway.game_id)
|
|
849
|
+
|
|
850
|
+
this.lastSection = newValue
|
|
851
|
+
}, 300)
|
|
833
852
|
}
|
|
834
853
|
if (newValue === 'Historicos') {
|
|
835
854
|
if (this.gamesHistoric[0]) {
|
|
@@ -2277,7 +2296,6 @@ export default {
|
|
|
2277
2296
|
)
|
|
2278
2297
|
}
|
|
2279
2298
|
}
|
|
2280
|
-
|
|
2281
2299
|
await this.getMXM(game)
|
|
2282
2300
|
} catch (e) {
|
|
2283
2301
|
return Promise.reject(e)
|