diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue
index a8df07f62..30a6606ff 100644
--- a/nezha-fronted/src/components/charts/chart-list.vue
+++ b/nezha-fronted/src/components/charts/chart-list.vue
@@ -229,6 +229,7 @@
},
end (event) {
//console.info("end event:", event)
+ if(this.dataList.length===1){return}//解决当元素只有一个移动会报错的问题
let item = event.item;
let oldIndex = event.oldIndex;
let newIndex = event.newIndex;
@@ -866,7 +867,7 @@
const axiosArr = chartItem.elements.map((ele) => {
const filterItem = ele;
let query = encodeURIComponent(filterItem.expression);
- if((chartInfo.type==='line'||chartInfo.type==='bar'||chartInfo.type==='stackArea')&&chartInfo.param){//如果是这三个 默认给connected
+ if((chartInfo.type==='line'||chartInfo.type==='bar'||chartInfo.type==='stackArea'||chartInfo.type==='table')&&chartInfo.param){//如果是这三个 默认给connected
chartInfo.param.nullType=chartInfo.param.nullType||'connected';
query+='&nullType='+chartInfo.param.nullType;
}
diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue
index 9a863dbdf..d1bb50631 100644
--- a/nezha-fronted/src/components/page/dashboard/chartBox.vue
+++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue
@@ -151,7 +151,7 @@
-
+
@@ -1249,8 +1249,11 @@
} else {
delete params.param.statistics;
}
- if(this.editChart.type==='line'||this.editChart.type==='bar'||this.editChart.type==='stackArea'){
+ if(this.editChart.type==='line'||this.editChart.type==='bar'||this.editChart.type==='stackArea'||this.editChart.type==='table'){
params.param.threshold=this.editChart.param.threshold;
+ if(this.editChart.type==='table'){
+ delete params.param.threshold;
+ }
params.param.nullType=this.editChart.param.nullType;
params.param.legendValue=this.editChart.param.legendValue;
} else {