Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
5c98e394
提交
5c98e394
authored
7月 28, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:视图按钮权限控制,同步在仪表板编辑时也适用
上级
594d20eb
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
1 行删除
+13
-1
ChartViewController.java
...ava/io/dataease/controller/chart/ChartViewController.java
+5
-0
ChartViewService.java
...main/java/io/dataease/service/chart/ChartViewService.java
+6
-0
chart.js
frontend/src/api/chart/chart.js
+1
-1
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+1
-0
没有找到文件。
backend/src/main/java/io/dataease/controller/chart/ChartViewController.java
浏览文件 @
5c98e394
...
@@ -65,4 +65,9 @@ public class ChartViewController {
...
@@ -65,4 +65,9 @@ public class ChartViewController {
public
String
searchAdviceSceneId
(
@PathVariable
String
panelId
){
public
String
searchAdviceSceneId
(
@PathVariable
String
panelId
){
return
chartViewService
.
searchAdviceSceneId
(
panelId
);
return
chartViewService
.
searchAdviceSceneId
(
panelId
);
}
}
@PostMapping
(
"/getOneWithPermission/{id}"
)
public
ChartViewDTO
getOneWithPermission
(
@PathVariable
String
id
,
@RequestBody
ChartExtRequest
requestList
)
throws
Exception
{
return
chartViewService
.
getData
(
id
,
requestList
);
}
}
}
backend/src/main/java/io/dataease/service/chart/ChartViewService.java
浏览文件 @
5c98e394
...
@@ -315,6 +315,12 @@ public class ChartViewService {
...
@@ -315,6 +315,12 @@ public class ChartViewService {
BeanUtils
.
copyBean
(
dto
,
view
);
BeanUtils
.
copyBean
(
dto
,
view
);
dto
.
setData
(
map
);
dto
.
setData
(
map
);
dto
.
setSql
(
datasourceRequest
.
getQuery
());
dto
.
setSql
(
datasourceRequest
.
getQuery
());
//如果能获取用户 则添加对应的权限
if
(
AuthUtils
.
getUser
()!=
null
){
ChartViewDTO
permissionDto
=
getOneWithPermission
(
dto
.
getId
());
dto
.
setPrivileges
(
permissionDto
.
getPrivileges
());
}
return
dto
;
return
dto
;
}
}
...
...
frontend/src/api/chart/chart.js
浏览文件 @
5c98e394
...
@@ -11,7 +11,7 @@ export function post(url, data) {
...
@@ -11,7 +11,7 @@ export function post(url, data) {
export
function
ajaxGetData
(
id
,
data
)
{
export
function
ajaxGetData
(
id
,
data
)
{
return
request
({
return
request
({
url
:
'/chart/view/get
Data
/'
+
id
,
url
:
'/chart/view/get
OneWithPermission
/'
+
id
,
method
:
'post'
,
method
:
'post'
,
loading
:
true
,
loading
:
true
,
hideMsg
:
true
,
hideMsg
:
true
,
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
5c98e394
...
@@ -902,6 +902,7 @@ export default {
...
@@ -902,6 +902,7 @@ export default {
this
.
data
=
response
.
data
.
data
this
.
data
=
response
.
data
.
data
// console.log(JSON.stringify(this.chart))
// console.log(JSON.stringify(this.chart))
this
.
httpRequest
.
status
=
true
this
.
httpRequest
.
status
=
true
this
.
param
.
privileges
=
this
.
chart
.
privileges
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
resetView
()
this
.
resetView
()
this
.
httpRequest
.
status
=
err
.
response
.
data
.
success
this
.
httpRequest
.
status
=
err
.
response
.
data
.
success
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论