feat:仪表板主题名称双击可修改

This commit is contained in:
wangjiahao
2021-10-09 11:32:51 +08:00
parent 7d5b7176a6
commit 0898bd74e6
5 changed files with 23 additions and 8 deletions

View File

@@ -1315,7 +1315,7 @@ export default {
matrix: 'matrix',
suspension: 'suspension',
subject_no_edit: 'System Subject Can Not Edit',
subject_name_not_null: 'Subject Name Can Not Be Null'
subject_name_not_null: 'Subject Name Can Not Be Null And Less Than 20 charts'
},
plugin: {
local_install: 'Local installation',

View File

@@ -1318,7 +1318,7 @@ export default {
matrix: '矩阵分布',
suspension: '悬浮',
subject_no_edit: '系统主题不能修改',
subject_name_not_null: '主题名称不能为空'
subject_name_not_null: '主题名称需要1~20字符'
},
plugin: {
local_install: '本地安裝',

View File

@@ -1323,7 +1323,7 @@ export default {
matrix: '矩阵分布',
suspension: '悬浮',
subject_no_edit: '系统主题不能修改',
subject_name_not_null: '主题名称不能为空'
subject_name_not_null: '主题名称需要1~20字符'
},
plugin: {
local_install: '本地安装',

View File

@@ -222,7 +222,7 @@ export default {
},
// 当输入框失去焦点时不显示输入框
loseFocus() {
if (this.subjectItem.name && this.subjectItem.name.length > 0) {
if (this.subjectItem.name && this.subjectItem.name.length > 0 && this.subjectItem.name.length < 20) {
const request = {
id: this.subjectItem.id,
name: this.subjectItem.name