- var tHeads = config.tit
- var tBodys = config.list

table
    thead
        tr
            -each item,i in tHeads
                if (item && typeof(item.name)=='object')
                    th(class="select-#{item.field}")
                        select(node-type="select-#{item.field}")
                            - each itemj in item.name
                                option(value="#{itemj}") #{itemj}
                else
                    th #{tHeads[i].name}
            if bigList
                th 操作
    tbody
        -each itemTr,j in tBodys
            tr
                each itemTHead in tHeads
                    if(itemTHead.field == 'actionStatu')
                        case itemTr.actionStatu
                            when "1"
                                td.abnormal(node-type="abnormal")
                                    i(node-type="abnormal-tips")
                                    span 异常
                                    em.abnormal-tips-show
                                        i(node-type="abnormal-tips")
                                        覆盖人数太少，无法投放
                            when "2"
                                td 解析中..
                            when "3"
                                td 解析完成
                            when "4"
                                td 扩展中..
                            when "5"
                                td 扩展完成
                    else if(itemTr[itemTHead.field] == '' || itemTr[itemTHead.field] ==null)
                        td -----
                    else if(itemTHead.field == 'appStatus')
                        case itemTr.appStatus
                            when "1"
                                td 已入库
                            when "0"
                                td 未入库
                    else if(itemTHead.field == 'appname')
                        td
                            img.icon-app(src="#{itemTr.url}")
                            |#{itemTr[itemTHead.field]}
                    else
                        td(class="#{itemTHead.field}" node-type="#{itemTHead.field}") #{itemTr[itemTHead.field]}

                if bigList && isRestore
                    td.restore(node-type="restore") 恢复
                if bigList && isTplList
                    td.operation
                        .action(node-type="edit") 编辑
                        .action(node-type="toolDel") 移除
                //应用列表中操作
                if appList
                    td.operation
                        case itemTr.appStatus
                            when "1"
                                .action(node-type="download" status="#{itemTr.appStatus}")
                                    a(href="/index-ad.html#page0") 推下载
                                .action(node-type="activity" status="#{itemTr.appStatus}")
                                    a(href="/index-ad.html#page0") 推激活
                            when "0"
                                .action(node-type="library" status="#{itemTr.appStatus}")
                                    a(href="") 去入库
                if aboutPlan
                    td.operation
                        case itemTr.type
                            when "上传包"
                                case itemTr.actionStatu
                                    when "1"
                                        .action(node-type="toolDel" status="#{itemTr.status}") 移除
                                    when "2"
                                        .action(node-type="toolDown") 下载
                                    when "3"
                                        .action(node-type="toolDown") 下载
                                        .action(node-type="toolDel" status="#{itemTr.status}") 移除
                                        .action(node-type="toolExtend") 扩展
                                    when "5"
                                        .action(node-type="setCrowd") 设置人群覆盖范围
                                        .action(node-type="toolDown") 下载
                                        .action(node-type="toolDel" status="#{itemTr.status}") 移除
                            when "博文互动用户扩展"
                                case itemTr.actionStatu
                                    when "4"
                                        div
                                    when "5"
                                        .action(node-type="setCrowd") 设置人群覆盖范围
                                        .action(node-type="toolDel" status="#{itemTr.status}") 移除
                            when "已有包扩展"
                                case itemTr.actionStatu
                                    when "4"
                                        div
                                    when "5"
                                        .action(node-type="action" status="#{itemTr.status}") 移除