NEZ-3185 feat:dashboard promql&logql支持自定义 step

This commit is contained in:
zhangyu
2023-09-11 14:21:41 +08:00
parent 76756146e3
commit 1f0625b988
7 changed files with 44 additions and 13 deletions

View File

@@ -106,6 +106,13 @@
<el-col style="flex: 1">
<el-input maxlength="512" show-word-limit size="small" type="text" v-model="expressionsShow[index-1].legend" @change="expressionChange"></el-input>
</el-col>
<el-col class="legend-title" style="margin-left: 10px">
<span class="legend-title__span">{{$t('overall.step')}}&nbsp;</span>
</el-col>
<el-col style="flex: 1">
<el-input-number @change="expressionChange" v-model="expressionsShow[index-1].step" size="small" :min="minStep" :precision="0" :controls="false" class="append_unit" :placeholder="$t('overall.auto')" :data-unit="$t('overall.seconds')">
</el-input-number>
</el-col>
</el-row>
</el-row>
</transition>
@@ -1341,7 +1348,11 @@ export default {
}
},
mixins: [promqlInputMixin, publicConfig, chartTypeShow],
computed: {},
computed: {
minStep () {
return this.nzDefaultConfig.minStep
}
},
data () {
return {
rules: {