pages-analysis-staticReport.c923d41a.js 16.3 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-analysis-staticReport"],{"0eeb":function(t,e,a){"use strict";var i=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("div",{staticClass:"selectBox"},[a("div",{staticClass:"sItem",class:{checkedItem:t.isDay},on:{click:function(e){e=t.$handleEvent(e),t.checkFun("day")}}},[t._v("天汇总")]),a("div",{staticClass:"sItem",class:{checkedItem:t.isHour},on:{click:function(e){e=t.$handleEvent(e),t.checkFun("hour")}}},[t._v("小时级")]),a("div",{staticClass:"sItem",class:{checkedItem:t.isMin},on:{click:function(e){e=t.$handleEvent(e),t.checkFun("min")}}},[t._v("分钟级")])]),t.columns.length>0?a("v-table",{staticStyle:{width:"100%"},attrs:{"is-horizontal-resize":"",columns:t.columns,"table-data":t.tableData,"row-hover-color":"#eee","row-click-color":"#edf7ff",height:500}}):t._e()],1)},n=[];a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n})},"1dae":function(t,e,a){var i=a("9149");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("56cf9c36",i,!0,{sourceMap:!1,shadowMode:!1})},"1f71":function(t,e,a){"use strict";a.r(e);var i=a("0eeb"),n=a("b919");for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);a("c702");var r=a("2877"),o=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"61c3f5d7",null);e["default"]=o.exports},2205:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={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=i},"2a34":function(t,e,a){"use strict";var i=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)},n=[];a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n})},3600:function(t,e,a){var i=a("b813");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("7460085d",i,!0,{sourceMap:!1,shadowMode:!1})},4407:function(t,e,a){"use strict";a.r(e);var i=a("2205"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);e["default"]=n.a},"4a85":function(t,e,a){var i=a("e2ca");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("3c6b2819",i,!0,{sourceMap:!1,shadowMode:!1})},"52ac":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"piechart"})},n=[];a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n})},5745:function(t,e,a){"use strict";var i=a("3600"),n=a.n(i);n.a},"653d":function(t,e,a){"use strict";var i=a("4a85"),n=a.n(i);n.a},"68f6":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=="},9149:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".selectBox[data-v-61c3f5d7]{width:%?646.73?%;height:%?61.59?%;font-size:%?18.11?%;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-61c3f5d7]{-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-61c3f5d7]:last-of-type{border-right:none}.checkedItem[data-v-61c3f5d7]{background:#0069ff;color:#fff;border:#0069ff}",""])},"964f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(a("ce42")),n=o(a("d448")),s=o(a("68f6")),r=o(a("e7f6"));function o(t){return t&&t.__esModule?t:{default:t}}var c={data:function(){return{titleStr:"基础统计",leftImg:n.default,rightImg:s.default,atoken:"",keyArr:[],chartIds:"",reportType:"mall",accountId:[],orgIds:"",date:"",isDay:!0,isHour:!1,isMin:!1,chartDatas:{},chartData:{},tableData:[],columns:[]}},created:function(){var t=this;uni.getStorage({key:"atoken",success:function(e){t.atoken=e.data}}),uni.getStorage({key:"accountList",success:function(e){if(e.data){var a=JSON.parse(e.data);a.forEach(function(e,a){0==a&&t.accountId.push(e.id)})}}}),uni.getStorage({key:"selectAccountIdArr",success:function(e){t.accountId=JSON.parse(e.data)},complete:function(t){}});var e=new Date,a=e.getFullYear(),i=e.getMonth(),n=i+1>9?i+1:"0"+(i+1),s=e.getDate(),r=s>9?s:"0"+s;this.date=a+"-"+n+"-"+r,uni.getStorage({key:"selectDate",success:function(e){t.date=e.data},complete:function(t){}}),this.accountId.forEach(function(e){t.orgIds+=e+","}),this.orgIds=this.orgIds.substring(0,this.orgIds.length-1),this.getReportKey()},computed:{i18n:function(){return this.$t("index")}},components:{headerComp:i.default,tables:r.default},methods:{checkFun:function(t){switch(t){case"day":this.isDay=!0,this.isHour=!1,this.isMin=!1,this.chartDatas=this.chartData.kpiData,this.setTabelData();break;case"hour":this.isDay=!1,this.isHour=!0,this.isMin=!1,this.chartDatas=this.chartData.trafficHour,this.setTabelData();break;case"min":this.isDay=!1,this.isHour=!1,this.isMin=!0,this.chartDatas=this.chartData.traffic10Min,this.setTabelData();break}},backFun:function(){uni.reLaunch({url:"index"})},conditionFun:function(){uni.navigateTo({url:"condition"})},getReportKey:function(){var t=this,e="BasicDayReport";this.keyArr=["kpiData","trafficHour","traffic10Min"],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("day")}})},setTabelData:function(){var t=this;this.columns=[],this.tableData=[],this.chartDatas.xaxis.data.forEach(function(e,a){0==a?t.columns.push({field:e,title:e,width:20,titleAlign:"center",columnAlign:"center",isResize:!0,isFrozen:!0}):t.columns.push({field:e,title:e,width:20,titleAlign:"center",columnAlign:"center",isResize:!0})}),console.log(JSON.stringify(this.columns)),this.chartDatas.series.forEach(function(e,a){var i={};e.data.forEach(function(e,a){i[t.chartDatas.xaxis.data[a]]=e}),t.tableData.push(i)})},getChartData:function(t){var e=this,a={},i=window.url+"/report/basics/day/mall";if("mall"==this.reportType)if(i=window.url+"/report/basics/day/mall",-1!=this.date.indexOf(",")){var n=this.date.split(",")[0],s=this.date.split(",")[1];a={orgIds:this.orgIds,startDate:n,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else a={orgIds:this.orgIds,date:this.date,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3};else if("week"==this.reportType){n=this.date.split(",")[0],s=this.date.split(",")[1];i=window.url+"/report/week/account",a={orgIds:this.orgIds,startDate:n,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("month"==this.reportType){n=this.date.split(",")[0],s=this.date.split(",")[1];i=window.url+"/report/month/account",a={orgIds:this.orgIds,startDate:n,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("year"==this.reportType){n=this.date.split(",")[0],s=this.date.split(",")[1];i=window.url+"/report/year/account",a={orgIds:this.orgIds,startDate:n,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}uni.request({url:i,header:{Authorization:this.atoken},data:a,method:"GET",success:function(t){uni.hideLoading();var a=t.data.data;e.chartData=a.body,e.chartDatas=a.body.kpiData,e.setTabelData()}})}}};e.default=c},b33a:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={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=i},b4d5:function(t,e,a){"use strict";a.r(e);var i=a("b33a"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);e["default"]=n.a},b813:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".indexNav[data-v-39e8dde9]{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-39e8dde9]{height:%?77.89?%}.left[data-v-39e8dde9]{float:left;font-size:%?25.36?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;padding-left:%?23.55?%}.right[data-v-39e8dde9]{float:right;font-size:%?25.36?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;padding-right:%?23.55?%}.lImg[data-v-39e8dde9]{width:%?12.68?%;height:%?23.55?%;float:left;position:relative;top:%?27.17?%}.rImg[data-v-39e8dde9]{width:%?28.98?%;height:%?28.98?%;float:right;position:relative;top:%?27.17?%}",""])},b919:function(t,e,a){"use strict";a.r(e);var i=a("964f"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);e["default"]=n.a},c702:function(t,e,a){"use strict";var i=a("1dae"),n=a.n(i);n.a},ce42:function(t,e,a){"use strict";a.r(e);var i=a("2a34"),n=a("4407");for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);a("5745");var r=a("2877"),o=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"39e8dde9",null);e["default"]=o.exports},d448:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAaCAYAAAHwCF3KAAAABGdBTUEAALGPC/xhBQAAANtJREFUOBHtVDsOwjAMDTvXoUdiZWBB4lIcgp25B2DvxmjeM7HlBEeCAQkkLLV23nt2nE9byosmInPBa1E9AvHEfuCS2SUxaOSR0Bis53twcxnoNZ4jgRVfBOB2jNUIKGOAeRCPggbQE3wiUrCqOTtNO4iVPAb5nmjU7YSSWy9rAcpPbAC2MUw9gA8QbKI1nRpztWgdgTxTkJIEv0hwHTbZE2iaW8ubQsvvdUyCKCYwsT2sKGb8Gwn5mSdrOWE9ZuMvpU+sG8GvRy9RrfAvILJPfxLZBtomwh/wXO6bsa0ZxbdJWQAAAABJRU5ErkJggg=="},e2ca:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".chart[data-v-109ed85a]{width:%?706.52?%;height:%?438.4?%;margin:0 auto;background:#fff;margin-bottom:%?18.2?%;border-radius:%?7.24?%;overflow:hidden}",""])},e7f6:function(t,e,a){"use strict";a.r(e);var i=a("52ac"),n=a("b4d5");for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);a("653d");var r=a("2877"),o=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"109ed85a",null);e["default"]=o.exports}}]);