fix:添加主队客队
This commit is contained in:
parent
00f2ccce95
commit
96981fc32f
@ -279,8 +279,6 @@ function tableColumnActive(row, modelType, key) {
|
||||
return '';
|
||||
}
|
||||
|
||||
console.log(reportData)
|
||||
|
||||
// 根据key值获取对应字段的值并判断是否应该添加active类
|
||||
const value = reportData[key];
|
||||
if (value && value === '1') {
|
||||
@ -365,6 +363,16 @@ function reportResultsModelType(arr){
|
||||
const res = {}
|
||||
arr.forEach(item => {
|
||||
res[item.modelType] = [
|
||||
{
|
||||
lable: '主队',
|
||||
value: item.homeTeam,
|
||||
key: 'result'
|
||||
},
|
||||
{
|
||||
lable: '客队',
|
||||
value: item.awayTeam,
|
||||
key: 'result'
|
||||
},
|
||||
{
|
||||
lable: '胜平负',
|
||||
value: item.result,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user