From 4fe0b1356c0ea32d7e93356196370c48aeba02ed Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Thu, 22 Apr 2021 18:03:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A1=A5=E5=85=85=20eslint=20=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/App.vue | 2 +- .../src/components/charts/chart-list.vue | 2 +- .../common/bottomBox/tabs/endpointQuery.vue | 4 +- .../common/bottomBox/tabs/operationLogTab.vue | 10 +- .../common/bottomBox/tabs/panelTabNew.vue | 2 +- .../common/bottomBox/tabs/terminalLogTab.vue | 2 +- .../src/components/common/header.vue | 2 +- .../src/components/common/language/en.js | 4 +- .../common/project/topologyPrev.vue | 3260 ++++++++--------- .../common/rightBox/addEndpointBox.vue | 2 +- .../rightBox/administration/roleBox.vue | 284 +- .../rightBox/administration/userBox.vue | 284 +- .../common/rightBox/batchModifyEndpoint.vue | 6 +- .../src/components/common/searchInput.vue | 2 +- .../components/common/searchSelectInfo.vue | 4 +- .../common/table/special/endpointQueryTab.vue | 2 +- .../src/components/layout/leftMenu.vue | 14 +- .../src/components/page/config/agent.vue | 4 +- .../components/page/config/operationLog.vue | 8 +- .../src/components/page/config/system.vue | 94 +- .../page/config/system/apiKeyTab.vue | 2 +- .../page/config/system/apiKeyTable.vue | 2 +- .../page/dashboard/explore/promqlInput.vue | 2 +- .../page/monitor/module/moduleList.vue | 5 +- nezha-fronted/src/main.js | 14 +- nezha-fronted/src/store/index.js | 14 +- nezha-fronted/src/store/user.js | 2 +- 27 files changed, 2014 insertions(+), 2019 deletions(-) diff --git a/nezha-fronted/src/App.vue b/nezha-fronted/src/App.vue index c8b67f4d3..a12594375 100644 --- a/nezha-fronted/src/App.vue +++ b/nezha-fronted/src/App.vue @@ -20,7 +20,7 @@ export default { localStorage.clear() localStorage.setItem('nz-version', version) } - }, + } } diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 7c9e52695..7d0be3dfa 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -737,7 +737,7 @@ export default { }) }, loadChartData (scrollTop) { - console.log(scrollTop); + console.log(scrollTop) if (this.dataList.length > 0) { this.dataList.forEach((item, index) => { if (!item.isLoaded) { diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue index 4dd888b01..376c3a1df 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue @@ -119,7 +119,7 @@ export default { dropdownShow: '', timeout: null, formatTime: '', - hideSameLabels: true, + hideSameLabels: true } }, methods: { @@ -171,7 +171,7 @@ export default { wrap.scrollTop = currentTop } }, 20) - }, + } } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/operationLogTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/operationLogTab.vue index 61e32e9b8..98d40f33e 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/operationLogTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/operationLogTab.vue @@ -66,13 +66,13 @@ export default { type: 'selectString', label: 'operation', disabled: false - },{ + }, { id: 14, name: this.$t('config.operationlog.operaId'), type: 'input', label: 'operaId', disabled: false - },{ + }, { id: 16, name: this.$t('config.operationlog.state'), type: 'selectString', @@ -84,10 +84,10 @@ export default { type: 'input', label: 'params', disabled: false - }, + } ] }, - searchLabel:{userId:this.obj.id} + searchLabel: { userId: this.obj.id } } }, methods: { @@ -100,7 +100,7 @@ export default { } } return '' - }, + } } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue index 526177bd8..f647f9b9f 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue @@ -114,7 +114,7 @@ export default { components: { 'chart-box': ChartBox, 'chart-list': ChartList, - nzBottomDataList, + nzBottomDataList }, methods: { // 刷新 diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue index 35f53b142..fddfe0e84 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue @@ -65,7 +65,7 @@ export default { ] }, nowTime: '', - searchLabel:{userId:this.obj.id} + searchLabel: { userId: this.obj.id } } }, methods: { diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue index 1b0a0a119..7891e0b86 100644 --- a/nezha-fronted/src/components/common/header.vue +++ b/nezha-fronted/src/components/common/header.vue @@ -173,7 +173,7 @@ export default { return { username: sessionStorage.getItem('nz-username'), language: localStorage.getItem('nz-language') ? localStorage.getItem('nz-language') : 'en', - systemLogo:'', + systemLogo: '', // 顶部菜单相关 /* activeIndex: '', */ activeItemIndex: '', diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 203076bc2..d654a6675 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -471,7 +471,7 @@ const en = { repeat: 'Repeat', tooLong: 'Too long content', onlyWord: 'only input a-z、A-Z、0-9、"_" ', - mobile:'Invalid mobile', + mobile: 'Invalid mobile' }, search: { searchTip: 'Enter to search', // '点击或回车执行搜索' @@ -706,7 +706,7 @@ const en = { confirmPwdErr: 'The two passwords are inconsistent', reinputPwd: 'Enter password again', notification: 'Notification', - mobile: 'Mobile', + mobile: 'Mobile' }, roles: { roles: 'Roles', diff --git a/nezha-fronted/src/components/common/project/topologyPrev.vue b/nezha-fronted/src/components/common/project/topologyPrev.vue index c291ed021..6a3fe3843 100644 --- a/nezha-fronted/src/components/common/project/topologyPrev.vue +++ b/nezha-fronted/src/components/common/project/topologyPrev.vue @@ -330,1468 +330,1016 @@