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