fix:修改
This commit is contained in:
parent
61205bd973
commit
9f62b9e8c1
@ -1,9 +1,16 @@
|
|||||||
export const MatchResults = {
|
export const MatchResults = {
|
||||||
|
/** 足球 */
|
||||||
HAD: "胜平负",
|
HAD: "胜平负",
|
||||||
HHAD: "让球胜平负",
|
HHAD: "让球胜平负",
|
||||||
CRS: "比分",
|
CRS: "比分",
|
||||||
TTG: "总进球",
|
TTG: "总进球",
|
||||||
HAFU: "半全场胜平负",
|
HAFU: "半全场胜平负",
|
||||||
|
/*篮球*/
|
||||||
|
BK: "总分",
|
||||||
|
HDC:"让分胜负",
|
||||||
|
HILO: "大小分",
|
||||||
|
MNL:"胜负",
|
||||||
|
WNM: "胜分差"
|
||||||
};
|
};
|
||||||
|
|
||||||
// 添加 pickerOptions 配置,提供星期选项
|
// 添加 pickerOptions 配置,提供星期选项
|
||||||
|
|||||||
@ -32,3 +32,15 @@ export function processMatchResults(data) {
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export function processMatchResults2(arr) {
|
||||||
|
|
||||||
|
const res = arr.map(item => ({
|
||||||
|
...item,
|
||||||
|
codeName: MatchResults[item.code]
|
||||||
|
}));
|
||||||
|
|
||||||
|
return res
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@ -59,10 +59,14 @@
|
|||||||
<el-table-column label="联赛" prop="leagueAllName" :show-overflow-tooltip="true" />
|
<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="homeTeamAllName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="客队" prop="awayTeamAllName" />
|
<el-table-column label="客队" prop="awayTeamAllName" />
|
||||||
<el-table-column label="固定奖金" prop="matchId" >
|
<!-- <el-table-column label="固定奖金" prop="matchId" >
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" @click="handleJumpLink(scope.row)">查看</el-button>
|
<el-button link type="primary" @click="handleJumpLink(scope.row)">查看</el-button>
|
||||||
<!-- <el-popover placement="bottom" :width="360">
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
<el-table-column label="赛果" prop="matchId">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-popover placement="bottom" :width="360">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link type="primary" @dblclick="handleJumpLink(scope.row)">查看</el-button>
|
<el-button link type="primary" @dblclick="handleJumpLink(scope.row)">查看</el-button>
|
||||||
</template>
|
</template>
|
||||||
@ -71,23 +75,28 @@
|
|||||||
<el-table border :data="scope.row.matchResults">
|
<el-table border :data="scope.row.matchResults">
|
||||||
<el-table-column label="游戏" prop="matchNumStr">
|
<el-table-column label="游戏" prop="matchNumStr">
|
||||||
<template #default="item">
|
<template #default="item">
|
||||||
{{ item.row.code }}
|
{{ item.row.codeName || '-' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开赛结果" prop="reportSatus">
|
<el-table-column label="开赛结果" prop="reportSatus">
|
||||||
<template #default="item">
|
<template #default="item">
|
||||||
<el-tag type="error">{{ item.row.combinationDesc }}</el-tag>
|
<el-tag type="error">{{ item.row.combinationDesc || '-' }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="分值" prop="matchNumStr">
|
||||||
|
<template #default="item">
|
||||||
|
{{ item.row.goalLine || '-' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="奖金" prop="matchNumStr">
|
<el-table-column label="奖金" prop="matchNumStr">
|
||||||
<template #default="item">
|
<template #default="item">
|
||||||
{{ item.row.odds }}
|
{{ item.row.odds || '-' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-popover> -->
|
</el-popover>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛开始时间" align="center" prop="matchDateTime">
|
<el-table-column label="比赛开始时间" align="center" prop="matchDateTime">
|
||||||
@ -162,7 +171,7 @@
|
|||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink, processMatchResults2 } from "@/utils/tc"
|
||||||
import { timerToStr } from "@/utils/timer"
|
import { timerToStr } from "@/utils/timer"
|
||||||
import { PickerOptions, ModelsTypes } from "@/enums/tc"
|
import { PickerOptions, ModelsTypes } from "@/enums/tc"
|
||||||
|
|
||||||
@ -257,7 +266,12 @@ function getList() {
|
|||||||
data.endTime = undefined
|
data.endTime = undefined
|
||||||
}
|
}
|
||||||
bbInfo(data).then(response => {
|
bbInfo(data).then(response => {
|
||||||
roleList.value = response.rows
|
const res = response.rows.map(item => ({
|
||||||
|
...item,
|
||||||
|
matchResults: item.matchResults ? processMatchResults2(item.matchResults): null
|
||||||
|
}));
|
||||||
|
console.log(res);
|
||||||
|
roleList.value = res
|
||||||
total.value = response.total
|
total.value = response.total
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user