|  |  |  | 
|---|
|  |  |  | // 生产 | 
|---|
|  |  |  | // var baseUrl = "/wcs"; | 
|---|
|  |  |  | // 测试 | 
|---|
|  |  |  | var baseUrl = ""; | 
|---|
|  |  |  | // 系统运行状态 | 
|---|
|  |  |  | var systemRunning = true; | 
|---|
|  |  |  | var baseUrl = "/jswcs"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 赋值 | 
|---|
|  |  |  | function setVal(el, val) { | 
|---|
|  |  |  | 
|---|
|  |  |  | (child?parent:window).$('.'+res.data[i].code).css("display", "inline-block"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else if (res.code === 403){ | 
|---|
|  |  |  | top.location.href = baseUrl; | 
|---|
|  |  |  | window.location.href = baseUrl; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | layer.msg(res.msg) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | if (res.code === 200){ | 
|---|
|  |  |  | callback(res); | 
|---|
|  |  |  | } else if (res.code === 403){ | 
|---|
|  |  |  | top.location.href = baseUrl+"/login"; | 
|---|
|  |  |  | parent.location.href = baseUrl+"/login"; | 
|---|
|  |  |  | }  else { | 
|---|
|  |  |  | alert(res.msg); | 
|---|
|  |  |  | layer.msg(res.msg, {icon: 2}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | error: function (res, type) { | 
|---|