From 0924402695b0f947b3b4d670f8314bf29eaa05e0 Mon Sep 17 00:00:00 2001 From: lz-ui Date: Tue, 21 Oct 2025 17:17:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/operation/report/index.vue | 84 ++++++++++++++++++- src/views/tc/eventAnalysisReport/detail.vue | 23 +++-- .../tc/videoScript/components/soccer.vue | 12 +-- src/views/tc/videoScript/detail.vue | 3 +- 4 files changed, 106 insertions(+), 16 deletions(-) diff --git a/src/views/operation/report/index.vue b/src/views/operation/report/index.vue index 7d0b033..67cfedf 100644 --- a/src/views/operation/report/index.vue +++ b/src/views/operation/report/index.vue @@ -87,11 +87,43 @@ 查看 + @@ -229,6 +261,52 @@ function handleJumpLink(row) { jumpLink(row.matchId, 1) } +function reportResultsModelType(arr){ + const res = {} + arr.forEach(item => { + res[item.modelType] = [ + { + lable: '胜平负', + value: item.result, + key: 'result' + }, + { + lable: '让分胜平负', + value: item.hhadResult, + key: 'hhadResult' + }, + { + lable: '比分', + value: item.scoreResult, + key: 'scoreResult' + }, + { + lable: '进球数', + value: item.goalsResult, + key: 'goalsResult' + }, + { + lable: '半全场', + value: item.halfFullResult, + key: 'halfFullResult' + }, + { + lable: '亚盘', + value: item.asianHandicap, + key: 'asianHandicap' + } + ] + }) + return res; +} +function farmatReportResults(list) { + const res = list.map(item => ({ + ...item, + farmatReportResults: item.reportResults ? reportResultsModelType(item.reportResults): {} + })); + return res; +} + /** 查询列表 */ function getList() { loading.value = true @@ -245,7 +323,9 @@ function getList() { ...item, matchResults: item.matchResults ? processMatchResults(item.matchResults): null })); - pageList.value = res + // 格式化reportResults + pageList.value = farmatReportResults(res) + console.log(pageList.value) total.value = response.total }).finally(() => { loading.value = false diff --git a/src/views/tc/eventAnalysisReport/detail.vue b/src/views/tc/eventAnalysisReport/detail.vue index 76c389d..99722a8 100644 --- a/src/views/tc/eventAnalysisReport/detail.vue +++ b/src/views/tc/eventAnalysisReport/detail.vue @@ -7,8 +7,8 @@ {{ data && data.reportTime && timerToStr(data.reportTime, 'YYYY-MM-DD HH:mm:ss') }} - - + + -
+

1.比赛基础信息

@@ -39,7 +39,19 @@
-
+ + + + + + + + +
{{ parseTime(scope.row.matchDateTime) }} - +