-
- {{item.value}}
-
-
- [{{item.from}},{{item.to}})
-
-
- {{item.regx}}
-
-
-
-
-
-
- {{item.display || "T"}}
-
+
+
+
+
+
+ {{item.column}}:
+
+
+ {{item.value}}
+
+
+ [{{item.from}},{{item.to}})
+
+
+ {{item.regx}}
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {mappingItemChange(index,val)}"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('placeholder.chart.column')}}
-
-
-
-
-
-
-
-
{{$t('config.assetLabel.display')}}
-
-
-
-
-
-
-
-
-
+
+
+ {{item.display || "T"}}
+
-
-
-
-
-
-
-
{colorChange(val, key, index)}"
- />
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {mappingItemChange(index,val)}"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{$t('placeholder.chart.column')}}
+
+
+
+
+
+
+
+
{{$t('config.assetLabel.display')}}
+
+
+
+
+
+
+
+
+
+
+
+ {colorChange(val, key, index)}"
+ />
+
+
+
+
{{$t('overall.addMapping')}}
diff --git a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue
index 477683473..da8292042 100644
--- a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue
+++ b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue
@@ -435,74 +435,90 @@
{{$t('dashboard.panel.chartForm.columns')}}
-
-
-
-
-
-
- {{item.value}}
+
+
+
+
+
+
+
+ {{item.value}}
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('project.topology.title')}}
-
-
-
-
-
-
{{$t('dashboard.panel.chartForm.unit')}}
-
-
-
-
-
-
-
-
{{$t('config.assetLabel.display')}}
-
-
-
{{<expression name>.$labels.<label name>}}
-
{{$t('tip.expressionLabel')}}{{$t('tip.$labels')}}
-
{{<expression name>.$value}}
-
{{$t('tip.expressionValue')}}
-
-
-
-
-
+
+
+
+
+
{{$t('project.topology.title')}}
-
-
-
-
-
-
-
+
+
+
+
+
{{$t('dashboard.panel.chartForm.unit')}}
+
+
+
+
+
+
+
+
{{$t('config.assetLabel.display')}}
+
+
+
{{<expression name>.$labels.<label name>}}
+
{{$t('tip.expressionLabel')}}{{$t('tip.$labels')}}
+
{{<expression name>.$value}}
+
{{$t('tip.expressionValue')}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{$t('overall.addColumns')}}
@@ -520,177 +536,196 @@
-
-
-
-
- {{item.column}}:
-
-
- {{item.value}}
-
-
- [{{item.from}},{{item.to}})
-
-
- {{item.regx}}
-
-
-
-
-
-
- {{item.display || "T"}}
+
+
+
+
+
+ {{item.column}}:
+
+
+ {{item.value}}
-
+
+ [{{item.from}},{{item.to}})
+
+
+ {{item.regx}}
+
+
+
+
+
+
+ {{item.display || "T"}}
+
+
+
-
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
-
-
-
-
-
- {mappingItemChange(index,val)}"
+
+
+
+
+ {mappingItemChange(index,val)}"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{$t('placeholder.chart.column')}}
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('placeholder.chart.column')}}
-
-
-
-
-
-
-
-
{{$t('config.assetLabel.display')}}
-
-
-
-
-
-
-
-
+ v-for="item in chartConfig.param.columns.filter(item=> item.title)"
+ :value="item.title"
+ :label="item.title"
+ :key="item.title"/>
+
+
+
+
{{$t('config.assetLabel.display')}}
+
+
+
+
+
-
-
-
-
-
-
-
-
{colorChange(val, key, index)}"
- style="margin-right:1px"
- />
-
-
-
+
+
+
+
+
+
+ {colorChange(val, key, index)}"
+ style="margin-right:1px"
+ />
+
+
+
+
{{$t('overall.addMapping')}}
@@ -807,14 +842,15 @@ import nezhaColor from '@/components/common/nezhaColor'
import filterSearch from '@/components/common/filterSearch/filterSearch.vue'
import VueTagsInput from '@johmun/vue-tags-input'
import { isGauge } from '@/components/chart/chart/tools'
-
+import draggable from 'vuedraggable'
export default {
name: 'systemChartConfig',
mixins: [publicConfig, chartTypeShow],
components: {
nezhaColor,
filterSearch,
- VueTagsInput
+ VueTagsInput,
+ draggable
},
data () {
return {