main
kgdxpr 2 years ago
parent be0c88ee4b
commit 700a857169

@ -113,16 +113,26 @@
var bxids = "";
var limits = "";
var flag = true;
Object.keys(data.field).forEach((key) => {
if (key === "taskName") {
taskName = data.field[key];
} else {
bxids += key + ","
if (data.field[key] == 0) {
layer.msg("人数限制必须大于0", {
icon: 2,
time: 2000
});
flag = false;
}
limits += data.field[key] + ","
}
});
if (flag) {
$.ajax({
url: "/FengHuang/yp/addTask",
data: { "task_name": taskName, "bx_ids": bxids.substr(0, bxids.length - 1), "limits": limits.substr(0, limits.length - 1) },
@ -144,6 +154,7 @@
}
}
});
}
return false;
});

@ -63,7 +63,7 @@
, { field: 'task_name', title: '任务名称', align: 'center' }
, { field: 'create_time', title: '创建时间', align: 'center', width: "10%" }
, { field: '', title: '状态', align: 'center', width: "10%", templet: getPublishText }
, { field: '', title: '操作', toolbar: '#tableOperate', align: 'center', width: "15%" }
, { field: '', title: '操作', toolbar: '#tableOperate', align: 'center', width: "25%" }
]
]

@ -57,13 +57,13 @@
let cols = [
[
{ field: '', title: '序号', align: 'center', type: 'numbers', width: "5%" }
, { field: 'name', title: '姓名', align: 'center' }
, { field: 'xb', title: '性别', align: 'center' }
, { field: 'sfzh', title: '身份证号', align: 'center', width: "10%" }
, { field: 'bx_name', title: '报名学段', align: 'center', width: "10%" }
, { field: 'address', title: '家庭住址', align: 'center', width: "10%" }
, { field: 'father_name', title: '父亲姓名', align: 'center', width: "10%" }
, { field: 'mother_name', title: '母亲姓名', align: 'center', width: "10%" }
, { field: 'name', title: '姓名', align: 'center', width: "8%" }
, { field: 'xb', title: '性别', align: 'center', width: "5%" }
, { field: 'sfzh', title: '身份证号', align: 'center', width: "15%" }
, { field: 'bx_name', title: '报名学段', align: 'center', width: "8%" }
, { field: 'address', title: '家庭住址', align: 'center', width: "21%" }
, { field: 'father_name', title: '父亲姓名', align: 'center', width: "8%" }
, { field: 'mother_name', title: '母亲姓名', align: 'center', width: "8%" }
, { field: 'tel', title: '联系电话', align: 'center', width: "10%" }
, { field: '', title: '查看户口本照片', toolbar: '#tableOperate', align: 'center', width: "10%" }
]

Loading…
Cancel
Save