diff --git a/frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue b/frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue index 7e76673d54..d2a2f566f8 100644 --- a/frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue +++ b/frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue @@ -10,26 +10,6 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/component-style/LegendSelector.vue b/frontend/src/views/chart/components/component-style/LegendSelector.vue index 02aa399ba2..271bf5e6dd 100644 --- a/frontend/src/views/chart/components/component-style/LegendSelector.vue +++ b/frontend/src/views/chart/components/component-style/LegendSelector.vue @@ -47,71 +47,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/component-style/SplitSelector.vue b/frontend/src/views/chart/components/component-style/SplitSelector.vue index b828660cb5..a2cef6e5b7 100644 --- a/frontend/src/views/chart/components/component-style/SplitSelector.vue +++ b/frontend/src/views/chart/components/component-style/SplitSelector.vue @@ -41,59 +41,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/component-style/TitleSelector.vue b/frontend/src/views/chart/components/component-style/TitleSelector.vue index c2e25ee0d5..c9e31d4181 100644 --- a/frontend/src/views/chart/components/component-style/TitleSelector.vue +++ b/frontend/src/views/chart/components/component-style/TitleSelector.vue @@ -45,69 +45,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/component-style/XAxisSelector.vue b/frontend/src/views/chart/components/component-style/XAxisSelector.vue index 21cdf2fbf6..c42e732e4c 100644 --- a/frontend/src/views/chart/components/component-style/XAxisSelector.vue +++ b/frontend/src/views/chart/components/component-style/XAxisSelector.vue @@ -66,90 +66,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/component-style/YAxisSelector.vue b/frontend/src/views/chart/components/component-style/YAxisSelector.vue index ef52af5636..ca6ef455d4 100644 --- a/frontend/src/views/chart/components/component-style/YAxisSelector.vue +++ b/frontend/src/views/chart/components/component-style/YAxisSelector.vue @@ -66,90 +66,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue index bc7a5b2629..f397633982 100644 --- a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue @@ -42,58 +42,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/shape-attr/LabelSelector.vue b/frontend/src/views/chart/components/shape-attr/LabelSelector.vue index a6f2fc4f72..2ee0a55909 100644 --- a/frontend/src/views/chart/components/shape-attr/LabelSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/LabelSelector.vue @@ -61,85 +61,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/shape-attr/SizeSelector.vue b/frontend/src/views/chart/components/shape-attr/SizeSelector.vue index 0295369719..1dd5a77237 100644 --- a/frontend/src/views/chart/components/shape-attr/SizeSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/SizeSelector.vue @@ -161,150 +161,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/components/shape-attr/TooltipSelector.vue b/frontend/src/views/chart/components/shape-attr/TooltipSelector.vue index 2e0fc50367..d56d8df48d 100644 --- a/frontend/src/views/chart/components/shape-attr/TooltipSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/TooltipSelector.vue @@ -49,73 +49,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index ca061f74fd..d513721e77 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -925,67 +925,6 @@ export default { }) }, - // saveSnapshot() { - // if (this.view.title && this.view.title.length > 50) { - // this.$warning(this.$t('chart.title_limit')) - // return - // } - // if (this.loading) { - // return - // } - // this.loading = true - // html2canvas(this.$refs.imageWrapper).then(canvas => { - // const snapshot = canvas.toDataURL('image/jpeg', 0.1) // 0.1是图片质量 - // if (snapshot !== '') { - // const view = JSON.parse(JSON.stringify(this.view)) - // view.id = this.view.id - // view.sceneId = this.view.sceneId - // view.name = this.view.name ? this.view.name : this.table.name - // view.tableId = this.view.tableId - // view.xaxis.forEach(function(ele) { - // // if (!ele.summary || ele.summary === '') { - // // ele.summary = 'sum' - // // } - // if (!ele.sort || ele.sort === '') { - // ele.sort = 'none' - // } - // if (!ele.filter) { - // ele.filter = [] - // } - // }) - // view.yaxis.forEach(function(ele) { - // if (!ele.summary || ele.summary === '') { - // if (ele.id === 'count') { - // ele.summary = 'count' - // } else { - // ele.summary = 'sum' - // } - // } - // if (!ele.sort || ele.sort === '') { - // ele.sort = 'none' - // } - // if (!ele.filter) { - // ele.filter = [] - // } - // }) - // if (view.type.startsWith('pie') || view.type.startsWith('funnel') || view.type.startsWith('gauge')) { - // if (view.yaxis.length > 1) { - // view.yaxis.splice(1, view.yaxis.length) - // } - // } - // view.xaxis = JSON.stringify(view.xaxis) - // view.yaxis = JSON.stringify(view.yaxis) - // view.customAttr = JSON.stringify(view.customAttr) - // view.customStyle = JSON.stringify(view.customStyle) - // view.customFilter = JSON.stringify(view.customFilter) - // view.snapshot = snapshot - // post('/chart/view/save', view).then(response => { - // this.loading = false - // this.$success(this.$t('commons.save_success')) - // }) - // } - // }) - // }, closeEdit() { if (this.view.title && this.view.title.length > 50) { this.$warning(this.$t('chart.title_limit')) @@ -1067,74 +1006,6 @@ export default { } }, - // 左边往右边拖动时的事件 - // start1(e) { - // // console.log(e) - // e.clone.className = 'item' - // e.item.className = 'item' - // }, - // end1(e) { - // // console.log(e) - // e.clone.className = 'item' - // e.item.className = 'item' - // this.refuseMove(e) - // this.removeCheckedKey(e) - // this.save(true) - // }, - // 右边往左边拖动时的事件 - // start2(e) { - // console.log(e) - // }, - // end2(e) { - // // console.log(e) - // this.removeDuplicateKey(e) - // this.save(true) - // }, - // removeCheckedKey(e) { - // const that = this - // const xItems = this.view.xaxis.filter(function(m) { - // return m.id === that.moveId - // }) - // const yItems = this.view.yaxis.filter(function(m) { - // return m.id === that.moveId - // }) - // if (xItems && xItems.length > 1) { - // this.view.xaxis.splice(e.newDraggableIndex, 1) - // } - // if (yItems && yItems.length > 1) { - // this.view.yaxis.splice(e.newDraggableIndex, 1) - // } - // }, - // refuseMove(e) { - // const that = this - // const xItems = this.dimension.filter(function(m) { - // return m.id === that.moveId - // }) - // const yItems = this.quota.filter(function(m) { - // return m.id === that.moveId - // }) - // if (xItems && xItems.length > 1) { - // this.dimension.splice(e.newDraggableIndex, 1) - // } - // if (yItems && yItems.length > 1) { - // this.quota.splice(e.newDraggableIndex, 1) - // } - // }, - // removeDuplicateKey(e) { - // const that = this - // const xItems = this.dimension.filter(function(m) { - // return m.id === that.moveId - // }) - // const yItems = this.quota.filter(function(m) { - // return m.id === that.moveId - // }) - // if (xItems && xItems.length > 1) { - // this.dimension.splice(e.newDraggableIndex, 1) - // } - // if (yItems && yItems.length > 1) { - // this.quota.splice(e.newDraggableIndex, 1) - // } - // }, // move回调方法 onMove(e, originalEvent) { // console.log(e)