NEZ-2511 feat:时序图支持配置Y轴最大最小刻度

This commit is contained in:
zyh
2023-01-18 09:06:31 +08:00
parent 99e202402f
commit c181c9cb20
6 changed files with 52 additions and 31 deletions

View File

@@ -340,7 +340,7 @@
</el-form-item>
</div>
<div class="form-items--half-width-group" v-if="isGauge(chartConfig.type)">
<div class="form-items--half-width-group" v-if="isShowMinMax(chartConfig.type)">
<!--min-->
<el-form-item :label="$t('dashboard.panel.chartForm.min')" class="form-item--half-width">
<el-input-number
@@ -348,7 +348,9 @@
style="margin-top: 2px"
:controls="false"
@change="change"
show-word-limit v-model="chartConfig.param.min"/>
show-word-limit
:placeholder="chartConfig.param.min?'':'Auto'"
v-model="chartConfig.param.min"/>
</el-form-item>
<!--max-->
<el-form-item :label="$t('dashboard.panel.chartForm.max')" class="form-item--half-width">
@@ -357,7 +359,9 @@
style="margin-top: 2px"
:controls="false"
@change="change"
show-word-limit v-model="chartConfig.param.max"/>
show-word-limit
:placeholder="chartConfig.param.max?'':'Auto'"
v-model="chartConfig.param.max"/>
</el-form-item>
</div>
@@ -936,7 +940,7 @@ import chartTypeShow from '@/components/common/rightBox/chart/chartTypeShow'
import VueTagsInput from '@johmun/vue-tags-input'
import draggable from 'vuedraggable'
import { randomcolor, ColorReverse } from '@/components/common/js/radomcolor/randomcolor'
import { isGauge, isSankey } from '@/components/chart/chart/tools'
import { isSankey } from '@/components/chart/chart/tools'
export default {
name: 'chartConfig',
@@ -1041,7 +1045,6 @@ export default {
}
},
methods: {
isGauge,
isSankey,
beforeInit () {
this.promqlType = this.type