From db7fa6a91b9534ac90e219b6f554c54c43c83a5a Mon Sep 17 00:00:00 2001 From: liujie <liujie> Date: 星期三, 16 八月 2023 09:28:15 +0800 Subject: [PATCH] update --- management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js b/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js index bd32ace..e989234 100644 --- a/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js +++ b/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js @@ -8,6 +8,10 @@ validators: { notEmpty: { message: '优推名称不能为空' + }, + regexp: { + regexp: /^[\u4E00-\u9FA5A-Za-z\s]+$/, + message: '不能输入特殊字符和数字' } } }, @@ -22,6 +26,10 @@ validators: { notEmpty: { message: '兑换条件不能为空' + }, + regexp: { + regexp: /^[1-9]\d*$/, + message: '请输入大于0的正整数' } } }, @@ -29,6 +37,10 @@ validators: { notEmpty: { message: '优推距离不能为空' + }, + regexp: { + regexp: /^[1-9]\d*$/, + message: '请输入大于0的正整数' } } }, @@ -36,6 +48,10 @@ validators: { notEmpty: { message: '有效期不能为空' + }, + regexp: { + regexp: /^[1-9]\d*$/, + message: '请输入大于0的正整数' } } }, @@ -108,6 +124,7 @@ .set('status') .set('distance') .set('serviceContent') + .set('picture') .set('createTime'); } -- Gitblit v1.7.1