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 个修改的文件
包含
54 行增加
和
15 行删除
+54
-15
ChartViewService.java
...main/java/io/dataease/service/chart/ChartViewService.java
+3
-0
PanelViewService.java
...main/java/io/dataease/service/panel/PanelViewService.java
+1
-1
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
+9
-0
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 {
fieldMap
.
put
(
"extBubble"
,
extBubble
);
PluginViewParam
pluginViewParam
=
buildPluginParam
(
fieldMap
,
fieldCustomFilter
,
extFilterList
,
ds
,
table
,
view
);
String
sql
=
pluginViewSql
(
pluginViewParam
,
view
);
if
(
StringUtils
.
isBlank
(
sql
))
{
return
emptyChartViewDTO
(
view
);
}
datasourceRequest
.
setQuery
(
sql
);
data
=
datasourceProvider
.
getData
(
datasourceRequest
);
...
...
backend/src/main/java/io/dataease/service/panel/PanelViewService.java
浏览文件 @
8a9f3d38
...
...
@@ -128,9 +128,9 @@ public class PanelViewService {
viewIds
=
panelViewInsertDTOList
.
stream
().
map
(
panelView
->
panelView
.
getChartViewId
()).
collect
(
Collectors
.
toList
());
extChartViewMapper
.
copyCacheToView
(
viewIds
);
}
}
extChartViewMapper
.
deleteCacheWithPanel
(
viewIds
,
panelId
);
extChartViewMapper
.
deleteNoUseView
(
viewIds
,
panelId
);
}
panelGroup
.
setMobileLayout
(
mobileLayout
);
return
viewIds
;
}
...
...
backend/src/main/java/io/dataease/service/sys/PluginService.java
浏览文件 @
8a9f3d38
...
...
@@ -255,14 +255,14 @@ public class PluginService {
}
public
boolean
versionMatch
(
String
pluginVersion
)
{
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
>
versionLists
=
Arrays
.
stream
(
version
.
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
());
for
(
int
i
=
0
;
i
<
maxSize
;
i
++)
{
Integer
currentV
=
versionLists
.
size
()
==
i
?
0
:
versionLists
.
get
(
i
);
Integer
requireV
=
requireVersionLists
.
size
()
==
i
?
0
:
requireVersionLists
.
get
(
i
);
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) {
export
function
uninstall
(
pluginId
)
{
return
request
({
url
:
pathMap
.
query
Path
+
pluginId
,
url
:
pathMap
.
uninstall
Path
+
pluginId
,
method
:
'post'
,
loading
:
true
})
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
8a9f3d38
...
...
@@ -25,7 +25,7 @@
/>
<!--视图详情-->
<el-dialog
:title=
"
'['+showChartInfo.name+']'+
$t('chart.chart_details')"
:title=
"$t('chart.chart_details')"
:visible
.
sync=
"chartDetailsVisible"
width=
"70%"
class=
"dialog-css"
...
...
frontend/src/components/canvas/components/Editor/PreviewMobile.vue
浏览文件 @
8a9f3d38
...
...
@@ -22,7 +22,7 @@
/>
<!--视图详情-->
<el-dialog
:title=
"
'['+showChartInfo.name+']'+
$t('chart.chart_details')"
:title=
"$t('chart.chart_details')"
:visible
.
sync=
"chartDetailsVisible"
width=
"70%"
class=
"dialog-css"
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
8a9f3d38
...
...
@@ -143,7 +143,7 @@
<!--视图详情-->
<el-dialog
:title=
"
'['+showChartInfo.name+']'+
$t('chart.chart_details')"
:title=
"$t('chart.chart_details')"
:visible
.
sync=
"chartDetailsVisible"
width=
"70%"
class=
"dialog-css"
...
...
frontend/src/views/chart/chart/gauge/gauge.js
浏览文件 @
8a9f3d38
...
...
@@ -87,17 +87,24 @@ export function baseGaugeOption(chart_option, chart) {
show
:
false
}
chart_option
.
series
[
0
].
axisTick
=
{
splitNumber
:
5
,
// TODO 刻度间隔数
length
:
10
,
// TODO 子刻度线长度
lineStyle
:
{
color
:
'auto'
color
:
'auto'
,
width
:
2
// TODO 子刻度线宽度
}
}
chart_option
.
series
[
0
].
splitLine
=
{
length
:
18
,
// TODO 刻度线长度
lineStyle
:
{
color
:
'auto'
color
:
'auto'
,
width
:
2
// TODO 刻度线宽度
}
}
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) {
// indicator: null,
statistic
:
{
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: {
// width: 12
...
...
frontend/src/views/chart/components/component-style/TitleSelectorAntV.vue
浏览文件 @
8a9f3d38
...
...
@@ -43,6 +43,7 @@
<
script
>
import
{
COLOR_PANEL
,
DEFAULT_TITLE_STYLE
}
from
'../../chart/chart'
import
{
checkTitle
}
from
'@/api/chart/chart'
export
default
{
name
:
'TitleSelectorAntV'
,
...
...
@@ -107,10 +108,18 @@ export default {
this
.
titleForm
.
title
=
this
.
chart
.
title
return
}
checkTitle
({
id
:
this
.
chart
.
id
,
title
:
this
.
titleForm
.
title
,
sceneId
:
this
.
chart
.
sceneId
}).
then
((
rsp
)
=>
{
if
(
rsp
.
data
===
'success'
)
{
if
(
!
this
.
titleForm
.
show
)
{
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
)
{
this
.
$forceUpdate
()
...
...
frontend/src/views/chart/group/Group.vue
浏览文件 @
8a9f3d38
...
...
@@ -224,7 +224,7 @@
</el-row>
</el-row>
<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>
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
8a9f3d38
...
...
@@ -154,7 +154,7 @@
<span>
{{
$t
(
'chart.chart_type'
)
}}
</span>
<el-row
style=
"padding: 4px 0 4px 10px;"
>
<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
style=
"float: right;"
>
<el-popover
...
...
frontend/src/views/panel/ViewSelect/index.vue
浏览文件 @
8a9f3d38
...
...
@@ -46,7 +46,7 @@
<svg-icon
icon-class=
"panel"
class=
"ds-icon-scene"
/>
</span>
<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
style=
"margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"
:title=
"data.name"
>
{{
data
.
name
}}
</span>
</span>
...
...
frontend/src/views/panel/list/EditPanel/TemplateAllList.vue
浏览文件 @
8a9f3d38
...
...
@@ -29,7 +29,7 @@
<span
v-if=
"data.nodeType==='folder'"
>
<i
class=
"el-icon-folder"
/>
</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>
</el-tree>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论