fix: 仪表板目录无法重命名问题

This commit is contained in:
wangjiahao 2021-06-03 18:40:46 +08:00
parent 73dc5c7e99
commit b69920675f
3 changed files with 3 additions and 3 deletions

View File

@ -659,7 +659,7 @@ export default {
rose_radius: '園角',
view_name: '視圖名稱',
name_can_not_empty: '名稱不能為空',
template_can_not_empty: '请选择仪表',
template_can_not_empty: '请选择仪表',
custom_count: '記錄數',
table_title_fontsize: '表頭字體大小',
table_item_fontsize: '表格字體大小',

View File

@ -659,7 +659,7 @@ export default {
rose_radius: '圆角',
view_name: '视图名称',
name_can_not_empty: '名称不能为空',
template_can_not_empty: '请选择仪表',
template_can_not_empty: '请选择仪表',
custom_count: '记录数',
table_title_fontsize: '表头字体大小',
table_item_fontsize: '表格字体大小',

View File

@ -106,7 +106,7 @@ export default {
this.$warning(this.$t('chart.name_can_not_empty'))
return false
}
if (!this.editPanel.panelInfo.panelData) {
if (!this.editPanel.panelInfo.panelData && this.editPanel.optType === 'new' && this.inputType === 'copy') {
this.$warning(this.$t('chart.template_can_not_empty'))
return false
}