Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
20ce5bbb
提交
20ce5bbb
authored
5月 06, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/main' into main
# Conflicts: # frontend/src/views/chart/view/ChartEdit.vue
上级
53b021bb
1dabde63
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
10 行增加
和
6 行删除
+10
-6
JWTUtils.java
backend/src/main/java/io/dataease/auth/util/JWTUtils.java
+4
-2
application.properties
backend/src/main/resources/application.properties
+5
-3
TableNormal.vue
frontend/src/views/chart/components/table/TableNormal.vue
+1
-1
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+0
-0
没有找到文件。
backend/src/main/java/io/dataease/auth/util/JWTUtils.java
浏览文件 @
20ce5bbb
...
@@ -85,8 +85,10 @@ public class JWTUtils {
...
@@ -85,8 +85,10 @@ public class JWTUtils {
public
static
boolean
loginExpire
(
String
token
){
public
static
boolean
loginExpire
(
String
token
){
if
(
Login_Interval
==
0
)
{
if
(
Login_Interval
==
0
)
{
String
property
=
CommonBeanFactory
.
getBean
(
Environment
.
class
).
getProperty
(
"dataease.login_timeout"
);
String
property
=
CommonBeanFactory
.
getBean
(
Environment
.
class
).
getProperty
(
"dataease.login_timeout"
);
int
seconds
=
StringUtils
.
isNotEmpty
(
property
)
?
Integer
.
parseInt
(
property
):
(
10
*
60
);
// 默认超时时间是8h
Login_Interval
=
seconds
*
1000
;
int
minute
=
StringUtils
.
isNotEmpty
(
property
)
?
Integer
.
parseInt
(
property
):
(
8
*
60
);
// 分钟换算成毫秒
Login_Interval
=
minute
*
1000
*
60
;
}
}
Long
now
=
System
.
currentTimeMillis
();
Long
now
=
System
.
currentTimeMillis
();
Long
lastOperateTime
=
tokenLastOperateTime
(
token
);
Long
lastOperateTime
=
tokenLastOperateTime
(
token
);
...
...
backend/src/main/resources/application.properties
浏览文件 @
20ce5bbb
...
@@ -62,10 +62,12 @@ spring.mvc.log-request-details=true
...
@@ -62,10 +62,12 @@ spring.mvc.log-request-details=true
pagehelper.PageRowBounds
=
true
pagehelper.PageRowBounds
=
true
#excel等用户上传文件路径
#excel等用户上传文件路径
upload.file.path
=
/opt/dataease/data/upload/
upload.file.path
=
/opt/dataease/data/upload/
#初始密码和登录超时时间移到/opt/dataease/conf/dataease.properties
#用户初始密码,如果不设置默认是DataEase123..
#用户初始密码,如果不设置默认是DataEase123..
dataease.init_password
=
DataEase123456
#
dataease.init_password=DataEase123456
#登录超时时间单位
s 设置默认30分钟 如果雨不设置 默认10分钟也就是10*60
#登录超时时间单位
min
dataease.login_timeout
=
180
0
#dataease.login_timeout=48
0
...
...
frontend/src/views/chart/components/table/TableNormal.vue
浏览文件 @
20ce5bbb
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
const
that
=
this
const
that
=
this
setTimeout
(
function
()
{
setTimeout
(
function
()
{
const
currentHeight
=
document
.
documentElement
.
clientHeight
const
currentHeight
=
document
.
documentElement
.
clientHeight
const
tableMaxHeight
=
currentHeight
-
56
-
40
-
84
-
that
.
$refs
.
title
.
offsetHeight
-
8
*
2
-
20
const
tableMaxHeight
=
currentHeight
-
56
-
40
-
84
-
that
.
$refs
.
title
.
offsetHeight
-
20
let
tableHeight
let
tableHeight
if
(
that
.
chart
.
data
)
{
if
(
that
.
chart
.
data
)
{
tableHeight
=
(
that
.
chart
.
data
.
tableRow
.
length
+
2
)
*
36
tableHeight
=
(
that
.
chart
.
data
.
tableRow
.
length
+
2
)
*
36
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
20ce5bbb
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论