From 3ad6b6ba2ba56fc0bcd2130e47190779c6e15acc Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 04 十二月 2023 14:59:32 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai

---
 cloud-server-management/src/main/webapp/WEB-INF/view/system/advertisement/advertisement.html |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 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 5702f2c..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,11 +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"/>
+                    @}
                 </div>
                 <#table id="TSiteTable"/>
 </div>

--
Gitblit v1.7.1