'
+ str += '
'
str += chartDataFormat.getUnit(chartInfo.unit ? chartInfo.unit : 2).compute(val, null, 2)
if (previousItem) {
- str += ''
+ str += ''
let previousval = parseFloat(Number(previousItem.data[1]).toFixed(2))
if (previousval === 0) {
previousval = Number(item.data[1]).toExponential(2)
@@ -1220,7 +1220,7 @@ export default {
str += chartDataFormat.getUnit(chartInfo.unit ? chartInfo.unit : 2).compute(minusVal, null, 2)
str += ''
} else if (tip.alias.indexOf('Previous ') !== -1) {
- str += ''
+ str += ''
str += ''
}
str += '
'
diff --git a/nezha-fronted/src/components/charts/text-chart.vue b/nezha-fronted/src/components/charts/text-chart.vue
index beba1f239..e2c26daa5 100644
--- a/nezha-fronted/src/components/charts/text-chart.vue
+++ b/nezha-fronted/src/components/charts/text-chart.vue
@@ -188,7 +188,6 @@ export default {
},
// 设置数据, filter区分
setData (chartItem, seriesItem, panelId, filter, area) {
- console.log(chartItem);
this.$nextTick(() => {
this.resize(chartItem)
})
diff --git a/nezha-fronted/src/components/common/js/tools.js b/nezha-fronted/src/components/common/js/tools.js
index d73a1c1d7..5d2050944 100644
--- a/nezha-fronted/src/components/common/js/tools.js
+++ b/nezha-fronted/src/components/common/js/tools.js
@@ -335,7 +335,7 @@ export const chartResizeTool = {
chartTableBlankHeight: 6, // 表格型图表额外空白占位高度
chartBlankWidth: 2, // 图表空白占位宽度
containerBlankWidth: 5, // 容器空白占位宽度(#listContainer的padding)
- titleHeight: 28, // 标题dom高度
+ titleHeight: 40, // 标题dom高度
stepHeight: 50, // 单元高度
timeouter: null,
stepWidth (containerWidth) { // 单元宽度,参数为容器总宽度
diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js
index 8497a89ff..8d0293300 100644
--- a/nezha-fronted/src/components/common/language/cn.js
+++ b/nezha-fronted/src/components/common/language/cn.js
@@ -193,6 +193,8 @@ const cn = {
last: 'Last',
threshold: '阈值',
thresholds: '阈值',
+ group: '组',
+ remark: '描述',
typeVal: {
line: {
label: '曲线图'
@@ -235,7 +237,7 @@ const cn = {
last: 'Last',
range: 'Range',
different: 'Different',
- null: 'Null'
+ null: 'None'
},
width: '宽',
high: '高',
diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js
index 340f06ea5..27daa6cae 100644
--- a/nezha-fronted/src/components/common/language/en.js
+++ b/nezha-fronted/src/components/common/language/en.js
@@ -206,12 +206,14 @@ const en = {
last: 'Last',
threshold: 'Threshold',
thresholds: 'Thresholds',
+ group: 'Group',
+ remark: 'Description',
typeVal: {
line: {
label: 'Line Chart' // "曲线图"
},
bar: {
- label: 'Bar' // "柱状图"
+ label: 'Bar Chart' // "柱状图"
},
table: {
label: 'Table' // "表格"
@@ -227,7 +229,7 @@ const en = {
label: 'Single value'
},
pie: {
- label: 'Pie'
+ label: 'Pie Chart'
},
alertList: {
label: 'Alert list'
@@ -248,7 +250,7 @@ const en = {
last: 'Last',
range: 'Range',
different: 'Different',
- null: 'Null'
+ null: 'None'
},
width: 'Width', // "宽"
high: 'High', // "高"
diff --git a/nezha-fronted/src/components/common/popBox/selectPanel.vue b/nezha-fronted/src/components/common/popBox/selectPanel.vue
index d183b1a6c..8c362dcf4 100644
--- a/nezha-fronted/src/components/common/popBox/selectPanel.vue
+++ b/nezha-fronted/src/components/common/popBox/selectPanel.vue
@@ -1,5 +1,5 @@
-
+
@@ -46,6 +46,7 @@ export default {
panelData: { type: Array },
showPanel: { type: Object },
panelLock: { type: Boolean, default: true },
+ disabled: { type: Boolean, default: false },
filterPanel: { type: String }
},
mounted () {
diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue
index e59cf7e1c..8ad760e14 100644
--- a/nezha-fronted/src/components/page/dashboard/chartBox.vue
+++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue
@@ -156,7 +156,10 @@