优化
This commit is contained in:
parent
2a74174d93
commit
2605cf700e
@ -27,6 +27,7 @@ export default {
|
|||||||
beforeMount () {},
|
beforeMount () {},
|
||||||
mounted () {
|
mounted () {
|
||||||
const params = JSON.parse(JSON.stringify(this.info))
|
const params = JSON.parse(JSON.stringify(this.info))
|
||||||
|
params.chartDetails.status = 1
|
||||||
params.chartDetails.recordSimpleDtos = params.chartDetails.recordSimpleDtos.length ? params.chartDetails.recordSimpleDtos : [this.form]
|
params.chartDetails.recordSimpleDtos = params.chartDetails.recordSimpleDtos.length ? params.chartDetails.recordSimpleDtos : [this.form]
|
||||||
this.$emit('update:info', params)
|
this.$emit('update:info', params)
|
||||||
},
|
},
|
||||||
|
|||||||
@ -20,6 +20,7 @@ export default {
|
|||||||
beforeMount () {},
|
beforeMount () {},
|
||||||
mounted () {
|
mounted () {
|
||||||
const params = JSON.parse(JSON.stringify(this.info))
|
const params = JSON.parse(JSON.stringify(this.info))
|
||||||
|
params.chartDetails.status = 1
|
||||||
params.chartDetails.recordSimpleDtos = params.chartDetails.recordSimpleDtos.length ? params.chartDetails.recordSimpleDtos : [this.form]
|
params.chartDetails.recordSimpleDtos = params.chartDetails.recordSimpleDtos.length ? params.chartDetails.recordSimpleDtos : [this.form]
|
||||||
this.$emit('update:info', params)
|
this.$emit('update:info', params)
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!-- -->
|
<!-- -->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div id="myChart" :style="{width: '100%', height: '270px'}"></div>
|
<div id="myChart" :style="{width: '100%', height: '200px'}"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -37,15 +37,6 @@ export default {
|
|||||||
await this.handleData()
|
await this.handleData()
|
||||||
this.charts = echarts.init(document.getElementById(id))
|
this.charts = echarts.init(document.getElementById(id))
|
||||||
this.charts.setOption({
|
this.charts.setOption({
|
||||||
title: {
|
|
||||||
text: '个人成长曲线',
|
|
||||||
textStyle: { // 主标题文本样式{"fontSize": 18,"fontWeight": "bolder","color": "#333"}
|
|
||||||
fontFamily: 'Arial, Verdana, sans...',
|
|
||||||
fontSize: 18,
|
|
||||||
fontStyle: 'normal',
|
|
||||||
fontWeight: 'normal'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
grid: {
|
grid: {
|
||||||
left: '3%',
|
left: '3%',
|
||||||
right: '4%',
|
right: '4%',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user