@@ -345,8 +345,7 @@ export default {
.component {
position: absolute;
}
-
-.component:hover {
+.component-outer:hover {
box-shadow: 0px 0px 3px #0a7be0;
}
diff --git a/frontend/src/components/elVisualSelect/index.vue b/frontend/src/components/elVisualSelect/index.vue
index 21be80326c..e5320bad55 100644
--- a/frontend/src/components/elVisualSelect/index.vue
+++ b/frontend/src/components/elVisualSelect/index.vue
@@ -291,7 +291,5 @@ export default {
.select-all {
padding: 10px 20px 0 20px;
}
-.coustom-de-select {
- z-index: 999 !important;
-}
+
diff --git a/frontend/src/components/widget/deWidget/DeSelect.vue b/frontend/src/components/widget/deWidget/DeSelect.vue
index cc5c68fe96..666ee8bab7 100644
--- a/frontend/src/components/widget/deWidget/DeSelect.vue
+++ b/frontend/src/components/widget/deWidget/DeSelect.vue
@@ -85,7 +85,8 @@ export default {
value: null,
data: [],
onFocus: false,
- keyWord: ''
+ keyWord: '',
+ separator: ','
}
},
computed: {
@@ -150,7 +151,7 @@ export default {
if (!token && linkToken) {
method = linkMultFieldValues
}
- const param = { fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort }
+ const param = { fieldIds: this.element.options.attrs.fieldId.split(this.separator), sort: this.element.options.attrs.sort }
if (this.panelInfo.proxy) {
param.userId = this.panelInfo.proxy
}
@@ -189,7 +190,7 @@ export default {
if (!token && linkToken) {
method = linkMultFieldValues
}
- const param = { fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort }
+ const param = { fieldIds: this.element.options.attrs.fieldId.split(this.separator), sort: this.element.options.attrs.sort }
if (this.panelInfo.proxy) {
param.userId = this.panelInfo.proxy
}
@@ -246,8 +247,8 @@ export default {
this.element.options.value = ''
return
}
- const tempValueArray = JSON.parse(JSON.stringify(this.element.options.value.split(',')))
- this.element.options.value = tempValueArray.filter(item => optionList.some(option => option === item)).join(',')
+ const tempValueArray = JSON.parse(JSON.stringify(this.element.options.value.split(this.separator)))
+ this.element.options.value = tempValueArray.filter(item => optionList.some(option => option === item)).join(this.separator)
}
}
},
@@ -298,7 +299,7 @@ export default {
method = linkMultFieldValues
}
method({
- fieldIds: this.element.options.attrs.fieldId.split(','),
+ fieldIds: this.element.options.attrs.fieldId.split(this.separator),
sort: this.element.options.attrs.sort
}).then(res => {
this.data = this.optionData(res.data)
@@ -322,7 +323,7 @@ export default {
if (value === null) {
this.element.options.value = ''
} else {
- this.element.options.value = Array.isArray(value) ? value.join() : value
+ this.element.options.value = Array.isArray(value) ? value.join(this.separator) : value
}
this.element.options.manualModify = false
} else {
@@ -365,16 +366,19 @@ export default {
formatFilterValue() {
if (this.value === null) return []
if (Array.isArray(this.value)) return this.value
+ if (!this.element.options.attrs.multiple) {
+ return [this.value]
+ }
return this.value.split(',')
},
fillValueDerfault() {
const defaultV = this.element.options.value === null ? '' : this.element.options.value.toString()
if (this.element.options.attrs.multiple) {
if (defaultV === null || typeof defaultV === 'undefined' || defaultV === '' || defaultV === '[object Object]') return []
- return defaultV.split(',')
+ return defaultV.split(this.separator)
} else {
if (defaultV === null || typeof defaultV === 'undefined' || defaultV === '' || defaultV === '[object Object]') return null
- return defaultV.split(',')[0]
+ return defaultV.split(this.separator)[0]
}
},
optionData(data) {
diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js
index 87d5a9b2db..ce2af3c82d 100644
--- a/frontend/src/lang/en.js
+++ b/frontend/src/lang/en.js
@@ -1521,7 +1521,7 @@ export default {
table_auto_break_line: 'Auto Line Feed',
table_break_line_tip: 'If open this option,the table item height will disabled.',
step: 'Step(px)',
- no_function: 'Function not enter,please input.'
+ no_function: 'Function not enter,please input'
},
dataset: {
scope_edit: 'Effective only when editing',
@@ -1533,7 +1533,7 @@ export default {
field_rename: 'Rename Field',
params_work: 'Effective only when editing: parameter values are effective only when editing data sets; Global Effective: It takes effect in dataset view, preview, and view where dataset is used.',
sql_variable_limit_1: '1、SQL variables can only be used in where conditions',
- sql_variable_limit_2: '2、Example:select * from table_name where column_name1=\'${param_name1}\' and column_name2 in \'${param_name2}\'',
+ sql_variable_limit_2: '2、Example:select * from table_name where column_name1=\'${param_name1}\' and column_name2 in ${param_name2}',
select_year: 'Select Year',
select_month: 'Select Month',
select_date: 'Select Date',
diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js
index 3d498f8b7f..8ea17b41ac 100644
--- a/frontend/src/lang/tw.js
+++ b/frontend/src/lang/tw.js
@@ -1515,7 +1515,7 @@ export default {
table_auto_break_line: '自動換行',
table_break_line_tip: '開啟自動換行,表格行高設置將失效',
step: '步長(px)',
- no_function: '函數尚未支持直接引用,請在字段表達式中手動輸入。'
+ no_function: '函數尚未支持直接引用,請在字段表達式中手動輸入'
},
dataset: {
scope_edit: '僅編輯時生效',
@@ -1527,7 +1527,7 @@ export default {
field_rename: '字段重命名',
params_work: '僅編輯時生效:參數值僅在數据集編輯時生效; 全域生效:在數据集查看、預覽、以及用到數据集的視圖中均生效。',
sql_variable_limit_1: '1、SQL變數只能在WHERE條件中使用',
- sql_variable_limit_2: '2、示例:select * from table_name where column_name1=\'${param_name1}\' and column_name2 in \'${param_name2}\'',
+ sql_variable_limit_2: '2、示例:select * from table_name where column_name1=\'${param_name1}\' and column_name2 in ${param_name2}',
selesql_variable_limit_2ct_year: '選擇年',
select_month: '選擇月',
select_date: '選擇日期',
diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js
index 8a0d49bb31..6cc8e19a87 100644
--- a/frontend/src/lang/zh.js
+++ b/frontend/src/lang/zh.js
@@ -1516,7 +1516,7 @@ export default {
table_auto_break_line: '自动换行',
table_break_line_tip: '开启自动换行,表格行高设置将失效',
step: '步长(px)',
- no_function: '函数尚未支持直接引用,请在字段表达式中手动输入。'
+ no_function: '函数尚未支持直接引用,请在字段表达式中手动输入'
},
dataset: {
scope_edit: '仅编辑时生效',
@@ -1529,7 +1529,7 @@ export default {
params_work: '仅编辑时生效:参数值仅在数据集编辑时生效;全局生效:在数据集查看、预览、以及用到数据集的视图中均生效。',
select_year: '选择年',
sql_variable_limit_1: '1、SQL 变量只能在 WHERE 条件中使用',
- sql_variable_limit_2: '2、示例:select * from table_name where column_name1=\'${param_name1}\' and column_name2 in \'${param_name2}\'',
+ sql_variable_limit_2: '2、示例:select * from table_name where column_name1=\'${param_name1}\' and column_name2 in ${param_name2}',
select_month: '选择月',
select_date: '选择日期',
select_time: '选择时间',
diff --git a/frontend/src/views/chart/chart/bar/bar_antv.js b/frontend/src/views/chart/chart/bar/bar_antv.js
index 76c8121c05..3cb4b0d193 100644
--- a/frontend/src/views/chart/chart/bar/bar_antv.js
+++ b/frontend/src/views/chart/chart/bar/bar_antv.js
@@ -114,7 +114,7 @@ export function baseBarOptionAntV(plot, container, chart, action, isGroup, isSta
if (chart.senior) {
let emptyDataStrategy = JSON.parse(chart.senior)?.functionCfg?.emptyDataStrategy
if (!emptyDataStrategy) {
- emptyDataStrategy = 'breakLine'
+ emptyDataStrategy = 'ignoreData'
}
handleEmptyDataStrategy(emptyDataStrategy, chart, data, options)
}
diff --git a/frontend/src/views/chart/chart/util.js b/frontend/src/views/chart/chart/util.js
index af5e81d5ff..c214e7eed3 100644
--- a/frontend/src/views/chart/chart/util.js
+++ b/frontend/src/views/chart/chart/util.js
@@ -3554,13 +3554,3 @@ export function resetRgbOpacity(sourceColor, times) {
}
return sourceColor
}
-
-export function getDefaultLabelContent(chart) {
- if (chart?.type?.includes('pie')) {
- return ['dimension', 'proportion']
- }
- if (chart?.type?.includes('bar')) {
- return ['quota']
- }
- return []
-}
diff --git a/frontend/src/views/chart/components/shapeAttr/LabelSelectorAntV.vue b/frontend/src/views/chart/components/shapeAttr/LabelSelectorAntV.vue
index ba980c4edb..b204c3a6d6 100644
--- a/frontend/src/views/chart/components/shapeAttr/LabelSelectorAntV.vue
+++ b/frontend/src/views/chart/components/shapeAttr/LabelSelectorAntV.vue
@@ -317,6 +317,25 @@ export default {
]
}
},
+ computed: {
+ labelContentOptions() {
+ if (this.chart.type.includes('pie')) {
+ return [
+ { name: this.$t('chart.dimension'), value: 'dimension' },
+ { name: this.$t('chart.quota'), value: 'quota' },
+ { name: this.$t('chart.proportion'), value: 'proportion' }
+ ]
+ }
+ if (this.chart.type.includes('bar')) {
+ return [
+ { name: this.$t('chart.chart_group'), value: 'group' },
+ { name: this.$t('chart.stack_item'), value: 'stack' },
+ { name: this.$t('chart.quota'), value: 'quota' }
+ ]
+ }
+ return []
+ }
+ },
watch: {
'chart': {
handler: function() {
@@ -398,25 +417,6 @@ export default {
showProperty(property) {
return this.propertyInner.includes(property)
}
- },
- computed: {
- labelContentOptions() {
- if (this.chart.type.includes('pie')) {
- return [
- { name: this.$t('chart.dimension'), value: 'dimension' },
- { name: this.$t('chart.quota'), value: 'quota' },
- { name: this.$t('chart.proportion'), value: 'proportion' }
- ]
- }
- if (this.chart.type.includes('bar')) {
- return [
- { name: this.$t('chart.chart_group'), value: 'group' },
- { name: this.$t('chart.stack_item'), value: 'stack' },
- { name: this.$t('chart.quota'), value: 'quota' }
- ]
- }
- return []
- }
}
}
diff --git a/frontend/src/views/chart/group/Group.vue b/frontend/src/views/chart/group/Group.vue
index 6482f85092..7f5609dfa0 100644
--- a/frontend/src/views/chart/group/Group.vue
+++ b/frontend/src/views/chart/group/Group.vue
@@ -513,7 +513,6 @@ import {
} from '../chart/chart'
import { checkViewTitle } from '@/components/canvas/utils/utils'
import { adaptCurTheme } from '@/components/canvas/utils/style'
-import { getDefaultLabelContent } from '@/views/chart/chart/util'
export default {
name: 'Group',
@@ -1045,6 +1044,11 @@ export default {
setChartDefaultOptions(view) {
const type = view.type
const attr = JSON.parse(view.customAttr)
+ if (view.render === 'echarts') {
+ attr.label.position = 'inside'
+ } else {
+ attr.label.position = 'middle'
+ }
if (type.includes('pie')) {
if (view.render === 'echarts') {
attr.label.position = 'inside'
@@ -1061,21 +1065,13 @@ export default {
if (type === 'pie-donut-rose') {
attr.size.pieInnerRadius = Math.round(attr.size.pieOuterRadius * 0.5)
}
- attr.label.labelContent = getDefaultLabelContent(view)
+ } else if (type.includes('bar')) {
+ attr.label.labelContent = ['quota']
+ const senior = JSON.parse(view.senior)
+ senior.functionCfg.emptyDataStrategy = 'ignoreData'
+ view.senior = JSON.stringify(senior)
} else if (type.includes('line')) {
attr.label.position = 'top'
- } else if (type.includes('treemap')) {
- if (view.render === 'echarts') {
- attr.label.position = 'inside'
- } else {
- attr.label.position = 'middle'
- }
- } else {
- if (view.render === 'echarts') {
- attr.label.position = 'inside'
- } else {
- attr.label.position = 'middle'
- }
}
view.customAttr = JSON.stringify(attr)
},
diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue
index 5319f4ba77..fdb8f96c1e 100644
--- a/frontend/src/views/chart/view/ChartEdit.vue
+++ b/frontend/src/views/chart/view/ChartEdit.vue
@@ -1748,7 +1748,6 @@ import CalcChartFieldEdit from '@/views/chart/view/CalcChartFieldEdit'
import { equalsAny } from '@/utils/StringUtils'
import PositionAdjust from '@/views/chart/view/PositionAdjust'
import MarkMapDataEditor from '@/views/chart/components/map/MarkMapDataEditor'
-import { getDefaultLabelContent } from '@/views/chart/chart/util'
export default {
name: 'ChartEdit',
@@ -3282,6 +3281,11 @@ export default {
const type = this.view.type
const customAttr = this.view.customAttr
const customStyle = this.view.customStyle
+ if (this.view.render === 'echarts') {
+ this.view.customAttr.label.position = 'inside'
+ } else {
+ this.view.customAttr.label.position = 'middle'
+ }
if (type.includes('pie')) {
if (this.view.render === 'echarts') {
customAttr.label.position = 'inside'
@@ -3299,22 +3303,12 @@ export default {
if (equalsAny(type, 'pie', 'pie-rose')) {
customAttr.size.pieInnerRadius = 0
}
+ } else if (type.includes('bar')) {
+ this.view.customAttr.label.labelContent = ['quota']
+ this.view.senior.functionCfg.emptyDataStrategy = 'ignoreData'
} else if (type.includes('line')) {
this.view.customAttr.label.position = 'top'
- } else if (type.includes('treemap')) {
- if (this.view.render === 'echarts') {
- this.view.customAttr.label.position = 'inside'
- } else {
- this.view.customAttr.label.position = 'middle'
- }
- } else {
- if (this.view.render === 'echarts') {
- this.view.customAttr.label.position = 'inside'
- } else {
- this.view.customAttr.label.position = 'middle'
- }
}
- customAttr.label.labelContent = getDefaultLabelContent(this.view)
// reset custom colors
this.view.customAttr.color.seriesColors = []
},
diff --git a/frontend/src/views/dataset/add/AddSQL.vue b/frontend/src/views/dataset/add/AddSQL.vue
index a5860f5e15..f3299c3907 100644
--- a/frontend/src/views/dataset/add/AddSQL.vue
+++ b/frontend/src/views/dataset/add/AddSQL.vue
@@ -463,14 +463,6 @@
>
{{ $t('commons.params_value') }}
-
-
-
{
+ if (info.id === this.fieldsParent.id && info.name !== this.fieldsParent.name) {
+ this.fieldsParent.name = info.name
+ this.comBackLink(this.fieldsParent)
+ this.comShowFieldData(this.fieldsParent)
+ }
+ })
+ }
+ },
handleNodeClick(data) {
if (data.modelInnerType !== 'group') {
this.showFieldData(data)
diff --git a/frontend/src/views/wizard/index.vue b/frontend/src/views/wizard/index.vue
index 94299eaa82..9846564106 100644
--- a/frontend/src/views/wizard/index.vue
+++ b/frontend/src/views/wizard/index.vue
@@ -119,7 +119,7 @@
{{ $t('wizard.technical_group') }}