Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
5353d727
提交
5353d727
authored
4月 26, 2022
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v1.10' of github.com:dataease/dataease into v1.10
上级
ea78720c
dec22613
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
59 行增加
和
11 行删除
+59
-11
README.md
README.md
+1
-1
ChartViewController.java
...ava/io/dataease/controller/chart/ChartViewController.java
+9
-4
ChartCopyBatchRequest.java
...aease/controller/request/chart/ChartCopyBatchRequest.java
+20
-0
ChartViewService.java
...main/java/io/dataease/service/chart/ChartViewService.java
+29
-6
V34__1.10.sql
backend/src/main/resources/db/migration/V34__1.10.sql
+0
-0
chart.js
frontend/src/api/chart/chart.js
+0
-0
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+0
-0
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+0
-0
DeFrame.vue
frontend/src/components/canvas/custom-component/DeFrame.vue
+0
-0
UserViewDialog.vue
...src/components/canvas/custom-component/UserViewDialog.vue
+0
-0
component-list.js
.../src/components/canvas/custom-component/component-list.js
+0
-0
copy.js
frontend/src/components/canvas/store/copy.js
+0
-0
DeSelect.vue
frontend/src/components/widget/DeWidget/DeSelect.vue
+0
-0
DeTabs.vue
frontend/src/components/widget/DeWidget/DeTabs.vue
+0
-0
index.scss
frontend/src/styles/index.scss
+0
-0
index.vue
frontend/src/views/background/index.vue
+0
-0
chart.js
frontend/src/views/chart/chart/chart.js
+0
-0
ChartComponent.vue
frontend/src/views/chart/components/ChartComponent.vue
+0
-0
utils.js
frontend/src/views/chart/components/drag-item/utils.js
+0
-0
LabelNormal.vue
frontend/src/views/chart/components/normal/LabelNormal.vue
+0
-0
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+0
-0
index.vue
frontend/src/views/panel/SubjectSetting/index.vue
+0
-0
index.vue
frontend/src/views/panel/edit/index.vue
+0
-0
PanelViewShow.vue
frontend/src/views/panel/list/PanelViewShow.vue
+0
-0
DemoVideo.vue
frontend/src/views/wizard/details/DemoVideo.vue
+0
-0
index.vue
frontend/src/views/wizard/index.vue
+0
-0
没有找到文件。
README.md
浏览文件 @
5353d727
...
@@ -68,7 +68,7 @@ curl -sSL https://github.com/dataease/dataease/releases/latest/download/quick_st
...
@@ -68,7 +68,7 @@ curl -sSL https://github.com/dataease/dataease/releases/latest/download/quick_st
```
```
-
[
在线文档
](
https://dataease.io/docs/
)
-
[
在线文档
](
https://dataease.io/docs/
)
-
[
演示视频
](
https://www.bilibili.com/video/BV1
UB4y1K7jA
)
-
[
演示视频
](
https://www.bilibili.com/video/BV1
i34y1v7hq/
)
## 微信群
## 微信群
...
...
backend/src/main/java/io/dataease/controller/chart/ChartViewController.java
浏览文件 @
5353d727
...
@@ -5,10 +5,7 @@ import io.dataease.auth.annotation.DePermission;
...
@@ -5,10 +5,7 @@ import io.dataease.auth.annotation.DePermission;
import
io.dataease.auth.annotation.DePermissionProxy
;
import
io.dataease.auth.annotation.DePermissionProxy
;
import
io.dataease.commons.constants.DePermissionType
;
import
io.dataease.commons.constants.DePermissionType
;
import
io.dataease.commons.constants.ResourceAuthLevel
;
import
io.dataease.commons.constants.ResourceAuthLevel
;
import
io.dataease.controller.request.chart.ChartCalRequest
;
import
io.dataease.controller.request.chart.*
;
import
io.dataease.controller.request.chart.ChartExtRequest
;
import
io.dataease.controller.request.chart.ChartViewCacheRequest
;
import
io.dataease.controller.request.chart.ChartViewRequest
;
import
io.dataease.controller.response.ChartDetail
;
import
io.dataease.controller.response.ChartDetail
;
import
io.dataease.dto.chart.ChartViewDTO
;
import
io.dataease.dto.chart.ChartViewDTO
;
import
io.dataease.plugins.common.base.domain.ChartViewCacheWithBLOBs
;
import
io.dataease.plugins.common.base.domain.ChartViewCacheWithBLOBs
;
...
@@ -23,6 +20,7 @@ import springfox.documentation.annotations.ApiIgnore;
...
@@ -23,6 +20,7 @@ import springfox.documentation.annotations.ApiIgnore;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @Author gin
* @Author gin
...
@@ -112,6 +110,13 @@ public class ChartViewController {
...
@@ -112,6 +110,13 @@ public class ChartViewController {
return
chartViewService
.
chartCopy
(
id
,
panelId
);
return
chartViewService
.
chartCopy
(
id
,
panelId
);
}
}
@DePermission
(
type
=
DePermissionType
.
PANEL
,
level
=
ResourceAuthLevel
.
PANNEL_LEVEL_MANAGE
,
paramIndex
=
1
)
@ApiOperation
(
"批量复制"
)
@PostMapping
(
"chartBatchCopy/{panelId}"
)
public
Map
<
String
,
String
>
chartBatchCopy
(
@RequestBody
ChartCopyBatchRequest
request
,
@PathVariable
String
panelId
)
{
return
chartViewService
.
chartBatchCopy
(
request
,
panelId
);
}
@ApiIgnore
@ApiIgnore
@GetMapping
(
"searchAdviceSceneId/{panelId}"
)
@GetMapping
(
"searchAdviceSceneId/{panelId}"
)
public
String
searchAdviceSceneId
(
@PathVariable
String
panelId
)
{
public
String
searchAdviceSceneId
(
@PathVariable
String
panelId
)
{
...
...
backend/src/main/java/io/dataease/controller/request/chart/ChartCopyBatchRequest.java
0 → 100644
浏览文件 @
5353d727
package
io
.
dataease
.
controller
.
request
.
chart
;
import
lombok.Data
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* Author: wangjiahao
* Date: 2022/4/26
* Description:
*/
@Data
public
class
ChartCopyBatchRequest
{
private
String
panelId
;
private
Map
<
String
,
String
>
sourceAndTargetIds
;
}
backend/src/main/java/io/dataease/service/chart/ChartViewService.java
浏览文件 @
5353d727
package
io
.
dataease
.
service
.
chart
;
package
io
.
dataease
.
service
.
chart
;
import
cn.hutool.core.lang.Assert
;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
com.google.gson.reflect.TypeToken
;
import
com.google.gson.reflect.TypeToken
;
import
io.dataease.auth.entity.SysUserEntity
;
import
io.dataease.auth.entity.SysUserEntity
;
...
@@ -1024,13 +1025,35 @@ public class ChartViewService {
...
@@ -1024,13 +1025,35 @@ public class ChartViewService {
return
chartViewMapper
.
selectByPrimaryKey
(
id
);
return
chartViewMapper
.
selectByPrimaryKey
(
id
);
}
}
public
String
chartCopy
(
String
id
,
String
panelId
)
{
public
String
chartCopy
(
String
sourceViewId
,
String
newViewId
,
String
panelId
)
{
extChartViewMapper
.
chartCopy
(
newViewId
,
sourceViewId
,
panelId
);
extChartViewMapper
.
copyCache
(
sourceViewId
,
newViewId
);
extPanelGroupExtendDataMapper
.
copyExtendData
(
sourceViewId
,
newViewId
,
panelId
);
chartViewCacheService
.
refreshCache
(
newViewId
);
return
newViewId
;
}
public
String
chartCopy
(
String
sourceViewId
,
String
panelId
)
{
String
newChartId
=
UUID
.
randomUUID
().
toString
();
String
newChartId
=
UUID
.
randomUUID
().
toString
();
extChartViewMapper
.
chartCopy
(
newChartId
,
id
,
panelId
);
return
chartCopy
(
sourceViewId
,
newChartId
,
panelId
);
extChartViewMapper
.
copyCache
(
id
,
newChartId
);
}
extPanelGroupExtendDataMapper
.
copyExtendData
(
id
,
newChartId
,
panelId
);
chartViewCacheService
.
refreshCache
(
newChartId
);
return
newChartId
;
/**
* @Description Copy a set of views with a given source ID and target ID
* @param request
* @param panelId
* @return
*/
public
Map
<
String
,
String
>
chartBatchCopy
(
ChartCopyBatchRequest
request
,
String
panelId
){
Assert
.
notNull
(
panelId
,
"panelId should not be null"
);
Map
<
String
,
String
>
sourceAndTargetIds
=
request
.
getSourceAndTargetIds
();
if
(
sourceAndTargetIds
!=
null
&&
!
sourceAndTargetIds
.
isEmpty
()){
for
(
Map
.
Entry
<
String
,
String
>
entry:
sourceAndTargetIds
.
entrySet
()){
chartCopy
(
entry
.
getKey
(),
entry
.
getValue
(),
panelId
);
}
}
return
request
.
getSourceAndTargetIds
();
}
}
public
String
searchAdviceSceneId
(
String
panelId
)
{
public
String
searchAdviceSceneId
(
String
panelId
)
{
...
...
backend/src/main/resources/db/migration/V34__1.10.sql
浏览文件 @
5353d727
This source diff could not be displayed because it is too large. You can
view the blob
instead.
frontend/src/api/chart/chart.js
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/components/canvas/custom-component/DeFrame.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/components/canvas/custom-component/UserViewDialog.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/components/canvas/custom-component/component-list.js
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/components/canvas/store/copy.js
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/components/widget/DeWidget/DeSelect.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/components/widget/DeWidget/DeTabs.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/styles/index.scss
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/background/index.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/chart/chart/chart.js
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/chart/components/ChartComponent.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/chart/components/drag-item/utils.js
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/chart/components/normal/LabelNormal.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/panel/SubjectSetting/index.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/panel/edit/index.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/panel/list/PanelViewShow.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/wizard/details/DemoVideo.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
frontend/src/views/wizard/index.vue
浏览文件 @
5353d727
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论