<#include "/admin/layout/layout.ftl"> <#import "/admin/layout/macro.ftl" as macro> <#assign css>
<#assign js>
<@layout title="资源管理" active="resource">

# 资源列表 一切从这里开始

<@shiro.hasPermission name="system:resource:add"> 新增

ID | 资源名称 | 资源key | 类型 | 资源url | 层级 | 排序 | icon | 状态 | 描述 | 更新时间 | 操作
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
<#list pageInfo.content as resourceInfo>

${resourceInfo.id}

${resourceInfo.name}

${resourceInfo.sourceKey}

<#if resourceInfo.type == 0> 目录 <#elseif resourceInfo.type == 1> 菜单 <#else > 按钮

${resourceInfo.sourceUrl}

${resourceInfo.level}

${resourceInfo.sort}

${resourceInfo.icon}

<#if resourceInfo.isHide == 1> 隐藏 <#else> 显示

${resourceInfo.description}

${resourceInfo.updateTime}

<@shiro.hasPermission name="system:resource:edit"> 编辑 <@shiro.hasPermission name="system:resource:deleteBatch">