diff --git a/nezha-fronted/src/assets/css/components/charts/chart.scss b/nezha-fronted/src/assets/css/components/charts/chart.scss index 83e3873d5..a18f52f38 100644 --- a/nezha-fronted/src/assets/css/components/charts/chart.scss +++ b/nezha-fronted/src/assets/css/components/charts/chart.scss @@ -115,8 +115,8 @@ } .panel-info-corner .fa { position: relative; - top: -6px; - left: -6px; + top: -10px; + left: 0px; font-size: 75%; z-index: 3; } diff --git a/nezha-fronted/src/components/chart/chart-list-grid.vue b/nezha-fronted/src/components/chart/chart-list-grid.vue index b75cd7633..e48a667ed 100644 --- a/nezha-fronted/src/components/chart/chart-list-grid.vue +++ b/nezha-fronted/src/components/chart/chart-list-grid.vue @@ -305,7 +305,6 @@ export default { }, methods: { drag: function (e) { - console.log(e) const parentRect = document.getElementById('content').getBoundingClientRect() let mouseInGrid = false if (((mouseXY.x > parentRect.left) && (mouseXY.x < parentRect.right)) && ((mouseXY.y > parentRect.top) && (mouseXY.y < parentRect.bottom))) { @@ -367,17 +366,14 @@ export default { moveEvent: function (i, newX, newY) { const msg = 'MOVE i=' + i + ', X=' + newX + ', Y=' + newY this.eventLog.push(msg) - console.log(msg) }, movedEvent: function (i, newX, newY) { const msg = 'MOVED i=' + i + ', X=' + newX + ', Y=' + newY this.eventLog.push(msg) - console.log(msg) }, resizeEvent: function (i, newH, newW, newHPx, newWPx) { const msg = 'RESIZE i=' + i + ', H=' + newH + ', W=' + newW + ', H(px)=' + newHPx + ', W(px)=' + newWPx this.eventLog.push(msg) - console.log(msg, this.$refs['editChart' + i]) setTimeout(() => { this.$refs['editChart' + i][0].chartResize() }) @@ -385,7 +381,6 @@ export default { resizedEvent: function (i, newX, newY, newHPx, newWPx) { const msg = 'RESIZED i=' + i + ', X=' + newX + ', Y=' + newY + ', H(px)=' + newHPx + ', W(px)=' + newWPx this.eventLog.push(msg) - console.log(msg) setTimeout(() => { this.$refs['editChart' + i][0].chartResize() }, 50) @@ -393,27 +388,21 @@ export default { containerResizedEvent: function (i, newH, newW, newHPx, newWPx) { const msg = 'CONTAINER RESIZED i=' + i + ', H=' + newH + ', W=' + newW + ', H(px)=' + newHPx + ', W(px)=' + newWPx this.eventLog.push(msg) - console.log(msg) }, layoutCreatedEvent: function (newLayout) { this.eventLog.push('Created layout') - console.log('Created layout: ', newLayout) }, layoutBeforeMountEvent: function (newLayout) { this.eventLog.push('beforeMount layout') - console.log('beforeMount layout: ', newLayout) }, layoutMountedEvent: function (newLayout) { this.eventLog.push('Mounted layout') - console.log('Mounted layout: ', newLayout) }, layoutReadyEvent: function (newLayout) { this.eventLog.push('Ready layout') - console.log('Ready layout: ', newLayout) }, layoutUpdatedEvent: function (newLayout) { this.eventLog.push('Updated layout') - console.log('Updated layout: ', newLayout) }, dropmenuChange (id, show) { if (show) { diff --git a/nezha-fronted/src/components/chart/chart-list-group-grid.vue b/nezha-fronted/src/components/chart/chart-list-group-grid.vue index 56cbec328..ba41ba79c 100644 --- a/nezha-fronted/src/components/chart/chart-list-group-grid.vue +++ b/nezha-fronted/src/components/chart/chart-list-group-grid.vue @@ -408,47 +408,37 @@ export default { moveEvent: function (i, newX, newY) { const msg = 'MOVE i=' + i + ', X=' + newX + ', Y=' + newY this.eventLog.push(msg) - console.log(msg) }, movedEvent: function (i, newX, newY) { const msg = 'MOVED i=' + i + ', X=' + newX + ', Y=' + newY this.eventLog.push(msg) - console.log(msg) }, resizeEvent: function (i, newH, newW, newHPx, newWPx) { const msg = 'RESIZE i=' + i + ', H=' + newH + ', W=' + newW + ', H(px)=' + newHPx + ', W(px)=' + newWPx this.eventLog.push(msg) - console.log(msg) }, resizedEvent: function (i, newX, newY, newHPx, newWPx) { const msg = 'RESIZED i=' + i + ', X=' + newX + ', Y=' + newY + ', H(px)=' + newHPx + ', W(px)=' + newWPx this.eventLog.push(msg) - console.log(msg) }, containerResizedEvent: function (i, newH, newW, newHPx, newWPx) { const msg = 'CONTAINER RESIZED i=' + i + ', H=' + newH + ', W=' + newW + ', H(px)=' + newHPx + ', W(px)=' + newWPx this.eventLog.push(msg) - console.log(msg) }, layoutCreatedEvent: function (newLayout) { this.eventLog.push('Created layout') - console.log('Created layout: ', newLayout) }, layoutBeforeMountEvent: function (newLayout) { this.eventLog.push('beforeMount layout') - console.log('beforeMount layout: ', newLayout) }, layoutMountedEvent: function (newLayout) { this.eventLog.push('Mounted layout') - console.log('Mounted layout: ', newLayout) }, layoutReadyEvent: function (newLayout) { this.eventLog.push('Ready layout') - console.log('Ready layout: ', newLayout) }, layoutUpdatedEvent: function (newLayout) { this.eventLog.push('Updated layout') - console.log('Updated layout: ', newLayout) }, tempDomInit () { const span = document.querySelector('.temp-dom') diff --git a/nezha-fronted/src/components/chart/chart.vue b/nezha-fronted/src/components/chart/chart.vue index 90a146ef5..fa79c4b96 100644 --- a/nezha-fronted/src/components/chart/chart.vue +++ b/nezha-fronted/src/components/chart/chart.vue @@ -1,7 +1,7 @@