diff --git a/frontend/src/views/chart/components/normal/LabelNormal.vue b/frontend/src/views/chart/components/normal/LabelNormal.vue index d0bbcbe3e2..1f5b9becdb 100644 --- a/frontend/src/views/chart/components/normal/LabelNormal.vue +++ b/frontend/src/views/chart/components/normal/LabelNormal.vue @@ -6,15 +6,17 @@ id="label-content" :style="content_class" > - +

{{ item.data[0] }}

-

- - {{ chart.data.series[0].name }} -

+ +

+ + {{ chart.data.series[0].name }} +

+
diff --git a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue index 0ba06b3b66..f499f1cc66 100644 --- a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue @@ -46,12 +46,12 @@ - - - + + +
diff --git a/frontend/src/views/dataset/data/CalcFieldEdit.vue b/frontend/src/views/dataset/data/CalcFieldEdit.vue index 99b2eb0427..da5ec00115 100644 --- a/frontend/src/views/dataset/data/CalcFieldEdit.vue +++ b/frontend/src/views/dataset/data/CalcFieldEdit.vue @@ -86,7 +86,7 @@ :disabled="true" > - + @@ -106,7 +106,7 @@ :disabled="true" > - + @@ -314,6 +314,13 @@ export default { pos2.ch = pos1.ch this.$refs.myCm.codemirror.replaceRange(param, pos2) }, + insertFieldToCodeMirror(param) { + const pos1 = this.$refs.myCm.codemirror.getCursor() + const pos2 = {} + pos2.line = pos1.line + pos2.ch = pos1.ch + this.$refs.myCm.codemirror.replaceRange(param, pos2) + }, initFunctions() { post('/dataset/function/listByTableId/' + this.param.id, null).then(response => {