|  |  |  | 
|---|
|  |  |  | var index  = obj.othis.parents('tr').attr("data-index"); | 
|---|
|  |  |  | var data = tableData[index]; | 
|---|
|  |  |  | data[this.name] = obj.elem.checked?1:0; | 
|---|
|  |  |  | http.post(baseUrl+"/user/edit/auth", {id: data.id, status: data[this.name]}, function (res) { | 
|---|
|  |  |  | http.post(baseUrl+"/user/update/auth", {id: data.id, status: data[this.name]}, function (res) { | 
|---|
|  |  |  | layer.msg(res.msg, {icon: 1}); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | 
|---|
|  |  |  | el: '#deptSel', | 
|---|
|  |  |  | height: '250px', | 
|---|
|  |  |  | data: insTb.options.data, | 
|---|
|  |  |  | initValue: mData ? [mData.detpId] : [], | 
|---|
|  |  |  | initValue: mData ? [mData.deptId] : [], | 
|---|
|  |  |  | model: {label: {type: 'text'}}, | 
|---|
|  |  |  | prop: { | 
|---|
|  |  |  | name: 'name', | 
|---|