|  |  |  | 
|---|
|  |  |  | selectDom.appendChild(defaultOption); | 
|---|
|  |  |  | selectDom.style.display='none'; | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: "/"+getForeignKeyQuery(val)+"/auth", | 
|---|
|  |  |  | url: baseUrl+"/"+getForeignKeyQuery(val)+"/auth", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | data: {condition: inputDomVal}, | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | selectDom.style.display='block'; | 
|---|
|  |  |  | } else if (res.code === 403){ | 
|---|
|  |  |  | top.location.href = "/"; | 
|---|
|  |  |  | top.location.href = baseUrl+"/"; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | layer.msg(res.msg) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | return str; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 表单值清空 | 
|---|
|  |  |  | function clearFormVal(el) { | 
|---|
|  |  |  | $(':input', el) | 
|---|
|  |  |  | .val('') | 
|---|
|  |  |  | .removeAttr('checked') | 
|---|
|  |  |  | .removeAttr('selected'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | var banMsg; | 
|---|
|  |  |  | var tips; | 
|---|
|  |  |  | // 主键校验 | 
|---|
|  |  |  | 
|---|
|  |  |  | val: $('#'+id).val() | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: "/"+domain+"/check/column/auth", | 
|---|
|  |  |  | url: baseUrl+"/"+domain+"/check/column/auth", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | data: JSON.stringify(param), | 
|---|
|  |  |  | dataType:'json', | 
|---|
|  |  |  | 
|---|
|  |  |  | layer.close(tips); | 
|---|
|  |  |  | banMsg = null; | 
|---|
|  |  |  | } else if (res.code === 403) { | 
|---|
|  |  |  | top.location.href = "/"; | 
|---|
|  |  |  | top.location.href = baseUrl+"/"; | 
|---|
|  |  |  | } else if (res.code === 407) { | 
|---|
|  |  |  | banMsg = res.data + "不可用"; | 
|---|
|  |  |  | tips = layer.tips( | 
|---|