From 91b9e77132a76376b19adefce6ebfd22b0864457 Mon Sep 17 00:00:00 2001 From: lz-ui Date: Fri, 24 Oct 2025 16:39:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/enums/tc.js | 9 +- .../report/components/Prediction.vue | 8 +- src/views/operation/report/index.vue | 22 ++--- src/views/tc/hotContestList/index.vue | 97 +++++++++---------- 4 files changed, 67 insertions(+), 69 deletions(-) diff --git a/src/enums/tc.js b/src/enums/tc.js index 93c870f..e39db2c 100644 --- a/src/enums/tc.js +++ b/src/enums/tc.js @@ -123,18 +123,23 @@ const EnumsModelsTitle = { /**配置模型类型 */ export const ModelsTypes = { - // 足球 + /** 足球 */ soccer: [ { name: 'Finyx-AI模型', value: 'FINYX_F', title: EnumsModelsTitle['Finyx-AI'] }, // { name: 'Uha模型', value: 'UHA_F', title: EnumsModelsTitle['Uha'] }, { name: 'D3-Index模型', value: 'D3_F', title: EnumsModelsTitle['D3-Index'] }, { name: '红单专家', value: 'HONG_F', title: EnumsModelsTitle['HONG'] }, ], - // 篮球 + /** 篮球 */ basketball: [ { name: 'Finyx-AI模型', value: 'FINYX_B', title: EnumsModelsTitle['Finyx-AI'] }, // { name: 'Uha模型', value: 'UHA_B', title: EnumsModelsTitle['Uha'] }, { name: 'D3-Index模型', value: 'D3_B', title: EnumsModelsTitle['D3-Index'] }, { name: '红单专家', value: 'HONG_B', title: EnumsModelsTitle['HONG'] }, + ], + /* 热门比赛 */ + hot: [ + { name: 'D3-Index模型', value: 'HOT_F', title: EnumsModelsTitle['D3-Index'] }, ] } + diff --git a/src/views/operation/report/components/Prediction.vue b/src/views/operation/report/components/Prediction.vue index 830ded9..28090ca 100644 --- a/src/views/operation/report/components/Prediction.vue +++ b/src/views/operation/report/components/Prediction.vue @@ -11,10 +11,10 @@
红半
-
+
-
+
黑半
@@ -120,5 +120,9 @@ defineExpose({ background-color: #f56c6c; color: #fff; } +.is-active-black { + background-color: #333; + color: #fff; +} \ No newline at end of file diff --git a/src/views/operation/report/index.vue b/src/views/operation/report/index.vue index fe753de..47fb191 100644 --- a/src/views/operation/report/index.vue +++ b/src/views/operation/report/index.vue @@ -87,8 +87,12 @@ 查看 - diff --git a/src/views/tc/hotContestList/index.vue b/src/views/tc/hotContestList/index.vue index 2f4c3e2..ee728f8 100644 --- a/src/views/tc/hotContestList/index.vue +++ b/src/views/tc/hotContestList/index.vue @@ -61,32 +61,6 @@ @@ -94,36 +68,27 @@ {{ parseTime(scope.row.matchDateTime) }} - - - - + @@ -149,7 +114,7 @@ import { jumpLink } from "@/utils/tc" import { timerToStr } from "@/utils/timer" import { processMatchResults } from "@/utils/tc" import { onActivated } from "vue" -import { PickerOptions } from "@/enums/tc" +import { PickerOptions, ModelsTypes } from "@/enums/tc" const router = useRouter() const { proxy } = getCurrentInstance() @@ -178,6 +143,32 @@ const data = reactive({ const { queryParams } = toRefs(data) +/** 检查按钮是否禁用 */ +function isBtnDisabled(row, modelType) { + let disabled = true + if(row.reportDetails && row.reportDetails.length) { + row.reportDetails.forEach(item => { + if(item.modelType == modelType && item.reportStatus == 1) { + disabled = false + } + }) + } + return disabled +} + +function isBtnTimer(row, modelType){ + let res = '待更新' + if(row.reportDetails && row.reportDetails.length) { + row.reportDetails.forEach(item => { + if(item.modelType == modelType && item.reportStatus == 1) { + res = timerToStr(item.reportTime, 'HH:mm') + '更新' + } + }) + } + return res +} + + // 处理星期选择变化 function handleWeekdayChange(value) { // 当用户通过快捷选项选择星期时触发 @@ -222,15 +213,15 @@ function handleJumpLink(row) { } /** 查看详情 */ -function handleView(row) { +function handleView(row, modelType) { if (row.reportSatus != 1) { return } - // window.open(window.location.origin + '/#/tc/eventAnalysisReport/detail?id=' + row.matchId) router.push({ path: '/tc/eventAnalysisReport/detail', query: { - id: row.matchId + id: row.matchId, + modelType } }) }