mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			834 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			834 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{$layout}
 | 
						||
{$template "menu"}
 | 
						||
 | 
						||
<div class="ui message" v-if="isLoading">正在加载中...</div>
 | 
						||
 | 
						||
<table class="ui table selectable">
 | 
						||
    <thead>
 | 
						||
        <tr>
 | 
						||
            <th>表名</th>
 | 
						||
            <th>占用空间</th>
 | 
						||
            <th>用途</th>
 | 
						||
            <th class="two op">操作</th>
 | 
						||
        </tr>
 | 
						||
    </thead>
 | 
						||
    <tr v-for="table in tables">
 | 
						||
        <td>{{table.name}}</td>
 | 
						||
        <td>{{table.size}}
 | 
						||
            <span class="grey small" v-if="table.rows > 0">({{table.rows}}行)</span>
 | 
						||
        </td>
 | 
						||
        <td>{{table.comment}}</td>
 | 
						||
        <td>
 | 
						||
            <a href="" v-if="table.canDelete" @click.prevent="deleteTable(table.name)">删除</a><span v-if="table.canDelete">  </span>
 | 
						||
            <a href="" v-if="table.canClean" @click.prevent="truncateTable(table.name)">清空</a>
 | 
						||
        </td>
 | 
						||
    </tr>
 | 
						||
</table> |