|
|
@@ -79,6 +79,9 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="data-table" v-if="prettyData">
|
|
|
+ <div class="data-count" v-if="dataCount">
|
|
|
+ <span>数据总数:{{ dataCount }}</span>
|
|
|
+ </div>
|
|
|
<vue-json-pretty :data="prettyData" :indent="2" :deep="prettyDeep" :showDoubleQuotes="false"></vue-json-pretty>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -101,6 +104,7 @@ const buttonDisabled = ref(false);
|
|
|
|
|
|
const prettyData = ref(null);
|
|
|
const prettyDeep = ref(0);
|
|
|
+const dataCount = ref('');
|
|
|
|
|
|
watch(selectedTestMode, () => {
|
|
|
refreshData();
|
|
|
@@ -171,6 +175,7 @@ const runTest = (hasSolutions=true) => {
|
|
|
const serial = index + 1;
|
|
|
return { serial, ...item };
|
|
|
});
|
|
|
+ dataCount.value = `${dataList.length} / ${gamesList.length}`;
|
|
|
showDataPretty(dataList, 2);
|
|
|
console.log('gamesRelation', dataList);
|
|
|
}
|