Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
84807396
提交
84807396
authored
8月 02, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v1.1' of github.com:dataease/dataease into v1.1
上级
4caa2f84
b8dc6169
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
39 行增加
和
17 行删除
+39
-17
JWTFilter.java
backend/src/main/java/io/dataease/auth/filter/JWTFilter.java
+3
-0
AuthServer.java
...end/src/main/java/io/dataease/auth/server/AuthServer.java
+12
-2
index.vue
frontend/src/components/Notification/index.vue
+6
-0
DatasetGroupSelectorTree.vue
...end/src/views/dataset/common/DatasetGroupSelectorTree.vue
+15
-14
UnionView.vue
frontend/src/views/dataset/data/UnionView.vue
+3
-1
没有找到文件。
backend/src/main/java/io/dataease/auth/filter/JWTFilter.java
浏览文件 @
84807396
...
...
@@ -49,6 +49,9 @@ public class JWTFilter extends BasicHttpAuthenticationFilter {
protected
boolean
executeLogin
(
ServletRequest
request
,
ServletResponse
response
)
throws
Exception
{
HttpServletRequest
httpServletRequest
=
(
HttpServletRequest
)
request
;
String
authorization
=
httpServletRequest
.
getHeader
(
"Authorization"
);
if
(
StringUtils
.
startsWith
(
authorization
,
"Basic"
))
{
return
false
;
}
// 当没有出现登录超时 且需要刷新token 则执行刷新token
if
(
JWTUtils
.
loginExpire
(
authorization
)){
throw
new
AuthenticationException
(
expireMessage
);
...
...
backend/src/main/java/io/dataease/auth/server/AuthServer.java
浏览文件 @
84807396
...
...
@@ -12,6 +12,7 @@ import io.dataease.auth.util.JWTUtils;
import
io.dataease.auth.util.RsaUtil
;
import
io.dataease.commons.utils.BeanUtils
;
import
io.dataease.commons.utils.CodingUtil
;
import
io.dataease.commons.utils.LogUtil
;
import
io.dataease.commons.utils.ServletUtils
;
import
io.dataease.exception.DataEaseException
;
...
...
@@ -84,8 +85,17 @@ public class AuthServer implements AuthApi {
@Override
public
String
logout
()
{
String
token
=
ServletUtils
.
getToken
();
Long
userId
=
JWTUtils
.
tokenInfoByToken
(
token
).
getUserId
();
authUserService
.
clearCache
(
userId
);
if
(
StringUtils
.
isEmpty
(
token
)
||
StringUtils
.
equals
(
"null"
,
token
)
||
StringUtils
.
equals
(
"undefined"
,
token
))
{
return
"success"
;
}
try
{
Long
userId
=
JWTUtils
.
tokenInfoByToken
(
token
).
getUserId
();
authUserService
.
clearCache
(
userId
);
}
catch
(
Exception
e
)
{
LogUtil
.
error
(
e
);
return
"fail"
;
}
return
"success"
;
}
...
...
frontend/src/components/Notification/index.vue
浏览文件 @
84807396
...
...
@@ -64,6 +64,7 @@ import { query, updateStatus } from '@/api/system/msg'
import
{
getTypeName
,
loadMsgTypes
}
from
'@/utils/webMsg'
import
{
mapGetters
}
from
'vuex'
import
bus
from
'@/utils/bus'
import
{
getToken
}
from
'@/utils/auth'
export
default
{
data
()
{
return
{
...
...
@@ -172,6 +173,11 @@ export default {
query
(
currentPage
,
pageSize
,
param
).
then
(
response
=>
{
this
.
data
=
response
.
data
.
listObject
this
.
paginationConfig
.
total
=
response
.
data
.
itemCount
}).
catch
(()
=>
{
const
token
=
getToken
()
if
(
!
token
||
token
===
'null'
||
token
===
'undefined'
)
{
this
.
timer
&&
clearInterval
(
this
.
timer
)
}
})
},
getTypeName
(
value
)
{
...
...
frontend/src/views/dataset/common/DatasetGroupSelectorTree.vue
浏览文件 @
84807396
...
...
@@ -163,16 +163,17 @@ export default {
this
.
unionDataChange
()
},
'table'
:
function
()
{
if
(
this
.
table
&&
this
.
table
.
sceneId
)
{
post
(
'dataset/group/getScene/'
+
this
.
table
.
sceneId
,
{},
false
).
then
(
response
=>
{
this
.
currGroup
=
response
.
data
this
.
$nextTick
(
function
()
{
this
.
sceneMode
=
true
this
.
tableTree
()
})
})
}
// if (this.table && this.table.sceneId) {
// post('dataset/group/getScene/' + this.table.sceneId, {}, false).then(response => {
// this.currGroup = response.data
//
// this.$nextTick(function() {
// this.sceneMode = true
// this.tableTree()
// })
// })
// }
this
.
treeNode
(
this
.
groupForm
)
},
search
(
val
)
{
this
.
$emit
(
'switchComponent'
,
{
name
:
''
})
...
...
@@ -236,7 +237,7 @@ export default {
this
.
tableData
=
[]
if
(
this
.
currGroup
)
{
this
.
dsLoading
=
true
this
.
tables
=
[]
;
this
.
tables
=
[]
post
(
'/dataset/table/list'
,
{
sort
:
'type asc,name asc,create_time desc'
,
sceneId
:
this
.
currGroup
.
id
,
...
...
@@ -247,7 +248,7 @@ export default {
if
(
response
.
data
[
i
].
mode
===
1
&&
this
.
kettleRunning
===
false
)
{
this
.
$set
(
response
.
data
[
i
],
'disabled'
,
true
)
}
if
(
hasDataPermission
(
this
.
privileges
,
response
.
data
[
i
].
privileges
))
{
if
(
hasDataPermission
(
this
.
privileges
,
response
.
data
[
i
].
privileges
))
{
this
.
tables
.
push
(
response
.
data
[
i
])
}
}
...
...
@@ -352,7 +353,7 @@ export default {
if
(
!
this
.
isTreeSearch
)
{
if
(
node
.
data
.
id
)
{
this
.
dsLoading
=
true
this
.
tables
=
[]
;
this
.
tables
=
[]
post
(
'/dataset/table/listAndGroup'
,
{
sort
:
'type asc,name asc,create_time desc'
,
sceneId
:
node
.
data
.
id
,
...
...
@@ -364,7 +365,7 @@ export default {
if
(
response
.
data
[
i
].
mode
===
1
&&
this
.
kettleRunning
===
false
)
{
this
.
$set
(
response
.
data
[
i
],
'disabled'
,
true
)
}
if
(
hasDataPermission
(
this
.
privileges
,
response
.
data
[
i
].
privileges
))
{
if
(
hasDataPermission
(
this
.
privileges
,
response
.
data
[
i
].
privileges
))
{
this
.
tables
.
push
(
response
.
data
[
i
])
}
}
...
...
frontend/src/views/dataset/data/UnionView.vue
浏览文件 @
84807396
...
...
@@ -105,7 +105,7 @@
width=
"500"
trigger=
"click"
>
<dataset-group-selector-tree
:fix-height=
"true"
show-mode=
"union"
:custom-type=
"customType"
:mode=
"table.mode"
@
getTable=
"getTable"
/>
<dataset-group-selector-tree
:fix-height=
"true"
show-mode=
"union"
:
table=
"table"
:
custom-type=
"customType"
:mode=
"table.mode"
@
getTable=
"getTable"
/>
<el-button
slot=
"reference"
size=
"mini"
style=
"width: 100%;"
>
<p
class=
"table-name-css"
:title=
"targetTable.name || $t('dataset.pls_slc_union_table')"
>
{{ targetTable.name || $t('dataset.pls_slc_union_table') }}
</p>
</el-button>
...
...
@@ -206,6 +206,8 @@ export default {
if
(
this
.
table
.
id
)
{
if
(
this
.
table
.
mode
===
0
)
{
this
.
customType
=
[
'db'
]
}
else
{
this
.
customType
=
[
'db'
,
'sql'
,
'excel'
]
}
post
(
'dataset/union/listByTableId/'
+
this
.
table
.
id
,
{}).
then
(
response
=>
{
// console.log(response)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论