1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48da5a42"],{"0c6d":function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s}));var n=r("2b0e"),a=r("bc3a"),o=r.n(a),i=r("5c96");o.a.defaults.withCredentials=!0,o.a.defaults.crossDomain=!0;var c=o.a.create({baseURL:"http://51.31.219.42:6896",timeout:12e4});c.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),c.interceptors.response.use((function(e){if(e.data.body){if(e.data&&e.data.body&&"0000"===e.data.body.rtnCode)return e.data.body.dataSet;if(!e.data)return e;var t={code:e.data.body.rtnCode,message:e.data.body.rtnMessage};return Promise.reject(t)}return e.data}),(function(e){if(e&&e.response)switch(e.response.status){case 400:i["Message"].error("错误请求");break;case 401:window.location.href=n["default"].prototype.$loginURL;break;case 403:i["Message"].error("拒绝访问");break;case 404:i["Message"].error("请求错误,未找到该资源");break;case 405:i["Message"].error("请求方法未允许");break;case 408:i["Message"].error("请求超时");break;case 500:i["Message"].error("服务器端出错");break;case 501:i["Message"].error("网络未实现");break;case 502:i["Message"].error("网络错误");break;case 503:i["Message"].error("服务不可用");break;case 504:i["Message"].error("网络超时");break;case 505:i["Message"].error("http版本不支持该请求");break;default:i["Message"].error("连接错误".concat(e.response.status))}else JSON.stringify(e).includes("timeout")&&i["Message"].error("服务器响应超时,请刷新当前页"),i["Message"].error("连接服务器失败")}));function s(e,t){return c({url:e,method:"post",data:t})}function u(e,t){return c({url:e,method:"post",data:t})}},"2b49":function(e,t,r){},"3bd4":function(e,t,r){"use strict";r("2b49")},"4ec3":function(e,t,r){"use strict";r.d(t,"t",(function(){return c})),r.d(t,"u",(function(){return s})),r.d(t,"a",(function(){return u})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return l})),r.d(t,"f",(function(){return f})),r.d(t,"g",(function(){return b})),r.d(t,"h",(function(){return y})),r.d(t,"K",(function(){return h})),r.d(t,"H",(function(){return p})),r.d(t,"I",(function(){return m})),r.d(t,"J",(function(){return O})),r.d(t,"n",(function(){return g})),r.d(t,"k",(function(){return j})),r.d(t,"m",(function(){return S})),r.d(t,"l",(function(){return v})),r.d(t,"s",(function(){return w})),r.d(t,"o",(function(){return x})),r.d(t,"q",(function(){return C})),r.d(t,"p",(function(){return L})),r.d(t,"r",(function(){return M})),r.d(t,"v",(function(){return k})),r.d(t,"w",(function(){return N})),r.d(t,"x",(function(){return _})),r.d(t,"A",(function(){return D})),r.d(t,"C",(function(){return A})),r.d(t,"B",(function(){return I})),r.d(t,"M",(function(){return E})),r.d(t,"N",(function(){return P})),r.d(t,"y",(function(){return R})),r.d(t,"G",(function(){return Y})),r.d(t,"E",(function(){return G})),r.d(t,"F",(function(){return U})),r.d(t,"z",(function(){return B})),r.d(t,"O",(function(){return J})),r.d(t,"P",(function(){return K})),r.d(t,"i",(function(){return F})),r.d(t,"L",(function(){return i})),r.d(t,"b",(function(){return T})),r.d(t,"D",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"j",(function(){return H}));var n=r("0c6d"),a=function(e){return Object(n["b"])("/bd/rest/ap-system/loginUser",e)},o=function(e){return Object(n["a"])("/bd/ap-system/casLoginOut",e)},i=function(e){return Object(n["a"])("/bd/rest/society/secuIndex/1",e)},c=function(e){return Object(n["a"])("/bd/rest/society/getNumLeftOne/1",e)},s=function(e){return Object(n["a"])("/bd/rest/society/getNumRightTwo/1",e)},u=function(e){return Object(n["a"])("/bd/rest/society/GetNumRightOne/1",e)},d=function(e){return Object(n["a"])("/bd/rest/society/communityPreventableCaseFil/1",e)},l=function(e){return Object(n["a"])("/bd/rest/society/communityPreventableCaseType/1",e)},f=function(e){return Object(n["a"])("/bd/rest/society/communityPreventableCaseTypee/1",e)},b=function(e){return Object(n["a"])("/bd/rest/society/c
|