|
@@ -80,6 +80,7 @@ and open the template in the editor.
|
|
} else {
|
|
} else {
|
|
lines = $("tbody tr[data-level]");
|
|
lines = $("tbody tr[data-level]");
|
|
}
|
|
}
|
|
|
|
+ var chks = 0;
|
|
for (var i = 0; i < lines.length; i++) {
|
|
for (var i = 0; i < lines.length; i++) {
|
|
let line = lines.eq(i);
|
|
let line = lines.eq(i);
|
|
let d = {};
|
|
let d = {};
|
|
@@ -87,8 +88,9 @@ and open the template in the editor.
|
|
d.checked = line.find("[data-id]").is(":checked") ? 1 : 2;
|
|
d.checked = line.find("[data-id]").is(":checked") ? 1 : 2;
|
|
d.files = line.find("textarea.files").val();
|
|
d.files = line.find("textarea.files").val();
|
|
data.push(d);
|
|
data.push(d);
|
|
|
|
+ chks += d.checked == 1 ? 1 : 0;
|
|
}
|
|
}
|
|
- if (confirm("确定提交当前页面共" + data.length + "条人才认定标准?")) {
|
|
|
|
|
|
+ if (confirm("确定提交当前页面共" + data.length + "条(勾选" + chks + "条)人才认定标准?")) {
|
|
$.ajax({
|
|
$.ajax({
|
|
url: "/admin/policy/submit",
|
|
url: "/admin/policy/submit",
|
|
type: "post",
|
|
type: "post",
|