fix: bug修复、地图色阶初版

This commit is contained in:
chenjinsong
2021-08-13 18:57:49 +08:00
parent c1bcc9394d
commit aa2d485f48
8 changed files with 51 additions and 46 deletions

View File

@@ -245,39 +245,23 @@ const singleValueLine = {
animation: false,
grid: {
left: 0,
bottom: 0,
bottom: 2,
top: 5,
right: 0
},
color: chartColor,
legend: {
tooltip: {
show: true,
formatter: '{a}'
},
show: false,
right: 23,
top: 8,
orient: 'horizontal',
icon: 'circle',
itemGap: 20,
itemWidth: 10,
textStyle: {
padding: [0, 0, 0, 5],
fontSize: 14
},
formatter: tooLongFormatter
show: false
},
series: [
{
name: '访问用户量',
type: 'line',
smooth: true,
legendHoverLink: false,
itemStyle: {
normal: {
color: '#81C9FF',
lineStyle: {
width:2
width: 2
}
}
},

View File

@@ -40,6 +40,11 @@
border-radius: 2px;
height: 100%;
width: 100%;
.chart-drawing {
height: 100%;
width: 100%;
}
}
&>.cn-chart__echarts, &>.cn-chart__table, &>.cn-chart__map {
display: flex;
@@ -62,11 +67,6 @@
}
.cn-chart__body {
flex: auto;
.chart-drawing {
height: 100%;
width: 100%;
}
}
}
&>.cn-chart__single-value.cn-chart__single-value--icon-left {

View File

@@ -43,7 +43,7 @@
}
.cn-entity {
box-sizing: border-box;
margin-bottom: 30px;
margin: 0 10px 30px;
width: 240px;
height: 315px;
background: #FFFFFF;

View File

@@ -125,12 +125,20 @@ export default {
},
entityName () {
return this.$store.getters.entityName
},
storeFrom () {
return this.$store.getters.from
}
},
watch: {
from (n) {
this.$store.commit('entityTypeChange', n)
},
storeFrom (n) {
if (this.from !== n) {
this.from = n
}
},
entityName (n) {
const breadcrumb = this.breadcrumbMap.find(b => b.path === '/entityExplorer')
breadcrumb.childName = n