Commit 05a51b5d by 前端

Merge branch 'v1.2.0' into 'master'

V1.2.0

See merge request !5
2 parents 2f93be75 167b3b86
...@@ -121,9 +121,16 @@ export default { ...@@ -121,9 +121,16 @@ export default {
mounted() { mounted() {
this.lineDom = document.getElementById(this.domId) this.lineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.lineDom) this[this.domId] = echarts.init(this.lineDom)
this.chartReaize()
this.chartBindEvent() this.chartBindEvent()
}, },
methods: { methods: {
chartReaize() {
window.addEventListener('resize', () => {
console.log(444)
this[this.domId].resize()
})
},
chartBindEvent() { chartBindEvent() {
this[this.domId].setOption(this.lineOptions) this[this.domId].setOption(this.lineOptions)
if (this.revese === false) return if (this.revese === false) return
...@@ -142,9 +149,10 @@ export default { ...@@ -142,9 +149,10 @@ export default {
this.chartAction(yIndex) this.chartAction(yIndex)
}, 500) }, 500)
) )
window.addEventListener('resize', () => { // window.addEventListener('resize', () => {
this[this.domId].resize() // console.log(444);
}) // this[this.domId].resize()
// })
this[this.domId].getZr().on( this[this.domId].getZr().on(
'mouseout', 'mouseout',
utils.debounce(() => { utils.debounce(() => {
...@@ -179,8 +187,8 @@ export default { ...@@ -179,8 +187,8 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.line-box { .line-box {
height: 100%; // height: 100%;
color: #ffffff; // color: #ffffff;
.txt-orange { .txt-orange {
color: #eb6001; color: #eb6001;
} }
......
...@@ -86,7 +86,7 @@ const TEXT_VIEW = [ ...@@ -86,7 +86,7 @@ const TEXT_VIEW = [
bottomValue: '7,329,2' bottomValue: '7,329,2'
}, },
{ {
name: '个微客户数', name: '硬件线索客户数',
valueName: 'totalsinglewechantnum', valueName: 'totalsinglewechantnum',
value: '15,351,2', value: '15,351,2',
bottomLabel: '当年新增', bottomLabel: '当年新增',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!