From ef04ce57881e6a338b10d596c5eb76b2220598bf Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期四, 31 八月 2023 11:16:49 +0800 Subject: [PATCH] 更新版本 --- 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