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