feat: cahrt system 添加 filter(10%)
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
}
|
||||
.system-chart-config {
|
||||
display: flex;
|
||||
height: 150px;
|
||||
height: 206px;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'filterSearch'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -92,6 +92,20 @@
|
||||
<el-input-number :controls="false" v-model.number="item.limit" :placeholder="$t('placeholder.system.limit')" size="small" @change="change"/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="form-items--half-width-group">
|
||||
<el-form-item
|
||||
:label="$t('dashboard.panel.chartForm.filter')"
|
||||
class="form-item"
|
||||
style="width: 100%"
|
||||
prop="param.filter"
|
||||
>
|
||||
<filterSearch
|
||||
v-model="item.filter"
|
||||
:keyList="keyList"
|
||||
:compareList="compareList"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<el-row style="display: flex">
|
||||
@@ -575,6 +589,7 @@
|
||||
import publicConfig from '@/components/common/rightBox/chart/publicConfig'
|
||||
import chartTypeShow from '@/components/common/rightBox/chart/chartTypeShow'
|
||||
import nezhaColor from '@/components/common/nezhaColor'
|
||||
import filterSearch from '@/components/common/filterSearch/filterSearch'
|
||||
import VueTagsInput from '@johmun/vue-tags-input'
|
||||
import { isGauge } from '@/components/chart/chart/tools'
|
||||
|
||||
@@ -583,6 +598,7 @@ export default {
|
||||
mixins: [publicConfig, chartTypeShow],
|
||||
components: {
|
||||
nezhaColor,
|
||||
filterSearch,
|
||||
VueTagsInput
|
||||
},
|
||||
data () {
|
||||
@@ -629,7 +645,9 @@ export default {
|
||||
id: 'table',
|
||||
name: this.$t('dashboard.panel.chartForm.typeVal.table.label')
|
||||
}
|
||||
]
|
||||
],
|
||||
keyList: [],
|
||||
compareList: []
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<el-dropdown class="metric-selector">
|
||||
<el-dropdown-menu style="display: none"></el-dropdown-menu>
|
||||
<button class="top-tool-btn top-tool-btn--text" type="button" @click="toggleDropdown">{{type === 'log' ? $t("overall.logLabels") : $t("overall.metric") }}
|
||||
<i class="nz-icon nz-icon-arrow-down" style="font-size: 12px"></i></button>
|
||||
<i class="nz-icon nz-icon-arrow-down" style="font-size: 12px"></i></button>
|
||||
<el-cascader-panel v-show="dropDownVisible" ref="metricSelector" slot="dropdown" v-model="cascaderValue"
|
||||
v-clickoutside="closeDropdown" v-loading="tempBoxShowLoading" :loading="loading" :options="metricOptions"
|
||||
v-if="type !== 'log'" :props="cascaderProps" @change="metricChangeNew" style="margin-top: 5px">
|
||||
@@ -55,7 +55,7 @@
|
||||
:class="[plugins.indexOf('metric-selector') > -1 ?'metric-selector-title':'metric-null-title']">
|
||||
<el-dropdown class="metric-selector" v-if="plugins.indexOf('metric-selector') > -1">
|
||||
<el-dropdown-menu style="display: none"></el-dropdown-menu>
|
||||
<span :class="{'expr-title':projectRightBox}" style="cursor: pointer;" @click="toggleDropdown">{{type === 'log' ? $t("overall.logLabels") : $t("overall.metric") }} <i
|
||||
<span :class="{'expr-title':projectRightBox}" style="cursor: pointer;" @click="toggleDropdown">{{type === 'log' ? $t("overall.logLabels") : $t("overall.metric") }}<i
|
||||
class="nz-icon nz-icon-arrow-down"
|
||||
style="font-size: 14px; -webkit-transform:scale(0.75);display:inline-block;"></i></span>
|
||||
<el-cascader-panel v-loading="tempBoxShowLoading" v-show="dropDownVisible" v-clickoutside="closeDropdown" v-model="cascaderValue"
|
||||
|
||||
Reference in New Issue
Block a user