pages-analysis-inoutReport-inoutDayReport.c59a5e30.js 17.7 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-analysis-inoutReport-inoutDayReport"],{"05e6":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})},"172c":function(t,e,a){"use strict";var i=a("d7d3"),n=a.n(i);n.a},"24c7":function(t,e,a){var i=a("708d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("cadf493a",i,!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+5OO3S4lDUHssQ95kfLE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SnslW0NxbgQhngRfj95Gv0TttwtuTp4HCX+CsPsZme1iUOM7zEa56FfoJbRMlpPYhqov31Dj7TJiwCn+IN6D2jBJkr9AVSeF931gu/+Qxm/81BhzhuxsB//twBc9JL0U1aSV3ECLtg4hyWEpql2ppIcJrodKD4n2fDvkI2Po5eAVH54GfjKmdlNjr6flOqgkJ9DvBu0DV6OFyyhwiX4pn0IPUji18aKGPnHdqHZp8svkLxKn0T5qpLaRZQ1m8WZG4B4nDkIvXOVYHwAAAABJRU5ErkJggg=="},"3abe":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},"3e2a":function(t,e,a){"use strict";var i=a("f298"),n=a.n(i);n.a},"5c6d":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.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","title-rows":t.titleRows,"row-click-color":"#edf7ff",height:500}}):t._e()],1)},n=[];a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n})},"5ed9":function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _header=_interopRequireDefault(__webpack_require__("cc42")),_backArrow=_interopRequireDefault(__webpack_require__("7666")),_other=_interopRequireDefault(__webpack_require__("2c49")),_table=_interopRequireDefault(__webpack_require__("6439"));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var _default={data:function(){return{titleStr:"进出客流对比",leftImg:_backArrow.default,rightImg:_other.default,atoken:"",keyArr:[],chartIds:"",reportType:"mall",accountId:[],orgIds:"",date:"",isHour:!0,isMin:!1,chartDatas:{},chartData:{},tableData:[],columns:[],gateId:[],floorId:[],storeId:[],titleRows:[]}},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(),r=n+1>9?n+1:"0"+(n+1),s=a.getDate(),o=s>9?s:"0"+s;this.date=i+"-"+r+"-"+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:_header.default,tables:_table.default},methods:{checkFun:function(t){switch(t){case"hour":this.isHour=!0,this.isMin=!1,this.getChartData();break;case"min":this.isHour=!1,this.isMin=!0,this.getChartData();break}},backFun:function(){uni.reLaunch({url:"../index"})},conditionFun:function(){uni.setStorage({key:"backUrl",data:2}),uni.navigateTo({url:"../condition"})},getReportKey:function(){var t=this,e="trafficInAndOut";this.keyArr=["trafficInAndOutTable"],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 setTabelData(){var _this3=this;this.columns=[],this.tableData=[];var oneArr=[],twoArr=[];this.titleRows=[],this.chartDatas.xaxis.data.forEach(function(item,index){if(0==index)oneArr.push({fields:[item],title:item,titleAlign:"center",rowspan:2}),_this3.columns.push({field:item,title:item,width:100,titleAlign:"center",columnAlign:"center",isResize:!0,isFrozen:!0});else{var headArr=eval(item);oneArr.push({fields:[headArr[0]+headArr[1],headArr[0]+headArr[2]],title:headArr[0],titleAlign:"center",colspan:2}),twoArr.push({fields:[headArr[0]+headArr[1]],title:headArr[1],width:20,titleAlign:"center"}),twoArr.push({fields:[headArr[0]+headArr[2]],title:headArr[2],width:20,titleAlign:"center"}),_this3.columns.push({field:headArr[0]+headArr[1],title:headArr[1],width:60,titleAlign:"center",columnAlign:"center",isResize:!0}),_this3.columns.push({field:headArr[0]+headArr[2],title:headArr[2],width:60,titleAlign:"center",columnAlign:"center",isResize:!0})}}),this.titleRows.push(oneArr),this.titleRows.push(twoArr),console.log(JSON.stringify(this.titleRows)),this.chartDatas.series.forEach(function(item,index){var obj={};item.data.forEach(function(item,index){if(0==index)obj[_this3.chartDatas.xaxis.data[index]]=item;else if(index%2==1){var headItem=eval(_this3.chartDatas.xaxis.data[Math.ceil(index/2)]);obj[headItem[0]+headItem[1]]=item}else{var headItem=eval(_this3.chartDatas.xaxis.data[Math.ceil(index/2)]);obj[headItem[0]+headItem[2]]=item}}),_this3.tableData.push(obj)})},getChartData:function(){var t=this;this.orgIds="";var e={},a=window.url+"/report/trafficInAndOut/mall";"mall"==this.reportType?(this.accountId.forEach(function(e){t.orgIds+=e+","}),this.orgIds=this.orgIds.substring(0,this.orgIds.length-1),a=window.url+"/report/trafficInAndOut/mall",e={orgIds:this.orgIds,date:this.date,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}):"gate"==this.reportType?(this.gateId.forEach(function(e){t.orgIds+=e+","}),this.orgIds=this.orgIds.substring(0,this.orgIds.length-1),a=window.url+"/report/trafficInAndOut/gate",e={orgIds:this.orgIds,date:this.date,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/trafficInAndOut/floor",e={orgIds:this.orgIds,date:this.date,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/trafficInAndOut/zone",e={orgIds:this.orgIds,date:this.date,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}),this.isHour?e.option="TAB_HOUR":e.option="TAB_MINUTE",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.trafficInAndOutTable,t.setTabelData()}})}}};exports.default=_default},6439:function(t,e,a){"use strict";a.r(e);var i=a("d95a"),n=a("764f");for(var r in n)"default"!==r&&function(t){a.d(e,t,function(){return n[t]})}(r);a("3e2a");var s=a("2877"),o=Object(s["a"])(n["default"],i["a"],i["b"],!1,null,"18ccf92b",null);e["default"]=o.exports},"6c88":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},"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}",""])},"732b":function(t,e,a){"use strict";a.r(e);var i=a("5ed9"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);e["default"]=n.a},"764f":function(t,e,a){"use strict";a.r(e);var i=a("6c88"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);e["default"]=n.a},7666:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAaCAYAAAHwCF3KAAAABGdBTUEAALGPC/xhBQAAANtJREFUOBHtVDsOwjAMDTvXoUdiZWBB4lIcgp25B2DvxmjeM7HlBEeCAQkkLLV23nt2nE9byosmInPBa1E9AvHEfuCS2SUxaOSR0Bis53twcxnoNZ4jgRVfBOB2jNUIKGOAeRCPggbQE3wiUrCqOTtNO4iVPAb5nmjU7YSSWy9rAcpPbAC2MUw9gA8QbKI1nRpztWgdgTxTkJIEv0hwHTbZE2iaW8ubQsvvdUyCKCYwsT2sKGb8Gwn5mSdrOWE9ZuMvpU+sG8GvRy9RrfAvILJPfxLZBtomwh/wXO6bsa0ZxbdJWQAAAABJRU5ErkJggg=="},"83a0":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".selectBox[data-v-6e34f39c]{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-6e34f39c]{-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-6e34f39c]:last-of-type{border-right:none}.checkedItem[data-v-6e34f39c]{background:#0069ff;color:#fff;border:#0069ff}",""])},9429:function(t,e,a){"use strict";a.r(e);var i=a("5c6d"),n=a("732b");for(var r in n)"default"!==r&&function(t){a.d(e,t,function(){return n[t]})}(r);a("172c");var s=a("2877"),o=Object(s["a"])(n["default"],i["a"],i["b"],!1,null,"6e34f39c",null);e["default"]=o.exports},cc42:function(t,e,a){"use strict";a.r(e);var i=a("05e6"),n=a("e15e");for(var r in n)"default"!==r&&function(t){a.d(e,t,function(){return n[t]})}(r);a("ef34");var s=a("2877"),o=Object(s["a"])(n["default"],i["a"],i["b"],!1,null,"52faf15b",null);e["default"]=o.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}",""])},d7d3:function(t,e,a){var i=a("83a0");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("812b430a",i,!0,{sourceMap:!1,shadowMode:!1})},d95a: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})},e15e:function(t,e,a){"use strict";a.r(e);var i=a("3abe"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);e["default"]=n.a},ef34:function(t,e,a){"use strict";var i=a("24c7"),n=a.n(i);n.a},f298:function(t,e,a){var i=a("cd53");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("ff826756",i,!0,{sourceMap:!1,shadowMode:!1})}}]);