fix:添加热门比赛列表
This commit is contained in:
parent
a0061c445e
commit
2a81d298c5
11
src/api/tc/hot.js
Normal file
11
src/api/tc/hot.js
Normal file
@ -0,0 +1,11 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
// 热门足球列表
|
||||
export function hotMatchList(data) {
|
||||
return request({
|
||||
url: '/hot/match/list',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -2,10 +2,10 @@
|
||||
<div class="app-container">
|
||||
<!-- 搜索区域 -->
|
||||
<el-form :model="queryParams" ref="queryRef" v-show="showSearch" :inline="true" label-width="80px">
|
||||
<el-form-item label="赛事编号" prop="matchNumStr">
|
||||
<!-- <el-form-item label="赛事编号" prop="matchNumStr">
|
||||
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
|
||||
@keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="联赛类型" prop="leagueAbbName">
|
||||
<el-select v-model="queryParams.leagueAbbName" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
|
||||
<el-option
|
||||
@ -22,9 +22,9 @@
|
||||
start-placeholder="开始日期" end-placeholder="结束日期" style="width: 240px"></el-date-picker>
|
||||
</el-form-item> -->
|
||||
|
||||
<el-form-item label="时间" prop="weekday">
|
||||
<el-form-item label="时间" prop="weekDay">
|
||||
<el-select
|
||||
v-model="queryParams.weekday"
|
||||
v-model="queryParams.weekDay"
|
||||
style="width: 240px"
|
||||
@change="handleWeekdayChange"
|
||||
clearable
|
||||
@ -32,9 +32,9 @@
|
||||
>
|
||||
<el-option
|
||||
v-for="item in PickerOptions"
|
||||
:key="item.value"
|
||||
:key="item.text"
|
||||
:label="item.text"
|
||||
:value="item.value"
|
||||
:value="item.text"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -54,11 +54,11 @@
|
||||
<div v-else-if="pageList.length && !loading">
|
||||
<!-- 表格数据 -->
|
||||
<el-table v-loading="loading" :data="pageList">
|
||||
<el-table-column label="赛事编号" prop="matchNumStr" />
|
||||
<el-table-column label="联赛" prop="leagueAllName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="主队" prop="homeTeamAllName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="赛事编号" prop="matchDate" />
|
||||
<el-table-column label="联赛" prop="leagueAbbName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="主队" prop="homeTeamAbbName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="客队" prop="awayTeamAbbName" />
|
||||
<el-table-column label="固定奖金" prop="matchId">
|
||||
<el-table-column label="赛果" prop="matchId">
|
||||
<template #default="scope">
|
||||
<!-- <el-button link type="primary" @click="handleJumpLink(scope.row)">查看</el-button> -->
|
||||
<el-popover placement="bottom" :width="360">
|
||||
@ -143,7 +143,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||
import { infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||
import { hotMatchList } from "@/api/tc/hot"
|
||||
import { jumpLink } from "@/utils/tc"
|
||||
import { timerToStr } from "@/utils/timer"
|
||||
import { processMatchResults } from "@/utils/tc"
|
||||
@ -166,9 +167,9 @@ const data = reactive({
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
matchNumStr: undefined,
|
||||
// matchNumStr: undefined,
|
||||
leagueAbbName: undefined,
|
||||
weekday: undefined,
|
||||
weekDay: undefined,
|
||||
},
|
||||
rules: {},
|
||||
})
|
||||
@ -194,7 +195,7 @@ function getList() {
|
||||
// data.beginTime = undefined
|
||||
// data.endTime = undefined
|
||||
// }
|
||||
Info(data).then(response => {
|
||||
hotMatchList(data).then(response => {
|
||||
const res = response.rows.map(item => ({
|
||||
...item,
|
||||
matchResults: item.matchResults ? processMatchResults(item.matchResults): null
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user