#macro pageList filepath=''> <@tools.fileList path=filepath> <#list list as a> <@t.merge 'pages' filepath?has_content?then(filepath+'/','')+a.fileName/> <#if !a.directory><@t.merge 'paths' filepath+'/'+a.fileName/>#if> #list> <@sys.lock userId=admin.id itemType='page' itemIds=t.paths><#assign lockMap=map!/>@sys.lock> <#if lockMap?has_content> <#list lockMap as k,lock> <#if lock.userId?has_content><@t.merge 'userIds' lock.userId/>#if> #list> #if> <@sys.deptItem itemType='page' deptId=admin.deptId!'' itemIds=t.pages!><#assign deptPageMap=map!/>@sys.deptItem> <@sys.user ids=t.userIds!><#assign userMap=map!/>@sys.user> <#list list as a> <#local currentPath=filepath?has_content?then(filepath+'/','')+a.fileName> <#if (deptPageMap[currentPath])?has_content&&deptPageMap[currentPath]>