Merge pull request #424 from dataease/pr@dev@refactor_view-copy-dev

refactor:仪表板名称限制在50字符内
This commit is contained in:
王嘉豪 2021-07-30 10:31:54 +08:00 committed by GitHub
commit 49aaf376e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,6 +133,13 @@ export default {
this.$warning(this.$t('chart.name_can_not_empty'))
return false
}
debugger
if (this.editPanel.panelInfo.name.length > 50) {
this.$warning(this.$t('commons.char_can_not_more_50'))
return false
}
if (!this.editPanel.panelInfo.panelData && this.editPanel.optType === 'new' && this.inputType === 'copy') {
this.$warning(this.$t('chart.template_can_not_empty'))
return false