Merge pull request #417 from dataease/pr@v1.1@refactor_panel-name-length-limit

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

View File

@ -134,6 +134,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