Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
beeae23d
提交
beeae23d
authored
7月 27, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of github.com:dataease/dataease into dev
上级
fa00806f
78712f56
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
61 行增加
和
12 行删除
+61
-12
DataSetTableService.java
...java/io/dataease/service/dataset/DataSetTableService.java
+2
-2
en.js
frontend/src/lang/en.js
+1
-1
getters.js
frontend/src/store/getters.js
+2
-1
index.js
frontend/src/store/index.js
+3
-1
map.js
frontend/src/store/modules/map.js
+25
-0
ChartComponent.vue
frontend/src/views/chart/components/ChartComponent.vue
+19
-7
ViewTable.vue
frontend/src/views/dataset/data/ViewTable.vue
+9
-0
没有找到文件。
backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java
浏览文件 @
beeae23d
...
...
@@ -433,7 +433,7 @@ public class DataSetTableService {
}
try
{
datasourceRequest
.
setQuery
(
qp
.
createQueryTableWithLimit
(
table
,
fields
,
Integer
.
valueOf
(
dataSetTableRequest
.
getRow
())));
dataSetPreviewPage
.
setTotal
(
Integer
.
valueOf
(
jdbcProvider
.
getData
(
datasourceRequest
).
get
(
0
)[
0
]
));
dataSetPreviewPage
.
setTotal
(
jdbcProvider
.
getData
(
datasourceRequest
).
size
(
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -480,7 +480,7 @@ public class DataSetTableService {
try
{
datasourceRequest
.
setQuery
(
qp
.
createQueryTableWithLimit
(
table
,
fields
,
Integer
.
valueOf
(
dataSetTableRequest
.
getRow
())));
dataSetPreviewPage
.
setTotal
(
Integer
.
valueOf
(
jdbcProvider
.
getData
(
datasourceRequest
).
get
(
0
)[
0
]
));
dataSetPreviewPage
.
setTotal
(
jdbcProvider
.
getData
(
datasourceRequest
).
size
(
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
frontend/src/lang/en.js
浏览文件 @
beeae23d
...
...
@@ -592,7 +592,7 @@ export default {
create_view
:
'Create Chart'
,
data_preview
:
'Data preview'
,
dimension
:
'Dimension'
,
quota
:
'
Index
'
,
quota
:
'
Quota
'
,
title
:
'Title'
,
show
:
'Show'
,
chart_type
:
'Chart Type'
,
...
...
frontend/src/store/getters.js
浏览文件 @
beeae23d
...
...
@@ -26,6 +26,7 @@ const getters = {
licMsg
:
state
=>
state
.
lic
.
licMsg
,
uiInfo
:
state
=>
state
.
user
.
uiInfo
,
conditions
:
state
=>
state
.
conditions
.
conditions
,
msgTypes
:
state
=>
state
.
msg
.
msgTypes
msgTypes
:
state
=>
state
.
msg
.
msgTypes
,
geoMap
:
state
=>
state
.
map
.
geoMap
}
export
default
getters
frontend/src/store/index.js
浏览文件 @
beeae23d
...
...
@@ -12,6 +12,7 @@ import panel from './modules/panel'
import
application
from
'./modules/application'
import
lic
from
'./modules/lic'
import
msg
from
'./modules/msg'
import
map
from
'./modules/map'
import
animation
from
'@/components/canvas/store/animation'
import
compose
from
'@/components/canvas/store/compose'
import
contextmenu
from
'@/components/canvas/store/contextmenu'
...
...
@@ -185,7 +186,8 @@ const data = {
panel
,
application
,
lic
,
msg
msg
,
map
},
getters
}
...
...
frontend/src/store/modules/map.js
0 → 100644
浏览文件 @
beeae23d
const
state
=
{
geoMap
:
{}
}
const
mutations
=
{
SET_GEO
:
(
state
,
{
key
,
value
})
=>
{
state
.
geoMap
[
key
]
=
value
}
}
const
actions
=
{
setGeo
({
commit
},
data
)
{
commit
(
'SET_GEO'
,
data
)
}
}
export
default
{
namespaced
:
true
,
state
,
mutations
,
actions
}
frontend/src/views/chart/components/ChartComponent.vue
浏览文件 @
beeae23d
...
...
@@ -35,7 +35,8 @@ export default {
data
()
{
return
{
myChart
:
{},
chartId
:
uuid
.
v1
()
chartId
:
uuid
.
v1
(),
currentGeoJson
:
null
}
},
watch
:
{
...
...
@@ -100,22 +101,33 @@ export default {
const
customAttr
=
JSON
.
parse
(
chart
.
customAttr
)
if
(
!
customAttr
.
areaCode
)
return
let
areaJson
if
((
areaJson
=
localStorage
.
getItem
(
'areaJson'
+
customAttr
.
areaCode
))
!==
null
)
{
this
.
initMapChart
(
areaJson
,
chart
)
if
(
this
.
currentGeoJson
)
{
this
.
initMapChart
(
this
.
currentGeoJson
,
chart
)
return
}
if
(
this
.
$store
.
getters
.
geoMap
[
customAttr
.
areaCode
])
{
this
.
currentGeoJson
=
this
.
$store
.
getters
.
geoMap
[
customAttr
.
areaCode
]
this
.
initMapChart
(
this
.
currentGeoJson
,
chart
)
return
}
geoJson
(
customAttr
.
areaCode
).
then
(
res
=>
{
this
.
initMapChart
(
res
.
data
,
chart
)
// localStorage最大容量只有5M,先取消缓存
// localStorage.setItem('areaJson' + customAttr.areaCode, res.data)
this
.
$store
.
dispatch
(
'map/setGeo'
,
{
key
:
customAttr
.
areaCode
,
value
:
res
.
data
})
this
.
currentGeoJson
=
res
.
data
})
return
}
this
.
myEcharts
(
chart_option
)
},
initMapChart
(
geoJson
,
chart
)
{
this
.
$echarts
.
registerMap
(
'HK'
,
geoJson
)
// this.$echarts.registerMap('HK', geoJson)
this
.
$echarts
.
getMap
(
'HK'
)
||
this
.
$echarts
.
registerMap
(
'HK'
,
geoJson
)
const
base_json
=
JSON
.
parse
(
JSON
.
stringify
(
BASE_MAP
))
const
chart_option
=
baseMapOption
(
base_json
,
chart
)
this
.
myEcharts
(
chart_option
)
...
...
frontend/src/views/dataset/data/ViewTable.vue
浏览文件 @
beeae23d
...
...
@@ -117,6 +117,7 @@ export default {
},
methods
:
{
initTable
(
id
)
{
this
.
resetPage
()
this
.
tableViewRowForm
.
row
=
1000
if
(
id
!==
null
)
{
this
.
fields
=
[]
...
...
@@ -198,6 +199,14 @@ export default {
msg2Current
(
sourceParam
)
{
this
.
tabActive
=
'updateInfo'
this
.
table
.
msgTaskId
=
sourceParam
.
taskId
},
resetPage
()
{
this
.
page
=
{
page
:
1
,
pageSize
:
100
,
show
:
1000
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论