forked from github/dataease
Merge pull request #2531 from dataease/pr@dev@fix_filter_field_empty
fix: 过滤条件选择空数据集给出提示
This commit is contained in:
commit
cb2697eee5
@ -1757,7 +1757,8 @@ export default {
|
|||||||
choose_background: 'Choose Component Background',
|
choose_background: 'Choose Component Background',
|
||||||
choose_background_tips: 'The component`s own background settings will overwrite the current settings',
|
choose_background_tips: 'The component`s own background settings will overwrite the current settings',
|
||||||
visual: 'Visual',
|
visual: 'Visual',
|
||||||
prohibit_multiple: 'Prohibit multiple fields in the same dataset'
|
prohibit_multiple: 'Prohibit multiple fields in the same dataset',
|
||||||
|
be_empty_dir: 'is empty dir'
|
||||||
},
|
},
|
||||||
plugin: {
|
plugin: {
|
||||||
local_install: 'Local installation',
|
local_install: 'Local installation',
|
||||||
|
@ -1761,7 +1761,8 @@ export default {
|
|||||||
setting_jump: '跳轉設置',
|
setting_jump: '跳轉設置',
|
||||||
select_view: '請選擇視圖...',
|
select_view: '請選擇視圖...',
|
||||||
visual: '虛擬化',
|
visual: '虛擬化',
|
||||||
prohibit_multiple: '禁止同數據集多字段'
|
prohibit_multiple: '禁止同數據集多字段',
|
||||||
|
be_empty_dir: '是空目錄'
|
||||||
},
|
},
|
||||||
plugin: {
|
plugin: {
|
||||||
local_install: '本地安裝',
|
local_install: '本地安裝',
|
||||||
|
@ -1771,7 +1771,8 @@ export default {
|
|||||||
setting_jump: '跳转设置',
|
setting_jump: '跳转设置',
|
||||||
select_view: '请选择视图...',
|
select_view: '请选择视图...',
|
||||||
visual: '虚拟化',
|
visual: '虚拟化',
|
||||||
prohibit_multiple: '禁止同数据集多字段'
|
prohibit_multiple: '禁止同数据集多字段',
|
||||||
|
be_empty_dir: '是空目录!'
|
||||||
},
|
},
|
||||||
plugin: {
|
plugin: {
|
||||||
local_install: '本地安装',
|
local_install: '本地安装',
|
||||||
|
@ -489,6 +489,12 @@ export default {
|
|||||||
if (data.modelInnerType !== 'group') {
|
if (data.modelInnerType !== 'group') {
|
||||||
this.showFieldDatas(data)
|
this.showFieldDatas(data)
|
||||||
} else {
|
} else {
|
||||||
|
if (!data.children || !data.children.length) {
|
||||||
|
const name = data.name
|
||||||
|
const msg = `[${name}]` + this.$t('panel.be_empty_dir')
|
||||||
|
this.$warning(msg)
|
||||||
|
return
|
||||||
|
}
|
||||||
this.showNextGroup(data)
|
this.showNextGroup(data)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user