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 @@
查看
-
-
+
+
+ finyx-AI
+ D3-index
+
+
@@ -101,8 +105,8 @@
-
-
+
+
@@ -115,15 +119,9 @@
-
-
+
+
-
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) }}
-
-
- 已生成
- 未生成
-
-
-
+
- D3-Index模型
+ {{ item.name }}
-
-
-
-
-
-
-
-
D3-Index是通过AI数据模型,在海量的联赛数据中通过交易规模、历史战绩、受注热度、指数波动、状态等维度,深度训练和学习,最终给出严正的分析结果来供用户参考。
-
-
+
+
+
+
+
+
+
+
-
+
分析结果
- {{ scope.row.reportSatus === 1? timerToStr(scope.row.reportTime, 'HH:mm') : '待' }}更新
+ {{ isBtnTimer(scope.row, item.value) }}
-
@@ -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
}
})
}