From c6e9a4e3d612c9c9aff562f75f89fc4b75d4f1d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com>
Date: Sun, 26 Mar 2023 01:32:57 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=8E=88=E6=9D=83=E8=AF=BE?=
=?UTF-8?q?=E7=A8=8B=E6=98=AF=E5=90=A6=E8=BF=87=E6=9C=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/templates/index.html | 55 ++++++++++++-------
1 file changed, 36 insertions(+), 19 deletions(-)
diff --git a/admin-core/src/main/resources/templates/index.html b/admin-core/src/main/resources/templates/index.html
index 39c82ea7..fd393315 100644
--- a/admin-core/src/main/resources/templates/index.html
+++ b/admin-core/src/main/resources/templates/index.html
@@ -323,6 +323,7 @@
+
@@ -433,6 +434,41 @@
}
});
});
+
+
+ var ret = Common.getAjax("/getAuthResourcesAndSystemInfo.json");//图标显示data
+ if(ret.code == 0 && !$.isEmpty(ret.data)){
+ var text ="";
+ var data = ret.data;
+ data.forEach(function (item,index) {
+ text+=item.name+"、"
+ });
+ text = text.substring(0,text.length-1);
+
+ var isAdmin = $("#isAdmin").val();
+ if(isAdmin == "true"){
+ layer.msg(text+'等'+data.length+'个学校应用(课程)授权即将到期,点击查看', {
+ time: 20000, //20s后自动关闭
+ offset: 'rb',
+ btn: ['查看'],
+ yes: function(index, layero){
+ var url = "/jlw/universitiesCollegesJurisdictionExperimentalSystem/index.do";
+ /*$("#indexUrl").attr('href',Common.ctxPath+'/index.do?_role_tag='+getHeadTag())*/
+ var layId = 178;
+
+ $("#fsLeftMenu a[menuId=" + layId + "]").parent().addClass('layui-this');
+ openNewPage(layId, url, "院系权限管理");
+ }
+ });
+ }else {
+ layer.msg('学校应用(课程)授权即将到期,请联系管理员,过期将影响登录系统', {
+ time: 20000, //20s后自动关闭
+ offset: 'rb'
+ });
+ }
+
+
+ }
});
@@ -542,23 +578,4 @@
Lib.closeOrder();
layui.element.tabChange('fsTab', layId); //切换到:用户管理
};
-
-
- var ret = Common.getAjax("/getAuthResourcesAndSystemInfo.json");//图标显示data
-
-
- layer.msg('XXXX学校到期,请点击', {
- time: 20000, //20s后自动关闭
- offset: 'rb',
- btn: ['查看'],
- yes: function(index, layero){
- var url = "/jlw/universitiesCollegesJurisdictionExperimentalSystem/index.do";
- /*$("#indexUrl").attr('href',Common.ctxPath+'/index.do?_role_tag='+getHeadTag())*/
- var layId = 178;
- //layui.element.tabChange('fsTab', 178);
- console.log($("#fsLeftMenu a[menuId=" + layId + "]").parent().html())
- $("#fsLeftMenu a[menuId=" + layId + "]").parent().addClass('layui-this');
- openNewPage(layId, url, "院系权限管理");
- }
- });