金币收支页面 优化提示
(cherry picked from commit d26436d11695a6adadab20d0133761bf2aa57da6)
This commit is contained in:
parent
9bdedc76c3
commit
f5c2e11d14
@ -57,6 +57,7 @@
|
|||||||
filterable
|
filterable
|
||||||
style="width: 180px"
|
style="width: 180px"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
|
:class="{ 'select-error': gameIdError }"
|
||||||
:disabled="!gameFilter.gameOrigin"
|
:disabled="!gameFilter.gameOrigin"
|
||||||
:loading="gameListLoading"
|
:loading="gameListLoading"
|
||||||
@change="onGameSelect"
|
@change="onGameSelect"
|
||||||
@ -242,6 +243,7 @@ export default {
|
|||||||
},
|
},
|
||||||
gameList: [],
|
gameList: [],
|
||||||
gameListLoading: false,
|
gameListLoading: false,
|
||||||
|
gameIdError: false,
|
||||||
minDate: null,
|
minDate: null,
|
||||||
maxDate: null,
|
maxDate: null,
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
@ -396,6 +398,11 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
|
if (this.gameFilter.gameOrigin && !this.gameFilter.gameConfigId) {
|
||||||
|
this.gameIdError = true
|
||||||
|
this.$opsMessage.warn('请选择游戏ID')
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.listQuery.origin !== '') {
|
if (this.listQuery.origin !== '') {
|
||||||
const origins = this.currencyOrigins.filter(this.createFilter(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
|
this.listQuery.origin = origins.length > 0 ? origins[0].value : this.listQuery.origin
|
||||||
@ -447,6 +454,7 @@ export default {
|
|||||||
// 选中某个游戏:拼装 origin 并触发搜索
|
// 选中某个游戏:拼装 origin 并触发搜索
|
||||||
onGameSelect(id) {
|
onGameSelect(id) {
|
||||||
if (!id) return
|
if (!id) return
|
||||||
|
this.gameIdError = false
|
||||||
const game = this.gameList.find(item => item.id === id)
|
const game = this.gameList.find(item => item.id === id)
|
||||||
if (game) {
|
if (game) {
|
||||||
const gameIdPart = game.gameOrigin === 'ZGAME' ? 'tk_' + game.gameId : game.gameId
|
const gameIdPart = game.gameOrigin === 'ZGAME' ? 'tk_' + game.gameId : game.gameId
|
||||||
@ -456,6 +464,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 清空游戏筛选:同步清空 origin
|
// 清空游戏筛选:同步清空 origin
|
||||||
onGameFilterClear() {
|
onGameFilterClear() {
|
||||||
|
this.gameIdError = false
|
||||||
this.gameFilter.gameOrigin = ''
|
this.gameFilter.gameOrigin = ''
|
||||||
this.gameFilter.gameConfigId = ''
|
this.gameFilter.gameConfigId = ''
|
||||||
this.gameList = []
|
this.gameList = []
|
||||||
@ -481,3 +490,14 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.select-error {
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
border-color: #f56c6c;
|
||||||
|
&:focus {
|
||||||
|
border-color: #f56c6c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user