问题遇到的现象和发生背景
目前想要对elementui的表格进行合并
问题相关代码,请勿粘贴截图
以下是我的数据结构
[
{
"category": "牛",
"currentQuantity": 110,
"details": [
{
"category": "牛",
"vaccineShortName": "口蹄疫",
"finals": 33,
"nots": 1,
"notChildrens": 0,
"notIlls": 0,
"notPregnancies": 1,
"completedDensity": "97.06",
"planQuantity": 400,
"surveyDensity": "8.25"
},
{
"category": "牛",
"vaccineShortName": "布病",
"finals": 127,
"nots": 6,
"notChildrens": 2,
"notIlls": 1,
"notPregnancies": 3,
"completedDensity": "95.49",
"planQuantity": 500,
"surveyDensity": "25.4"
}
]
},
{
"category": "羊",
"currentQuantity": 211,
"details": [
{
"category": "羊",
"vaccineShortName": "口蹄疫",
"finals": 165,
"nots": 41,
"notChildrens": 20,
"notIlls": 0,
"notPregnancies": 21,
"completedDensity": "80.1",
"planQuantity": 255,
"surveyDensity": "64.71"
},
{
"category": "羊",
"vaccineShortName": "布病",
"finals": null,
"nots": null,
"notChildrens": null,
"notIlls": null,
"notPregnancies": null,
"completedDensity": 0,
"planQuantity": 11,
"surveyDensity": "0"
},
{
"category": "羊",
"vaccineShortName": "小反刍兽疫",
"finals": null,
"nots": null,
"notChildrens": null,
"notIlls": null,
"notPregnancies": null,
"completedDensity": 0,
"planQuantity": 12,
"surveyDensity": "0"
},
{
"category": "羊",
"vaccineShortName": "包虫病",
"finals": null,
"nots": null,
"notChildrens": null,
"notIlls": null,
"notPregnancies": null,
"completedDensity": 0,
"planQuantity": 0,
"surveyDensity": "0"
}
]
},
]
现在在合并的时候我想把vaccineShortName这个字段分开成多行展示,目前是一行
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
现在在合并的时候我想把vaccineShortName这个字段分开成多行展示,目前是一行,以下是我想要的结果