人口基本信息- 修改框架(身份证校验工具类BUG)

This commit is contained in:
java_cuibaocheng@163.com 2023-12-11 17:15:11 +08:00
parent 2e893208fb
commit ac35b40ab1
4 changed files with 21 additions and 5 deletions

View File

@ -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;

View File

@ -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, "澳门");

View File

@ -35,7 +35,7 @@
<div class="layui-inline">
<input type="text" id="idcard" class="layui-input search-item" placeholder="请输入证件号">
</div>
<button type="button" id="search" class="layui-btn layui-btn-sm">
<button type="button" id="search" disabled class="layui-btn layui-btn-disabled layui-btn-sm">
<i class="fa fa-lg fa-search"></i> 搜索
</button>
</div>
@ -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);
});
// 事件 - 增删改

View File

@ -35,7 +35,7 @@
<div class="layui-inline">
<input type="text" id="idcard" class="layui-input search-item" placeholder="请输入证件号">
</div>
<button type="button" id="search" class="layui-btn layui-btn-sm">
<button type="button" id="search" class="layui-btn layui-btn-sm layui-btn-disabled" disabled>
<i class="fa fa-lg fa-search"></i> 搜索
</button>
</div>
@ -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);
});
// 事件 - 增删改