vue+element循环输出对象下数组,且数组作为表格的列项尝试使用for循环,但是不能在el-table-column外层拿到对象下数组信息相关代码数组结构如下:(props中的数据是要显示到表格中的数据)letobj=[{id:'1',name:'xxx',props:[{name:'名称',value:'192.168.0.0_1'},{name:'ip',value:'192.168.0.0'},{name:'主机名称',value:'host1'},{name:'状态',value:'上线'},{name:'资产编号',value:'101010'},{name:'描述',value:'mmmms'},]},{id:'2',name:'xxx2',props:[{name:'名称',value:'192.168.0.1_1'},{name:'ip',value:'192.168.0.1'},{name:'主机名称',value:'host2'},{name:'状态',value:'上线'},{name:'资产编号',value:'1010110'},{name:'描述',value:'mmmms'},]},]期望页面展示表格如下名称ip主机名称状态资产编号192.168.0.0_1192.168.0.0host1上线101010192.168.0.1_1192.168.0.1host1上线101011谢谢
慕运维8079593
相关分类