Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
36a327f8
提交
36a327f8
authored
5月 27, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: UI 调整
上级
fac1cdf5
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
49 行增加
和
10 行删除
+49
-10
SysAuthService.java
...src/main/java/io/dataease/service/sys/SysAuthService.java
+4
-1
V5__auth.sql
backend/src/main/resources/db/migration/V5__auth.sql
+15
-2
messages_en_US.properties
backend/src/main/resources/i18n/messages_en_US.properties
+2
-0
messages_zh_CN.properties
backend/src/main/resources/i18n/messages_zh_CN.properties
+1
-0
messages_zh_TW.properties
backend/src/main/resources/i18n/messages_zh_TW.properties
+2
-2
panel.js
frontend/src/api/panel/panel.js
+1
-1
snapshot.js
frontend/src/components/canvas/store/snapshot.js
+3
-4
index.scss
frontend/src/styles/index.scss
+3
-0
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+18
-0
没有找到文件。
backend/src/main/java/io/dataease/service/sys/SysAuthService.java
浏览文件 @
36a327f8
...
@@ -15,6 +15,7 @@ import io.dataease.controller.request.SysAuthRequest;
...
@@ -15,6 +15,7 @@ import io.dataease.controller.request.SysAuthRequest;
import
io.dataease.dto.SysAuthDTO
;
import
io.dataease.dto.SysAuthDTO
;
import
io.dataease.dto.SysDeptDTO
;
import
io.dataease.dto.SysDeptDTO
;
import
io.dataease.dto.VAuthModelDTO
;
import
io.dataease.dto.VAuthModelDTO
;
import
io.dataease.i18n.Translator
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -80,7 +81,9 @@ public class SysAuthService {
...
@@ -80,7 +81,9 @@ public class SysAuthService {
SysAuthDetail
sysAuthDetail
=
request
.
getAuthDetail
();
SysAuthDetail
sysAuthDetail
=
request
.
getAuthDetail
();
//TODO 获取需要授权的资源id(当前节点和所有权限的下级节点)
//TODO 获取需要授权的资源id(当前节点和所有权限的下级节点)
List
<
String
>
authSources
=
getAuthModels
(
request
.
getAuthSource
(),
request
.
getAuthSourceType
());
List
<
String
>
authSources
=
getAuthModels
(
request
.
getAuthSource
(),
request
.
getAuthSourceType
());
if
(
CollectionUtils
.
isEmpty
(
authSources
)){
throw
new
RuntimeException
(
Translator
.
get
(
"i18n_auth_source_be_canceled"
));
}
//TODO 获取需要被授权的目标id(部门当前节点和所有权限的下级节点)
//TODO 获取需要被授权的目标id(部门当前节点和所有权限的下级节点)
List
<
String
>
authTargets
=
getAuthModels
(
request
.
getAuthTarget
(),
request
.
getAuthTargetType
());
List
<
String
>
authTargets
=
getAuthModels
(
request
.
getAuthTarget
(),
request
.
getAuthTargetType
());
...
...
backend/src/main/resources/db/migration/V5__auth.sql
浏览文件 @
36a327f8
/*
Navicat Premium Data Transfer
Source Server : A-LOCAL-本机数据库
Source Server Type : MySQL
Source Server Version : 50726
Source Host : localhost:3306
Source Schema : data_ease
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 27/05/2021 14:59:53
*/
SET
NAMES
utf8mb4
;
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
SET
FOREIGN_KEY_CHECKS
=
0
;
...
@@ -429,8 +444,6 @@ delimiter ;
...
@@ -429,8 +444,6 @@ delimiter ;
SET
FOREIGN_KEY_CHECKS
=
1
;
SET
FOREIGN_KEY_CHECKS
=
1
;
SET
NAMES
utf8mb4
;
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
SET
FOREIGN_KEY_CHECKS
=
0
;
...
...
backend/src/main/resources/i18n/messages_en_US.properties
浏览文件 @
36a327f8
...
@@ -239,3 +239,5 @@ i18n_processing_data=Processing data now, Refresh later
...
@@ -239,3 +239,5 @@ i18n_processing_data=Processing data now, Refresh later
i18n_union_already_exists
=
Union relation already exists
i18n_union_already_exists
=
Union relation already exists
i18n_union_field_exists
=
The same field can't in two dataset
i18n_union_field_exists
=
The same field can't in two dataset
i18n_cron_time_error
=
Start time can't greater then end time
i18n_cron_time_error
=
Start time can't greater then end time
i18n_auth_source_be_canceled
=
This Auth Resource Already Be Canceled
backend/src/main/resources/i18n/messages_zh_CN.properties
浏览文件 @
36a327f8
...
@@ -241,3 +241,4 @@ i18n_processing_data=正在处理数据,稍后刷新
...
@@ -241,3 +241,4 @@ i18n_processing_data=正在处理数据,稍后刷新
i18n_union_already_exists
=
关联关系已存在
i18n_union_already_exists
=
关联关系已存在
i18n_union_field_exists
=
两个数据集之间关联不能出现多次相同字段
i18n_union_field_exists
=
两个数据集之间关联不能出现多次相同字段
i18n_cron_time_error
=
开始时间不能大于结束时间
i18n_cron_time_error
=
开始时间不能大于结束时间
i18n_auth_source_be_canceled
=
当前资源授权权限已经被取消
backend/src/main/resources/i18n/messages_zh_TW.properties
浏览文件 @
36a327f8
...
@@ -240,4 +240,5 @@ i18n_panel_list=仪表盘
...
@@ -240,4 +240,5 @@ i18n_panel_list=仪表盘
i18n_processing_data
=
正在處理數據,稍後刷新
i18n_processing_data
=
正在處理數據,稍後刷新
i18n_union_already_exists
=
關聯關系已存在
i18n_union_already_exists
=
關聯關系已存在
i18n_union_field_exists
=
兩個數據集之間關聯不能出現多次相同字段
i18n_union_field_exists
=
兩個數據集之間關聯不能出現多次相同字段
i18n_cron_time_error
=
開始時間不能大於結束時間
i18n_cron_time_error
=
開始時間不能大於結束時間
\ No newline at end of file
i18n_auth_source_be_canceled
=
当前资源授权权限已经被取消
frontend/src/api/panel/panel.js
浏览文件 @
36a327f8
...
@@ -30,7 +30,7 @@ export function querySubjectWithGroup(data) {
...
@@ -30,7 +30,7 @@ export function querySubjectWithGroup(data) {
return
request
({
return
request
({
url
:
'/panel/subject/querySubjectWithGroup'
,
url
:
'/panel/subject/querySubjectWithGroup'
,
method
:
'post'
,
method
:
'post'
,
loading
:
fals
e
,
loading
:
tru
e
,
data
data
})
})
}
}
...
...
frontend/src/components/canvas/store/snapshot.js
浏览文件 @
36a327f8
...
@@ -6,18 +6,18 @@ export default {
...
@@ -6,18 +6,18 @@ export default {
snapshotData
:
[],
// 编辑器快照数据
snapshotData
:
[],
// 编辑器快照数据
snapshotStyleData
:
[],
// 样式改变也记录快照
snapshotStyleData
:
[],
// 样式改变也记录快照
snapshotIndex
:
-
1
// 快照索引
snapshotIndex
:
-
1
// 快照索引
},
},
mutations
:
{
mutations
:
{
undo
(
state
)
{
undo
(
state
)
{
state
.
snapshotIndex
--
if
(
state
.
snapshotIndex
>
0
)
{
if
(
state
.
snapshotIndex
>=
0
)
{
state
.
snapshotIndex
--
store
.
commit
(
'setComponentData'
,
deepCopy
(
state
.
snapshotData
[
state
.
snapshotIndex
]))
store
.
commit
(
'setComponentData'
,
deepCopy
(
state
.
snapshotData
[
state
.
snapshotIndex
]))
store
.
commit
(
'setCanvasStyle'
,
deepCopy
(
state
.
snapshotStyleData
[
state
.
snapshotIndex
]))
store
.
commit
(
'setCanvasStyle'
,
deepCopy
(
state
.
snapshotStyleData
[
state
.
snapshotIndex
]))
}
}
},
},
redo
(
state
)
{
redo
(
state
)
{
debugger
if
(
state
.
snapshotIndex
<
state
.
snapshotData
.
length
-
1
)
{
if
(
state
.
snapshotIndex
<
state
.
snapshotData
.
length
-
1
)
{
state
.
snapshotIndex
++
state
.
snapshotIndex
++
store
.
commit
(
'setComponentData'
,
deepCopy
(
state
.
snapshotData
[
state
.
snapshotIndex
]))
store
.
commit
(
'setComponentData'
,
deepCopy
(
state
.
snapshotData
[
state
.
snapshotIndex
]))
...
@@ -35,7 +35,6 @@ export default {
...
@@ -35,7 +35,6 @@ export default {
state
.
snapshotStyleData
=
state
.
snapshotStyleData
.
slice
(
0
,
state
.
snapshotIndex
+
1
)
state
.
snapshotStyleData
=
state
.
snapshotStyleData
.
slice
(
0
,
state
.
snapshotIndex
+
1
)
}
}
},
},
refreshSnapshot
(
state
)
{
refreshSnapshot
(
state
)
{
// 刷新快照
// 刷新快照
state
.
snapshotData
=
[]
state
.
snapshotData
=
[]
...
...
frontend/src/styles/index.scss
浏览文件 @
36a327f8
...
@@ -234,3 +234,6 @@ div:focus {
...
@@ -234,3 +234,6 @@ div:focus {
color
:
#23beef
;
color
:
#23beef
;
margin
:
0
2px
0
0
;
margin
:
0
2px
0
0
;
}
}
.el-popper
{
position
:
fixed
!
important
;
}
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
36a327f8
...
@@ -341,6 +341,12 @@ export default {
...
@@ -341,6 +341,12 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
// 切换展示页面后 重新点击一下当前节点
'$store.state.panel.mainActiveName'
:
function
(
newVal
,
oldVal
)
{
if
(
newVal
===
'PanelMain'
&&
this
.
lastActiveNode
&&
this
.
lastActiveNodeData
)
{
this
.
activeNodeAndClickOnly
(
this
.
lastActiveNodeData
)
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setComponentData'
,
[])
...
@@ -634,6 +640,18 @@ export default {
...
@@ -634,6 +640,18 @@ export default {
})
})
})
})
}
}
},
// 激活当前节点
activeNodeAndClickOnly
(
panelInfo
)
{
if
(
panelInfo
)
{
this
.
$nextTick
(()
=>
{
// 延迟设置CurrentKey
this
.
$refs
.
panel_list_tree
.
setCurrentKey
(
panelInfo
.
id
)
this
.
$nextTick
(()
=>
{
document
.
querySelector
(
'.is-current'
).
firstChild
.
click
()
})
})
}
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论