@@ -680,6 +680,7 @@ export default {
rules: {
},
oldType: '',
+ tag: '',
promqlType: 'log',
chartTypeList: [
{
diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue
index 979cbf053..9f0931f62 100644
--- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue
@@ -171,6 +171,7 @@ export default {
}
delete params.panel
if (params.type === 'table') {
+ console.log(params.param.tags)
delete params.param.tags
}
if (params.id) { // 修改
@@ -271,12 +272,12 @@ export default {
unit: 2,
type: 'stat',
param: {
- refer: 1,
+ refer: 0,
system: '',
systemGroup: '',
systemSelect: '',
sort: 'desc',
- limit: undefined,
+ limit: 100,
nullType: 'null',
statistics: 'last',
valueMapping: {
diff --git a/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js b/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js
index 85127af00..9c5f7c384 100644
--- a/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js
+++ b/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js
@@ -392,7 +392,10 @@ export default {
this.chartConfig.param.columns[index].show = !this.chartConfig.param.columns[index].show
},
tagsChange (newTags) {
- // this.chartConfig.param.indexs = newTags.map(item => item.text)
+ console.log(newTags, newTags)
+ this.chartConfig.param.tags = newTags
+ this.chartConfig.param.indexs = newTags.map(item => item.text).join(',')
+ this.change()
}
}
}
diff --git a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue
index 17d577ac9..b3161a517 100644
--- a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue
+++ b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue
@@ -124,6 +124,21 @@
+
+
+ {tagsChange(newTags)}"
+ />
+