From 21e96dec341d786094dd8359cc2dc65830a8018f Mon Sep 17 00:00:00 2001 From: lz-ui Date: Wed, 15 Oct 2025 17:03:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tc/eventAnalysisReport.js | 14 ++- src/assets/styles/reset.scss | 4 +- src/components/Markdown/MdEditorPreview.vue | 31 ++++++ src/enums/tc.js | 16 ++- src/views/operation/configModels/index.vue | 10 +- .../components/basketball.vue | 62 +++++++++-- .../eventAnalysisReport/components/soccer.vue | 52 +++++---- src/views/tc/eventAnalysisReport/detail.vue | 100 ++++++++++++++++-- 8 files changed, 249 insertions(+), 40 deletions(-) create mode 100644 src/components/Markdown/MdEditorPreview.vue diff --git a/src/api/tc/eventAnalysisReport.js b/src/api/tc/eventAnalysisReport.js index 2edbac0..5c42c2a 100644 --- a/src/api/tc/eventAnalysisReport.js +++ b/src/api/tc/eventAnalysisReport.js @@ -20,13 +20,23 @@ export function Info(data) { // 报告详情 -export function reportDetail(id) { +export function reportDetail(id, modelType) { return request({ - url: `/tc/report/${id}`, + url: `/tc/report/${id}?modelType=${modelType}`, method: 'get' }) } +// 详情 +export function detail(data) { + return request({ + url: '/tc/report/detail', + method: 'post', + data: data + }) +} + + // 联赛类型-足球 export function infoSelectDistinctLeagueAbbNames(data) { return request({ diff --git a/src/assets/styles/reset.scss b/src/assets/styles/reset.scss index d4ac07e..a79530c 100644 --- a/src/assets/styles/reset.scss +++ b/src/assets/styles/reset.scss @@ -110,7 +110,9 @@ .mr-8{ margin-right: 8px; } - +.mt-20{ + margin-top: 20px; +} .mb-20{ margin-bottom: 20px; } diff --git a/src/components/Markdown/MdEditorPreview.vue b/src/components/Markdown/MdEditorPreview.vue new file mode 100644 index 0000000..5d698dc --- /dev/null +++ b/src/components/Markdown/MdEditorPreview.vue @@ -0,0 +1,31 @@ + + + \ No newline at end of file diff --git a/src/enums/tc.js b/src/enums/tc.js index a5d2c6e..83e619d 100644 --- a/src/enums/tc.js +++ b/src/enums/tc.js @@ -38,7 +38,7 @@ export const PickerOptions = reactive([ }, ]); -/* 模型 */ +/* 模型-废弃 */ export const EnumsModels = [ { id: "26", @@ -113,3 +113,17 @@ export const EnumsModels = [ icon: '\n\t\n', }, ]; + +/**配置模型类型 */ +export const ModelsTypes = { + // 足球 + soccer: [ + { name: 'finyx足球', value: 'FINYX_F' }, + { name: 'uha足球', value: 'UHA_F' }, + ], + // 篮球 + basketball: [ + { name: 'finyx篮球', value: 'FINYX_B' }, + { name: 'uha篮球', value: 'UHA_B' }, + ] +} diff --git a/src/views/operation/configModels/index.vue b/src/views/operation/configModels/index.vue index 1c14b87..0f819f0 100644 --- a/src/views/operation/configModels/index.vue +++ b/src/views/operation/configModels/index.vue @@ -41,8 +41,8 @@ - - + @@ -72,8 +72,9 @@ - + + @@ -90,6 +91,7 @@