按下不触发校验,防止造成资源浪费
parent
a805d23afe
commit
f7a9f33882
|
@ -45,6 +45,7 @@
|
||||||
var prefix = ctx + "system/config";
|
var prefix = ctx + "system/config";
|
||||||
|
|
||||||
$("#form-config-add").validate({
|
$("#form-config-add").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules: {
|
rules: {
|
||||||
configKey: {
|
configKey: {
|
||||||
remote: {
|
remote: {
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
var prefix = ctx + "system/config";
|
var prefix = ctx + "system/config";
|
||||||
|
|
||||||
$("#form-config-edit").validate({
|
$("#form-config-edit").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules: {
|
rules: {
|
||||||
configKey: {
|
configKey: {
|
||||||
remote: {
|
remote: {
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
var prefix = ctx + "system/dept";
|
var prefix = ctx + "system/dept";
|
||||||
|
|
||||||
$("#form-dept-add").validate({
|
$("#form-dept-add").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
deptName:{
|
deptName:{
|
||||||
remote: {
|
remote: {
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
var prefix = ctx + "system/dept";
|
var prefix = ctx + "system/dept";
|
||||||
|
|
||||||
$("#form-dept-edit").validate({
|
$("#form-dept-edit").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
deptName:{
|
deptName:{
|
||||||
remote: {
|
remote: {
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
var prefix = ctx + "system/dict";
|
var prefix = ctx + "system/dict";
|
||||||
|
|
||||||
$("#form-dict-add").validate({
|
$("#form-dict-add").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
dictType:{
|
dictType:{
|
||||||
minlength: 5,
|
minlength: 5,
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
var prefix = ctx + "system/dict";
|
var prefix = ctx + "system/dict";
|
||||||
|
|
||||||
$("#form-dict-edit").validate({
|
$("#form-dict-edit").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
dictType:{
|
dictType:{
|
||||||
minlength: 5,
|
minlength: 5,
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
var prefix = ctx + "system/menu";
|
var prefix = ctx + "system/menu";
|
||||||
|
|
||||||
$("#form-menu-add").validate({
|
$("#form-menu-add").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
menuType:{
|
menuType:{
|
||||||
required:true,
|
required:true,
|
||||||
|
|
|
@ -80,6 +80,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#form-menu-edit").validate({
|
$("#form-menu-edit").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
menuType:{
|
menuType:{
|
||||||
required:true,
|
required:true,
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
var prefix = ctx + "system/post";
|
var prefix = ctx + "system/post";
|
||||||
|
|
||||||
$("#form-post-add").validate({
|
$("#form-post-add").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
postName:{
|
postName:{
|
||||||
remote: {
|
remote: {
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
var prefix = ctx + "system/post";
|
var prefix = ctx + "system/post";
|
||||||
|
|
||||||
$("#form-post-edit").validate({
|
$("#form-post-edit").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
postName:{
|
postName:{
|
||||||
remote: {
|
remote: {
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
|
|
||||||
$("#form-role-add").validate({
|
$("#form-role-add").validate({
|
||||||
rules:{
|
rules:{
|
||||||
|
onkeyup: false,
|
||||||
roleName:{
|
roleName:{
|
||||||
remote: {
|
remote: {
|
||||||
url: ctx + "system/role/checkRoleNameUnique",
|
url: ctx + "system/role/checkRoleNameUnique",
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#form-role-edit").validate({
|
$("#form-role-edit").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
roleName:{
|
roleName:{
|
||||||
remote: {
|
remote: {
|
||||||
|
|
|
@ -141,6 +141,7 @@
|
||||||
var prefix = ctx + "system/user";
|
var prefix = ctx + "system/user";
|
||||||
|
|
||||||
$("#form-user-add").validate({
|
$("#form-user-add").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
loginName:{
|
loginName:{
|
||||||
minlength: 2,
|
minlength: 2,
|
||||||
|
|
|
@ -132,6 +132,7 @@
|
||||||
var prefix = ctx + "system/user";
|
var prefix = ctx + "system/user";
|
||||||
|
|
||||||
$("#form-user-edit").validate({
|
$("#form-user-edit").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
email:{
|
email:{
|
||||||
email:true,
|
email:true,
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
<div th:include="include::footer"></div>
|
<div th:include="include::footer"></div>
|
||||||
<script>
|
<script>
|
||||||
$("#form-user-edit").validate({
|
$("#form-user-edit").validate({
|
||||||
|
onkeyup: false,
|
||||||
rules:{
|
rules:{
|
||||||
userName:{
|
userName:{
|
||||||
required:true,
|
required:true,
|
||||||
|
|
Loading…
Reference in New Issue