fix:stat图表 sparklineMode历史数据设置为none
This commit is contained in:
@@ -461,6 +461,9 @@ export default {
|
||||
if (!this.chart.groupId || this.chart.groupId == -1) {
|
||||
this.chart.groupId = ''
|
||||
}
|
||||
if (this.chart.type === 'stat' && !this.chart.param.sparklineMode) {
|
||||
this.chart.param.sparklineMode = 'none'
|
||||
}
|
||||
if (this.chart.type == 'table') {
|
||||
const arr = this.chart.param.indexs ? this.chart.param.indexs.split(',') : []
|
||||
this.chart.param.tags = arr.map((item) => {
|
||||
@@ -618,7 +621,6 @@ export default {
|
||||
this.getData(this.filter)
|
||||
}
|
||||
} else if (this.from === this.fromRoute.dashboardTemp) {
|
||||
|
||||
this.$get('visual/panel', { type: 'template', ids: this.obj.id }).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.panelData = response.data.list
|
||||
|
||||
@@ -614,6 +614,9 @@ export default {
|
||||
if (!this.chart.groupId || this.chart.groupId == -1) {
|
||||
this.chart.groupId = ''
|
||||
}
|
||||
if (this.chart.type === 'stat' && !this.chart.param.sparklineMode) {
|
||||
this.chart.param.sparklineMode = 'none'
|
||||
}
|
||||
if (this.chart.type == 'table') {
|
||||
const arr = this.chart.param.indexs ? this.chart.param.indexs.split(',') : []
|
||||
this.chart.param.tags = arr.map((item) => {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<template>
|
||||
<div class="integration-configuration">
|
||||
<pre class="integration-configuration-pre">{{configuration}}</pre>
|
||||
<pre class="integration-configuration-pre" v-html="converterData()"></pre>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import showdown from 'showdown'
|
||||
export default {
|
||||
name: 'integration-configuration',
|
||||
props: {
|
||||
@@ -15,8 +16,11 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
},
|
||||
watch: {
|
||||
// 给页面插入markdown数据
|
||||
converterData () {
|
||||
const converter = new showdown.Converter()
|
||||
return converter.makeHtml(this.configuration)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user