Commit 300e59d4 by 胡悦

Merge branch 'gh_v1.2.0' of http://192.168.3.233:8090/gh/data-view into gh_v1.2.0

2 parents 12015a3a 6d2305ce
...@@ -149,7 +149,6 @@ export default { ...@@ -149,7 +149,6 @@ export default {
this.mTime = setInterval(this.pieActive, 15000) this.mTime = setInterval(this.pieActive, 15000)
}) })
this.echartsPie.on('mouseover', data => { this.echartsPie.on('mouseover', data => {
console.log(data, 'data')
this.mainValue = data.data.value this.mainValue = data.data.value
this.numDesc = data.data.name this.numDesc = data.data.name
this.descColor = data.color this.descColor = data.color
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</template> </template>
</div> </div>
<div class="table user-select pointer"> <div class="table user-select pointer">
<div class="tabs-title-info table-position">({{ tabTitle }})</div> <div class="tabs-title-info table-position">{{ tabTitle }}</div>
<div class="table-head"> <div class="table-head">
<template v-for="(i, index) in tabHead"> <template v-for="(i, index) in tabHead">
<div :class="['table-head-item flex', { active: index == tabIndex }]" :key="index" @click="tabIndex = index"> <div :class="['table-head-item flex', { active: index == tabIndex }]" :key="index" @click="tabIndex = index">
...@@ -233,8 +233,14 @@ export default { ...@@ -233,8 +233,14 @@ export default {
this.flag = true this.flag = true
}) })
}, },
chartAction(dataList) {
this.canvas.dispatchAction({
type: 'showTip',
seriesIndex: 0,
dataIndex: dataList.length - 1
})
},
draw (lineData, queryType) { draw (lineData, queryType) {
console.log(lineData)
let data = [], let data = [],
Min=0, Min=0,
xData = [], xData = [],
...@@ -337,6 +343,7 @@ export default { ...@@ -337,6 +343,7 @@ export default {
] ]
} }
this.canvas.setOption(options) this.canvas.setOption(options)
this.chartAction(lineData)
window.addEventListener('resize', () => { window.addEventListener('resize', () => {
this.canvas.resize() this.canvas.resize()
}) })
...@@ -490,6 +497,7 @@ export default { ...@@ -490,6 +497,7 @@ export default {
top: -20px; top: -20px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
color: #606266 !important;
} }
&-head { &-head {
display: grid; display: grid;
......
...@@ -108,7 +108,6 @@ export default { ...@@ -108,7 +108,6 @@ export default {
const date = this.dataList[0][index].statDate const date = this.dataList[0][index].statDate
var txt = date + '<br />' var txt = date + '<br />'
e.forEach(item => { e.forEach(item => {
console.log(item)
item.marker = '<span style=\"display:inline-block;margin-right:4px;border-radius:5px;width:5px;height:5px;background-color:' + this.colorList[item.componentIndex] + ';\"></span>' item.marker = '<span style=\"display:inline-block;margin-right:4px;border-radius:5px;width:5px;height:5px;background-color:' + this.colorList[item.componentIndex] + ';\"></span>'
txt = txt + item.marker + item.seriesName + ':' + item.value + '<br />' txt = txt + item.marker + item.seriesName + ':' + item.value + '<br />'
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!