Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
8a9f3d38
提交
8a9f3d38
authored
4月 07, 2022
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of github.com:dataease/dataease into dev
上级
57d299e6
7782e8c1
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
59 行增加
和
20 行删除
+59
-20
ChartViewService.java
...main/java/io/dataease/service/chart/ChartViewService.java
+3
-0
PanelViewService.java
...main/java/io/dataease/service/panel/PanelViewService.java
+2
-2
PluginService.java
.../src/main/java/io/dataease/service/sys/PluginService.java
+3
-3
plugin.js
frontend/src/api/system/plugin.js
+1
-1
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+1
-1
PreviewMobile.vue
...src/components/canvas/components/Editor/PreviewMobile.vue
+1
-1
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+1
-1
gauge.js
frontend/src/views/chart/chart/gauge/gauge.js
+10
-3
gauge_antv.js
frontend/src/views/chart/chart/gauge/gauge_antv.js
+20
-0
TitleSelectorAntV.vue
...ws/chart/components/component-style/TitleSelectorAntV.vue
+13
-4
Group.vue
frontend/src/views/chart/group/Group.vue
+1
-1
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+1
-1
index.vue
frontend/src/views/panel/ViewSelect/index.vue
+1
-1
TemplateAllList.vue
frontend/src/views/panel/list/EditPanel/TemplateAllList.vue
+1
-1
没有找到文件。
backend/src/main/java/io/dataease/service/chart/ChartViewService.java
浏览文件 @
8a9f3d38
...
@@ -524,6 +524,9 @@ public class ChartViewService {
...
@@ -524,6 +524,9 @@ public class ChartViewService {
fieldMap
.
put
(
"extBubble"
,
extBubble
);
fieldMap
.
put
(
"extBubble"
,
extBubble
);
PluginViewParam
pluginViewParam
=
buildPluginParam
(
fieldMap
,
fieldCustomFilter
,
extFilterList
,
ds
,
table
,
view
);
PluginViewParam
pluginViewParam
=
buildPluginParam
(
fieldMap
,
fieldCustomFilter
,
extFilterList
,
ds
,
table
,
view
);
String
sql
=
pluginViewSql
(
pluginViewParam
,
view
);
String
sql
=
pluginViewSql
(
pluginViewParam
,
view
);
if
(
StringUtils
.
isBlank
(
sql
))
{
return
emptyChartViewDTO
(
view
);
}
datasourceRequest
.
setQuery
(
sql
);
datasourceRequest
.
setQuery
(
sql
);
data
=
datasourceProvider
.
getData
(
datasourceRequest
);
data
=
datasourceProvider
.
getData
(
datasourceRequest
);
...
...
backend/src/main/java/io/dataease/service/panel/PanelViewService.java
浏览文件 @
8a9f3d38
...
@@ -128,9 +128,9 @@ public class PanelViewService {
...
@@ -128,9 +128,9 @@ public class PanelViewService {
viewIds
=
panelViewInsertDTOList
.
stream
().
map
(
panelView
->
panelView
.
getChartViewId
()).
collect
(
Collectors
.
toList
());
viewIds
=
panelViewInsertDTOList
.
stream
().
map
(
panelView
->
panelView
.
getChartViewId
()).
collect
(
Collectors
.
toList
());
extChartViewMapper
.
copyCacheToView
(
viewIds
);
extChartViewMapper
.
copyCacheToView
(
viewIds
);
}
}
extChartViewMapper
.
deleteCacheWithPanel
(
viewIds
,
panelId
);
extChartViewMapper
.
deleteNoUseView
(
viewIds
,
panelId
);
}
}
extChartViewMapper
.
deleteCacheWithPanel
(
viewIds
,
panelId
);
extChartViewMapper
.
deleteNoUseView
(
viewIds
,
panelId
);
panelGroup
.
setMobileLayout
(
mobileLayout
);
panelGroup
.
setMobileLayout
(
mobileLayout
);
return
viewIds
;
return
viewIds
;
}
}
...
...
backend/src/main/java/io/dataease/service/sys/PluginService.java
浏览文件 @
8a9f3d38
...
@@ -255,14 +255,14 @@ public class PluginService {
...
@@ -255,14 +255,14 @@ public class PluginService {
}
}
public
boolean
versionMatch
(
String
pluginVersion
)
{
public
boolean
versionMatch
(
String
pluginVersion
)
{
List
<
Integer
>
versionLists
=
Arrays
.
stream
(
version
.
split
(
"."
)).
map
(
CodingUtil:
:
string2Integer
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
versionLists
=
Arrays
.
stream
(
version
.
split
(
"
\\
."
)).
map
(
CodingUtil:
:
string2Integer
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
requireVersionLists
=
Arrays
.
stream
(
pluginVersion
.
split
(
"."
)).
map
(
CodingUtil:
:
string2Integer
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
requireVersionLists
=
Arrays
.
stream
(
pluginVersion
.
split
(
"
\\
."
)).
map
(
CodingUtil:
:
string2Integer
).
collect
(
Collectors
.
toList
());
int
maxSize
=
Math
.
max
(
versionLists
.
size
(),
requireVersionLists
.
size
());
int
maxSize
=
Math
.
max
(
versionLists
.
size
(),
requireVersionLists
.
size
());
for
(
int
i
=
0
;
i
<
maxSize
;
i
++)
{
for
(
int
i
=
0
;
i
<
maxSize
;
i
++)
{
Integer
currentV
=
versionLists
.
size
()
==
i
?
0
:
versionLists
.
get
(
i
);
Integer
currentV
=
versionLists
.
size
()
==
i
?
0
:
versionLists
.
get
(
i
);
Integer
requireV
=
requireVersionLists
.
size
()
==
i
?
0
:
requireVersionLists
.
get
(
i
);
Integer
requireV
=
requireVersionLists
.
size
()
==
i
?
0
:
requireVersionLists
.
get
(
i
);
if
(
requireV
>
currentV
)
return
false
;
if
(
requireV
>
currentV
)
return
false
;
}
}
return
fals
e
;
return
tru
e
;
}
}
}
}
frontend/src/api/system/plugin.js
浏览文件 @
8a9f3d38
...
@@ -14,7 +14,7 @@ export function pluginLists(page, size, data) {
...
@@ -14,7 +14,7 @@ export function pluginLists(page, size, data) {
export
function
uninstall
(
pluginId
)
{
export
function
uninstall
(
pluginId
)
{
return
request
({
return
request
({
url
:
pathMap
.
query
Path
+
pluginId
,
url
:
pathMap
.
uninstall
Path
+
pluginId
,
method
:
'post'
,
method
:
'post'
,
loading
:
true
loading
:
true
})
})
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
8a9f3d38
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
/>
/>
<!--视图详情-->
<!--视图详情-->
<el-dialog
<el-dialog
:title=
"
'['+showChartInfo.name+']'+
$t('chart.chart_details')"
:title=
"$t('chart.chart_details')"
:visible
.
sync=
"chartDetailsVisible"
:visible
.
sync=
"chartDetailsVisible"
width=
"70%"
width=
"70%"
class=
"dialog-css"
class=
"dialog-css"
...
...
frontend/src/components/canvas/components/Editor/PreviewMobile.vue
浏览文件 @
8a9f3d38
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
/>
/>
<!--视图详情-->
<!--视图详情-->
<el-dialog
<el-dialog
:title=
"
'['+showChartInfo.name+']'+
$t('chart.chart_details')"
:title=
"$t('chart.chart_details')"
:visible
.
sync=
"chartDetailsVisible"
:visible
.
sync=
"chartDetailsVisible"
width=
"70%"
width=
"70%"
class=
"dialog-css"
class=
"dialog-css"
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
8a9f3d38
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
<!--视图详情-->
<!--视图详情-->
<el-dialog
<el-dialog
:title=
"
'['+showChartInfo.name+']'+
$t('chart.chart_details')"
:title=
"$t('chart.chart_details')"
:visible
.
sync=
"chartDetailsVisible"
:visible
.
sync=
"chartDetailsVisible"
width=
"70%"
width=
"70%"
class=
"dialog-css"
class=
"dialog-css"
...
...
frontend/src/views/chart/chart/gauge/gauge.js
浏览文件 @
8a9f3d38
...
@@ -87,17 +87,24 @@ export function baseGaugeOption(chart_option, chart) {
...
@@ -87,17 +87,24 @@ export function baseGaugeOption(chart_option, chart) {
show
:
false
show
:
false
}
}
chart_option
.
series
[
0
].
axisTick
=
{
chart_option
.
series
[
0
].
axisTick
=
{
splitNumber
:
5
,
// TODO 刻度间隔数
length
:
10
,
// TODO 子刻度线长度
lineStyle
:
{
lineStyle
:
{
color
:
'auto'
color
:
'auto'
,
width
:
2
// TODO 子刻度线宽度
}
}
}
}
chart_option
.
series
[
0
].
splitLine
=
{
chart_option
.
series
[
0
].
splitLine
=
{
length
:
18
,
// TODO 刻度线长度
lineStyle
:
{
lineStyle
:
{
color
:
'auto'
color
:
'auto'
,
width
:
2
// TODO 刻度线宽度
}
}
}
}
chart_option
.
series
[
0
].
axisLabel
=
{
chart_option
.
series
[
0
].
axisLabel
=
{
color
:
'auto'
color
:
'auto'
,
distance
:
20
,
// TODO 刻度值文字里刻度线距离
fontSize
:
20
// TODO 刻度值字体大小
}
}
}
}
}
}
...
...
frontend/src/views/chart/chart/gauge/gauge_antv.js
浏览文件 @
8a9f3d38
...
@@ -72,6 +72,26 @@ export function baseGaugeOptionAntV(plot, container, chart, action) {
...
@@ -72,6 +72,26 @@ export function baseGaugeOptionAntV(plot, container, chart, action) {
// indicator: null,
// indicator: null,
statistic
:
{
statistic
:
{
content
:
labelContent
content
:
labelContent
},
axis
:
{
label
:
{
style
:
{
fontSize
:
14
// TODO 刻度值字体大小
}
},
tickLine
:
{
length
:
-
12
,
// TODO 刻度线长度
style
:
{
lineWidth
:
1
// TODO 刻度线宽度
}
},
subTickLine
:
{
count
:
4
,
// TODO 子刻度数
length
:
-
6
,
// TODO 子刻度线长度
style
:
{
lineWidth
:
1
// TODO 子刻度线宽度
}
}
}
}
// range: {
// range: {
// width: 12
// width: 12
...
...
frontend/src/views/chart/components/component-style/TitleSelectorAntV.vue
浏览文件 @
8a9f3d38
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
<
script
>
<
script
>
import
{
COLOR_PANEL
,
DEFAULT_TITLE_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_TITLE_STYLE
}
from
'../../chart/chart'
import
{
checkTitle
}
from
'@/api/chart/chart'
export
default
{
export
default
{
name
:
'TitleSelectorAntV'
,
name
:
'TitleSelectorAntV'
,
...
@@ -107,10 +108,18 @@ export default {
...
@@ -107,10 +108,18 @@ export default {
this
.
titleForm
.
title
=
this
.
chart
.
title
this
.
titleForm
.
title
=
this
.
chart
.
title
return
return
}
}
if
(
!
this
.
titleForm
.
show
)
{
checkTitle
({
id
:
this
.
chart
.
id
,
title
:
this
.
titleForm
.
title
,
sceneId
:
this
.
chart
.
sceneId
}).
then
((
rsp
)
=>
{
this
.
isSetting
=
false
if
(
rsp
.
data
===
'success'
)
{
}
if
(
!
this
.
titleForm
.
show
)
{
this
.
$emit
(
'onTextChange'
,
this
.
titleForm
)
this
.
isSetting
=
false
}
this
.
$emit
(
'onTextChange'
,
this
.
titleForm
)
}
else
{
this
.
$error
(
this
.
$t
(
'chart.title_repeat'
))
this
.
titleForm
.
title
=
this
.
chart
.
title
return
}
})
},
},
inputOnInput
:
function
(
e
)
{
inputOnInput
:
function
(
e
)
{
this
.
$forceUpdate
()
this
.
$forceUpdate
()
...
...
frontend/src/views/chart/group/Group.vue
浏览文件 @
8a9f3d38
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
</el-row>
</el-row>
</el-row>
</el-row>
<el-row
class=
"chart-box"
style=
"text-align: center;"
>
<el-row
class=
"chart-box"
style=
"text-align: center;"
>
<svg-icon
:icon-class=
"view.isPlugin ? ('/api/pluginCommon/staticInfo/' + view.type + '/svg') : view.type"
class=
"chart-icon"
/>
<svg-icon
:icon-class=
"view.isPlugin
&& view.type && view.type !== 'buddle-map'
? ('/api/pluginCommon/staticInfo/' + view.type + '/svg') : view.type"
class=
"chart-icon"
/>
</el-row>
</el-row>
</el-row>
</el-row>
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
8a9f3d38
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
<span>
{{
$t
(
'chart.chart_type'
)
}}
</span>
<span>
{{
$t
(
'chart.chart_type'
)
}}
</span>
<el-row
style=
"padding: 4px 0 4px 10px;"
>
<el-row
style=
"padding: 4px 0 4px 10px;"
>
<span>
<span>
<svg-icon
:icon-class=
"view.isPlugin ? ('/api/pluginCommon/staticInfo/' + view.type + '/svg') : view.type"
class=
"chart-icon"
/>
<svg-icon
:icon-class=
"view.isPlugin
&& view.type && view.type !== 'buddle-map'
? ('/api/pluginCommon/staticInfo/' + view.type + '/svg') : view.type"
class=
"chart-icon"
/>
</span>
</span>
<span
style=
"float: right;"
>
<span
style=
"float: right;"
>
<el-popover
<el-popover
...
...
frontend/src/views/panel/ViewSelect/index.vue
浏览文件 @
8a9f3d38
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<svg-icon
icon-class=
"panel"
class=
"ds-icon-scene"
/>
<svg-icon
icon-class=
"panel"
class=
"ds-icon-scene"
/>
</span>
</span>
<span
v-else
>
<span
v-else
>
<svg-icon
:icon-class=
"data.isPlugin ? ('/api/pluginCommon/staticInfo/' + data.modelInnerType + '/svg') : data.modelInnerType"
style=
"width: 14px;height: 14px"
/>
<svg-icon
:icon-class=
"data.isPlugin
&& data.type && data.type !== 'buddle-map'
? ('/api/pluginCommon/staticInfo/' + data.modelInnerType + '/svg') : data.modelInnerType"
style=
"width: 14px;height: 14px"
/>
</span>
</span>
<span
style=
"margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"
:title=
"data.name"
>
{{
data
.
name
}}
</span>
<span
style=
"margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"
:title=
"data.name"
>
{{
data
.
name
}}
</span>
</span>
</span>
...
...
frontend/src/views/panel/list/EditPanel/TemplateAllList.vue
浏览文件 @
8a9f3d38
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<span
v-if=
"data.nodeType==='folder'"
>
<span
v-if=
"data.nodeType==='folder'"
>
<i
class=
"el-icon-folder"
/>
<i
class=
"el-icon-folder"
/>
</span>
</span>
<span
style=
"margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"
>
{{
data
.
name
}}
</span>
<span
:title=
"data.name"
style=
"margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"
>
{{
data
.
name
}}
</span>
</span>
</span>
</span>
</span>
</el-tree>
</el-tree>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论