From 640ff18d2d7f4be02ddb7f8f75e899f05545eb98 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 05 二月 2024 11:56:52 +0800
Subject: [PATCH] 更新bug修改

---
 cloud-server-management/src/main/webapp/WEB-INF/view/system/advertisement/advertisement.html |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/advertisement/advertisement.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/advertisement/advertisement.html
index 25e358d..885c96c 100644
--- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/advertisement/advertisement.html
+++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/advertisement/advertisement.html
@@ -33,13 +33,23 @@
                     </div>
                 </div>
                 <div class="hidden-xs" id="TCompetitionTableToolbar" role="group">
+                    @if(shiro.hasPermission("/advertisement/add")){
                     <#button name="添加" icon="fa-plus" clickFun="TSite.openAddTSite()"/>
+                    @}
+
+
+                    @if(shiro.hasPermission("/advertisement/update")){
                     <#button name="编辑" icon="fa-edit" clickFun="TSite.openEditTSite()" space="true"/>
+                    @}
+
+                    @if(shiro.hasPermission("/advertisement/info")){
                     <#button name="查看详情" icon="fa-search" clickFun="TSite.openInfo()" space="true"/>
+                    @}
+                    @if(shiro.hasPermission("/advertisement/changeState")){
                     <#button name="上架" icon="fa-check" clickFun="TSite.onShelf()" space="true"/>
+
                     <#button name="下架" icon="fa-remove" clickFun="TSite.offShelf()" space="true"/>
-                    <#button name="基础页面配置" icon="fa-remove" clickFun="TSite.basic()" space="true"/>
-                    <#button name="福利页面配置" icon="fa-remove" clickFun="TSite.benefits()" space="true"/>
+                    @}
                 </div>
                 <#table id="TSiteTable"/>
 </div>

--
Gitblit v1.7.1