Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
8bf51633
Commit
8bf51633
authored
Sep 30, 2021
by
季圣华
Browse files
优化首页提示
parent
7ae0c158
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/dashboard/IndexChart.vue
View file @
8bf51633
...
...
@@ -146,7 +146,6 @@
//如果距离到期还剩5天就进行提示续费
if
(
difftime
<
86400000
*
5
)
{
this
.
hasExpire
=
true
this
.
$message
.
warning
(
'
您好,服务即将到期,请及时续费!
'
,
5
)
}
}
})
...
...
jshERP-web/src/views/user/Login.vue
View file @
8bf51633
...
...
@@ -157,6 +157,18 @@
if
(
res
.
data
.
user
.
loginName
===
'
admin
'
){
let
desc
=
'
admin只是平台运维用户,真正的管理员是租户(测试账号为jsh),admin不能编辑任何业务数据,只能配置平台菜单和创建租户
'
this
.
$message
.
info
(
desc
,
30
)
}
else
{
getAction
(
"
/user/infoWithTenant
"
,{}).
then
(
res
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
currentTime
=
new
Date
();
//新建一个日期对象,默认现在的时间
let
expireTime
=
new
Date
(
res
.
data
.
expireTime
);
//设置过去的一个时间点,"yyyy-MM-dd HH:mm:ss"格式化日期
let
difftime
=
expireTime
-
currentTime
;
//计算时间差
//如果距离到期还剩5天就进行提示续费
if
(
difftime
<
86400000
*
5
)
{
this
.
$message
.
warning
(
'
您好,服务即将到期,请及时续费!
'
,
5
)
}
}
})
}
}
this
.
initMPropertyShort
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment