CRMEB/crmeb/public/admin/system_static/js/chunk-1f269fa8.3eb0267b.js
2023-09-19 17:39:39 +08:00

1 line
14 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1f269fa8"],{"18e7":function(t,e,r){"use strict";r.r(e);var a=r("0122"),n=r("c964"),o=(r("a15b"),r("b0c0"),r("d81d"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("131a"),r("fb6a"),r("a584")),i=r("c71e");function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(e){u=function(t,e,r){return t[e]=r}}function h(t,e,r,a){var o,i,s,c;e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),a=new _(a||[]);return n(e,"_invoke",{value:(o=t,i=r,s=a,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return E()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var a=r.method,n=e.iterator[a];return void 0===n?(r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f):(a=d(n,e.iterator,r.arg),"throw"===a.type?(r.method="throw",r.arg=a.arg,r.delegate=null,f):(n=a.arg,n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)))}(r,s),r)){if(r===f)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",r=d(o,i,s),"normal"===r.type){if(c=s.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(c="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var f={};function p(){}function m(){}function v(){}o={};var y=(u(o,i,(function(){return this})),Object.getPrototypeOf),g=(y=y&&y(y(C([]))),y&&y!==e&&r.call(y,i)&&(o=y),v.prototype=p.prototype=Object.create(o));function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function s(){return new e((function(o,s){!function n(o,i,s,c){var l;o=d(t[o],t,i);if("throw"!==o.type)return(i=(l=o.arg).value)&&"object"==Object(a.a)(i)&&r.call(i,"__await")?e.resolve(i.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(i).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}));c(o.arg)}(n,i,o,s)}))}return o=o?o.then(s,s):s()}})}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(t){if(t){var e,a=t[i];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(a=function a(){for(;++e<t.length;)if(r.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=a}return{next:E}}function E(){return{value:void 0,done:!0}}return n(g,"constructor",{value:m.prototype=v,configurable:!0}),n(v,"constructor",{value:m,configurable:!0}),m.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(b.prototype),u(b.prototype,c,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var i=new b(h(e,r,a,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),a=[];for(e in r)a.push(e);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=C,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return i.type="throw",i.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;0<=a;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,a,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(r=n.completion).type&&(a=r.arg,L(n)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}o={name:"index",components:{cardsData:o.a,echartsNew:i.a},data:function(){return{timeVal:[],style:{height:"400px"},fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"本周",val:"week"},{text:"本月",val:"month"},{text:"本季度",val:"quarter"},{text:"本年",val:"year"}]},formValidate:{status:"",date:""},cardLists:[{col:6,count:0,name:"参与人数(人)",className:"ios-speedometer-outline"},{col:6,count:0,name:"成团数量(个)",className:"md-rose"},{col:6,count:0,name:"参与人数(人)",className:"ios-speedometer-outline"},{col:6,count:0,name:"成团数量(个)",className:"md-rose"},{col:6,count:0,name:"参与人数(人)",className:"ios-speedometer-outline"},{col:6,count:0,name:"成团数量(个)",className:"md-rose"}],optionData:{},spinShow:!1}},created:function(){},methods:{onchangeTime:function(t){this.timeVal=t,this.dataTime=this.timeVal?this.timeVal.join("-"):"",this.name=this.dataTime},getTrend:function(){var t=this;this.spinShow=!0,statisticUserTrendApi(this.formInline).then(function(){var e=Object(n.a)(s().mark((function e(r){var a,n,o,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=r.data.series.map((function(t){return t.name})),n=r.data.xAxis,o=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],i=[],r.data.series.map((function(t,e){i.push({name:t.name,type:"line",data:t.value,itemStyle:{normal:{color:o[e]}},smooth:0})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:a},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:n},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:i},t.spinShow=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg),t.spinShow=!1}))}}},r("852a"),i=r("2877"),r=Object(i.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}]},[r("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[r("el-form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"订单时间:"}},[r("el-radio-group",{staticClass:"mr",attrs:{type:"button"},on:{change:function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(e,a){return r("el-radio-button",{key:a,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),r("el-date-picker",{attrs:{editable:!1,clearable:"",format:"yyyy/MM/dd",type:"daterange","value-format":"yyyy/MM/dd","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)],1)],1)],1),0<=t.cardLists.length?r("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),t.optionData?r("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e(),r("div",{staticClass:"code-row-bg"},[r("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[r("div",{staticClass:"acea-row row-between-wrapper"},[r("div",{staticClass:"statics-header-title"},[t._v("积分来源")]),r("div",[t._v("切换样式")])]),t.optionData?r("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1),r("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[r("div",{staticClass:"acea-row row-between-wrapper"},[r("div",{staticClass:"statics-header-title"},[t._v("积分消耗")]),r("div",[t._v("切换样式")])]),t.optionData?r("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1)],1)],1)}),[],!1,null,"50e22e45",null),e.default=r.exports},7655:function(t,e,r){},"852a":function(t,e,r){"use strict";var a=r("b355");r.n(a).a},"975d":function(t,e,r){"use strict";var a=r("7655");r.n(a).a},a584:function(t,e,r){"use strict";var a={name:"cards",data:function(){return{colsize:{xl:4,lg:8,md:12}}},props:{cardLists:Array},methods:{},created:function(){switch(this.cardLists.length){case 1:this.colsize.xl=24,this.colsize.lg=24,this.colsize.md=24;break;case 2:this.colsize.xl=12,this.colsize.lg=12,this.colsize.md=12;break;case 3:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=8;break;case 4:this.colsize.xl=6,this.colsize.lg=6,this.colsize.md=12;break;case 5:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=12;break;default:this.colsize.xl=4,this.colsize.lg=8,this.colsize.md=12}4==this.cardLists.length?this.colsize.lg=6:4==this.cardLists.length&&(this.colsize.lg=8)}};r("975d"),r=r("2877"),r=Object(r.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:24}},t._l(t.cardLists,(function(e,a){return r("el-col",{key:a,staticClass:"ivu-mb",attrs:{xl:e.col||t.colsize.xl,lg:t.colsize.lg,md:t.colsize.md,sm:24,xs:24}},[r("el-card",{staticClass:"card_cent",attrs:{shadow:"never"}},[r("div",{staticClass:"card_box"},[r("div",{staticClass:"card_box_cir",class:{one:a%5==0,two:a%5==1,three:a%5==2,four:a%5==3,five:a%5==4}},[r("div",{staticClass:"card_box_cir1",class:{one1:a%5==0,two1:a%5==1,three1:a%5==2,four1:a%5==3,five1:a%5==4}},[r("span",{staticClass:"iconfont",class:e.className})])]),r("div",{staticClass:"card_box_txt"},[r("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),r("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"0eb9e1a0",null);e.a=r.exports},b355:function(t,e,r){},c71e:function(t,e,r){"use strict";var a=r("313e"),n=r.n(a);a={name:"Index",props:{styles:{type:Object,default:null},optionData:{type:Object,default:null}},data:function(){return{myChart:null}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},watch:{optionData:{handler:function(t,e){this.handleSetVisitChart()},deep:!0}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){this.myChart=n.a.init(document.getElementById(this.echarts));var t=this.optionData;this.myChart.setOption(t,!0)}}},r=r("2877"),r=Object(r.a)(a,(function(){var t=this.$createElement;t=this._self._c||t;return t("div",[t("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"4a0d7a27",null);e.a=r.exports}}]);