From e3d95001ebd24b9f406a30fb994a1acd94046ef2 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Mon, 10 May 2021 14:35:12 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DchabinetBox=20name?= =?UTF-8?q?=E6=9C=AA=E5=AE=9A=E4=B9=89=20alertRuleBox=20id=E6=9C=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/rightBox/setting/cabinetBox.vue | 2 ++ .../layout/path_navigation/PathNavigation.vue | 18 +++++++++--------- .../src/components/page/config/credentials.vue | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue b/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue index 5ffd65699..76d5018f6 100644 --- a/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue @@ -56,6 +56,8 @@ export default { } } }, + created() { + }, methods: { clickOutside () { this.esc(false) diff --git a/nezha-fronted/src/components/layout/path_navigation/PathNavigation.vue b/nezha-fronted/src/components/layout/path_navigation/PathNavigation.vue index 8ab4cdac2..ee6a8514a 100644 --- a/nezha-fronted/src/components/layout/path_navigation/PathNavigation.vue +++ b/nezha-fronted/src/components/layout/path_navigation/PathNavigation.vue @@ -78,7 +78,7 @@ - + @@ -173,7 +173,7 @@ v-if="rightBox.charts.show"> - + @@ -227,12 +227,10 @@ import axios from 'axios' export default { props: { show: Boolean, - params: { type: Object }, exportFileName: { type: String }, - link: { type: Object }, - permissions: { type: Object }, - showCur: { type: Boolean, default: true }, - id: { type: String, default: 'export' } + id: { type: String, default: 'export' }, + currentDc: { type: Object }, + alertRule: Object }, components: { DcBox, @@ -431,9 +429,10 @@ export default { unit: 2, operator: '>', last: 60, - severity: 'P2', + severityId: '', summary: '', - description: '' + description: '', + method: [] }, cabinet: { id: '', @@ -525,6 +524,7 @@ export default { }, // Alert addAlertRule() { + console.log(id) this.rightBox.alert.show = true this.$emit("update:show", false); }, diff --git a/nezha-fronted/src/components/page/config/credentials.vue b/nezha-fronted/src/components/page/config/credentials.vue index 9e0ec0289..ac8b34a81 100644 --- a/nezha-fronted/src/components/page/config/credentials.vue +++ b/nezha-fronted/src/components/page/config/credentials.vue @@ -47,7 +47,7 @@ - + From aa9f9f38f103ea8adb979a8d8220b34a6c40f01c Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 10 May 2021 15:43:24 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9config.json?= =?UTF-8?q?=E5=86=85=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/static/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/static/config.json b/nezha-fronted/static/config.json index 0ae1c38e3..452d84b4f 100644 --- a/nezha-fronted/static/config.json +++ b/nezha-fronted/static/config.json @@ -1 +1 @@ -{"baseUrl":"http://192.168.40.42:8080/nz-admin/", "version": "2.0.2021.05.08.18.07"} +{"baseUrl":"/", "version": "2.0.2021.05.08.18.07"} From 61b57871cfe56c35b42653df1d8278b9828d0235 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Mon, 10 May 2021 15:45:18 +0800 Subject: [PATCH 3/5] =?UTF-8?q?NEZ-610=20fix:=20cabinet=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/bottomBox/tabs/cabinetTab.vue | 18 ++++++++++++++++-- .../src/components/common/language/en.js | 2 +- .../components/common/rightBox/cabinetBox.vue | 4 ++-- .../common/rightBox/setting/cabinetBox.vue | 4 ++-- .../common/table/settings/cabinetTable.vue | 6 ------ 5 files changed, 21 insertions(+), 13 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue index b1f1568a8..2e59b891b 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue @@ -25,6 +25,11 @@ @selectionChange="selectionChange" > + @@ -84,8 +89,8 @@ export default { }, { id: 13, - name: this.$t('config.dc.remark'), - label: 'remark', + name: this.$t('config.dc.description'), + label: 'description', disabled: false } ] @@ -99,6 +104,15 @@ export default { // 切换tab changeTab (tab) { this.$emit('changeTab', tab) + }, + addChart () { + this.rightBox.show = true + }, + closeRightBox (refresh) { + this.rightBox.show = false + if (refresh) { + this.refresh() + } } }, watch: { diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 6cebee967..f8f80d083 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -694,7 +694,7 @@ const en = { selectArea: 'Select area', cabinetNum: 'Cabinet', assets: 'Assets', - remark: 'Remark', + remark: 'Description', cabinets: 'Cabinets', createDc: 'Nre data center', editDc: 'Edit data center', diff --git a/nezha-fronted/src/components/common/rightBox/cabinetBox.vue b/nezha-fronted/src/components/common/rightBox/cabinetBox.vue index 586f1fbbd..6de7491d4 100644 --- a/nezha-fronted/src/components/common/rightBox/cabinetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/cabinetBox.vue @@ -79,7 +79,7 @@ export default { if (valid) { this.editCabinet.idcId = this.currentDc.id if (this.editCabinet.id) { - this.$put('cabinet', this.editCabinet).then(res => { + this.$put('/dc/cabinet', this.editCabinet).then(res => { this.prevent_opt.save = false if (res.code === 200) { this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') }) @@ -89,7 +89,7 @@ export default { } }) } else { - this.$post('cabinet', this.editCabinet).then(res => { + this.$post('/dc/cabinet', this.editCabinet).then(res => { this.prevent_opt.save = false if (res.code === 200) { this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') }) diff --git a/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue b/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue index 76d5018f6..0b8d37307 100644 --- a/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue @@ -73,7 +73,7 @@ export default { if (valid) { this.editCabinet.idcId = this.currentDc.id if (this.editCabinet.id) { - this.$put('cabinet', this.editCabinet).then(res => { + this.$put('/dc/cabinet', this.editCabinet).then(res => { this.prevent_opt.save = false if (res.code === 200) { this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') }) @@ -83,7 +83,7 @@ export default { } }) } else { - this.$post('cabinet', this.editCabinet).then(res => { + this.$post('/dc/cabinet', this.editCabinet).then(res => { this.prevent_opt.save = false if (res.code === 200) { this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') }) diff --git a/nezha-fronted/src/components/common/table/settings/cabinetTable.vue b/nezha-fronted/src/components/common/table/settings/cabinetTable.vue index e25584c59..f684411ad 100644 --- a/nezha-fronted/src/components/common/table/settings/cabinetTable.vue +++ b/nezha-fronted/src/components/common/table/settings/cabinetTable.vue @@ -114,12 +114,6 @@ export default { label: this.$t('config.dc.remark'), prop: 'remark', show: true - }, - { - label: this.$t('config.account.option'), - prop: 'option', - show: true, - width: 120 } ] } From 5c3b058907e2e72251cd5b9bdd950e3d32714a17 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 10 May 2021 15:59:39 +0800 Subject: [PATCH 4/5] =?UTF-8?q?NEZ-600=20fix:=20=E5=90=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=90=9C=E7=B4=A2=E6=A1=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bottomBox/tabs/alertMessageTabNew.vue | 115 +++--- .../src/components/common/js/constants.js | 51 ++- .../src/components/common/language/en.js | 2 +- .../src/components/common/searchInput.vue | 156 ++++++-- .../components/common/searchSelectInfo.vue | 77 +++- .../common/table/alert/alertMessageTable.vue | 14 +- .../components/common/table/nzDataList.vue | 2 +- .../common/table/settings/chartTmplTable.vue | 47 +-- .../src/components/layout/header.vue | 4 +- .../components/page/alert/alertMessage.vue | 149 +++----- .../src/components/page/alert/alertRule.vue | 6 +- .../components/page/alert/alertSilence.vue | 28 +- .../src/components/page/asset/asset.vue | 32 +- .../src/components/page/config/agent.vue | 18 +- .../src/components/page/config/assetMeta.vue | 16 +- .../src/components/page/config/assetType.vue | 8 +- .../components/page/config/credentials.vue | 8 +- .../src/components/page/config/dc.vue | 33 +- .../src/components/page/config/model.vue | 14 +- .../page/config/template/chartTemp.vue | 24 +- .../page/config/template/exprTemp.vue | 7 +- .../src/components/page/dashboard/panel.vue | 33 +- .../page/monitor/endpoint/endpointList.vue | 60 ++-- .../page/monitor/module/moduleList.vue | 40 +-- .../page/monitor/project/project.vue | 339 ------------------ .../page/monitor/project/projectList.vue | 28 +- 26 files changed, 556 insertions(+), 755 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue index efa4e4129..750f4d6cd 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue @@ -11,6 +11,11 @@ class="full-width-height" > +