From 4e52bcb6864240e3149a3a1ff9b9ff1c44d2bee6 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 22 Aug 2023 17:31:49 +0800 Subject: [PATCH 1/5] =?UTF-8?q?NEZ-3118=20fix=EF=BC=9Aipam=20ip=20state=20?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/table/settings/ipDetailsTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/table/settings/ipDetailsTable.vue b/nezha-fronted/src/components/common/table/settings/ipDetailsTable.vue index fedc632a1..a91452059 100644 --- a/nezha-fronted/src/components/common/table/settings/ipDetailsTable.vue +++ b/nezha-fronted/src/components/common/table/settings/ipDetailsTable.vue @@ -42,7 +42,7 @@
- {{ $t('overall.ipam.available') }} + {{ $t('overall.ipam.transient') }}
From 1507c00d5363f0d4dd90be7d164eefcb57e7bba0 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 23 Aug 2023 09:57:52 +0800 Subject: [PATCH 2/5] =?UTF-8?q?NEZ-3107=20fix=EF=BC=9AMessages=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E6=9F=A5=E8=AF=A2All=20time=EF=BC=8C?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detailView/list/terminalLogDetail/terminalLogDetail.vue | 4 ++-- nezha-fronted/src/components/common/timePicker.vue | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/detailView/list/terminalLogDetail/terminalLogDetail.vue b/nezha-fronted/src/components/common/detailView/list/terminalLogDetail/terminalLogDetail.vue index 6546c6d4f..0fd7301ce 100644 --- a/nezha-fronted/src/components/common/detailView/list/terminalLogDetail/terminalLogDetail.vue +++ b/nezha-fronted/src/components/common/detailView/list/terminalLogDetail/terminalLogDetail.vue @@ -27,8 +27,8 @@ @mouseenter="labelHover(item, 'other', true, false, $event)" @mouseleave="labelHover(item, 'other', false, false,)" > -
-
+
+
{{$t(getStatusText(item.status))}} diff --git a/nezha-fronted/src/components/common/timePicker.vue b/nezha-fronted/src/components/common/timePicker.vue index 347dd4575..4b83253d0 100644 --- a/nezha-fronted/src/components/common/timePicker.vue +++ b/nezha-fronted/src/components/common/timePicker.vue @@ -564,6 +564,9 @@ export default { this.$set(this.searchTime, 2, val + 'd') } else { this.isCustom = true + if (!time[0]) { + this.isCustom = false + } this.$set(this.searchTime, 0, time[0]) this.$set(this.searchTime, 1, time[1]) } From 713ba2ab5943da519270258a635aef255eaed083 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 23 Aug 2023 10:21:06 +0800 Subject: [PATCH 3/5] =?UTF-8?q?NEZ-3122=20fix=EF=BC=9ADashboard=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=9B=BE=E8=A1=A8=E4=B8=ADNull=20Value=E9=80=89?= =?UTF-8?q?=E6=8B=A9connected=E6=97=B6=EF=BC=8C=E5=9B=BE=E8=A1=A8=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chart/chartTimeSeries.vue | 2 -- nezha-fronted/src/components/chart/chartMixin.js | 5 ++--- nezha-fronted/src/components/common/js/tools.js | 3 +++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue index 17eb68ee1..f9a323bc2 100644 --- a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue +++ b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue @@ -501,7 +501,6 @@ export default { } else if (item.yAxisIndex == 1) { className = 'yAxis-icon nz-icon nz-icon-youzongzhou' } - str += `
@@ -538,7 +537,6 @@ export default { } color = self.stackTotalColorRight } - str += `
diff --git a/nezha-fronted/src/components/chart/chartMixin.js b/nezha-fronted/src/components/chart/chartMixin.js index e63252db9..daa4999ef 100644 --- a/nezha-fronted/src/components/chart/chartMixin.js +++ b/nezha-fronted/src/components/chart/chartMixin.js @@ -117,9 +117,8 @@ export default { if (!this.dataLink.length) { s.cursor = 'default' } - - if (s.param && s.param.nullType) { - s.connectNulls = s.param.nullType !== 'null' + if (chartInfo.param && chartInfo.param.nullType) { + s.connectNulls = chartInfo.param.nullType !== 'null' } else { s.connectNulls = false } diff --git a/nezha-fronted/src/components/common/js/tools.js b/nezha-fronted/src/components/common/js/tools.js index 8813150ff..a5e081bea 100644 --- a/nezha-fronted/src/components/common/js/tools.js +++ b/nezha-fronted/src/components/common/js/tools.js @@ -1061,6 +1061,9 @@ export function hideTableTooltip () { /* 数字转换保留小数,数字很小时转为科学计数法, dot为保留几位小数 */ export function formatScientificNotation (value, dot = 2) { + if (isNaN(value) || value === null) { + return value + } let val = value ? parseFloat(Number(value).toFixed(dot)) : 0 if (val === 0) { val = Number(value).toPrecision(dot + 1) From 95a0ca75c4e6bd24786880ecfa8f795e8a7fda47 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 23 Aug 2023 10:30:44 +0800 Subject: [PATCH 4/5] =?UTF-8?q?NEZ-3116=20fix=EF=BC=9ADashboard=E4=B8=AD?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=9B=BE=E8=A1=A8=E4=BD=BF=E7=94=A8=E5=8F=8C?= =?UTF-8?q?Y=E8=BD=B4=E6=97=B6=EF=BC=8CLegend=E7=9A=84Values=E4=B8=8D?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=EF=BC=8C=E5=9B=BE=E8=A1=A8=E4=B8=AD?= =?UTF-8?q?Value=E5=80=BC=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chart/legend.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/legend.vue b/nezha-fronted/src/components/chart/chart/legend.vue index be0bb04f9..028f35d23 100644 --- a/nezha-fronted/src/components/chart/chart/legend.vue +++ b/nezha-fronted/src/components/chart/chart/legend.vue @@ -40,7 +40,7 @@ {{item.alias ? item.alias : item.name}}
-
{{(keepTwoDecimalFull(statistics.value))}}
+
{{(keepTwoDecimalFull(statistics.value, 'right'))}}
@@ -243,12 +243,16 @@ export default { this.$emit('clickLegendD3', this.isGrey) }, // 四舍五入保留2位小数(不够位数,则用0替补) - keepTwoDecimalFull (num) { + keepTwoDecimalFull (num, type = 'left') { + let chartUnit = this.chartInfo.unit + if (type === 'right') { + chartUnit = this.chartInfo.param.rightYAxis.unit + } let result = parseFloat(num) if (isNaN(result)) { return '--' } - result = chartDataFormat.getUnit(this.chartInfo.unit ? this.chartInfo.unit : 2).compute(result, null, -1, 2) + result = chartDataFormat.getUnit(chartUnit || 2).compute(result, null, -1, 2) return result }, getMaxValue (dataArg, chartInfo) { From 0393b3026eb89bc731f8ac29c2a21be161e88fe5 Mon Sep 17 00:00:00 2001 From: zhangshuai Date: Wed, 23 Aug 2023 13:30:49 +0800 Subject: [PATCH 5/5] =?UTF-8?q?fix:=20ci=20=E9=98=B6=E6=AE=B5=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=20MD5=20=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9698d12d1..4f9d8cdbf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,8 +60,10 @@ dev_build: - zip -q -r $FILE_NAME ./* # 将 dist zip 上传到 minio + - md5sum $FILE_NAME > nz-gui-$CI_COMMIT_REF_NAME-latest.zip.md5sum.txt - mc cp $FILE_NAME nz/ci-cd/nz-gui/$FILE_NAME - mc cp $FILE_NAME nz/ci-cd/nz-gui/nz-gui-$CI_COMMIT_REF_NAME-latest.zip + - mc cp nz-gui-$CI_COMMIT_REF_NAME-latest.zip.md5sum.txt nz/ci-cd/nz-gui/nz-gui-$CI_COMMIT_REF_NAME-latest.zip.md5sum.txt artifacts: name: "nz-gui-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA" when: on_success