|
|
@@ -76,7 +76,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="data-table" v-if="prettyData">
|
|
|
- <vue-json-pretty :data="prettyData" :indent="prettyIndent" :deep="prettyDeep"></vue-json-pretty>
|
|
|
+ <vue-json-pretty :data="prettyData" :indent="2" :deep="prettyDeep" :showDoubleQuotes="false"></vue-json-pretty>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -95,7 +95,6 @@ const gamesSolution = ref({});
|
|
|
const selectedTestMode = ref('');
|
|
|
|
|
|
const prettyData = ref(null);
|
|
|
-const prettyIndent = ref(2);
|
|
|
const prettyDeep = ref(0);
|
|
|
|
|
|
const updateTime = () => {
|
|
|
@@ -122,10 +121,11 @@ const showDataPretty = (data, deep) => {
|
|
|
}
|
|
|
|
|
|
const runTest = () => {
|
|
|
- const gamesList = gamesRelation.value.map(item => {
|
|
|
+ const gamesList = gamesRelation.value.map((item, index) => {
|
|
|
+ const serial = index + 1;
|
|
|
const { eventId, leagueId, leagueName, teamHomeName, teamAwayName, timestamp } = item?.rel?.ps ?? {};
|
|
|
const datetime = dayjs(timestamp).format('YYYY-MM-DD HH:mm:ss');
|
|
|
- return { eventId, leagueId, leagueName, teamHomeName, teamAwayName, datetime };
|
|
|
+ return { serial, eventId, leagueId, leagueName, teamHomeName, teamAwayName, datetime };
|
|
|
});
|
|
|
gamesSolution.value.solutions.forEach((solution) => {
|
|
|
const { sid, info: { id }} = solution;
|