{extend name="public:base" /} {block name="menu"}数据字段{/block} {block name="table-head"} 表名 引擎 字符集 索引大小 数据大小 行数 备注 创建时间 操作 {/block} {block name="table-body"} {if condition="!count($tables)"} 没有数据 {else/} {foreach $tables as $key => $table} {$table['Name']} {$table['Engine']} {$table['Collation']} {if condition="$table['Index_length'] < 1024 * 1024"} {:round($table['Index_length']/1024, 2)} KB {else/} {round($table['Index_length']/1024/1024, 2)} MB {/if} {if condition="$table['Data_length'] < 1024 * 1024"} {:round($table['Data_length']/1024, 2)} KB {else/} {round($table['Data_length']/1024/1024, 2)} MB {/if} {$table['Rows']} {$table['Comment']} {$table['Create_time']} {/foreach} {/if} {/block} {block name="js"} {/block}