- var table = config.table
- var cont = ''
- var _colspan=table.colspan?table.colspan:[]

table( id= table.id, class= table.className )
  if table.thead instanceof Array && table.thead.length > 0
    thead
      tr
        each title,i in table.thead
          th( colspan= "#{_colspan[i] || 0}" ) !{title}
  tbody
    if table.tbody && table.tbody instanceof Array && table.tbody.length > 0
      each tr, index in table.tbody
        tr( index="#{index}" )
          each td in tr
            if td instanceof Array
              - cont = td.join( '' )
            else
              - cont = td
            td !{cont}
    else if table.tbody && table.tbody instanceof Array && table.tbody.length == 0
      tr
        td( style="height:220px" colspan= table.thead.length ) 暂无数据
    else if table.tbody && table.tbody instanceof Object && table.num == 3
      tr(id="#{table.tbody.applyingUid}")
        td.applyingName #{table.tbody.applyingName}
        td 授权给代理商 #{table.tbody.applyingName} 完全管理您的广告账户，包括推广、操作、查看等
        td #{table.tbody.authDesc}
        td
          if table.tbody.auth == 1
            a(href="#" node-type="agreePower") 确认授权
            a(href="#" node-type="delPower") 删除
          else if table.tbody.auth == 2
            a(href="#" node-type="disagreePower") 取消授权
    else
      tr
        td( style="height:200px" colspan= table.thead.length ) !{table.mess || ''}
