|
@@ -346,7 +346,20 @@
|
|
$("#tryEndTimeSpan").html('');
|
|
$("#tryEndTimeSpan").html('');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ function certificateName(val) {
|
|
|
|
+ var ary = [];
|
|
|
|
+ for (var i = 0; i<$("#certificateList tr").length; i++ ){
|
|
|
|
+ var value = $("#certificateList tr").eq(i).find("td").eq(1).find("select").val();
|
|
|
|
+ ary.push(value);
|
|
|
|
+ }
|
|
|
|
+ for (var i = 0; i < ary.length; i++) {
|
|
|
|
+ if(ary.indexOf(ary[i]) != i) {
|
|
|
|
+ var id = val.id;
|
|
|
|
+ $("#"+id).val("")
|
|
|
|
+ top.layer.msg('已存在该执业资格证书类型!', {icon: 0});
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
@@ -1148,7 +1161,7 @@
|
|
<input id="certificateList${varStatus.index}_filePath" name="certificateList[${varStatus.index}].filePath" type="hidden" value="${certificate.filePath}"/>
|
|
<input id="certificateList${varStatus.index}_filePath" name="certificateList[${varStatus.index}].filePath" type="hidden" value="${certificate.filePath}"/>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <select name="certificateList[${varStatus.index}].name" id="certificateList${varStatus.index}_name" class="form-control required">
|
|
|
|
|
|
+ <select name="certificateList[${varStatus.index}].name" id="certificateList${varStatus.index}_name" onchange="certificateName(this)" class="form-control required">
|
|
<c:forEach items="${fns:getMainDictList('certificate_type')}" var="var">
|
|
<c:forEach items="${fns:getMainDictList('certificate_type')}" var="var">
|
|
<option value="${var.value}" <c:if test="${certificate.name eq var.value}">selected</c:if>>${var.label}</option>
|
|
<option value="${var.value}" <c:if test="${certificate.name eq var.value}">selected</c:if>>${var.label}</option>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
@@ -1189,7 +1202,7 @@
|
|
<input id="certificateList{{idx}}_filePath" name="certificateList[{{idx}}].filePath" type="hidden" value="{{row.filePath}}"/>
|
|
<input id="certificateList{{idx}}_filePath" name="certificateList[{{idx}}].filePath" type="hidden" value="{{row.filePath}}"/>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <select name="certificateList[{{idx}}].name" id="certificateList{{idx}}_name" class="form-control required">
|
|
|
|
|
|
+ <select name="certificateList[{{idx}}].name" id="certificateList{{idx}}_name" class="form-control required" onchange="certificateName(this)">
|
|
<option value=""></option>
|
|
<option value=""></option>
|
|
<c:forEach items="${fns:getMainDictList('certificate_type')}" var="var">
|
|
<c:forEach items="${fns:getMainDictList('certificate_type')}" var="var">
|
|
<option value="${var.value}">${var.label}</option>
|
|
<option value="${var.value}">${var.label}</option>
|