From f5c2e11d14339d002caf3470078c89db2b53fc39 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 26 May 2026 16:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E5=B8=81=E6=94=B6=E6=94=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=20=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit d26436d11695a6adadab20d0133761bf2aa57da6) --- src/views/order/candy/running-water/index.vue | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/views/order/candy/running-water/index.vue b/src/views/order/candy/running-water/index.vue index 8752731..aa7bba0 100644 --- a/src/views/order/candy/running-water/index.vue +++ b/src/views/order/candy/running-water/index.vue @@ -57,6 +57,7 @@ filterable style="width: 180px" class="filter-item" + :class="{ 'select-error': gameIdError }" :disabled="!gameFilter.gameOrigin" :loading="gameListLoading" @change="onGameSelect" @@ -242,6 +243,7 @@ export default { }, gameList: [], gameListLoading: false, + gameIdError: false, minDate: null, maxDate: null, pickerOptions: { @@ -396,6 +398,11 @@ export default { }) }, handleSearch() { + if (this.gameFilter.gameOrigin && !this.gameFilter.gameConfigId) { + this.gameIdError = true + this.$opsMessage.warn('请选择游戏ID') + return + } if (this.listQuery.origin !== '') { const origins = this.currencyOrigins.filter(this.createFilter(this.listQuery.origin)) this.listQuery.origin = origins.length > 0 ? origins[0].value : this.listQuery.origin @@ -447,6 +454,7 @@ export default { // 选中某个游戏:拼装 origin 并触发搜索 onGameSelect(id) { if (!id) return + this.gameIdError = false const game = this.gameList.find(item => item.id === id) if (game) { const gameIdPart = game.gameOrigin === 'ZGAME' ? 'tk_' + game.gameId : game.gameId @@ -456,6 +464,7 @@ export default { }, // 清空游戏筛选:同步清空 origin onGameFilterClear() { + this.gameIdError = false this.gameFilter.gameOrigin = '' this.gameFilter.gameConfigId = '' this.gameList = [] @@ -481,3 +490,14 @@ export default { } + +