diff --git a/src/views/xm/core/xmProduct/XmProductAdd.vue b/src/views/xm/core/xmProduct/XmProductAdd.vue index 5972d0c8..554a3869 100644 --- a/src/views/xm/core/xmProduct/XmProductAdd.vue +++ b/src/views/xm/core/xmProduct/XmProductAdd.vue @@ -88,7 +88,7 @@ addFormRules: { productName: [ { required: true, message: '产品名称不能为空', trigger: 'change' }, - { min:10,max:250, message: '名称长度在10-250个字符', trigger: 'change' } + { min:2,max:250, message: '名称长度在2-250个字符', trigger: 'change' } ], code: [ diff --git a/src/views/xm/core/xmProduct/XmProductEdit.vue b/src/views/xm/core/xmProduct/XmProductEdit.vue index edcac964..de202ea6 100644 --- a/src/views/xm/core/xmProduct/XmProductEdit.vue +++ b/src/views/xm/core/xmProduct/XmProductEdit.vue @@ -118,7 +118,7 @@ editFormRules: { productName: [ { required: true, message: '产品名称不能为空', trigger: 'change' }, - { min:10,max:250, message: '名称长度在10-250个字符', trigger: 'change' } + { min:2,max:250, message: '名称长度在10-250个字符', trigger: 'change' } ], id: [ diff --git a/src/views/xm/core/xmProject/XmProjectEdit.vue b/src/views/xm/core/xmProject/XmProjectEdit.vue index 07f61e52..b7dc4611 100644 --- a/src/views/xm/core/xmProject/XmProjectEdit.vue +++ b/src/views/xm/core/xmProject/XmProjectEdit.vue @@ -448,7 +448,7 @@ name: [{ required: true, message: '项目名称不可为空' , trigger: 'change' }, - { min:5,max:50, message: '名称长度在2-50个字符', trigger: 'change' } + { min:2,max:50, message: '名称长度在2-50个字符', trigger: 'change' } ], code: [{