diff --git a/src/main/resources/mybatis/mapper/populationinfo/population-info-mapper.xml b/src/main/resources/mybatis/mapper/populationinfo/population-info-mapper.xml index 44b87f6..ca7b696 100644 --- a/src/main/resources/mybatis/mapper/populationinfo/population-info-mapper.xml +++ b/src/main/resources/mybatis/mapper/populationinfo/population-info-mapper.xml @@ -275,6 +275,7 @@ mother_phone, relationship, domicile_address, + domicile_address_type, domicile_area_code, domicile_area_name, origin_address, @@ -355,6 +356,7 @@ #{motherPhone}, #{relationship}, #{domicileAddress}, + #{domicileAddressType}, #{domicileAreaCode}, #{domicileAreaName}, #{originAddress}, diff --git a/src/main/resources/templates/populationinfo/save.html b/src/main/resources/templates/populationinfo/save.html index 8b1df46..f14a9fd 100644 --- a/src/main/resources/templates/populationinfo/save.html +++ b/src/main/resources/templates/populationinfo/save.html @@ -1149,14 +1149,16 @@ laytpl(document.getElementById('labelSelectTemplate').innerHTML).render(data, function(html) { document.getElementById('labelSelectTemplateBox').innerHTML = html; }); - form.render('checkbox', 'labelSelectTemplateBox') + form.render('checkbox', 'labelSelectTemplateBox'); - var checkboxValue = selectValues.split(','); - var checkboxObj = {}; - for(var j = 0, checkbox = checkboxValue[j]; checkbox = checkboxValue[j++];) { - checkboxObj['label['+ checkbox +']'] = true; + if(selectValues) { + var checkboxValue = selectValues.split(','); + var checkboxObj = {}; + for(var j = 0, checkbox = checkboxValue[j]; checkbox = checkboxValue[j++];) { + checkboxObj['label['+ checkbox +']'] = true; + } + form.val('dataForm', checkboxObj); } - form.val('dataForm', checkboxObj); }, function(code, data) { top.dialog.msg(data.msg); }); @@ -1469,7 +1471,7 @@ // 身份证号改变时发生 $('#idcard').on("input propertychange", function () { var idCardNo = $(this).val(); - if (idCardNo.length > 15 && idCardNo.length < 18) { + if (idCardNo.length == 15 || idCardNo.length == 18) { if (idCardNoUtil.checkIdCardNo(idCardNo)) { //获取身份证信息 var idCardInfo = idCardNoUtil.getIdCardInfo(idCardNo); diff --git a/src/main/resources/templates/populationinfo/update.html b/src/main/resources/templates/populationinfo/update.html index af015d4..86a31d5 100644 --- a/src/main/resources/templates/populationinfo/update.html +++ b/src/main/resources/templates/populationinfo/update.html @@ -1061,14 +1061,16 @@ laytpl(document.getElementById('labelSelectTemplate').innerHTML).render(data, function(html) { document.getElementById('labelSelectTemplateBox').innerHTML = html; }); - form.render('checkbox', 'labelSelectTemplateBox') + form.render('checkbox', 'labelSelectTemplateBox'); - var checkboxValue = selectValues.split(','); - var checkboxObj = {}; - for(var j = 0, checkbox = checkboxValue[j]; checkbox = checkboxValue[j++];) { - checkboxObj['label['+ checkbox +']'] = true; + if(selectValues) { + var checkboxValue = selectValues.split(','); + var checkboxObj = {}; + for (var j = 0, checkbox = checkboxValue[j]; checkbox = checkboxValue[j++];) { + checkboxObj['label[' + checkbox + ']'] = true; + } + form.val('dataForm', checkboxObj); } - form.val('dataForm', checkboxObj); }, function(code, data) { top.dialog.msg(data.msg); }); @@ -1381,7 +1383,7 @@ // 身份证号改变时发生 $('#idcard').on("input propertychange", function () { var idCardNo = $(this).val(); - if (idCardNo.length > 15 && idCardNo.length < 18) { + if (idCardNo.length == 15 || idCardNo.length == 18) { if (idCardNoUtil.checkIdCardNo(idCardNo)) { //获取身份证信息 var idCardInfo = idCardNoUtil.getIdCardInfo(idCardNo);