fix: bug修复、地图色阶初版
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
}
|
||||
.cn-entity {
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 30px;
|
||||
margin: 0 10px 30px;
|
||||
width: 240px;
|
||||
height: 315px;
|
||||
background: #FFFFFF;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user