1 line
8.8 KiB
JavaScript
1 line
8.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fb6cd34a"],{2909:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){if(Array.isArray(t))return n(t)}function a(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function o(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t){return i(t)||a(t)||o(t)||s()}r.d(e,"a",(function(){return c}))},"2f1e":function(t,e,r){"use strict";r("3bf2")},"3bf2":function(t,e,r){},"4df0":function(t,e,r){"use strict";r("eeb5")},"4f7f":function(t,e,r){"use strict";var n=r("c26b"),i=r("b39a"),a="Set";t.exports=r("e0b8")(a,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,a),t=0===t?0:t,t)}},n)},"5d8d":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-card",{staticClass:"aui-card--fill academic",attrs:{shadow:"never"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:6}},[r("div",{staticClass:"grid-content bg-purple"},[r("bar",{ref:"weekPepleRef",attrs:{params:t.params}})],1)]),r("el-col",{attrs:{span:6}},[r("div",{staticClass:"grid-content bg-purple"})]),r("el-col",{attrs:{span:6}},[r("div",{staticClass:"grid-content bg-purple"})]),r("el-col",{attrs:{span:6}},[r("div",{staticClass:"grid-content bg-purple"})])],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:6}},[r("div",{staticClass:"grid-content bg-purple"})]),r("el-col",{attrs:{span:6}},[r("div",{staticClass:"grid-content bg-purple"})]),r("el-col",{attrs:{span:6}},[r("div",{staticClass:"grid-content bg-purple"})]),r("el-col",{attrs:{span:6}},[r("div",{staticClass:"grid-content bg-purple"})])],1)],1)},i=[],a=(r("5df3"),r("4f7f"),r("2909")),o=(r("7f7f"),r("ac6a"),r("858c")),s={components:{bar:o["a"]},data:function(){return{params:{}}},created:function(){this.getWeekData(),this.getMonthData(),this.getWeekDataTime(),this.getMonthDataTime()},mounted:function(){},methods:{getWeekData:function(){var t=this;this.$http.get("/system/reportForm/visitorFloorWeek").then((function(e){var r=e.data;if(0!==r.code)return t.$message.error(r,msg);t.commonFun(r,"每层楼访客人数(周)","周","人","weekPepleRef","weeks")}))},commonFun:function(t,e,r,n,i,o){var s=this,c=[],u=[],f=[];t.data.forEach((function(t){c.push(t.name),f.push(t[o])})),c=Object(a["a"])(new Set(c)),f=Object(a["a"])(new Set(f)),c.forEach((function(e,r){u.push({data:[],name:e}),f.forEach((function(n,i){var a=!0;t.data.forEach((function(t,o){e===t.name&&n===t.weeks&&(u[r].data[i]=t.count,a=!1)})),a&&(u[r].data[i]=0)}))})),this.params.seriesData=u,this.params.xAxisData=f,this.params.title=e,this.params.xTitle=r,this.params.yTitle=n,this.$nextTick((function(){s.$refs[i].init()}))}}},c=s,u=(r("4df0"),r("2877")),f=Object(u["a"])(c,n,i,!1,null,"68e597fa",null);e["default"]=f.exports},"5df3":function(t,e,r){"use strict";var n=r("02f4")(!0);r("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},"67ab":function(t,e,r){var n=r("ca5a")("meta"),i=r("d3f4"),a=r("69a8"),o=r("86cc").f,s=0,c=Object.isExtensible||function(){return!0},u=!r("79e5")((function(){return c(Object.preventExtensions({}))})),f=function(t){o(t,n,{value:{i:"O"+ ++s,w:{}}})},l=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,n)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[n].i},p=function(t,e){if(!a(t,n)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[n].w},d=function(t){return u&&h.NEED&&c(t)&&!a(t,n)&&f(t),t},h=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},"858c":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{ref:"myEchart",staticClass:"chart-map"})])},i=[],a=(r("8e6e"),r("ac6a"),r("456d"),r("ade3"));function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){Object(a["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var c={props:{params:{type:Object,default:function(){}}},data:function(){return{colorList:["#45DBF7","#F69846","#FF4343"]}},mounted:function(){},methods:{init:function(){var t=this;this.params.seriesData=this.params.seriesData.map((function(e,r){var n,i=(n={type:"bar",barMaxWidth:"3%"},Object(a["a"])(n,"barMaxWidth","3%"),Object(a["a"])(n,"itemStyle",{normal:{color:t.colorList[r],barBorderRadius:10}}),n);return e=s(s({},e),i),e}));var e=this.$echarts.init(this.$refs.myEchart);window.onresize=e.resize;var r={title:{text:this.params.title,left:"center",textStyle:{color:"#FFF"}},legend:{textStyle:{color:"#FFF"},top:"8%"},grid:{top:"20%",containLabel:!1},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{name:this.params.xTitle,axisLine:{show:!0,lineStyle:{color:"#FFF"}},axisLabel:{show:!0,textStyle:{color:"#fff"}},type:"category",data:this.params.xAxisData},yAxis:{name:this.params.yTitle,axisLine:{show:!0,lineStyle:{color:"#FFF"}},axisLabel:{show:!0,textStyle:{color:"#fff"}},type:"value"},series:this.params.seriesData};e.setOption(r)}}},u=c,f=(r("2f1e"),r("2877")),l=Object(f["a"])(u,n,i,!1,null,"2c681de7",null);e["a"]=l.exports},b39a:function(t,e,r){var n=r("d3f4");t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},c26b:function(t,e,r){"use strict";var n=r("86cc").f,i=r("2aeb"),a=r("dcbc"),o=r("9b43"),s=r("f605"),c=r("4a59"),u=r("01f9"),f=r("d53b"),l=r("7a56"),p=r("9e1e"),d=r("67ab").fastKey,h=r("b39a"),v=p?"_s":"size",b=function(t,e){var r,n=d(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,u){var f=t((function(t,n){s(t,f,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=n&&c(n,r,t[u],t)}));return a(f.prototype,{clear:function(){for(var t=h(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var r=h(this,e),n=b(r,t);if(n){var i=n.n,a=n.p;delete r._i[n.i],n.r=!0,a&&(a.n=i),i&&(i.p=a),r._f==n&&(r._f=i),r._l==n&&(r._l=a),r[v]--}return!!n},forEach:function(t){h(this,e);var r,n=o(t,arguments.length>1?arguments[1]:void 0,3);while(r=r?r.n:this._f){n(r.v,r.k,this);while(r&&r.r)r=r.p}},has:function(t){return!!b(h(this,e),t)}}),p&&n(f.prototype,"size",{get:function(){return h(this,e)[v]}}),f},def:function(t,e,r){var n,i,a=b(t,e);return a?a.v=r:(t._l=a={i:i=d(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=a),n&&(n.n=a),t[v]++,"F"!==i&&(t._i[i]=a)),t},getEntry:b,setStrong:function(t,e,r){u(t,e,(function(t,r){this._t=h(t,e),this._k=r,this._l=void 0}),(function(){var t=this,e=t._k,r=t._l;while(r&&r.r)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?f(0,"keys"==e?r.k:"values"==e?r.v:[r.k,r.v]):(t._t=void 0,f(1))}),r?"entries":"values",!r,!0),l(e)}}},e0b8:function(t,e,r){"use strict";var n=r("7726"),i=r("5ca1"),a=r("2aba"),o=r("dcbc"),s=r("67ab"),c=r("4a59"),u=r("f605"),f=r("d3f4"),l=r("79e5"),p=r("5cc5"),d=r("7f20"),h=r("5dbc");t.exports=function(t,e,r,v,b,m){var g=n[t],y=g,w=b?"set":"add",_=y&&y.prototype,x={},O=function(t){var e=_[t];a(_,t,"delete"==t||"has"==t?function(t){return!(m&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,r){return e.call(this,0===t?0:t,r),this})};if("function"==typeof y&&(m||_.forEach&&!l((function(){(new y).entries().next()})))){var E=new y,F=E[w](m?{}:-0,1)!=E,j=l((function(){E.has(1)})),S=p((function(t){new y(t)})),k=!m&&l((function(){var t=new y,e=5;while(e--)t[w](e,e);return!t.has(-0)}));S||(y=e((function(e,r){u(e,y,t);var n=h(new g,e,y);return void 0!=r&&c(r,b,n[w],n),n})),y.prototype=_,_.constructor=y),(j||k)&&(O("delete"),O("has"),b&&O("get")),(k||F)&&O(w),m&&_.clear&&delete _.clear}else y=v.getConstructor(e,t,b,w),o(y.prototype,r),s.NEED=!0;return d(y,t),x[t]=y,i(i.G+i.W+i.F*(y!=g),x),m||v.setStrong(y,t,b),y}},eeb5:function(t,e,r){}}]); |