From ac35b40ab1e40648b2dd366504846027789b3b38 Mon Sep 17 00:00:00 2001 From: "java_cuibaocheng@163.com" Date: Mon, 11 Dec 2023 17:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=8F=A3=E5=9F=BA=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF-=20=E4=BF=AE=E6=94=B9=E6=A1=86=E6=9E=B6(=E8=BA=AB?= =?UTF-8?q?=E4=BB=BD=E8=AF=81=E6=A0=A1=E9=AA=8C=E5=B7=A5=E5=85=B7=E7=B1=BB?= =?UTF-8?q?BUG)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cm/population/PopulationApplication.java | 1 + .../com/cm/population/utils/IdCardVerifyUtil.java | 3 ++- .../templates/populationinfo/query-multiple.html | 11 +++++++++-- .../resources/templates/populationinfo/query.html | 11 +++++++++-- 4 files changed, 21 insertions(+), 5 deletions(-) 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); }); // 事件 - 增删改