<#if !parentId??> [{ "name": "根栏目", <@Perm perm="admin:doc:list"> "click":"f_addTab('docMgr','文档管理','doc/v_list.do')", "open": true <#if list?size gt 0>, "isParent": true, "children": [ <#list list as channel> { "parentId": "${channel.id}", "name": "${channel.name!}", <@Perm perm="admin:doc:list"> "click":"f_addTab('docMgr','文档管理','doc/v_list.do?chnlId=${channel.id!}')", <#if channel.child?size gt 0> "isParent": true, "open": false <#else> "isParent": false }<#if channel_has_next>, ] }] <#else> [ <#list list as channel> { "parentId": "${channel.id}", "name": "${channel.name!}", <@Perm perm="admin:doc:list"> "click":"f_addTab('docMgr','文档管理','doc/v_list.do?chnlId=${channel.id!}')", <#if channel.child?size gt 0> "isParent": true, "open": false <#else> "isParent": false }<#if channel_has_next>, ]