diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue index f464af56c..2271fa4c7 100644 --- a/nezha-fronted/src/components/common/header.vue +++ b/nezha-fronted/src/components/common/header.vue @@ -396,7 +396,7 @@ } }, getAssetData() { - this.$get('idc', this.pageObj).then(response => { + this.$get('idc', {pageSize:-1}).then(response => { if (response.code == 200) { this.assetData = response.data.list this.assetData.forEach(item => { @@ -418,7 +418,7 @@ }) }, getProjectList() { - this.$get('project', {}).then(response => { + this.$get('project', {pageSize:-1}).then(response => { if (response.code == 200) { this.projectData = response.data.list; let flag = false; diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index cb0a4e807..47d8188cc 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -668,8 +668,8 @@ const cn = { }, alert: { alert: "告警", - message: "信息", - rule: "规则", + message: "告警信息", + rule: "告警规则", alertList: "告警信息", alertConfig: "告警规则", alertName: "告警名称", diff --git a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue index 70fa9fabf..2599b8cb6 100644 --- a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue @@ -255,7 +255,7 @@ editParamBox: {show: false, top: 0, left: 0, type: 0}, //param编辑弹框 moduleParamShow: false, //module默认参数param悬浮窗 assetSearch: {host: '', sn: '', text: '', label: 'IP', dropdownShow: false}, //侧滑框中asset的搜索相关 - assetPageObj: {pageNo: 1, pageSize: 9999}, + assetPageObj: {pageNo: 1, pageSize: -1}, selectedAssets: [], //侧滑框中选中的asset projectList: [], moduleList: [], @@ -402,7 +402,7 @@ /*获取project列表*/ getProjectList() { - this.$get('project', {pageSize: 999, pageNo: 1}).then(response => { + this.$get('project', {pageSize: -1, pageNo: 1}).then(response => { if (response.code === 200) { this.projectList = response.data.list; if (this.moduleList.length == 0) { diff --git a/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue b/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue index 1e56bc40d..4f951a4be 100644 --- a/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue @@ -320,7 +320,7 @@ }, getProjectList() { - this.$get('project', {pageNo: 1, pageSize: 9999}).then(response => { + this.$get('project', {pageNo: 1, pageSize: -1}).then(response => { if (response.code == 200) { this.linkObjList = response.data.list; } @@ -328,7 +328,7 @@ }, getModuleList() { - this.$get('module', {pageNo: 1, pageSize: 9999}).then(response => { + this.$get('module', {pageNo: 1, pageSize: -1}).then(response => { if (response.code == 200) { this.linkObjList = response.data.list; } @@ -336,7 +336,7 @@ }, getAssetList() { - this.$get('asset', {pageNo: 1, pageSize: 9999}).then(response => { + this.$get('asset', {pageNo: 1, pageSize: -1}).then(response => { if (response.code == 200) { this.linkObjList = response.data.list; } diff --git a/nezha-fronted/src/components/common/rightBox/assetBox.vue b/nezha-fronted/src/components/common/rightBox/assetBox.vue index 98446dfc0..23f084f58 100644 --- a/nezha-fronted/src/components/common/rightBox/assetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/assetBox.vue @@ -706,7 +706,7 @@ }, getAllModelOptionData(data) { this.assetData.assetType = this.assetType; - this.$get('model?typeCode=' + this.assetType + '&pageNo=1&pageSize=999').then(response => { + this.$get('model?typeCode=' + this.assetType + '&pageNo=1&pageSize=-1').then(response => { if (response.code === 200) { this.allModelUlData = response.data.list } diff --git a/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue index 8bba96198..813d38041 100644 --- a/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue @@ -158,7 +158,7 @@ - + @@ -280,7 +280,7 @@ /*获取project列表*/ getProjectList() { - this.$get('project', {pageSize: 999, pageNo: 1}).then(response => { + this.$get('project', {pageSize: -1, pageNo: 1}).then(response => { if (response.code === 200) { this.projectList = response.data.list; if ((!this.currentProject || !this.currentProject.id) && this.projectList.length > 0) { diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index 0e1e66c44..5fb74cfea 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -495,21 +495,21 @@ } }, getDcData() { - this.$get('idc', {pageNo: 1, pageSize: 999}).then(response => { + this.$get('idc', {pageNo: 1, pageSize: -1}).then(response => { if (response.code === 200) { this.dcSelect = response.data.list; } }); }, getAssetData() { - this.$get('asset', {pageNo: 1, pageSize: 999}).then(response => { + this.$get('asset', {pageNo: 1, pageSize: -1}).then(response => { if (response.code === 200) { this.assetSelect = response.data.list; } }); }, getModelData() { - this.$get('asset', {pageNo: 1, pageSize: 999}).then(response => { + this.$get('asset', {pageNo: 1, pageSize: -1}).then(response => { if (response.code === 200) { this.assetSelect = response.data.list; } diff --git a/nezha-fronted/src/components/page/asset/assetEditUnit.vue b/nezha-fronted/src/components/page/asset/assetEditUnit.vue index 46442983b..8376d3dfa 100644 --- a/nezha-fronted/src/components/page/asset/assetEditUnit.vue +++ b/nezha-fronted/src/components/page/asset/assetEditUnit.vue @@ -777,7 +777,7 @@ }, getAllModelOptionData(data) { this.assetData.assetType = this.assetType; - this.$get('model?typeCode=' + this.assetType + '&pageNo=1&pageSize=999').then(response => { + this.$get('model?typeCode=' + this.assetType + '&pageNo=1&pageSize=-1').then(response => { if (response.code === 200) { this.allModelUlData = response.data.list } diff --git a/nezha-fronted/src/components/page/asset/moduleListPop.vue b/nezha-fronted/src/components/page/asset/moduleListPop.vue index 80a8f74da..2ecbc6fff 100644 --- a/nezha-fronted/src/components/page/asset/moduleListPop.vue +++ b/nezha-fronted/src/components/page/asset/moduleListPop.vue @@ -46,7 +46,7 @@ export default { moduleList: [], pageObj: { pageNo: 1, - pageSize: 999, + pageSize: -1, name: '', assetId: this.assetId } diff --git a/nezha-fronted/src/components/page/config/system.vue b/nezha-fronted/src/components/page/config/system.vue index fd78162e0..14e6e6811 100644 --- a/nezha-fronted/src/components/page/config/system.vue +++ b/nezha-fronted/src/components/page/config/system.vue @@ -29,7 +29,7 @@
- +
@@ -65,13 +65,13 @@ - {{$t('overall.reset')}} + {{$t('overall.clear')}} {{$t('overall.submit')}}
- +
@@ -111,8 +111,8 @@ - {{$t('overall.reset')}} - {{$t('config.system.email.testConnection')}} + {{$t('overall.clear')}} + {{$t('config.system.email.testConnection')}} {{$t('overall.submit')}} @@ -155,7 +155,7 @@ - {{$t('overall.reset')}} + {{$t('overall.clear')}} {{$t('config.system.email.testConnection')}} {{$t('overall.submit')}} @@ -358,6 +358,9 @@ for(let key in sets){ this[type][key]=sets[key]; } + if(type == 'email'){ + this.$refs.emailForm.clearValidate(); + } } }) }, diff --git a/nezha-fronted/src/components/page/project/project.vue b/nezha-fronted/src/components/page/project/project.vue index ddd8114e8..b5af0dff7 100644 --- a/nezha-fronted/src/components/page/project/project.vue +++ b/nezha-fronted/src/components/page/project/project.vue @@ -610,7 +610,7 @@ getModuleList() { //若currentProject不存在(如页面刷新了),默认取project列表的第一个 if (this.currentProject && this.currentProject.id) { - this.$get('module', {projectId: this.currentProject.id, pageSize: 999, pageNo: 1}).then(response => { + this.$get('module', {projectId: this.currentProject.id, pageSize: -1, pageNo: 1}).then(response => { if (response.code === 200) { this.moduleList = response.data.list; for (let i = 0; i < this.moduleList.length; i++) { @@ -635,7 +635,7 @@ if (this.projectList && this.projectList.length > 0) { this.$store.commit('setProject', this.projectList[0]); } else { - this.$get('project', {pageSize: 999, pageNo: 1}).then(response => { + this.$get('project', {pageSize: -1, pageNo: 1}).then(response => { if (response.code == 200) { this.projectList = response.data.list; if (this.projectList.length > 0) {