pages-analysis-staticReport-staticWeekReport.ac3dfb2f.js 16.5 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-analysis-staticReport-staticWeekReport"],{"02d9":function(t,e,a){"use strict";a.r(e);var i=a("cb2b"),n=a("b770");for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);a("6fc0");var r=a("2877"),o=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"3e012160",null);e["default"]=o.exports},"19b9":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".indexNav[data-v-7ae69da5]{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-7ae69da5]{height:%?77.89?%}.left[data-v-7ae69da5]{float:left;font-size:%?25.36?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;padding-left:%?23.55?%}.right[data-v-7ae69da5]{position:absolute;font-size:%?25.36?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;right:%?21.73?%}.lImg[data-v-7ae69da5]{width:%?12.68?%;height:%?23.55?%;float:left;position:relative;top:%?27.17?%}.rImg[data-v-7ae69da5]{width:%?28.98?%;height:%?28.98?%;top:%?27.17?%;right:%?18.12?%;position:absolute}",""])},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},"22eb":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 d={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:[],gateId:[],floorId:[],storeId:[]}},onLoad:function(t){var e=this;t.types&&(this.reportType=t.types),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=new Date,i=a.getFullYear(),n=a.getMonth(),s=n+1>9?n+1:"0"+(n+1),r=a.getDate(),o=r>9?r:"0"+r;this.date=i+"-"+s+"-"+o,uni.getStorage({key:"selectDate",success:function(t){e.date=t.data},complete:function(t){}}),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.setStorage({key:"backUrl",data:1}),uni.setStorage({key:"allShow",data:"true"}),uni.navigateTo({url:"../condition"})},getReportKey:function(){var t=this,e="BasicReport";this.keyArr=["kpiData","detailData"],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()}})},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(){var t=this;this.orgIds="";var e={},a=window.url+"/report/basics/mall";if("mall"==this.reportType){this.accountId.forEach(function(e){t.orgIds+=e+","}),this.orgIds=this.orgIds.substring(0,this.orgIds.length-1);var i=this.date.split(",")[0],n=this.date.split(",")[1];a=window.url+"/report/basics/mall",e={orgIds:this.orgIds,startDate:i,endDate:n,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("gate"==this.reportType){this.gateId.forEach(function(e){t.orgIds+=e+","}),this.orgIds=this.orgIds.substring(0,this.orgIds.length-1);i=this.date.split(",")[0],n=this.date.split(",")[1];a=window.url+"/report/basics/gate",e={orgIds:this.orgIds,startDate:i,endDate:n,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("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/basics/floor";i=this.date.split(",")[0],n=this.date.split(",")[1];e={orgIds:this.orgIds,startDate:i,endDate:n,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("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/basics/zone";i=this.date.split(",")[0],n=this.date.split(",")[1];e={orgIds:this.orgIds,startDate:i,endDate:n,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.chartData=a.body,t.chartDatas=a.body.detailData,t.setTabelData()}})}}};e.default=d},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})},"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+5OO3S4lDUHssQ95kfLEDSAXxdbU78cMxTtrW1dVyWBrpW6STYpDCBDSsG4gM9hD5y6p1UXafK9GeLLNibmHbiXsVBAA84v0Z8zcV35Gtwi2SRAwPHbnc3VUZicgj7BrHsVfSZiE8ZEvOkBmbjgAMecoQ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4hyWEpql2ppIcJrodKD4n2fDvkI2Po5eAVH54GfjKmdlNjr6flOqgkJ9DvBu0DV6OFyyhwiX4pn0IPUji18aKGPnHdqHZp8svkLxKn0T5qpLaRZQ1m8WZG4B4nDkIvXOVYHwAAAABJRU5ErkJggg=="},"6fc0":function(t,e,a){"use strict";var i=a("d4c6"),n=a.n(i);n.a},"8fea":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".selectBox[data-v-3e012160]{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-3e012160]{-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-3e012160]:last-of-type{border-right:none}.checkedItem[data-v-3e012160]{background:#0069ff;color:#fff;border:#0069ff}",""])},a1bf:function(t,e,a){var i=a("19b9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("afd4a560",i,!0,{sourceMap:!1,shadowMode:!1})},ab5e:function(t,e,a){"use strict";var i=a("a1bf"),n=a.n(i);n.a},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},b770:function(t,e,a){"use strict";a.r(e);var i=a("22eb"),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},c6b2: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})},cb2b: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"}}),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})},ce42:function(t,e,a){"use strict";a.r(e);var i=a("c6b2"),n=a("4407");for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);a("ab5e");var r=a("2877"),o=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"7ae69da5",null);e["default"]=o.exports},d448:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAaCAYAAAHwCF3KAAAABGdBTUEAALGPC/xhBQAAANtJREFUOBHtVDsOwjAMDTvXoUdiZWBB4lIcgp25B2DvxmjeM7HlBEeCAQkkLLV23nt2nE9byosmInPBa1E9AvHEfuCS2SUxaOSR0Bis53twcxnoNZ4jgRVfBOB2jNUIKGOAeRCPggbQE3wiUrCqOTtNO4iVPAb5nmjU7YSSWy9rAcpPbAC2MUw9gA8QbKI1nRpztWgdgTxTkJIEv0hwHTbZE2iaW8ubQsvvdUyCKCYwsT2sKGb8Gwn5mSdrOWE9ZuMvpU+sG8GvRy9RrfAvILJPfxLZBtomwh/wXO6bsa0ZxbdJWQAAAABJRU5ErkJggg=="},d4c6:function(t,e,a){var i=a("8fea");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("578474ac",i,!0,{sourceMap:!1,shadowMode:!1})},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}}]);