Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
10a4b2ce
提交
10a4b2ce
authored
8月 16, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 增加下钻方法返回值
上级
6b1abd07
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
2 行删除
+8
-2
ChartComponent.vue
frontend/src/views/chart/components/ChartComponent.vue
+6
-2
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+2
-0
没有找到文件。
frontend/src/views/chart/components/ChartComponent.vue
浏览文件 @
10a4b2ce
...
@@ -166,24 +166,28 @@ export default {
...
@@ -166,24 +166,28 @@ export default {
this
.
myEcharts
(
chart_option
)
this
.
myEcharts
(
chart_option
)
},
},
registerDynamicMap
(
areaCode
)
{
registerDynamicMap
(
areaCode
)
{
this
.
downOrUp
=
true
if
(
this
.
$store
.
getters
.
geoMap
[
areaCode
])
{
if
(
this
.
$store
.
getters
.
geoMap
[
areaCode
])
{
this
.
downOrUp
=
true
const
json
=
this
.
$store
.
getters
.
geoMap
[
areaCode
]
const
json
=
this
.
$store
.
getters
.
geoMap
[
areaCode
]
this
.
$echarts
.
registerMap
(
'MAP'
,
json
)
this
.
$echarts
.
registerMap
(
'MAP'
,
json
)
console
.
log
(
'开始切换地图:'
+
areaCode
)
return
return
}
}
geoJson
(
areaCode
).
then
(
res
=>
{
geoJson
(
areaCode
).
then
(
res
=>
{
this
.
downOrUp
=
true
this
.
$echarts
.
registerMap
(
'MAP'
,
res
)
this
.
$echarts
.
registerMap
(
'MAP'
,
res
)
console
.
log
(
'开始切换地图:'
+
areaCode
)
this
.
$store
.
dispatch
(
'map/setGeo'
,
{
this
.
$store
.
dispatch
(
'map/setGeo'
,
{
key
:
areaCode
,
key
:
areaCode
,
value
:
res
value
:
res
})
})
}).
catch
(()
=>
{
this
.
downOrUp
=
true
})
})
},
},
initMapChart
(
geoJson
,
chart
)
{
initMapChart
(
geoJson
,
chart
)
{
if
(
!
this
.
$echarts
.
getMap
(
'MAP'
)
||
!
this
.
downOrUp
)
{
if
(
!
this
.
$echarts
.
getMap
(
'MAP'
)
||
!
this
.
downOrUp
)
{
console
.
log
(
'开始初始化地图:'
)
this
.
$echarts
.
registerMap
(
'MAP'
,
geoJson
)
this
.
$echarts
.
registerMap
(
'MAP'
,
geoJson
)
}
}
// this.$echarts.getMap('MAP') || this.$echarts.registerMap('MAP', geoJson)
// this.$echarts.getMap('MAP') || this.$echarts.registerMap('MAP', geoJson)
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
10a4b2ce
...
@@ -1457,9 +1457,11 @@ export default {
...
@@ -1457,9 +1457,11 @@ export default {
const
currentNode
=
this
.
findEntityByCode
(
aCode
||
this
.
view
.
customAttr
.
areaCode
,
this
.
places
)
const
currentNode
=
this
.
findEntityByCode
(
aCode
||
this
.
view
.
customAttr
.
areaCode
,
this
.
places
)
if
(
currentNode
&&
currentNode
.
children
&&
currentNode
.
children
.
length
>
0
)
{
if
(
currentNode
&&
currentNode
.
children
&&
currentNode
.
children
.
length
>
0
)
{
const
nextNode
=
currentNode
.
children
.
find
(
item
=>
item
.
name
===
name
)
const
nextNode
=
currentNode
.
children
.
find
(
item
=>
item
.
name
===
name
)
if
(
!
nextNode
||
!
nextNode
.
code
)
return
null
// this.view.customAttr.areaCode = nextNode.code
// this.view.customAttr.areaCode = nextNode.code
this
.
currentAcreaNode
=
nextNode
this
.
currentAcreaNode
=
nextNode
this
.
$refs
.
dynamicChart
&&
this
.
$refs
.
dynamicChart
.
registerDynamicMap
&&
this
.
$refs
.
dynamicChart
.
registerDynamicMap
(
nextNode
.
code
)
this
.
$refs
.
dynamicChart
&&
this
.
$refs
.
dynamicChart
.
registerDynamicMap
&&
this
.
$refs
.
dynamicChart
.
registerDynamicMap
(
nextNode
.
code
)
return
nextNode
}
}
},
},
// 根据地名获取areaCode
// 根据地名获取areaCode
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论