Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
SatelliteDigital
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
nijiawen
SatelliteDigital
Commits
9265a41b
提交
9265a41b
authored
4月 03, 2026
作者:
liujiaxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
热力图底色修改
上级
3ac5b246
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
19 行删除
+18
-19
hotMap.vue
src/pages/all/components/hotMapComponents/hotMap.vue
+4
-8
index.vue
src/pages/all/components/hotMapComponents/index.vue
+14
-11
没有找到文件。
src/pages/all/components/hotMapComponents/hotMap.vue
浏览文件 @
9265a41b
...
@@ -39,7 +39,6 @@ const props = defineProps({
...
@@ -39,7 +39,6 @@ const props = defineProps({
watch
(()
=>
props
.
data
,
(
newVal
)
=>
{
watch
(()
=>
props
.
data
,
(
newVal
)
=>
{
// // updateChart();
// // updateChart();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
initChart
();
initChart
();
},
0
)
},
0
)
...
@@ -78,22 +77,19 @@ const data = computed(() => {
...
@@ -78,22 +77,19 @@ const data = computed(() => {
}
}
// console.log('y', y)
// console.log('y', y)
y
.
forEach
(
y
=>
{
y
.
forEach
(
y
=>
{
const
{
value
,
GridCode
}
=
y
const
{
value
,
GridCode
}
=
y
result
.
push
({
result
.
push
({
code
:
GridCode
,
code
:
GridCode
,
count
:
value
,
count
:
value
,
})
})
// console.log('item', item)
// console.log('item', item)
})
})
})
})
result
=
result
.
sort
((
pre
,
next
)
=>
pre
.
count
-
next
.
count
)
result
=
result
.
sort
((
pre
,
next
)
=>
pre
.
count
-
next
.
count
)
maxValue
.
value
=
result
[
result
.
length
-
1
]?.
count
||
0
maxValue
.
value
=
result
[
result
.
length
-
1
]?.
count
||
0
result
=
mergeData
(
result
,
appStore
.
gridInfoList
)
result
=
mergeData
(
result
,
appStore
.
gridInfoList
)
console
.
log
(
result
,
'热力图对比'
);
return
result
return
result
})
})
...
@@ -205,8 +201,8 @@ function initChart() {
...
@@ -205,8 +201,8 @@ function initChart() {
textBorderWidth
:
1
,
textBorderWidth
:
1
,
},
},
itemStyle
:
{
itemStyle
:
{
areaColor
:
"#
163C7A
"
,
// 地图底色
areaColor
:
"#
282a31
"
,
// 地图底色
borderColor
:
"#
2a6ea6
"
,
// 国界线
borderColor
:
"#
575a61
"
,
// 国界线
borderWidth
:
1
,
borderWidth
:
1
,
},
},
emphasis
:
{
emphasis
:
{
...
...
src/pages/all/components/hotMapComponents/index.vue
浏览文件 @
9265a41b
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
<!-- 标题文本 -->
<!-- 标题文本 -->
<div
class=
"hot-title"
>
<div
class=
"hot-title"
>
<div
class=
"hot-title-text"
>
{{
props
.
title
}}
</div>
<div
class=
"hot-title-text"
>
{{
props
.
title
}}
</div>
<el-select
v-model=
"selectedValue"
placeholder=
"切换热力图"
class=
"selects"
clearable
>
<el-option
v-for=
"(building, index) in props.legendName"
:key=
"building"
:label=
"building"
:value=
"index"
/>
</el-select>
<div
class=
"hot-title-enlarge"
>
<div
class=
"hot-title-enlarge"
>
<svg
class=
"rect"
width=
"20"
height=
"20"
viewBox=
"0 0 32 32"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<svg
class=
"rect"
width=
"20"
height=
"20"
viewBox=
"0 0 32 32"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<rect
x=
"0.5"
y=
"0.5"
width=
"31"
height=
"31"
rx=
"3.5"
stroke=
"white"
stroke-opacity=
"0.65"
/>
<rect
x=
"0.5"
y=
"0.5"
width=
"31"
height=
"31"
rx=
"3.5"
stroke=
"white"
stroke-opacity=
"0.65"
/>
...
@@ -23,12 +26,12 @@
...
@@ -23,12 +26,12 @@
</div>
</div>
<!-- 核心数据指标 -->
<!-- 核心数据指标 -->
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"flex-box
flex-left
"
>
<div
class=
"flex-box "
>
<hotMap
:title=
"props.legendName[
0]"
:data=
"props.data[0
]"
></hotMap>
<hotMap
:title=
"props.legendName[
selectedValue]"
:data=
"props.data[selectedValue
]"
></hotMap>
</div>
</div>
<div
class=
"flex-box flex-right"
>
<
!--
<
div
class=
"flex-box flex-right"
>
<hotMap
:title=
"props.legendName[1]"
:data=
"props.data[1]"
></hotMap>
<hotMap
:title=
"props.legendName[1]"
:data=
"props.data[1]"
></hotMap>
</div>
</div>
-->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -36,7 +39,6 @@
...
@@ -36,7 +39,6 @@
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
hotMap
from
'./hotMap.vue'
import
hotMap
from
'./hotMap.vue'
const
props
=
defineProps
({
const
props
=
defineProps
({
slogan
:
{
slogan
:
{
type
:
String
,
type
:
String
,
...
@@ -54,13 +56,9 @@ const props = defineProps({
...
@@ -54,13 +56,9 @@ const props = defineProps({
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
}
}
})
})
console
.
log
(
props
.
data
,
'热力图数据'
)
const
selectedValue
=
ref
(
0
)
//热力图下拉框
console
.
log
(
props
.
legendName
[
0
],
'props.legendName'
)
console
.
log
(
props
,
'热力图数据'
)
const
componentProps
=
ref
({})
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
@@ -148,4 +146,8 @@ const componentProps = ref({})
...
@@ -148,4 +146,8 @@ const componentProps = ref({})
/* .flex-left {
/* .flex-left {
background-color: rgb(180, 180, 180);
background-color: rgb(180, 180, 180);
} */
} */
.selects
{
width
:
140px
;
border-radius
:
0px
!important
;
}
</
style
>
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论