pages-analysis-timeFlowReport-timeFlowReport.6f36c8d9.js 19.7 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-analysis-timeFlowReport-timeFlowReport"],{"05e6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("div",{style:{height:t.navheight+"px",background:"#0069FF"}}),a("v-uni-view",{staticClass:"indexNav"},[a("v-uni-text",{staticClass:"left",on:{click:function(e){e=t.$handleEvent(e),t.lClick(e)}}},[t._v(t._s(t.leftText))]),a("v-uni-image",{staticClass:"lImg",attrs:{src:t.leftImgSrc},on:{click:function(e){e=t.$handleEvent(e),t.lClick(e)}}}),t._v(t._s(t.title)),a("span",{staticClass:"right",on:{click:function(e){e=t.$handleEvent(e),t.rClick(e)}}},[t._v(t._s(t.rightText))]),a("v-uni-image",{staticClass:"rImg",attrs:{src:t.rightImgSrc},on:{click:function(e){e=t.$handleEvent(e),t.rClick(e)}}})],1),a("v-uni-view",{staticClass:"blanks"})],1)},i=[];a.d(e,"a",function(){return n}),a.d(e,"b",function(){return i})},"0662":function(t,e,a){"use strict";a.r(e);var n=a("b167"),i=a("811e");for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);a("9432");var o=a("2877"),s=Object(o["a"])(i["default"],n["a"],n["b"],!1,null,"1e4ff336",null);e["default"]=s.exports},"08bf":function(t,e,a){var n=a("3e64");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("42e13f76",n,!0,{sourceMap:!1,shadowMode:!1})},"0e4a":function(t,e,a){"use strict";a.r(e);var n=a("b21b"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,function(){return n[t]})}(r);e["default"]=i.a},"24c7":function(t,e,a){var n=a("708d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("cadf493a",n,!0,{sourceMap:!1,shadowMode:!1})},"2c49":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAAH7+Yj7AAAABGdBTUEAALGPC/xhBQAABJtJREFUWAntmE+IV1UUx2fGSkuaVIRGN260wkk0LGlnixa1CCcFtRYGMVMEuRBdSLiJVoLUIqVNLWYI0iAadKU0/vkxowsJkRhbBKVRDKKO2iRMzujPz/fOPc/z/v7mR8pAzYHzzjnf873n3Xfffe/d+1paCqTVsHq9XsN/Fv0jYAB70ESM2AIybMEj5mA7SMzH1h3mXLLXXRjcNo7nSexRhN0QUJwrwXEHMW+5OO3S4lDUHssQ95kfLEDSAXxdbU78cMxTtrW1dVyWBrpW6STYpDCBDSsG4gM9hD5y6p1UXafK9GeLLNibmHbiXsVBAA84v0Z8zcV35Gtwi2SRAwPHbnc3VUZicgj7BrHsVfSZiE8ZEvOkBmbjgAMecoQB4mQSmW991ClMHjXHWyO+6EDfyMEz7nJxfbpA5JeMCttlHVQQ5Zo52Pz1A15HkzvuCujO1xRjk9G1fBa3QfT5Kl8193kC8Ts+Tvkkf1KLjBxNkQjI90fOcazNvjSNxOuRVGRWiE1isigJNpGuNkWekTHMdaQUoNtLSi5HcLh52J9LOGEWlBb/byf8C76dS92PznWX/Df++8kLnoAxfBzzCarH7WNyo9i8xMEexfpn+ZZwY+PuUxzlbrRHLJ+ySqaAGBiOfUo+ssx4+O0BqddXGZZYJZLAOYZj9TbKvSzBTqDnrEkzL4cnaPSbNXT2V3wtFtLCWRr1sLOIIwzZbNVSbwoSX5D405LYTvO5m8Pkw5MC9hGqz/2n6Ci5b7FpgdyF3kG96C4/55nE4l1Bb6A9Pic/mYcKIGhuzZEfZYKzh2+zAXCSj6gw8mFhYvnEQiyTsIAi+XIZAXxtUsgckc331nCsxm/A5+SD6Ztz3vBmpo1uYG4egmnpktzcZgpaJyrtwy3IWPg3jcZnoevOTfw1Ljb3BZxkxWagGl9CiyS8TUgsKEpG7LGk0Kzz/xsBJoHWD2UTqGzenCGRmsE2cuDb0JGShmPg2kpO//GCfDEWO4utnK3kF6FXI/+wdUoW7L2Iy9xEP0A7Yk5PyCb0d9Tkc9++1IetNaIkt9YuagRP70JJzfL47wZk6tBleJGFshIdj/zPspzpD222ZXW8NaaP8bnpr6KSv0BeyynJW1Pm/vFhdXAonmI9I6N1WiN5LRIGGxE1d/T1lhxsSIYAzxbcP3g++NcqgmjV8CGa+viLC6YttFYKknNo4wGDVLXxUaEi0UUt8R2MHVgMHnbeRY0idgGbWub4Ormr8kkaZpc4Pi3/NnPobhasiqnZ1mybXD2KdKHaj2YXdUAp+YdoEH0pWwTsVfRHdAKtEuX1SnslW0NxbgQhngRfj95Gv0TttwtuTp4HCX+CsPsZme1iUOM7zEa56FfoJbRMlpPYhqov31Dj7TJiwCn+IN6D2jBJkr9AVSeF931gu/+Qxm/81BhzhuxsB//twBc9JL0U1aSV3ECLtg4hyWEpql2ppIcJrodKD4n2fDvkI2Po5eAVH54GfjKmdlNjr6flOqgkJ9DvBu0DV6OFyyhwiX4pn0IPUji18aKGPnHdqHZp8svkLxKn0T5qpLaRZQ1m8WZG4B4nDkIvXOVYHwAAAABJRU5ErkJggg=="},"3abe":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{navheight:0}},created:function(){var t=this;uni.getStorage({key:"statusBarH",success:function(e){e.data&&(t.navheight=e.data)}})},props:{leftText:{type:String,default:""},rightText:{type:String,default:""},leftImgSrc:{type:String,default:""},rightImgSrc:{type:String,default:""},title:{type:String,default:""}},methods:{rClick:function(){this.$emit("rightClick")},lClick:function(){this.$emit("leftClick")}}};e.default=n},"3e2a":function(t,e,a){"use strict";var n=a("f298"),i=a.n(n);i.a},"3e64":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".selectBox[data-v-1e4ff336]{width:%?646.73?%;height:%?61.59?%;font-size:%?21.74?%;line-height:%?61.59?%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin:0 auto;margin-bottom:%?18.11?%}.sItem[data-v-1e4ff336]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background:#fff;text-align:center;cursor:pointer;border-right:1px solid #dbdbdb}.sItem[data-v-1e4ff336]:last-of-type{border-right:none}.checkedItem[data-v-1e4ff336]{background:#0069ff;color:#fff;border:#0069ff}",""])},"4d66":function(t,e,a){var n=a("a01b");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("0e34c0ec",n,!0,{sourceMap:!1,shadowMode:!1})},6439:function(t,e,a){"use strict";a.r(e);var n=a("d95a"),i=a("764f");for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);a("3e2a");var o=a("2877"),s=Object(o["a"])(i["default"],n["a"],n["b"],!1,null,"18ccf92b",null);e["default"]=s.exports},"6c88":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{tWidth:0,tableData:[{name:"赵伟1",tel:"156*****1987",hobby:"钢琴、书法、唱歌",address:"上海市黄浦区金陵东路569号17楼"},{name:"李伟1",tel:"182*****1538",hobby:"钢琴、书法、唱歌",address:"上海市奉贤区南桥镇立新路12号2楼"},{name:"孙伟1",tel:"161*****0097",hobby:"钢琴、书法、唱歌",address:"上海市崇明县城桥镇八一路739号"},{name:"周伟1",tel:"197*****1123",hobby:"钢琴、书法、唱歌",address:"上海市青浦区青浦镇章浜路24号"},{name:"吴伟1",tel:"183*****6678",hobby:"钢琴、书法、唱歌",address:"上海市松江区乐都西路867-871号"},{name:"赵伟2",tel:"156*****1987",hobby:"钢琴、书法、唱歌",address:"上海市黄浦区金陵东路569号17楼"},{name:"李伟2",tel:"182*****1538",hobby:"钢琴、书法、唱歌",address:"上海市奉贤区南桥镇立新路12号2楼"},{name:"孙伟2",tel:"161*****0097",hobby:"钢琴、书法、唱歌",address:"上海市崇明县城桥镇八一路739号"},{name:"周伟2",tel:"197*****1123",hobby:"钢琴、书法、唱歌",address:"上海市青浦区青浦镇章浜路24号"},{name:"吴伟2",tel:"183*****6678",hobby:"钢琴、书法、唱歌",address:"上海市松江区乐都西路867-871号"},{name:"赵伟3",tel:"156*****1987",hobby:"钢琴、书法、唱歌",address:"上海市黄浦区金陵东路569号17楼"},{name:"李伟3",tel:"182*****1538",hobby:"钢琴、书法、唱歌",address:"上海市奉贤区南桥镇立新路12号2楼"},{name:"孙伟3",tel:"161*****0097",hobby:"钢琴、书法、唱歌",address:"上海市崇明县城桥镇八一路739号"},{name:"周伟3",tel:"197*****1123",hobby:"钢琴、书法、唱歌",address:"上海市青浦区青浦镇章浜路24号"},{name:"吴伟3",tel:"183*****6678",hobby:"钢琴、书法、唱歌",address:"上海市松江区乐都西路867-871号"},{name:"赵伟4",tel:"156*****1987",hobby:"钢琴、书法、唱歌",address:"上海市黄浦区金陵东路569号17楼"},{name:"李伟4",tel:"182*****1538",hobby:"钢琴、书法、唱歌",address:"上海市奉贤区南桥镇立新路12号2楼"},{name:"孙伟4",tel:"161*****0097",hobby:"钢琴、书法、唱歌",address:"上海市崇明县城桥镇八一路739号"},{name:"周伟4",tel:"197*****1123",hobby:"钢琴、书法、唱歌",address:"上海市青浦区青浦镇章浜路24号"},{name:"吴伟4",tel:"183*****6678",hobby:"钢琴、书法、唱歌",address:"上海市松江区乐都西路867-871号"},{name:"赵伟5",tel:"156*****1987",hobby:"钢琴、书法、唱歌",address:"上海市黄浦区金陵东路569号17楼"},{name:"李伟5",tel:"182*****1538",hobby:"钢琴、书法、唱歌",address:"上海市奉贤区南桥镇立新路12号2楼"},{name:"孙伟5",tel:"161*****0097",hobby:"钢琴、书法、唱歌",address:"上海市崇明县城桥镇八一路739号"},{name:"周伟5",tel:"197*****1123",hobby:"钢琴、书法、唱歌",address:"上海市青浦区青浦镇章浜路24号"},{name:"吴伟5",tel:"183*****6678",hobby:"钢琴、书法、唱歌",address:"上海市松江区乐都西路867-871号"}],columns:[{field:"name",title:"姓名",width:20,titleAlign:"center",columnAlign:"center",isResize:!0,isFrozen:!0},{field:"tel",title:"手机号码",width:20,titleAlign:"center",columnAlign:"center",isResize:!0},{field:"hobby",title:"爱好",width:20,titleAlign:"center",columnAlign:"center",isResize:!0},{field:"address",title:"地址",width:20,titleAlign:"center",columnAlign:"center",isResize:!0}]}},created:function(){},mounted:function(){},components:{},watch:{bindId:function(t,e){},chartData:{handler:function(t,e){this.drawTable()},deep:!0}},props:{bindId:{type:String,default:""},chartData:{type:Object,default:function(){return{}}}},methods:{drawTable:function(){console.log(this.columns),console.log(this.tableData)}}};e.default=n},"708d":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".indexNav[data-v-52faf15b]{height:%?77.89?%;line-height:%?77.89?%;text-align:center;background:#0069ff;position:fixed;font-size:%?33?%;color:#fff;width:100%;z-index:9}.blanks[data-v-52faf15b]{height:%?77.89?%}.left[data-v-52faf15b]{float:left;font-size:%?25.37?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;padding-left:%?23.55?%}.right[data-v-52faf15b]{position:absolute;font-size:%?25.37?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;right:%?21.73?%}.lImg[data-v-52faf15b]{width:%?12.68?%;height:%?23.55?%;float:left;position:relative;top:%?27.17?%}.rImg[data-v-52faf15b]{width:%?28.98?%;height:%?28.98?%;top:%?27.17?%;right:%?18.12?%;position:absolute}",""])},"764f":function(t,e,a){"use strict";a.r(e);var n=a("6c88"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,function(){return n[t]})}(r);e["default"]=i.a},7666:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAaCAYAAAHwCF3KAAAABGdBTUEAALGPC/xhBQAAANtJREFUOBHtVDsOwjAMDTvXoUdiZWBB4lIcgp25B2DvxmjeM7HlBEeCAQkkLLV23nt2nE9byosmInPBa1E9AvHEfuCS2SUxaOSR0Bis53twcxnoNZ4jgRVfBOB2jNUIKGOAeRCPggbQE3wiUrCqOTtNO4iVPAb5nmjU7YSSWy9rAcpPbAC2MUw9gA8QbKI1nRpztWgdgTxTkJIEv0hwHTbZE2iaW8ubQsvvdUyCKCYwsT2sKGb8Gwn5mSdrOWE9ZuMvpU+sG8GvRy9RrfAvILJPfxLZBtomwh/wXO6bsa0ZxbdJWQAAAABJRU5ErkJggg=="},"811e":function(t,e,a){"use strict";a.r(e);var n=a("f32c"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,function(){return n[t]})}(r);e["default"]=i.a},"8c2c":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"timechart"},[a("div",{staticClass:"chart",attrs:{id:t.bindId}})])},i=[];a.d(e,"a",function(){return n}),a.d(e,"b",function(){return i})},9094:function(t,e,a){"use strict";a.r(e);var n=a("8c2c"),i=a("0e4a");for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);a("b140");var o=a("2877"),s=Object(o["a"])(i["default"],n["a"],n["b"],!1,null,"52e4d2ba",null);e["default"]=s.exports},9432:function(t,e,a){"use strict";var n=a("08bf"),i=a.n(n);i.a},a01b:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".chart[data-v-52e4d2ba]{width:%?706.52?%;height:%?634.05?%;margin:0 auto;background:#fff;margin-bottom:%?18.2?%;border-radius:%?7.24?%;overflow:hidden}",""])},b140:function(t,e,a){"use strict";var n=a("4d66"),i=a.n(n);i.a},b167:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("headerComp",{attrs:{leftImgSrc:t.leftImg,title:t.titleStr,rightImgSrc:t.rightImg},on:{leftClick:function(e){e=t.$handleEvent(e),t.backFun(e)},rightClick:function(e){e=t.$handleEvent(e),t.conditionFun(e)}}}),a("div",{staticStyle:{height:"18.11upx"}}),a("timechart",{attrs:{"chart-data":t.chartDatas.TimeThermodynamic,"bind-id":"TimeThermodynamic"}})],1)},i=[];a.d(e,"a",function(){return n}),a.d(e,"b",function(){return i})},b21b:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{yMax:0}},mounted:function(){},watch:{bindId:function(t,e){},chartData:{handler:function(t,e){this.drawTimeChart()},deep:!0}},props:{bindId:{type:String,default:""},chartData:{type:Object,default:function(){return{}}}},methods:{drawTimeChart:function(){var t={},e=document.getElementById(this.bindId);t=this.echarts.init(e),t.showLoading("default",{text:"",color:"#409eff"});var a=["周一","周二","周三","周四","周五","周六","周日"],n={title:{show:!0,text:this.chartData.title,left:uni.upx2px(18.11),top:uni.upx2px(10.86),textStyle:{fontWeight:"normal",fontSize:uni.upx2px(25.4),color:"#4A4A4A"}},tooltip:{renderMode:"richText"},grid:{left:uni.upx2px(76.08),right:uni.upx2px(28.98),top:uni.upx2px(83.33),bottom:uni.upx2px(9.05)+uni.upx2px(21.74)+12+uni.upx2px(21.74)+12},animation:!1,yAxis:{type:"category",splitArea:{show:!0},axisTick:{show:!1},axisLine:{lineStyle:{color:"#535353"}},data:a},xAxis:{type:"category",data:[],nameTextStyle:{color:"#444",fontSize:uni.upx2px(21.74)},axisLabel:{width:140},splitArea:{show:!0},axisTick:{show:!1},axisLine:{lineStyle:{color:"#535353"}}},visualMap:{min:0,max:20,calculable:!0,orient:"horizontal",left:"left",itemWidth:15,color:["#0068FF","#fff"]},legend:{orient:"horizontal",x:"center",textStyle:{fontSize:uni.upx2px(21.74),color:"rgba(74,74,74,1)"},itemWidth:uni.upx2px(12.7),itemHeight:uni.upx2px(12.7),itemGap:uni.upx2px(5.62),bottom:uni.upx2px(9.05),data:[],selected:{}},series:JSON.parse(JSON.stringify(this.chartData.series))};if(n.series){try{n.xAxis.data=this.chartData.xaxis.data}catch(h){}if(n.series.length>0){for(var i=function(t,e){for(var a in e)if(t==e[a])return a},r=[],o=null,s=[],d=[],c=null,u=0,l=n.series.length;u<l;u++)n.series[u].type="heatmap",n.series[u].itemStyle={emphasis:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}},n.series[u].label={normal:{show:!0,color:"#444"}};n.series.forEach(function(t,e){o=i(t.name,a),s.push(t.data);for(var n=0;n<t.data.length;n++)r.push([parseInt(o),n,t.data[n]])});try{d=s.join(",").split(","),c=Math.max.apply(null,d)}catch(h){console.log("heatmap max value",h.message)}for(var f in n.visualMap.max=c,r=r.map(function(t){return[t[1],t[0],t[2]||"-"]}),n.series)n.series[f].data=[],n.series[f].data=r.splice(0,n.xAxis.data.length)}else n.graphic={type:"text",left:"center",top:"middle",z:100,style:{fill:"#444",text:"暂无数据",font:"14px "}},n.visualMap.show=!1,n.yAxis.data=[],t.clear(),setTimeout(function(){t.hideLoading(),t.setOption(n)},500);setTimeout(function(){t.hideLoading()},500),t.setOption(n),console.log("option",JSON.stringify(n))}}}};e.default=n},cc42:function(t,e,a){"use strict";a.r(e);var n=a("05e6"),i=a("e15e");for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);a("ef34");var o=a("2877"),s=Object(o["a"])(i["default"],n["a"],n["b"],!1,null,"52faf15b",null);e["default"]=s.exports},cd53:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".chart[data-v-18ccf92b]{width:%?706.52?%;height:%?438.4?%;margin:0 auto;background:#fff;margin-bottom:%?18.2?%;border-radius:%?7.24?%;overflow:hidden}",""])},d95a:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"piechart"})},i=[];a.d(e,"a",function(){return n}),a.d(e,"b",function(){return i})},e15e:function(t,e,a){"use strict";a.r(e);var n=a("3abe"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,function(){return n[t]})}(r);e["default"]=i.a},ef34:function(t,e,a){"use strict";var n=a("24c7"),i=a.n(n);i.a},f298:function(t,e,a){var n=a("cd53");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("ff826756",n,!0,{sourceMap:!1,shadowMode:!1})},f32c:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=d(a("cc42")),i=d(a("7666")),r=d(a("2c49")),o=d(a("6439")),s=d(a("9094"));function d(t){return t&&t.__esModule?t:{default:t}}var c={data:function(){return{titleStr:"时段客流分布",leftImg:i.default,rightImg:r.default,atoken:"",keyArr:[],chartIds:"",reportType:"mall",accountId:[],orgIds:"",date:"",isDay:!0,isHour:!1,isMin:!1,chartDatas:{},gateId:[],floorId:[],storeId:[],objId:"one"}},onLoad:function(t){var e=this;t.types&&(this.reportType=t.types),uni.getStorage({key:"objId",success:function(t){e.objId=JSON.parse(t.data)[0],console.log(e.objId)}}),uni.getStorage({key:"atoken",success:function(t){e.atoken=t.data}}),uni.getStorage({key:"accountList",success:function(t){if(t.data){var a=JSON.parse(t.data);a.forEach(function(t,a){0==a&&e.accountId.push(t.id)})}}}),uni.getStorage({key:"selectAccountIdArr",success:function(t){e.accountId=JSON.parse(t.data)},complete:function(t){}}),uni.getStorage({key:"selectGateIdArr",success:function(t){e.gateId=JSON.parse(t.data)},complete:function(t){}}),uni.getStorage({key:"selectFloorIdArr",success:function(t){e.floorId=JSON.parse(t.data)},complete:function(t){}}),uni.getStorage({key:"selectStoreIdArr",success:function(t){e.storeId=JSON.parse(t.data)},complete:function(t){}});var a=[];uni.getStorage({key:"currentWeek",success:function(t){a=JSON.parse(t.data)},complete:function(t){}});var n=0,i=0,r=0;a[0].index?(n=a[0].index,i=a[1].index,r=a[2].index):(n=a[0],i=a[1],r=a[2]);var o=1999+n,s=i+1;s=s>9?s:"0"+s;var d=new Date;d.setFullYear(o,s-1,1);var c=d.getDay();d.setFullYear(o,s,0);var u,l=d.getDate();u=7-c+1;var f="",h="";if(0==r){f=o+"-"+s+"-01";var p=u>9?u:"0"+u;h=o+"-"+s+"-"+p}else{var g=u+7*(r-1)+1;p=u+7*r;if(g>l){for(var b=r-1;b>=0;b--)if(g=u+7*(b-1),p=u+7*b,g<=l){p>l&&(p=l);break}}else g<=l&&p>l&&(p=l);g=g>9?g:"0"+g,p=p>9?p:"0"+p,f=o+"-"+s+"-"+g,h=o+"-"+s+"-"+p}this.date=f+","+h,uni.getStorage({key:"selectDate",success:function(t){-1!=t.data.indexOf(",")?e.date=t.data:(console.log(e.date),uni.setStorage({key:"selectDate",data:e.date}))},complete:function(t){}}),this.getReportKey()},computed:{i18n:function(){return this.$t("index")}},components:{headerComp:n.default,tables:o.default,timechart:s.default},methods:{backFun:function(){uni.reLaunch({url:"../index"})},conditionFun:function(){uni.setStorage({key:"backUrl",data:5}),uni.navigateTo({url:"../condition"})},getReportKey:function(){var t=this,e="TimeThermodynamic";this.keyArr=["TimeThermodynamic"],uni.showLoading({title:"加载中"}),uni.request({url:window.url+"/reportCharts",data:{report:e,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(e){t.chartIds="",e.data.data.forEach(function(e){"-1"!=t.keyArr.indexOf(e.key)&&(t.chartIds+=e.id+",")}),t.chartIds=t.chartIds.substring(0,t.chartIds.length-1),t.getChartData()}})},getChartData:function(){var t=this;this.orgIds="";var e={},a=window.url+"/report/thermodynamic/mall",n="",i="";n=this.date.split(",")[0],i=this.date.split(",")[1],"mall"==this.reportType?(this.orgIds=this.accountId[0],a=window.url+"/report/thermodynamic/mall",e={orgIds:this.orgIds,startDate:n,endDate:i,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}):"gate"==this.reportType?(this.orgIds=this.gateId[0],a=window.url+"/report/thermodynamic/gate",e={orgIds:this.orgIds,startDate:n,endDate:i,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}):"floor"==this.reportType?(this.floorId.forEach(function(e){t.orgIds+=e+","}),this.orgIds=this.orgIds.substring(0,this.orgIds.length-1),a=window.url+"/report/thermodynamic/floor",e={orgIds:this.orgIds,startDate:n,endDate:i,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}):"area"==this.reportType&&(this.storeId.forEach(function(e){t.orgIds+=e+","}),this.orgIds=this.orgIds.substring(0,this.orgIds.length-1),a=window.url+"/report/thermodynamic/zone",e={orgIds:this.orgIds,startDate:n,endDate:i,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}),uni.request({url:a,header:{Authorization:this.atoken},data:e,method:"GET",success:function(e){uni.hideLoading();var a=e.data.data;t.chartDatas=a.body}})}}};e.default=c}}]);