提交 d97c7df0 编写于 作者: doc_wei's avatar doc_wei

BUG0032 门店人员分配页面,点击新增员工,选择公司筛选员工,点击重置不生效

上级 0c1dc1bb
var companyId = "";
var departmentId = "";
var jobId = "";
var rowId = "";
layui.config({
......@@ -160,7 +157,7 @@ layui.config({
showGrid({
id: "departmentList",
url: reqBasePath + "companydepartment007",
params: {companyId: companyId},
params: {companyId: $("#companyList").val()},
pagination: false,
template: selTemplate,
ajaxSendLoadBefore: function(hdb){},
......@@ -175,7 +172,7 @@ layui.config({
showGrid({
id: "jobList",
url: reqBasePath + "companyjob007",
params: {departmentId: departmentId},
params: {departmentId: $("#departmentList").val()},
pagination: false,
template: selTemplate,
ajaxSendLoadBefore: function(hdb){},
......@@ -187,25 +184,15 @@ layui.config({
// 公司监听事件
form.on('select(companyList)', function(data){
companyId = data.value;
departmentId = '';
jobId = '';
initDepartment();
initJob();
});
// 部门监听事件
form.on('select(departmentList)', function(data){
departmentId = data.value;
jobId = '';
initJob();
});
// 职位监听事件
form.on('select(jobList)', function(data){
jobId = data.value;
});
// 保存
$("body").on("click", "#saveCheckBox", function(){
var selectedData = tableCheckBoxUtil.getValue({
......@@ -251,9 +238,9 @@ layui.config({
userName: $("#userName").val(),
userSex: $("#userSex").val(),
userIdCard: $("#userIdCard").val(),
companyName: companyId,
departmentName: departmentId,
jobName: jobId
companyName: $("#companyList").val(),
departmentName: $("#departmentList").val(),
jobName: $("#jobList").val()
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册