diff --git a/nezha-fronted/src/App.vue b/nezha-fronted/src/App.vue index a12594375..c8b67f4d3 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/common/rightBox/addEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue index c8f9e58e0..cbef195db 100644 --- a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue @@ -546,7 +546,6 @@ export default { this.endpointTableData = [] }, handleSizeChange (val) { - console.log(val) this.getAssetList() }, handleCurrentChange () { @@ -559,7 +558,6 @@ export default { this.getAssetList() }, search (seachLabel) { - console.log(seachLabel) this.seachLabel = { ...seachLabel } this.getAssetList() }, @@ -585,11 +583,9 @@ export default { }, handleSelectionChangeAsset (val) { this.assetSelection = val - console.log(val) }, handleSelectionChangeEndpoint (val) { this.endpointSelection = val - console.log(val) }, // 保存endpoint save () { @@ -686,7 +682,6 @@ export default { } this.endpointTableData.push(obj) }) - console.log(this.endpointTableData) this.assetTableData = [...this.assetTableData] this.$refs.multipleTable.clearSelection() }, @@ -704,14 +699,12 @@ export default { return '' }, editEndpointRow (u) { - console.log(u) this.object = JSON.parse(JSON.stringify(u)) this.object.walk = this.object.configs.walk ? JSON.parse(JSON.stringify(this.object.configs.walk)) : [] this.object.port = this.object.configs.port ? JSON.parse(JSON.stringify(this.object.configs.port)) : 9100 this.rightBox.show = true }, showRightBox () { - console.log(this.blankEndpoint) this.object = { ...JSON.parse(JSON.stringify(this.blankEndpoint)), projectId: this.currentModuleCopy.projectId, moduleId: this.currentModuleCopy.id, assetName: '', type: this.currentModuleCopy.type } this.object.walk = this.object.configs.walk ? JSON.parse(JSON.stringify(this.object.configs.walk)) : [] this.object.port = this.object.configs.port ? JSON.parse(JSON.stringify(this.object.configs.port)) : 9100 @@ -722,10 +715,8 @@ export default { this.endpointTableData[index] = { ...this.endpointTableData[index], ...this.blankEndpoint } }) this.endpointTableData = [...this.endpointTableData] - console.log(this.endpointTableData) }, closeRightBox (isEdit, endpoint, isAll) { - console.log(isEdit, endpoint, isAll) this.rightBox.show = false if (!isEdit) { return } if (isAll) { @@ -739,7 +730,6 @@ export default { } }) this.endpointTableData = [...this.endpointTableData] - console.log(this.endpointTableData) } } }, @@ -761,7 +751,6 @@ export default { if (n) { this.$nextTick(() => { const domarr = document.getElementsByClassName('hide-row') - console.log(domarr.length, 'domArr') this.selectAssetAll = domarr.length === this.pageObj.pageSize }) } @@ -789,7 +778,6 @@ export default { currentModuleCopy: { immediate: true, handler (n, o) { - console.log(n) if (n.type && n.type.toLowerCase() == 'snmp') { this.endpointTableTitle[4].show = false this.endpointTableTitle[5].show = false diff --git a/nezha-fronted/src/components/common/rightBox/editEndpointBoxNew.vue b/nezha-fronted/src/components/common/rightBox/editEndpointBoxNew.vue index f8f4a3907..430585df7 100644 --- a/nezha-fronted/src/components/common/rightBox/editEndpointBoxNew.vue +++ b/nezha-fronted/src/components/common/rightBox/editEndpointBoxNew.vue @@ -418,12 +418,10 @@ export default { }, /* 保存 */ save () { - console.log(this.editEndpoint) this.editEndpoint.configs.params = this.paramToJson(this.editEndpoint.paramObj) this.editEndpoint.configs.labels = this.labelsToJson(this.editEndpoint.labelModule) this.editEndpoint.paramObj = this.editEndpoint.paramObj.filter(item => item.value && item.value.length) this.editEndpoint.labelModule = this.editEndpoint.labelModule.filter(item => item.value) - console.log(1) const params = { ...this.editEndpoint } params.configs.walk = params.walk params.configs.port = params.port @@ -474,7 +472,7 @@ export default { cancelButtonText: this.$t('tip.no'), type: 'warning' }).then(() => { - this.$delete('monitor/module?ids=' + this.editEndpoint.id).then(response => { + this.$delete('monitor/endpoint?ids=' + this.editEndpoint.id).then(response => { if (response.code === 200) { this.$message({ duration: 1000, type: 'success', message: this.$t('tip.deleteSuccess') }) this.$store.commit('setReloadFacade') diff --git a/nezha-fronted/src/components/common/rightBox/moduleBox.vue b/nezha-fronted/src/components/common/rightBox/moduleBox.vue index 2e61f2a2c..a0fcab62c 100644 --- a/nezha-fronted/src/components/common/rightBox/moduleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/moduleBox.vue @@ -317,9 +317,6 @@ export default { } }, methods: { - change () { - console.log(this.$refs['select' + 0]) - }, selectWalk (walk) { if (this.editModule.walk.indexOf(walk) != -1) { this.editModule.walk.splice(this.editModule.walk.indexOf(walk), 1) @@ -387,13 +384,11 @@ export default { this.$get('mib/tree', { pageSize: -1, pageNo: 1 }).then(response => { if (response.code === 200) { const obj = JSON.parse(response.data) - console.log(obj) this.walkData = [] for (const item in obj) { setAttr(obj[item], 'detailShow', false) this.walkData.push({ name: item, detailShow: false, subTree: obj[item] }) } - console.log(this.walkData) } }) function setAttr (tree, name, value) { @@ -433,12 +428,10 @@ export default { /* 保存 */ save () { this.editModule.configs.params = this.paramToJson(this.editModule.paramObj) - console.log(this.editModule.paramObj, this.editModule.configs.param) this.editModule.configs.labels = this.labelsToJson(this.editModule.labelModule) const params = { ...this.editModule } params.configs.walk = params.walk params.configs.port = params.port - console.log({ ...params }) params.configs = JSON.stringify(params.configs) if (this.authType === 2 && !this.editModule.configs.bearer_token) { this.$message.error("'token' is required") @@ -666,7 +659,6 @@ export default { deep: true, immediate: true, handler (n) { - console.log(n) if (n && n.configs) { const params = Object.assign({}, n.configs) params.params = this.paramToJson(this.editModule.paramObj) @@ -674,7 +666,6 @@ export default { params.walk = n.walk params.port = n.port Object.keys(params).forEach(key => { - console.log(key, !params[key] || !params[key].length) if (!params[key]) { delete params[key] } @@ -695,7 +686,6 @@ export default { delete params.labels } this.configsCopyValue = JSON.stringify(params, null, 2) - console.log(this.configsCopyValue) } } } diff --git a/nezha-fronted/src/components/common/rightBox/snmpCredentialBox.vue b/nezha-fronted/src/components/common/rightBox/snmpCredentialBox.vue index 9b4adf315..18df08f01 100644 --- a/nezha-fronted/src/components/common/rightBox/snmpCredentialBox.vue +++ b/nezha-fronted/src/components/common/rightBox/snmpCredentialBox.vue @@ -225,7 +225,6 @@ export default { handler (n, o) { this.editCredential = JSON.parse(JSON.stringify(n)) this.editCredential.config = JSON.parse(this.editCredential.config) - console.log('edit', this.editCredential) } } } diff --git a/nezha-fronted/src/components/common/rightBox/trafficSetting/trafficSettingBox.vue b/nezha-fronted/src/components/common/rightBox/trafficSetting/trafficSettingBox.vue index 459ea0500..9e63fc8a5 100644 --- a/nezha-fronted/src/components/common/rightBox/trafficSetting/trafficSettingBox.vue +++ b/nezha-fronted/src/components/common/rightBox/trafficSetting/trafficSettingBox.vue @@ -196,7 +196,6 @@ export default { this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') }) this.esc(false) } else { - console.error(response.msg) this.$message.error(response.msg) } }) diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index 6cafaa4d1..1abcf06ea 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -633,6 +633,7 @@ export default { }, // 点击搜索 select () { + console.log(this.select_list); const objectInfo = {} this.change_sreach_show = true this.name = '', this.id = '' diff --git a/nezha-fronted/src/components/common/table/settings/projectTable.vue b/nezha-fronted/src/components/common/table/settings/projectTable.vue index b74d8e297..0b7b9366a 100644 --- a/nezha-fronted/src/components/common/table/settings/projectTable.vue +++ b/nezha-fronted/src/components/common/table/settings/projectTable.vue @@ -38,13 +38,13 @@ {{scope.row[item.prop]}} -