fix: 过滤条件选择空数据集给出提示

This commit is contained in:
fit2cloud-chenyw 2022-06-30 12:07:02 +08:00
parent 898cde9a27
commit c66d24437b
4 changed files with 12 additions and 3 deletions

View File

@ -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',

View File

@ -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: '本地安裝',

View File

@ -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: '本地安装',

View File

@ -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)
} }
}, },