diff --git a/src/main/java/com/cm/population/PopulationApplication.java b/src/main/java/com/cm/population/PopulationApplication.java index 4ac20e2..105e5f2 100644 --- a/src/main/java/com/cm/population/PopulationApplication.java +++ b/src/main/java/com/cm/population/PopulationApplication.java @@ -1,5 +1,6 @@ package com.cm.population; +import com.cm.common.plugin.service.file.IFileService; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/src/main/java/com/cm/population/utils/IdCardVerifyUtil.java b/src/main/java/com/cm/population/utils/IdCardVerifyUtil.java index 00711dd..e8c5038 100644 --- a/src/main/java/com/cm/population/utils/IdCardVerifyUtil.java +++ b/src/main/java/com/cm/population/utils/IdCardVerifyUtil.java @@ -47,7 +47,8 @@ public class IdCardVerifyUtil { zoneNum.put(61, "陕西"); zoneNum.put(62, "甘肃"); zoneNum.put(63, "青海"); - zoneNum.put(64, "新疆"); + zoneNum.put(64, "宁夏"); + zoneNum.put(65, "新疆"); zoneNum.put(71, "台湾"); zoneNum.put(81, "香港"); zoneNum.put(82, "澳门"); diff --git a/src/main/resources/templates/populationinfo/query-multiple.html b/src/main/resources/templates/populationinfo/query-multiple.html index e359b82..d97ffc0 100644 --- a/src/main/resources/templates/populationinfo/query-multiple.html +++ b/src/main/resources/templates/populationinfo/query-multiple.html @@ -35,7 +35,7 @@
- @@ -182,6 +182,10 @@ 'count': data.total, 'data': data.rows }; + }, + done: function(res, curr, count){ + $('#search').removeAttr("disabled"); + $('#search').removeClass("layui-btn-disabled"); } }); } @@ -192,7 +196,8 @@ where: { name: $('#name').val(), idcardType: $('#idcardType').val(), - idcard: $('#idcard').val() + idcard: $('#idcard').val(), + time: new Date() }, page: { curr: currentPage @@ -211,6 +216,8 @@ }); // 事件 - 搜索 $(document).on('click', '#search', function() { + $(this).attr("disabled", "disabled"); + $(this).addClass("layui-btn-disabled"); reloadTable(1); }); // 事件 - 增删改 diff --git a/src/main/resources/templates/populationinfo/query.html b/src/main/resources/templates/populationinfo/query.html index 206a377..bca1fcc 100644 --- a/src/main/resources/templates/populationinfo/query.html +++ b/src/main/resources/templates/populationinfo/query.html @@ -35,7 +35,7 @@
- @@ -182,6 +182,10 @@ 'count': data.total, 'data': data.rows }; + }, + done: function(res, curr, count){ + $('#search').removeAttr("disabled"); + $('#search').removeClass("layui-btn-disabled"); } }); } @@ -192,7 +196,8 @@ where: { name: $('#name').val(), idcardType: $('#idcardType').val(), - idcard: $('#idcard').val() + idcard: $('#idcard').val(), + time: new Date() }, page: { curr: currentPage @@ -211,6 +216,8 @@ }); // 事件 - 搜索 $(document).on('click', '#search', function() { + $(this).attr("disabled", "disabled"); + $(this).addClass("layui-btn-disabled"); reloadTable(1); }); // 事件 - 增删改