diff --git a/Dockerfile b/Dockerfile index b3a45d4f1a..a4c9265e79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.cn-qingdao.aliyuncs.com/dataease/fabric8-java-alpine-openjdk8-jre +FROM registry.cn-qingdao.aliyuncs.com/dataease/fabric8-java-alpine-openjdk8-jre:map ARG IMAGE_TAG diff --git a/backend/src/main/java/io/dataease/datasource/service/DatasourceService.java b/backend/src/main/java/io/dataease/datasource/service/DatasourceService.java index 4f78726e6f..18b54e7a02 100644 --- a/backend/src/main/java/io/dataease/datasource/service/DatasourceService.java +++ b/backend/src/main/java/io/dataease/datasource/service/DatasourceService.java @@ -28,7 +28,6 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; -import javax.xml.crypto.Data; import java.util.ArrayList; import java.util.Arrays; import java.util.List; diff --git a/frontend/src/components/canvas/custom-component/UserView.vue b/frontend/src/components/canvas/custom-component/UserView.vue index c978f9e800..153100e9c1 100644 --- a/frontend/src/components/canvas/custom-component/UserView.vue +++ b/frontend/src/components/canvas/custom-component/UserView.vue @@ -91,7 +91,9 @@ export default { httpRequest: { status: true, msg: '' - } + }, + timeMachine: null, + changeIndex: 0 } }, computed: { @@ -131,6 +133,9 @@ export default { chartType() { return this.chart.type }, + hw() { + return this.outStyle.width * this.outStyle.height + }, ...mapState([ 'canvasStyleData', 'nowPanelTrackInfo' @@ -163,6 +168,22 @@ export default { deep: true }, // 监听外部的样式变化 (非实时性要求) + 'hw': { + handler(newVal, oldVla) { + // console.log('hw:' + newVal + '---' + oldVla) + if (newVal !== oldVla) { + this.destroyTimeMachine() + this.changeIndex++ + this.chartResize(this.changeIndex) + } + // + // if (this.$refs[this.element.propValue.id]) { + // this.$refs[this.element.propValue.id].chartResize() + // } + }, + deep: true + }, + // 监听外部的样式变化 (非实时性要求) outStyle: { handler(newVal, oldVla) { // @@ -392,10 +413,20 @@ export default { } } }, - // chart - chartResize() { + destroyTimeMachine() { + this.timeMachine && clearTimeout(this.timeMachine) + this.timeMachine = null + }, + + // 边框变化 + chartResize(index) { if (this.$refs[this.element.propValue.id]) { - this.$refs[this.element.propValue.id].chartResize() + this.timeMachine = setTimeout(() => { + if (index === this.changeIndex) { + this.$refs[this.element.propValue.id].chartResize() + } + this.destroyTimeMachine() + }, 200) } } } diff --git a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue index 7ea65b4b82..ab5a35f136 100644 --- a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue @@ -13,7 +13,7 @@