1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d8323a6"],{1491:function(t,e,n){"use strict";n.d(e,"B",(function(){return a})),n.d(e,"z",(function(){return i})),n.d(e,"g",(function(){return u})),n.d(e,"C",(function(){return c})),n.d(e,"y",(function(){return o})),n.d(e,"l",(function(){return l})),n.d(e,"r",(function(){return s})),n.d(e,"c",(function(){return d})),n.d(e,"D",(function(){return g})),n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return f})),n.d(e,"o",(function(){return p})),n.d(e,"p",(function(){return h})),n.d(e,"t",(function(){return b})),n.d(e,"x",(function(){return v})),n.d(e,"w",(function(){return I})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return j})),n.d(e,"n",(function(){return O})),n.d(e,"v",(function(){return y})),n.d(e,"j",(function(){return U})),n.d(e,"s",(function(){return B})),n.d(e,"k",(function(){return P})),n.d(e,"i",(function(){return w})),n.d(e,"h",(function(){return A})),n.d(e,"m",(function(){return C})),n.d(e,"q",(function(){return x})),n.d(e,"A",(function(){return G})),n.d(e,"f",(function(){return z})),n.d(e,"u",(function(){return S}));var r=n("b775");function a(t){return Object(r["a"])({url:"/orders/get_agent_gift_bag",method:"get",params:t})}function i(t){return Object(r["a"])({url:"/orders/add_list_tag",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/orders/BatchAddTag",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/orders/export_list",method:"get",params:t})}function o(){return Object(r["a"])({url:"/activity/getactivityinfo",method:"get"})}function l(t){return Object(r["a"])({url:"/orders/GetActivityLimit",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/UserImg/GetUserInfo",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/UserImg/AddUserImgInfo",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/UserImg/uploadImage",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/UserImg/AddUpdateImg",method:"get",params:t})}function f(t){return Object(r["a"])({url:"/UserImg/AddUpdateImgB",method:"get",params:t})}function p(t){return Object(r["a"])({url:"/UserImg/GetImgStatus",method:"get",params:t})}function h(t){return Object(r["a"])({url:"/UserImg/GetImgStatusB",method:"get",params:t})}function b(t){return Object(r["a"])({url:"/UserImg/GetUserList",method:"get",params:t})}function v(t){return Object(r["a"])({url:"/UserImg/UpdateUserImgInfoB ",method:"post",data:t})}function I(t){return Object(r["a"])({url:"/UserImg/UpdateUserImgInfo",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/UserImg/AgainCreateImg",method:"get",params:t})}function j(t){return Object(r["a"])({url:"/UserImg/AgainCreateImgB",method:"get",params:t})}function O(t){return Object(r["a"])({url:"/UserImg/GetCrownInfo",method:"get",params:t})}function y(t){return Object(r["a"])({url:"/UserImg/UpdateCrownImgInfo",method:"post",data:t})}function U(t){return Object(r["a"])({url:"/UserImg/DeleteUserImg",method:"get",params:t})}function B(t){return Object(r["a"])({url:"/UserImg/GetUserInfos",method:"get",params:t})}function P(t){return Object(r["a"])({url:"/UserImg/ExportAddress",method:"get",params:t})}function w(t){return Object(r["a"])({url:"/CrownBigGiftInfo",method:"get",params:t})}function A(t){return Object(r["a"])({url:"/BigGiftInfo",method:"get",params:t})}function C(t){return Object(r["a"])({url:"/BigGift/GetApplyList",method:"get",params:t})}function x(t){return Object(r["a"])({url:"/BigGift/GetUserInfo",method:"get",params:t})}function G(t){return Object(r["a"])({url:"/BigGift/editBelongToUser",method:"post",data:t})}function z(t){return Object(r["a"])({url:"/BigGift/ApplySuccess",method:"post",data:t})}function S(t){return Object(r["a"])({url:"/BigGift/UpdateApply",method:"post",data:t})}},"1a1c":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-select",{staticStyle:{width:"350px",margin:"20px 0 0 20px"},on:{change:t.changeActive},model:{value:t.activity_id,callback:function(e){t.activity_id=e},expression:"activity_id"}},t._l(t.activitys,(function(t){return n("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1),t._v(" "),n("div",{staticClass:"app-container"},[n("div",{staticClass:"item"},[t._m(0),t._v(" "),n("el-table",{attrs:{data:t.numData.slice((t.numPage.currentPage-1)*t.numPage.pageSize,t.numPage.currentPage*t.numPage.pageSize),border:"",stripe:""}},[n("el-table-column",{attrs:{prop:"index",label:"序号",width:"50",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"nickname",label:"批发商团队",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"A",label:"A礼包",width:"180",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"B",label:"B礼包",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"num",label:"总计",align:"center"}})],1),t._v(" "),n("div",{staticStyle:{"margin-top":"20px"}},[n("el-pagination",{attrs:{"current-page":t.numPage.currentPage,"page-sizes":[10,15,20,25],"page-size":t.numPage.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:parseInt(t.numPage.total)},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),t._v(" "),n("div",{staticClass:"item"},[t._m(1),t._v(" "),n("el-table",{attrs:{data:t.warData,border:"",stripe:""}},[n("el-table-column",{attrs:{type:"index",label:"序号",width:"50",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"服务",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"A",label:"A礼包",width:"180",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"B",label:"B礼包",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"num",label:"总计",align:"center"}})],1)],1)])],1)},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"title"},[n("i",{staticClass:"el-icon-medal-1",staticStyle:{color:"#FF737B","font-size":"26px"}}),t._v("\n 各批发商团队获得礼包统计\n ")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"title"},[n("i",{staticClass:"el-icon-medal-1",staticStyle:{color:"#FB874E","font-size":"26px"}}),t._v("\n 各服务获得礼包统计\n ")])}],i=(n("55dd"),n("ac6a"),n("c7eb")),u=(n("96cf"),n("1da1")),c=n("1491"),o={data:function(){return{loadingFull:!1,numData:[],warData:[],numPage:{currentPage:1,pageSize:15,total:0},activity_id:"",activitys:[]}},created:function(){var t=this;this.activityList((function(){t.getnumPage(),t.getwarPage()}))},methods:{changeActive:function(){this.numPage.currentPage=1,this.getnumPage(),this.getwarPage()},activityList:function(){var t=Object(u["a"])(Object(i["a"])().mark((function t(e){var n=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(c["y"])().then((function(t){n.loadingFull=!1,200===t.code&&(n.activitys=t.data,t.data.map((function(t){1===t.is_ing&&(n.activity_id=t.id)}))),e&&e()})).catch((function(t){n.loadingFull=!1,e&&e()}));case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getnumPage:function(){var t=this;Object(c["i"])({activity_id:this.activity_id}).then((function(e){e.data.forEach((function(t,e,n){t.index=e+1,t.num=t.A+t.B})),e.data.sort(t.sortBy("num")),t.numData=e.data,t.numPage.total=t.numData.length}))},sortBy:function(t){return function(e,n){return n[t]-e[t]}},getwarPage:function(){var t=this;Object(c["h"])({activity_id:this.activity_id}).then((function(e){var n=[],r=e.data;for(var a in r){var i={};i.name=a,i.A=r[a].A,i.B=r[a].B,i.num=r[a].A+r[a].B,n.push(i)}t.warData=n}))},handleSizeChange:function(t){this.numPage.pageSize=t},handleCurrentChange:function(t){this.numPage.currentPage=t}}},l=o,s=(n("50f9"),n("2877")),d=Object(s["a"])(l,r,a,!1,null,"025d2374",null);e["default"]=d.exports},"2f21":function(t,e,n){"use strict";var r=n("79e5");t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"50f9":function(t,e,n){"use strict";n("8d21")},"55dd":function(t,e,n){"use strict";var r=n("5ca1"),a=n("d8e8"),i=n("4bf8"),u=n("79e5"),c=[].sort,o=[1,2,3];r(r.P+r.F*(u((function(){o.sort(void 0)}))||!u((function(){o.sort(null)}))||!n("2f21")(c)),"Array",{sort:function(t){return void 0===t?c.call(i(this)):c.call(i(this),a(t))}})},"8d21":function(t,e,n){}}]);
|