diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue index 76d450de6..5c3eca35a 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue @@ -26,7 +26,7 @@ > @@ -56,13 +56,11 @@ export default { 'delete-button': deleteButton, cabinetTable }, - props: { - obj: Object // 关联的实体对象 - }, data () { return { url: 'dc/cabinet', tableId: 'cabinetTable', + blankObject: { id: '', idcId: '', @@ -104,15 +102,6 @@ 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/rightBox/dcBox.vue b/nezha-fronted/src/components/common/rightBox/dcBox.vue index 33801cfed..cbd199054 100644 --- a/nezha-fronted/src/components/common/rightBox/dcBox.vue +++ b/nezha-fronted/src/components/common/rightBox/dcBox.vue @@ -22,8 +22,7 @@ - - {{item.username}} + @@ -91,7 +90,7 @@ export default { } }, created() { - console.log(this.props) + }, methods: { /* 关闭弹框 */ @@ -209,7 +208,6 @@ export default { deep: true, handler (n, o) { this.editDc = JSON.parse(JSON.stringify(n)) - console.info(this.editDc) this.$nextTick(() => { this.$refs.latlngPicker.setLnglat(this.editDc.latitude, this.editDc.longitude) }) diff --git a/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue b/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue index 0b8d37307..005ebb432 100644 --- a/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/setting/cabinetBox.vue @@ -57,6 +57,7 @@ export default { } }, created() { + }, methods: { clickOutside () { @@ -71,7 +72,7 @@ export default { this.prevent_opt.save = true this.$refs.cabinetForm.validate(valid => { if (valid) { - this.editCabinet.idcId = this.currentDc.id + this.editCabinet.dcId = this.currentDc.id if (this.editCabinet.id) { this.$put('/dc/cabinet', this.editCabinet).then(res => { this.prevent_opt.save = false @@ -126,6 +127,7 @@ export default { deep: true, immediate: true, handler: function (n, o) { + console.info(n) if (n) { this.editCabinet = JSON.parse(JSON.stringify(n)) } diff --git a/nezha-fronted/src/components/common/table/settings/cabinetTable.vue b/nezha-fronted/src/components/common/table/settings/cabinetTable.vue index 1cb5c5484..892797dba 100644 --- a/nezha-fronted/src/components/common/table/settings/cabinetTable.vue +++ b/nezha-fronted/src/components/common/table/settings/cabinetTable.vue @@ -97,7 +97,6 @@ export default { } }, methods: { - } }