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 {
this.mTime = setInterval(this.pieActive, 15000)
})
this.echartsPie.on('mouseover', data => {
console.log(data, 'data')
this.mainValue = data.data.value
this.numDesc = data.data.name
this.descColor = data.color
......
......@@ -53,7 +53,7 @@
</template>
</div>
<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">
<template v-for="(i, index) in tabHead">
<div :class="['table-head-item flex', { active: index == tabIndex }]" :key="index" @click="tabIndex = index">
......@@ -233,8 +233,14 @@ export default {
this.flag = true
})
},
chartAction(dataList) {
this.canvas.dispatchAction({
type: 'showTip',
seriesIndex: 0,
dataIndex: dataList.length - 1
})
},
draw (lineData, queryType) {
console.log(lineData)
let data = [],
Min=0,
xData = [],
......@@ -337,6 +343,7 @@ export default {
]
}
this.canvas.setOption(options)
this.chartAction(lineData)
window.addEventListener('resize', () => {
this.canvas.resize()
})
......@@ -490,6 +497,7 @@ export default {
top: -20px;
left: 50%;
transform: translateX(-50%);
color: #606266 !important;
}
&-head {
display: grid;
......
......@@ -108,7 +108,6 @@ export default {
const date = this.dataList[0][index].statDate
var txt = date + '<br />'
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>'
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!