| 12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cb/xctdetail/xctdetail"],{593:function(e,t,n){"use strict";(function(e,t){var i=n(4);n(26);i(n(25));var a=i(n(594));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n(1)["default"],n(2)["createPage"])},594:function(e,t,n){"use strict";n.r(t);var i=n(595),a=n(597);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n(599);var r,s=n(32),d=Object(s["default"])(a["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],r);d.options.__file="pages/cb/xctdetail/xctdetail.vue",t["default"]=d.exports},595:function(e,t,n){"use strict";n.r(t);var i=n(596);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},596:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return r})),n.d(t,"recyclableRender",(function(){return o})),n.d(t,"components",(function(){return i}));try{i={uCalendar:function(){return n.e("uview-ui/components/u-calendar/u-calendar").then(n.bind(null,1343))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var a=function(){var e=this,t=e.$createElement,n=(e._self._c,e._f("timeFormat")(e.equipInfo.uptime||e.equipInfo.uptime)),i=e.$QueryPermission(182),a=e.$QueryPermission(172),o=e.$QueryPermission(238),r=e.$QueryPermission(183),s=r&&""!=e.start_time?e._f("timeFormat")(e.start_time/1e3):null,d=r&&""!=e.end_time?e._f("timeFormat")(e.end_time/1e3):null,u=r?e.$QueryPermission(271):null,c=r&&u?e.__map(e.historylistdata,(function(t,n){var i=e.__get_orig(t),a=e.forbidden?null:e._f("timeFormat")(t.d_h_t.addtime);return{$orig:i,f3:a}})):null,l=r&&!u?e.__map(e.historylistdata,(function(t,n){var i=e.__get_orig(t),a=e.forbidden?null:e._f("timeFormat")(t.d_h_t.addtime);return{$orig:i,f4:a}})):null;e._isMounted||(e.e0=function(t){e.timeshow=!0},e.e1=function(t){e.timeshow=!0}),e.$mp.data=Object.assign({},{$root:{f0:n,m0:i,m1:a,m2:o,m3:r,f1:s,f2:d,m4:u,l0:c,l1:l}})},o=!1,r=[];a._withStripped=!0},597:function(e,t,n){"use strict";n.r(t);var i=n(598),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},598:function(e,t,n){"use strict";(function(e){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(41)),o=i(n(43)),r=i(n(199)),s=null,d={data:function(){return{equipInfo:{},canvastishiTF:!1,dataloadingtf:!1,cWidth:"400",cHeight:"400",pixelRatio:1,start_time:"",end_time:"",timeshow:!1,mode:"range",historydatas:[],tableHeadTxt:["上报时间","环境温度(°C)","环境湿度(%)","版本号","工作状态","电流(mA)","电压(V)","经度","纬度"],tableHeadTxt2:["上报时间","环境温度(°C)","环境湿度(%)","版本号","工作状态","经度","纬度"],historylistdata:[],pagesum:10,page:1,forbidden:!1}},methods:{copy:function(t){console.log(t),e.setClipboardData({data:t.imei||t.device_id,success:function(){console.log("success")}})},toset:function(){e.navigateTo({url:"./xctset?device_id="+this.equipInfo.imei+"&d_id="+this.equipInfo.d_id+"&dtype="+this.equipInfo.dtype+"&device_name="+this.equipInfo.device_name})},tophoto:function(){e.navigateTo({url:"./photolist?device_id="+this.equipInfo.imei+"&d_id="+this.equipInfo.d_id})},toanal:function(){e.navigateTo({url:"./analyse?d_id="+this.equipInfo.d_id+"&device_id="+this.equipInfo.imei+"&device_type=12&disable="+this.equipInfo.disable})},simRouter:function(){e.navigateTo({url:"/pages/prevention/sim?id="+this.equipInfo.d_id})},timechange:function(e){this.start_time=+new Date(e.startDate),this.end_time=+new Date(e.endDate),this.history(),this.getwind()},history:function(){var e=this;return(0,o.default)(a.default.mark((function t(){var n,i,o,r,s,d,u;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.dataloadingtf=!0,t.next=3,e.$myRequest({url:"/api/api_gateway?method=forecast.worm_lamp.device_xct_data",data:{d_id:e.equipInfo.d_id,start_time:Math.floor(+new Date(e.start_time)/1e3),end_time:Math.floor(+new Date(e.end_time)/1e3)}});case 3:if(n=t.sent,console.log(n),e.dataloadingtf=!1,e.historydatas=n,console.log(e.historydatas),0==e.historydatas.length)e.canvastishiTF=!1;else{for(e.canvastishiTF=!0,i=[],o=[],[],r=[],s=0;s<n.length;s++)d=new Date(1e3*n[s].addtime),r.push(d.getMonth()+1+"/"+d.getDate()+"-"+d.getHours()+":"+d.getMinutes()),i.push(""==n[s].temperature?"0":n[s].temperature),o.push(""==n[s].humidity?"0":n[s].humidity);u=[{name:"温度",data:i,color:"#00E29D"},{name:"湿度",data:o,color:"#6CBBFF"}],e.showColumn("canvasColumnA",r,u)}case 9:case"end":return t.stop()}}),t)})))()},showColumn:function(e,t,n){var i=this;s=new r.default({canvasId:e,type:"line",legend:{position:"top"},fontSize:11,background:"#FFFFFF",pixelRatio:1,animation:!0,dataLabel:!1,categories:t,series:n,enableScroll:!0,xAxis:{disableGrid:!0,type:"grid",gridType:"dash",itemCount:4,scrollShow:!0,scrollBackgroundColor:"#F7F7FF",scrollColor:"#DEE7F7"},yAxis:{gridType:"dash",gridColor:"#CCCCCC",dashLength:8,splitNumber:5,format:function(e){return e.toFixed(1)}},width:1*i.cWidth,height:1*i.cHeight,extra:{line:{type:"curve"}}})},touchLineA:function(e){console.log(e),s.scrollStart(e)},moveLineA:function(e){s.scroll(e)},touchEndLineA:function(e){s.scrollEnd(e),s.showToolTip(e,{format:function(e,t){return t+" "+e.name+":"+e.data}})},getwind:function(){var e=this;return(0,o.default)(a.default.mark((function t(){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$myRequest({url:"/api/api_gateway?method=forecast.worm_lamp.xct_history_data",data:{d_id:e.equipInfo.d_id,start_time:Math.floor(+new Date(e.start_time)/1e3),end_time:Math.floor(+new Date(e.end_time)/1e3),page:e.page,page_size:"10"}});case 2:n=t.sent,console.log(n),n.data.length?(e.historylistdata=n.data,e.pagesum=Math.ceil(n.counts/10),e.forbidden=!1):e.forbidden=!0;case 5:case"end":return t.stop()}}),t)})))()},prev:function(){this.page>1&&(this.page--,this.getwind())},next:function(){this.page<this.pagesum&&(this.page++,this.getwind())}},onLoad:function(t){this.equipInfo=JSON.parse(t.info),this.end_time=+new Date,this.start_time=+new Date-2592e6,this.cWidth=e.upx2px(650),this.cHeight=e.upx2px(500),this.history(),this.getwind()}};t.default=d}).call(this,n(2)["default"])},599:function(e,t,n){"use strict";n.r(t);var i=n(600),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},600:function(e,t,n){}},[[593,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/cb/xctdetail/xctdetail.js.map
|