app.4e8a575089fddde7d9c6.js 5.55 KB
webpackJsonp([1],{"0lpt":function(e,t){},LqUx:function(e,t){t.install=function(e,t){e.prototype.getUrlKey=function(e){var t=document.location.toString().split("?");if(t.length>1){for(var n,s=t[1].split("&"),i=0;i<s.length;i++)if(null!=(n=s[i].split("="))&&n[0]==e)return n[1];return""}return""}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n("7+uW"),i=n("//Fk"),a=n.n(i),o=n("aozt"),r=n.n(o),c=r.a.CancelToken;function u(e,t){return new a.a(function(n,s){r()({method:"post",url:e,data:t,cancelToken:new c(function(e){e})}).then(function(e){n(e)})})}r.a.interceptors.request.use(function(e){return e},function(e){return a.a.reject(e)}),r.a.interceptors.response.use(function(e){return e},function(e){if(e.messages="",e&&e.response)switch(e.response.status){case 400:e.messages="错误请求";break;case 401:e.messages="未授权,请重新登录";break;case 403:e.messages="拒绝访问";break;case 404:e.messages="请求错误,未找到该资源";break;case 405:e.messages="请求方法未允许";break;case 408:e.messages="请求超时";break;case 500:e.messages="服务器端出错";break;case 501:e.messages="网络未实现";break;case 502:e.messages="网络错误";break;case 503:e.messages="服务不可用";break;case 504:e.messages="网络超时";break;case 505:e.messages="http版本不支持该请求";break;default:e.messages="连接错误"+e.response.status}else e.messages="连接到服务器失败";return a.a.resolve(e)}),r.a.defaults.baseURL="http://bcp.service.renniting.cn/wxcpMsgCenter/",r.a.defaults.timeout=1e4;var l={name:"geomagnetism",data:function(){return{modifyTimeBegin:new Date(decodeURIComponent(this.getUrlKey("modifyTimeBegin"))),modifyTimeEnd:new Date(decodeURIComponent(this.getUrlKey("modifyTimeEnd"))),queryGeoFaultList:[]}},created:function(){var e,t=this;document.title="地磁故障",console.log(this.modifyTimeBegin),console.log(this.modifyTimeEnd),(e={modifyTimeBegin:this.modifyTimeBegin,modifyTimeEnd:this.modifyTimeEnd,orgId:10003,sysCode:"1001"},u("queryGeoFaultList",e)).then(function(e){if(console.log(e.data.data),"8888"===e.data.code){var n=e.data.data;t.queryGeoFaultList=n}else alert("服务器出错了")}).catch(function(e){console.log(e)})}},d={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[void 0!=e.queryGeoFaultList&&e.queryGeoFaultList.length>0?n("ul",{staticClass:"dici-wrap"},e._l(e.queryGeoFaultList,function(t,s){return n("li",{key:s},[n("p",{staticClass:"parkName"},[e._v(e._s(t.plName))]),e._v(" "),e._l(t.eqpDTOs,function(t,s){return n("ul",{key:s,staticClass:"diciList"},[n("li",[e._v("\n          编号 :"+e._s(t.eqpNo)+"\n        ")]),e._v(" "),n("li",[e._v("\n          故障时间 :"+e._s(e._f("dataFilter")(t.modifyTime))+"\n        ")])])})],2)}),0):n("div",{staticClass:"noData"},[e._v("暂无数据")])])},staticRenderFns:[]};var m={name:"screen",data:function(){return{modifyTimeBegin:new Date(decodeURIComponent(this.getUrlKey("modifyTimeBegin"))),modifyTimeEnd:new Date(decodeURIComponent(this.getUrlKey("modifyTimeEnd"))),queryscreenList:[]}},created:function(){var e,t=this;document.title="诱导屏故障",console.log(this.modifyTimeBegin),console.log(this.modifyTimeEnd),(e={modifyTimeBegin:this.modifyTimeBegin,modifyTimeEnd:this.modifyTimeEnd,orgId:10003,sysCode:"1001"},u("queryScreenFaultList",e)).then(function(e){if(console.log(e.data.code),"8888"===e.data.code){var n=e.data.data;t.queryscreenList=n}else alert("服务器出错了")}).catch(function(e){console.log(e)})},filters:{screenFilter:function(e,t){return 2===e&&2===t?"设备故障,屏幕已关闭":1===e&&2===t?"屏幕已关闭":2===e&&1===t?"设备故障":"正常"}}},f={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[void 0!=e.queryscreenList&&e.queryscreenList.length>0?n("ul",{staticClass:"dici-wrap"},e._l(e.queryscreenList,function(t,s){return n("li",{key:s},[n("p",{staticClass:"parkName"},[e._v(e._s(t.guideName))]),e._v(" "),n("ul",{staticClass:"diciList"},[n("li",[e._v("\n          编号 :"+e._s(t.guideNo)+"\n        ")]),e._v(" "),n("li",[e._v("\n          异常类型 :"+e._s(e._f("screenFilter")(t.ledDeviceStatus,t.ledScreenStatus))+"\n        ")]),e._v(" "),n("li",[e._v("\n          故障时间 :"+e._s(e._f("dataFilter")(t.lastUpdateDate))+"\n        ")])])])}),0):n("div",{staticClass:"noData"},[e._v("暂无数据")])])},staticRenderFns:[]};var g={name:"App",components:{geomagnetism:n("VU/8")(l,d,!1,function(e){n("b0Mz")},"data-v-09ed4046",null).exports,screen:n("VU/8")(m,f,!1,function(e){n("t/7l")},"data-v-a38986b4",null).exports},data:function(){return{urlLink:""}},created:function(){console.log(this.getUrlKey("type")),this.urlLink=Number(this.getUrlKey("type"))}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[1===this.urlLink?t("geomagnetism"):this._e(),this._v(" "),2===this.urlLink?t("screen"):this._e()],1)},staticRenderFns:[]};var y=n("VU/8")(g,p,!1,function(e){n("0lpt")},null,null).exports,v=n("LqUx"),h=n.n(v);n("m0iu"),s.a.use(h.a),s.a.filter("dataFilter",function(){var e=new Date;return e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate())+"    "+(e.getHours()<10?"0"+e.getHours():e.getHours())+":"+(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":"+(e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds())}),s.a.config.productionTip=!1,new s.a({el:"#app",components:{App:y},template:"<App/>"})},b0Mz:function(e,t){},m0iu:function(e,t){},"t/7l":function(e,t){}},["NHnr"]);
//# sourceMappingURL=app.4e8a575089fddde7d9c6.js.map