From b2f0547067840c6ef5333216c5ee2cf38e07025a Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期一, 01 十二月 2025 17:21:29 +0800
Subject: [PATCH] 修改项目

---
 src/main/resources/templates/host/list.html |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/main/resources/templates/host/list.html b/src/main/resources/templates/host/list.html
index 503e6ab..f471903 100644
--- a/src/main/resources/templates/host/list.html
+++ b/src/main/resources/templates/host/list.html
@@ -227,7 +227,7 @@
 <!--              <th th:if="${application.userInfoManage == 'true' && session.LOGIN_KEY.role == 'admin'}">璐﹀彿</th>-->
 <!--              </th:block>-->
               <th:block  th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'15') > -1 }">
-              <th>澶囨敞</th>
+              <th data-trigger="hover"  data-container="body" data-toggle="popover">澶囨敞</th>
               </th:block>
               <th:block  th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'16') > -1 }">
               <th>鎿嶄綔</th>
@@ -321,20 +321,20 @@
                 <th:block  th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'12') > -1 }">
                 <td th:text="${item.groupId}" th:if="${application.hostGroup == 'true'}"></td>
                 </th:block>
-                <th:block  th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'13') > -1 }">
-                <th th:text="${item.account}" th:if="${application.userInfoManage == 'true' && session.LOGIN_KEY.role == 'admin'}"></th>
-                </th:block>
+<!--                <th:block  th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'13') > -1 }">-->
+<!--                <th th:text="${item.account}" th:if="${application.userInfoManage == 'true' && session.LOGIN_KEY.role == 'admin'}"></th>-->
+<!--                </th:block>-->
                 <th:block  th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'15') > -1 }">
                 <td th:text="${item.remark}"></td>
                 </th:block>
                 <th:block  th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'16') > -1 }">
                   <td>
 
-                      <button type="button"  th:onclick="view([[${item.id}]])"  class="btn btn-primary btn-sm">绯荤粺</button>
-                      <button type="button"  th:onclick="viewChart([[${item.id}]])"  class="btn btn-primary btn-sm">鍥捐〃</button>
-                      <button type="button"  th:onclick="viewImage([[${item.id}]])"  class="btn bg-maroon btn-sm">鐢诲儚</button>
+                      <button type="button" th:if="${item.state  == '1'}"  th:onclick="view([[${item.id}]])"  class="btn btn-primary btn-sm">绯荤粺</button>
+                      <button type="button" th:if="${item.state  == '1'}"  th:onclick="viewChart([[${item.id}]])"  class="btn btn-primary btn-sm">鍥捐〃</button>
+                      <button type="button" th:if="${item.state  == '1'}"  th:onclick="viewImage([[${item.id}]])"  class="btn bg-maroon btn-sm">鐢诲儚</button>
                       <th:block th:if="${session.LOGIN_KEY.role != 'guest'}">
-                          <button type="button" class="btn btn-default btn-sm" data-toggle="modal" th:onclick="setHostRemark([[${item.id}]],[[${item.remark}]])" data-target="#modal-default">
+                          <button type="button" th:if="${item.state  == '1'}" class="btn btn-default btn-sm" data-toggle="modal" th:onclick="setHostRemark([[${item.id}]],[[${item.remark}]])" data-target="#modal-default">
                               澶囨敞
                           </button>
                           <button type="button"  th:onclick="del([[${item.id}]])"  class="btn bg-gradient-danger btn-sm">鍒犻櫎</button>
@@ -343,7 +343,7 @@
                                 <button type="button"  data-toggle="modal" th:onclick="setWinConsole([[${item.id}]],[[${item.winConsole}]])"  class="btn btn-success btn-sm" data-target="#modal-default2">鏈嶅姟</button>
                               </th:block>
                               <th:block th:unless="${#strings.indexOf(item.image,'windows') > -1 }">
-                                  <button type="button"  th:onclick="viewWebSSH([[${item.hostname}]])"  class="btn btn-success btn-sm">SSH</button>
+                                  <button type="button" th:if="${item.state  == '1'}"  th:onclick="viewWebSSH([[${item.hostname}]])"  class="btn btn-success btn-sm">SSH</button>
                               </th:block>
                           </th:block>
                       </th:block>

--
Gitblit v1.9.1