Browse Source

临时调阅账号维护、提醒

limeng 2 years ago
parent
commit
78871f962f

+ 1 - 0
leiSP-admin/src/main/resources/templates/index.html

@@ -298,6 +298,7 @@ function applyPath(url) {
 	}
 }
 
+
 $(function() {
 	if($.common.equals("history", mode) && window.performance.navigation.type == 1) {
 		var url = storage.get('publicPath');

+ 7 - 2
leiSP-admin/src/main/resources/templates/main.html

@@ -90,7 +90,7 @@
     <div class="row" style="padding:0 15px">
         <div class="th-wid-6 ibox-th-colorbar1">
 
-            <div class="col-sm-6 ibox-left-th" onclick="addToast()">
+            <div class="col-sm-6 ibox-left-th">
                 <img th:src="@{/img/jkzs.png}">
                 <h5>接口总数</h5>
             </div>
@@ -332,7 +332,7 @@
             success: function(result) {
                 let content = "";
                 for(let i=0;i<result.length;i++){
-                    let temp = "<p style='font-size: 15px;'><a style='color: #333;'>【{deptName}】用户【{userName}】的权限还有{remainingDays}天到期,请及时处理!</a></p>";
+                    let temp = "<p style='font-size: 15px;'><a style='color: #333;' onclick='openPerTab()'>【{deptName}】用户【{userName}】的权限还有{remainingDays}天到期,请及时处理!</a></p>";
                     temp = temp.replace("{deptName}",result[i].deptName);
                     temp = temp.replace("{userName}",result[i].userName);
                     temp = temp.replace("{remainingDays}",result[i].remainingDays);
@@ -352,6 +352,11 @@
             }
         })
     }
+
+    function openPerTab(){
+        $("a[href='/system/tempPer']",parent.document)[0].click();
+    }
+
 </script>
 </body>
 </html>