angularjs合并单元格?

新手上路,请多包涵

图片描述

var data = [
    {switchProcess:'切换准备',switchStep:[
                                    {
                                      switchStep:'应用检查',executeStep:'1',address:[
                                        {address:'南方基地',name:'应用状态检查进程1',way:''},
                                        {address:'东莞机房',name:'应用状态检查进程1',way:''},
                                        {address:'东莞机房',name:'应用状态检查进程1',way:''},
                                        {address:'东莞机房',name:'应用状态检查进程1',way:''}
                                                                                    ]
                                     },
                                     {
                                       switchStep:'数据复制状态检查',executeStep:'2',address:[
                                        {address:'南方基地',name:'应用状态检查进程1',way:''},
                                        {address:'东莞机房',name:'应用状态检查进程1',way:''},
                                        {address:'东莞机房',name:'应用状态检查进程1',way:''}
                                                                                    ]
                                                                          }
                                                                        ]
    },
    {
        switchProcess:'流量接入切换',switchStep:[
                                    {
                                        switchStep:'应用检查',executeStep:'1',address:[
                                        {address:'南方基地',name:'应用状态检查进程1',way:''},
                                        {address:'东莞机房',name:'应用状态检查进程1',way:''}
                                                                                     ]
                                    },
                                    {
                                        switchStep:'数据复制状态检查',executeStep:'2',address:[
                                         {address:'南方基地',name:'应用状态检查进程1',way:''},
                                         {address:'东莞机房',name:'应用状态检查进程1',way:''},
                                         {address:'东莞机房',name:'应用状态检查进程1',way:''}
                                                                                      ]
                                    }
        ]
    }
];

以上json数据,要怎样用angularjs生成如图中的表格?欢迎大家指教

阅读 3.8k
1 个回答

树形结构循环渲染 每一列的每一个看作一个节点 同一行的后一列同一层为一个节点

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进