Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
f151d6a2
提交
f151d6a2
authored
5月 25, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'main' of github.com:dataease/dataease into main
上级
abb8dcf3
45eb0acb
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
46 行增加
和
20 行删除
+46
-20
ExtDataSetTableMapper.xml
...ava/io/dataease/base/mapper/ext/ExtDataSetTableMapper.xml
+3
-0
SysAuthService.java
...src/main/java/io/dataease/service/sys/SysAuthService.java
+8
-7
DatasetCustomField.vue
frontend/src/views/dataset/common/DatasetCustomField.vue
+7
-1
index.vue
frontend/src/views/panel/edit/index.vue
+3
-0
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+4
-2
LazyTree.vue
frontend/src/views/system/authority/components/LazyTree.vue
+21
-10
没有找到文件。
backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTableMapper.xml
浏览文件 @
f151d6a2
...
@@ -18,6 +18,9 @@
...
@@ -18,6 +18,9 @@
<if
test=
"sceneId != null"
>
<if
test=
"sceneId != null"
>
and scene_id = #{sceneId,jdbcType=VARCHAR}
and scene_id = #{sceneId,jdbcType=VARCHAR}
</if>
</if>
<if
test=
"mode != null"
>
and mode = #{mode,jdbcType=INTEGER}
</if>
</where>
</where>
<if
test=
"sort != null"
>
<if
test=
"sort != null"
>
order by ${sort}
order by ${sort}
...
...
backend/src/main/java/io/dataease/service/sys/SysAuthService.java
浏览文件 @
f151d6a2
...
@@ -91,13 +91,14 @@ public class SysAuthService {
...
@@ -91,13 +91,14 @@ public class SysAuthService {
});
});
});
});
// 授权修改
// 授权修改
if
(
sysAuthDetail
.
getPrivilegeValue
()==
SystemConstants
.
PRIVILEGE_VALUE_ON
){
extSysAuthDetailMapper
.
authDetailsChange
(
sysAuthDetail
.
getPrivilegeValue
(),
sysAuthDetail
.
getPrivilegeType
(),
authIdChange
);
//当前为开启1 >>> 关闭0 需要将权限级别(PrivilegeType)大于当前级别的全新都修改为关闭 0
// if(sysAuthDetail.getPrivilegeValue()==SystemConstants.PRIVILEGE_VALUE_ON){
extSysAuthDetailMapper
.
authDetailsChange
(
SystemConstants
.
PRIVILEGE_VALUE_OFF
,
sysAuthDetail
.
getPrivilegeType
(),
authIdChange
);
// //当前为开启1 >>> 关闭0 需要将权限级别(PrivilegeType)大于当前级别的全新都修改为关闭 0
}
else
{
// extSysAuthDetailMapper.authDetailsChange(SystemConstants.PRIVILEGE_VALUE_OFF,sysAuthDetail.getPrivilegeType(),authIdChange);
//当前为关闭0 >>> 开启1 需要将权限级别(PrivilegeType)小于当前级别的全新都修改为开启 1
// }else{
extSysAuthDetailMapper
.
authDetailsChange
(
SystemConstants
.
PRIVILEGE_VALUE_ON
,
sysAuthDetail
.
getPrivilegeType
(),
authIdChange
);
// //当前为关闭0 >>> 开启1 需要将权限级别(PrivilegeType)小于当前级别的全新都修改为开启 1
}
// extSysAuthDetailMapper.authDetailsChange(SystemConstants.PRIVILEGE_VALUE_ON,sysAuthDetail.getPrivilegeType(),authIdChange);
// }
}
}
}
}
...
...
frontend/src/views/dataset/common/DatasetCustomField.vue
浏览文件 @
f151d6a2
<
template
>
<
template
>
<el-col>
<el-col>
<el-row
style=
"height: 25px;"
>
<span>
{{
table
.
name
}}
</span>
</el-row>
<el-divider
/>
<el-checkbox
v-model=
"checkAll"
:disabled=
"!(fields.length > 0)"
:indeterminate=
"isIndeterminate"
@
change=
"handleCheckAllChange"
>
{{
$t
(
'dataset.check_all'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"checkAll"
:disabled=
"!(fields.length > 0)"
:indeterminate=
"isIndeterminate"
@
change=
"handleCheckAllChange"
>
{{
$t
(
'dataset.check_all'
)
}}
</el-checkbox>
<el-checkbox-group
v-model=
"checkedFields"
@
change=
"handleCheckedFieldsChange"
>
<el-checkbox-group
v-model=
"checkedFields"
@
change=
"handleCheckedFieldsChange"
>
<el-checkbox
v-for=
"f in fields"
:key=
"f.id"
:label=
"f.id"
style=
"display: block;margin-top: 4px;width: 100%;"
>
<el-checkbox
v-for=
"f in fields"
:key=
"f.id"
:label=
"f.id"
style=
"display: block;margin-top: 4px;width: 100%;"
>
...
@@ -98,5 +102,7 @@ export default {
...
@@ -98,5 +102,7 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.el-divider--horizontal
{
margin
:
12px
0
}
</
style
>
</
style
>
frontend/src/views/panel/edit/index.vue
浏览文件 @
f151d6a2
...
@@ -475,5 +475,8 @@ export default {
...
@@ -475,5 +475,8 @@ export default {
.el-main
>>>
.el-drawer__wrapper
{
.el-main
>>>
.el-drawer__wrapper
{
width
:
310px
!
important
;
width
:
310px
!
important
;
}
}
.el-main
>>>
.el-drawer__body
{
overflow-y
:
auto
;
}
</
style
>
</
style
>
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
f151d6a2
...
@@ -352,13 +352,15 @@ export default {
...
@@ -352,13 +352,15 @@ export default {
debugger
debugger
this
.
defaultTree
()
this
.
defaultTree
()
// 默认展开 同时点击 新增的节点
// 默认展开 同时点击 新增的节点
if
(
panelInfo
&&
this
.
lastActiveNodeData
.
id
)
{
if
(
panelInfo
&&
panelInfo
.
panelType
===
'self'
&&
this
.
lastActiveNodeData
.
id
)
{
if
(
!
this
.
lastActiveNodeData
.
children
)
{
if
(
!
this
.
lastActiveNodeData
.
children
)
{
this
.
$set
(
this
.
lastActiveNodeData
,
'children'
,
[])
this
.
$set
(
this
.
lastActiveNodeData
,
'children'
,
[])
}
}
this
.
lastActiveNodeData
.
children
.
push
(
panelInfo
)
this
.
lastActiveNodeData
.
children
.
push
(
panelInfo
)
this
.
lastActiveNode
.
expanded
=
true
this
.
lastActiveNode
.
expanded
=
true
this
.
activeNodeAndClick
(
panelInfo
)
this
.
activeNodeAndClick
(
panelInfo
)
}
else
{
this
.
tree
(
this
.
groupForm
)
}
}
},
},
showEditPanel
(
param
)
{
showEditPanel
(
param
)
{
...
@@ -623,7 +625,7 @@ export default {
...
@@ -623,7 +625,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
document
.
querySelector
(
'.is-current'
).
firstChild
.
click
()
document
.
querySelector
(
'.is-current'
).
firstChild
.
click
()
// 如果是仪表盘列表的仪表盘 直接进入编辑界面
// 如果是仪表盘列表的仪表盘 直接进入编辑界面
if
(
panelInfo
.
nodeType
===
'panel'
&&
panelInfo
.
panelType
===
'self'
)
{
if
(
panelInfo
.
nodeType
===
'panel'
)
{
this
.
edit
(
this
.
lastActiveNodeData
,
this
.
lastActiveNode
)
this
.
edit
(
this
.
lastActiveNodeData
,
this
.
lastActiveNode
)
}
}
})
})
...
...
frontend/src/views/system/authority/components/LazyTree.vue
浏览文件 @
f151d6a2
...
@@ -18,26 +18,23 @@
...
@@ -18,26 +18,23 @@
@
node-click=
"nodeClick"
@
node-click=
"nodeClick"
>
>
<span
slot-scope=
"
{ node, data }" class="custom-tree-node">
<span
slot-scope=
"
{ node, data }" class="custom-tree-node">
<span>
<span
style=
"display: flex; flex: 1 1 0%; width: 0px;"
>
<span
style=
"margin-left: 6px"
v-html=
"data.name"
/>
<span
style=
"margin-left: 6px
;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
"
v-html=
"data.name"
/>
</span>
</span>
<span
v-if=
"showExtent"
@
click
.
stop
>
<span
v-if=
"showExtent"
@
click
.
stop
>
<div
v-if=
"authReady && authDetails[data.id]"
>
<div
v-if=
"authReady && authDetails[data.id]"
>
<span
v-for=
"auth in authDetails[data.id]"
:key=
"auth.privilegeType"
class=
"auth-span"
>
<span
v-for=
"auth in authDetails[data.id]"
:key=
"auth.privilegeType"
class=
"auth-span"
>
<!-- 1-
{{
auth
.
privilegeType
}}
-
{{
auth
.
privilegeValue
}}
-->
<!-- 1-
{{
auth
.
privilegeType
}}
-
{{
auth
.
privilegeValue
}}
-->
<a
href=
"javascript:;"
@
click=
"clickAuth(data.id,auth)"
>
<el-switch
v-model=
"auth.privilegeValue"
:active-value=
"1"
:inactive-value=
"0"
inactive-color=
"#DCDFE6"
@
change=
"clickAuth(data.id,auth)"
/>
<svg-icon
style=
"width: 22px;height: 22px"
:icon-class=
"auth.privilegeValue===1?'lock_open':'lock_closed'"
/>
</a>
</span>
</span>
</div>
</div>
<div
v-else
>
<div
v-else
>
<span
v-for=
"auth in defaultAuthDetails"
:key=
"auth.privilegeType"
class=
"auth-span"
>
<span
v-for=
"auth in defaultAuthDetails"
:key=
"auth.privilegeType"
class=
"auth-span"
>
<!--2-
{{
auth
.
privilegeType
}}
-
{{
auth
.
privilegeValue
}}
-->
<!--2-
{{
auth
.
privilegeType
}}
-
{{
auth
.
privilegeValue
}}
-->
<
a
href=
"javascript:;"
@
click=
"clickAuth(data.id,auth)"
>
<
el-switch
v-model=
"auth.privilegeValue"
:active-value=
"1"
:inactive-value=
"0"
inactive-color=
"#DCDFE6"
@
change=
"clickAuth(data.id,auth)"
/
>
<svg-icon
style=
"width: 22px;height: 22px"
:icon-class=
"auth.privilegeValue===1?'lock_open':'lock_closed'"
/
>
</span
>
</a
>
</div
>
</span>
</span>
</div></span>
</span>
</span>
</el-tree>
</el-tree>
</el-row>
</el-row>
...
@@ -286,8 +283,9 @@ export default {
...
@@ -286,8 +283,9 @@ export default {
padding-left
:
8px
;
padding-left
:
8px
;
}
}
.tree-main
{
.tree-main
{
height
:
100vh
;
height
:
calc
(
100vh
-
206px
)
;
border
:
1px
solid
#e6e6e6
;
border
:
1px
solid
#e6e6e6
;
overflow-y
:
auto
;
}
}
.tree-head
{
.tree-head
{
height
:
30px
;
height
:
30px
;
...
@@ -307,4 +305,17 @@ export default {
...
@@ -307,4 +305,17 @@ export default {
color
:
#faaa39
!important
;
color
:
#faaa39
!important
;
}
}
>>>
.el-switch__core
{
width
:
30px
!important
;
height
:
13px
;
/*color:#409EFF;*/
}
/*设置圆*/
>>>
.el-switch__core
::after
{
width
:
13px
;
height
:
13px
;
margin-top
:
-2px
;
margin-bottom
:
2px
;
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论