diff --git a/frontend/src/components/canvas/components/Editor/Preview.vue b/frontend/src/components/canvas/components/Editor/Preview.vue index f986f92742..41fe23c0cb 100644 --- a/frontend/src/components/canvas/components/Editor/Preview.vue +++ b/frontend/src/components/canvas/components/Editor/Preview.vue @@ -127,7 +127,6 @@ export default { }, handleScaleChange() { if (this.componentData) { - debugger const componentData = deepCopy(this.componentData) componentData.forEach(component => { Object.keys(component.style).forEach(key => { diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue index d1bc7369a5..1f1024e2d3 100644 --- a/frontend/src/components/canvas/components/Editor/index.vue +++ b/frontend/src/components/canvas/components/Editor/index.vue @@ -374,13 +374,11 @@ export default { }, getComponentStyleDefault(style) { - debugger return getStyle(style, ['top', 'left', 'width', 'height', 'rotate']) // return style }, getComponentStyle(style) { - debugger // return getStyle(style, ['top', 'left', 'width', 'height', 'rotate']) return style }, @@ -392,7 +390,6 @@ export default { }, getTextareaHeight(element, text) { - debugger // eslint-disable-next-line prefer-const let { lineHeight, fontSize, height } = element.style if (lineHeight === '') { diff --git a/frontend/src/components/canvas/store/snapshot.js b/frontend/src/components/canvas/store/snapshot.js index 2d8508a23c..13a4078d4e 100644 --- a/frontend/src/components/canvas/store/snapshot.js +++ b/frontend/src/components/canvas/store/snapshot.js @@ -17,7 +17,6 @@ export default { }, redo(state) { - debugger if (state.snapshotIndex < state.snapshotData.length - 1) { state.snapshotIndex++ store.commit('setComponentData', deepCopy(state.snapshotData[state.snapshotIndex])) diff --git a/frontend/src/components/canvas/utils/style.js b/frontend/src/components/canvas/utils/style.js index 472ecae845..f426d07177 100644 --- a/frontend/src/components/canvas/utils/style.js +++ b/frontend/src/components/canvas/utils/style.js @@ -27,7 +27,6 @@ export function getStyle(style, filter = []) { } }) - debugger return result } diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index 3b0a857f57..2d6a52267b 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -78,7 +78,6 @@ const data = { }, setCurCanvasScale(state, curCanvasScale) { - debugger state.curCanvasScale = curCanvasScale }, diff --git a/frontend/src/views/panel/SubjectSetting/PreSubject/Slider.vue b/frontend/src/views/panel/SubjectSetting/PreSubject/Slider.vue index 38d536c445..6aa8ff5e0c 100644 --- a/frontend/src/views/panel/SubjectSetting/PreSubject/Slider.vue +++ b/frontend/src/views/panel/SubjectSetting/PreSubject/Slider.vue @@ -155,7 +155,7 @@ export default { }) }, move(offset, direction, speed) { - console.log(speed) + // console.log(speed) if (!this.transitionEnd) return this.transitionEnd = false direction === -1 ? this.currentIndex += offset / this.sliderWidth : this.currentIndex -= offset / this.sliderWidth diff --git a/frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue b/frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue index 970b1031c0..82cced7596 100644 --- a/frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue +++ b/frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue @@ -194,7 +194,7 @@ export default { this.$emit('templateEdit', this.template) }, handleDelete() { - console.log('handleDelete') + // console.log('handleDelete') } } } diff --git a/frontend/src/views/panel/SubjectSetting/index.vue b/frontend/src/views/panel/SubjectSetting/index.vue index 5cc6c00077..fb9ffca3f1 100644 --- a/frontend/src/views/panel/SubjectSetting/index.vue +++ b/frontend/src/views/panel/SubjectSetting/index.vue @@ -85,10 +85,10 @@ export default { methods: { handleChange(val) { - console.log(val) + // console.log(val) }, onChangePanelStyle(parma) { - console.log('parma:' + JSON.stringify(parma)) + // console.log('parma:' + JSON.stringify(parma)) }, onColorChange(val) { this.chart.customAttr.color = val diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 6cc26e4127..41277a5ad9 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -279,7 +279,6 @@ export default { // 监听div变动事件 erd.listenTo(document.getElementById('canvasInfo-main'), element => { _this.$nextTick(() => { - debugger _this.restore() }) }) @@ -296,6 +295,9 @@ export default { if (componentDataTemp && canvasStyleDataTemp) { this.$store.commit('setComponentData', this.resetID(JSON.parse(componentDataTemp))) this.$store.commit('setCanvasStyle', JSON.parse(canvasStyleDataTemp)) + // 清空临时画布数据 + this.$store.dispatch('panel/setComponentDataTemp', null) + this.$store.dispatch('panel/setCanvasStyleDataTemp', null) } else if (panelId) { findOne(panelId).then(response => { this.$store.commit('setComponentData', this.resetID(JSON.parse(response.data.panelData))) @@ -354,7 +356,6 @@ export default { return data }, handleDrop(e) { - debugger e.preventDefault() e.stopPropagation() let component @@ -415,7 +416,7 @@ export default { }, handleMouseDown() { - console.log('handleMouseDown123') + // console.log('handleMouseDown123') this.$store.commit('setClickComponentStatus', false) }, @@ -471,14 +472,13 @@ export default { return result }, restore() { - debugger if (document.getElementById('canvasInfo')) { this.$nextTick(() => { const canvasHeight = document.getElementById('canvasInfo').offsetHeight const canvasWidth = document.getElementById('canvasInfo').offsetWidth this.outStyle.height = canvasHeight this.outStyle.width = canvasWidth - console.log(canvasHeight + '--' + canvasWidth) + // console.log(canvasHeight + '--' + canvasWidth) }) } } diff --git a/frontend/src/views/panel/filter/index.vue b/frontend/src/views/panel/filter/index.vue index 0b2cd8844b..ef8285731b 100644 --- a/frontend/src/views/panel/filter/index.vue +++ b/frontend/src/views/panel/filter/index.vue @@ -74,7 +74,7 @@ export default { return result }) } - console.log('this.widgetSubjects=>' + JSON.stringify(this.widgetSubjects)) + // console.log('this.widgetSubjects=>' + JSON.stringify(this.widgetSubjects)) }, methods: { diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue index 77588006a9..a6915fa836 100644 --- a/frontend/src/views/panel/list/PanelList.vue +++ b/frontend/src/views/panel/list/PanelList.vue @@ -367,7 +367,6 @@ export default { methods: { closeEditPanelDialog(panelInfo) { this.editPanel.visible = false - debugger this.defaultTree() // 默认展开 同时点击 新增的节点 if (panelInfo && panelInfo.panelType === 'self' && this.lastActiveNodeData.id) { @@ -618,6 +617,9 @@ export default { this.$store.commit('refreshSnapshot') this.$store.commit('setComponentData', []) this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE) + // 清空临时画布数据 + this.$store.dispatch('panel/setComponentDataTemp', null) + this.$store.dispatch('panel/setCanvasStyleDataTemp', null) this.$store.dispatch('panel/setPanelInfo', data) bus.$emit('PanelSwitchComponent', { name: 'PanelEdit' }) }, diff --git a/frontend/src/views/panel/list/SaveToTemplate.vue b/frontend/src/views/panel/list/SaveToTemplate.vue index ebc4037974..860bddde5c 100644 --- a/frontend/src/views/panel/list/SaveToTemplate.vue +++ b/frontend/src/views/panel/list/SaveToTemplate.vue @@ -99,7 +99,6 @@ export default { type: 'success', showClose: true }) - debugger this.$emit('closeSaveDialog') }) }).catch(() => { @@ -111,7 +110,6 @@ export default { type: 'success', showClose: true }) - debugger this.$emit('closeSaveDialog') }) } diff --git a/frontend/src/views/panel/template/component/TemplateImport.vue b/frontend/src/views/panel/template/component/TemplateImport.vue index ecba49f762..a9af2b9d30 100644 --- a/frontend/src/views/panel/template/component/TemplateImport.vue +++ b/frontend/src/views/panel/template/component/TemplateImport.vue @@ -88,7 +88,6 @@ export default { type: 'success', showClose: true }) - debugger this.$emit('closeEditTemplateDialog') }) }).catch(() => { @@ -100,7 +99,6 @@ export default { type: 'success', showClose: true }) - debugger this.$emit('closeEditTemplateDialog') }) } diff --git a/frontend/src/views/panel/template/component/TemplateItem.vue b/frontend/src/views/panel/template/component/TemplateItem.vue index 8444cf3ebe..c94b1fe42d 100644 --- a/frontend/src/views/panel/template/component/TemplateItem.vue +++ b/frontend/src/views/panel/template/component/TemplateItem.vue @@ -49,7 +49,7 @@ export default { this.$emit('templateEdit', this.template) }, handleDelete() { - console.log('handleDelete') + // console.log('handleDelete') } } } diff --git a/frontend/src/views/panel/template/index.vue b/frontend/src/views/panel/template/index.vue index 34902ca765..5045efe75e 100644 --- a/frontend/src/views/panel/template/index.vue +++ b/frontend/src/views/panel/template/index.vue @@ -184,7 +184,6 @@ export default { } }, closeEditTemplateDialog() { - debugger this.templateDialog.visible = false this.showCurrentTemplate(this.templateDialog.pid) }, diff --git a/frontend/src/views/system/authority/components/LazyTree.vue b/frontend/src/views/system/authority/components/LazyTree.vue index 5007281b28..8e9c29d441 100644 --- a/frontend/src/views/system/authority/components/LazyTree.vue +++ b/frontend/src/views/system/authority/components/LazyTree.vue @@ -133,7 +133,6 @@ export default { methods: { loadAuth() { if (this.authCondition && this.showExtent) { - debugger let authQueryCondition = {} if (this.dataInfo.direction === 'source') { // 当前为授权数据 获取当前authTarget 的授权信息 authSource @@ -153,7 +152,6 @@ export default { } }, loadNodes(node, resolve) { - debugger if (!this.searchStatus) { if (node.level === 0) { const queryCondition = { @@ -181,7 +179,6 @@ export default { }, filterNode(index) { this.timeMachine = setTimeout(() => { - debugger if (index === this.changeIndex) { const queryCondition = { withExtend: 'parent',