提交修改

master
dsh 1 year ago
parent a412254b69
commit dcf3abb4db

@ -224,6 +224,7 @@ function historyBack() {
--%> --%>
<script> <script>
function add() { function add() {
debugger
var jobcode = form1.jobcode.value; var jobcode = form1.jobcode.value;
if (jobcode == "") { if (jobcode == "") {
alert("请选择一个岗位!"); alert("请选择一个岗位!");
@ -348,7 +349,9 @@ function makeTable(tableEl,columns) {
if (columns[j].type == "") { if (columns[j].type == "") {
row.insertCell(j).appendChild(document.createTextNode(data)); row.insertCell(j).appendChild(document.createTextNode(data));
} else { } else {
var el = document.createElement("<input NAME=\"" + columns[j].id + "\">"); var el = document.createElement('input');
el.setAttribute('name', columns[j].id);
// var el = document.createElement("<input NAME=\"" + columns[j].id + "\">");
el.setAttribute("type",columns[j].type); el.setAttribute("type",columns[j].type);
el.setAttribute("value",data); el.setAttribute("value",data);
row.insertCell(j).appendChild(el); row.insertCell(j).appendChild(el);

Loading…
Cancel
Save