zqyy-yl/dist1/assets/js/chunk-a437de7c.521dd7c3.js

1 line
18 KiB
JavaScript
Raw Permalink Normal View History

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