fix: 修改热门赛事列表

This commit is contained in:
lz-ui 2025-10-24 17:35:02 +08:00
parent 91b9e77132
commit d932dcdf2b

View File

@ -144,26 +144,18 @@ const data = reactive({
const { queryParams } = toRefs(data) const { queryParams } = toRefs(data)
/** 检查按钮是否禁用 */ /** 检查按钮是否禁用 */
function isBtnDisabled(row, modelType) { function isBtnDisabled(row) {
let disabled = true let disabled = true
if(row.reportDetails && row.reportDetails.length) { if(row.reportDetail && row.reportDetail.reportStatus === 1) {
row.reportDetails.forEach(item => { disabled = false
if(item.modelType == modelType && item.reportStatus == 1) {
disabled = false
}
})
} }
return disabled return disabled
} }
function isBtnTimer(row, modelType){ function isBtnTimer(row){
let res = '待更新' let res = '待更新'
if(row.reportDetails && row.reportDetails.length) { if(row.reportDetail && row.reportDetail.reportTime) {
row.reportDetails.forEach(item => { res = timerToStr(row.reportDetail.reportTime, 'HH:mm') + '更新'
if(item.modelType == modelType && item.reportStatus == 1) {
res = timerToStr(item.reportTime, 'HH:mm') + '更新'
}
})
} }
return res return res
} }
@ -214,7 +206,7 @@ function handleJumpLink(row) {
/** 查看详情 */ /** 查看详情 */
function handleView(row, modelType) { function handleView(row, modelType) {
if (row.reportSatus != 1) { if (!row.reportDetail || (row.reportDetail && row.reportDetail.reportStatus != 1)) {
return return
} }
router.push({ router.push({