From 8fa104184c73aeacc185f4dcedcecf6ec60c4b73 Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <279049017@qq.com>
Date: Fri, 11 Dec 2020 16:23:37 +0800
Subject: [PATCH] 添加初始赋值时,自定义时间的限制
---
kidgrow-web/kidgrow-web-hospital/src/main/resources/static/pages/system/user.html | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/kidgrow-web/kidgrow-web-hospital/src/main/resources/static/pages/system/user.html b/kidgrow-web/kidgrow-web-hospital/src/main/resources/static/pages/system/user.html
index 38acaaf..b6b125d 100644
--- a/kidgrow-web/kidgrow-web-hospital/src/main/resources/static/pages/system/user.html
+++ b/kidgrow-web/kidgrow-web-hospital/src/main/resources/static/pages/system/user.html
@@ -99,9 +99,9 @@
admin.req('api-user/users/'+obj.data.id+'/password', {}, function (data) {
layer.closeAll('loading');
if (data.ode == 0) {
- layer.msg(data.msg, {icon: 1, time: 500});
+ layer.msg(data.msg, {icon: 1, time: 2000});
} else {
- layer.msg(data.msg, {icon: 2, time: 500});
+ layer.msg(data.msg, {icon: 2, time: 2000});
}
}, 'PUT');
});
@@ -112,10 +112,10 @@
admin.req('api-user/users/'+obj.data.id, {}, function (data) {
layer.closeAll('loading');
if (data.code == 0) {
- layer.msg(data.msg, {icon: 1, time: 500});
+ layer.msg(data.msg, {icon: 1, time: 2000});
table.reload('user-table', {});
} else {
- layer.msg(data.msg, {icon: 2, time: 500});
+ layer.msg(data.msg, {icon: 2, time: 2000});
}
}, 'delete');
});
@@ -182,10 +182,10 @@
}, function (data) {
layer.closeAll('loading');
if (data.code == 0) {
- layer.msg(data.msg, {icon: 1, time: 500});
+ layer.msg(data.msg, {icon: 1, time: 2000});
//table.reload('table-user', {});
} else {
- layer.msg(data.msg, {icon: 2, time: 500});
+ layer.msg(data.msg, {icon: 2, time: 2000});
$(obj.elem).prop('checked', !obj.elem.checked);
form.render('checkbox');
}
@@ -202,10 +202,10 @@
,headers: {"Authorization" : "Bearer " + config.getToken().access_token}
,done: function(data){
if (data.code == 0) {
- layer.msg(data.msg, {icon: 1, time: 500});
+ layer.msg(data.msg, {icon: 1, time: 2000});
table.reload('user-table', {});
} else {
- layer.msg(data.msg, {icon: 2, time: 500});
+ layer.msg(data.msg, {icon: 2, time: 2000});
}
}
});
--
Gitblit v1.8.0