feat(视图):视图增加 过滤器,直接对数据集字段进行过滤
This commit is contained in:
parent
1833ca5399
commit
744c9a2dd4
@ -673,7 +673,8 @@ export default {
|
||||
dimension_show: 'Dimension Show',
|
||||
quota_show: 'Quota Show',
|
||||
title_limit: 'Title cannot be greater than 50 characters',
|
||||
filter_condition: 'Filter Condition'
|
||||
filter_condition: 'Filter Condition',
|
||||
filter_field_can_null: 'Filter field must choose'
|
||||
},
|
||||
dataset: {
|
||||
sheet_warn: 'There are multiple sheet pages, and the first one is extracted by default',
|
||||
|
||||
@ -672,7 +672,8 @@ export default {
|
||||
dimension_show: '維度顯示',
|
||||
quota_show: '指標顯示',
|
||||
title_limit: '標題不能大於50個字符',
|
||||
filter_condition: '過濾條件'
|
||||
filter_condition: '過濾條件',
|
||||
filter_field_can_null: '過濾字段必填'
|
||||
},
|
||||
dataset: {
|
||||
sheet_warn: '有多個sheet頁面,默認抽取第一個',
|
||||
|
||||
@ -674,7 +674,8 @@ export default {
|
||||
dimension_show: '维度显示',
|
||||
quota_show: '指标显示',
|
||||
title_limit: '标题不能大于50个字符',
|
||||
filter_condition: '过滤条件'
|
||||
filter_condition: '过滤条件',
|
||||
filter_field_can_null: '过滤字段必填'
|
||||
},
|
||||
dataset: {
|
||||
sheet_warn: '有多个Sheet页,默认抽取第一个',
|
||||
|
||||
@ -797,6 +797,17 @@ export default {
|
||||
this.resultFilterEdit = false
|
||||
},
|
||||
saveResultFilter() {
|
||||
for (let i = 0; i < this.chartForFilter.customFilter.length; i++) {
|
||||
const f = this.chartForFilter.customFilter[i]
|
||||
if (!f.fieldId || f.fieldId === '') {
|
||||
this.$message({
|
||||
message: this.$t('chart.filter_field_can_null'),
|
||||
type: 'error',
|
||||
showClose: true
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
this.view.customFilter = this.chartForFilter.customFilter
|
||||
this.save(true)
|
||||
this.closeResultFilter()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user