|
|
@@ -59,19 +59,19 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="action-buttons">
|
|
|
- <Button @click="refreshData">
|
|
|
+ <Button @click="refreshData" :disabled="buttonDisabled">
|
|
|
刷新数据
|
|
|
</Button>
|
|
|
- <Button @click="runTest(true)">
|
|
|
+ <Button @click="runTest(true)" :disabled="buttonDisabled">
|
|
|
有欢乐值
|
|
|
</Button>
|
|
|
- <Button @click="runTest(false)">
|
|
|
+ <Button @click="runTest(false)" :disabled="buttonDisabled">
|
|
|
无欢乐值
|
|
|
</Button>
|
|
|
- <Button @click="verifyData">
|
|
|
+ <Button @click="verifyData" :disabled="buttonDisabled">
|
|
|
验证数据
|
|
|
</Button>
|
|
|
- <Button @click="filterLive">
|
|
|
+ <Button @click="filterLive" :disabled="buttonDisabled">
|
|
|
筛选滚球
|
|
|
</Button>
|
|
|
</div>
|
|
|
@@ -97,6 +97,7 @@ const currentTime = ref('');
|
|
|
const gamesRelation = ref([]);
|
|
|
const gamesSolution = ref({});
|
|
|
const selectedTestMode = ref('');
|
|
|
+const buttonDisabled = ref(false);
|
|
|
|
|
|
const prettyData = ref(null);
|
|
|
const prettyDeep = ref(0);
|
|
|
@@ -110,6 +111,7 @@ const updateTime = () => {
|
|
|
}
|
|
|
|
|
|
const refreshData = () => {
|
|
|
+ buttonDisabled.value = true;
|
|
|
updateTime();
|
|
|
Promise.all([
|
|
|
requestClient.get('/pstery/get_games_relation', { params: { mk: selectedTestMode.value } }),
|
|
|
@@ -126,6 +128,9 @@ const refreshData = () => {
|
|
|
.catch(err => {
|
|
|
message.error('数据刷新失败');
|
|
|
console.error('数据刷新失败', err);
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ buttonDisabled.value = false;
|
|
|
});
|
|
|
}
|
|
|
|