1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2cf37936"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,a){var s=i(),o=t-s,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var i=Math.easeInOutQuad(c,s,o,e);r(i),c<e?n(t):a&&"function"===typeof a&&a()};u()}},"33a3":function(t,e,a){},ae2e:function(t,e,a){"use strict";a("33a3")},ec1b:function(t,e,a){!function(e,a){t.exports=a()}(0,(function(){return function(t){function e(n){if(a[n])return a[n].exports;var r=a[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,a){var n=a(4)(a(1),a(5),null,null);t.exports=n.exports},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(3);e.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,a,n){return a*(1-Math.pow(2,-10*t/n))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,n.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,n.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,n.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,n.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e<this.localDuration?this.rAF=(0,n.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=t.toFixed(this.decimals),t+="";var e=t.split("."),a=e[0],n=e.length>1?this.decimal+e[1]:"",r=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;r.test(a);)a=a.replace(r,"$1"+this.separator+"$2");return this.prefix+a+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(0),r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=r.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",r.default)},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=0,r="webkit moz ms o".split(" "),i=void 0,s=void 0;if("undefined"==typeof window)e.requestAnimationFrame=i=function(){},e.cancelAnimationFrame=s=function(){};else{e.requestAnimationFrame=i=window.requestAnimationFrame,e.cancelAnimationFrame=s=window.cancelAnimationFrame;for(var o=void 0,l=0;l<r.length&&(!i||!s);l++)o=r[l],e.requestAnimationFrame=i=i||window[o+"RequestAnimationFrame"],e.cancelAnimationFrame=s=s||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];i&&s||(e.requestAnimationFrame=i=function(t){var e=(new Date).getTime(),a=Math.max(0,16-(e-n)),r=window.setTimeout((function(){t(e+a)}),a);return n=e+a,r},e.cancelAnimationFrame=s=function(t){window.clearTimeout(t)})}e.requestAnimationFrame=i,e.cancelAnimationFrame=s},function(t,e){t.exports=function(t,e,a,n){var r,i=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(r=t,i=t.default);var o="function"==typeof i?i.options:i;if(e&&(o.render=e.render,o.staticRenderFns=e.staticRenderFns),a&&(o._scopeId=a),n){var l=Object.create(o.computed||null);Object.keys(n).forEach((function(t){var e=n[t];l[t]=function(){return e}})),o.computed=l}return{esModule:r,exports:i,options:o}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",[t._v("\n "+t._s(t.displayValue)+"\n")])},staticRenderFns:[]}}])}))},fb16:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[t._m(0),t._v(" "),a("div",{staticClass:"m-core"},[a("el-card",{staticClass:"myCard",staticStyle:{width:"460px"},attrs:{header:""}},[a("statistic",{staticClass:"statistic",attrs:{cols:0}},[a("statistic-item",[a("span",[t._v("\n 意向机构\n ")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.detail.tenantAgency}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("\n 入驻机构\n ")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.detail.preTenant}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("\n 学练宝销售数(个月)\n ")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.detail.memberCount}})],1)])],1)],1),t._v(" "),a("save-form",{attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[a("el-form-item",{attrs:{prop:"proxyId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选代理商"},model:{value:t.searchForm.proxyId,callback:function(e){t.$set(t.searchForm,"proxyId","string"===typeof e?e.trim():e)},expression:"searchForm.proxyId"}},t._l(t.proxyList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.proxyName,value:t.proxyId}})})),1)],1),t._v(" "),a("el-form-item",[a("el-form-item",{attrs:{prop:"recommenderId"}},[a("remote-search",{attrs:{commit:"setTenantUser","aria-placeholder":"请选择推荐人"},model:{value:t.searchForm.recommenderId,callback:function(e){t.$set(t.searchForm,"recommenderId",e)},expression:"searchForm.recommenderId"}})],1)],1),t._v(" "),a("el-form-item",[a("el-date-picker",{staticStyle:{width:"420px"},attrs:{clearable:!1,type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{firstDayOfWeek:1}},model:{value:t.searchForm.timer,callback:function(e){t.$set(t.searchForm,"timer","string"===typeof e?e.trim():e)},expression:"searchForm.timer"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"proxyId",label:"代理商编号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"proxyName",label:"代理商名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"tenantId",label:"机构编号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"tenantName",label:"机构名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"activeDate",label:"激活时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("formatTimer")(e.row.activeDate))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"activeCount",label:"激活数量(个月)"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"recommenderName",label:"推荐人"}})],1),t._v(" "),a("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("\n 学练宝分润\n ")])}],i=(a("386d"),a("15fd")),s=a("c7eb"),o=a("5530"),l=(a("96cf"),a("1da1")),c=(a("bc3a"),a("5f87"),a("333d")),u=a("ed08"),d=(a("3908"),a("ab26")),m=a("ec1b"),p=a.n(m),h=["timer"],f={components:{pagination:c["a"],"count-to":p.a},data:function(){return{searchForm:{search:null,timer:[]},detail:{memberCount:0,preTenant:0,tenantAgency:0},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},proxyList:[]}},created:function(){},mounted:function(){this.searchForm.timer=this.getInitDate(),this.init()},methods:{init:function(){this.getProxList(),this.getProxyDividendDetail(),this.getList()},getProxyDividendDetail:function(){var t=Object(l["a"])(Object(s["a"])().mark((function t(){var e;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d["d"])();case 3:e=t.sent,this.detail=Object(o["a"])({},e.data),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),getProxList:function(){var t=Object(l["a"])(Object(s["a"])().mark((function t(){var e;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d["f"])({page:1,rows:9999,state:"0"});case 3:e=t.sent,this.proxyList=e.data.rows,t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),getList:function(){var t=Object(l["a"])(Object(s["a"])().mark((function t(){var e,a,n,r,l;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.searchForm,a=e.timer,n=Object(i["a"])(e,h),r=Object(o["a"])(Object(o["a"])({},n),{},{page:this.rules.page,rows:this.rules.limit},Object(u["d"])(a,["startData","endData"])),t.prev=2,t.next=5,Object(d["e"])(Object(o["a"])({},r));case 5:l=t.sent,this.tableList=l.data.rows,this.rules.total=l.data.total,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](2),console.log(t.t0);case 13:case"end":return t.stop()}}),t,this,[[2,10]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){var t=this;this.$nextTick((function(){t.searchForm.timer=t.getInitDate(),t.search()}))},getInitDate:function(){var t=this.$helpers.dayjs(new Date).format("YYYY-MM-DD"),e=this.$helpers.dayjs(new Date).set("date",1).format("YYYY-MM-DD");return[e,t]}}},b=f,v=(a("ae2e"),a("2877")),y=Object(v["a"])(b,n,r,!1,null,"7ed3898f",null);e["default"]=y.exports}}]);
|