1 line
8.8 KiB
JavaScript
1 line
8.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b1e07"],{"225f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ba_f pad_20"},[t._m(0),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("参与人数(人)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.invitData.joinPeople||0))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("参与人数")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("新用户人数(人)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.invitData.newPeople||0))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("新用户人数")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("活动完成人数(人)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.invitData.completePeople||0))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("活动完成人数")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("活动奖励总额(元)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.invitData.completeMoney||0))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("活动奖励总额")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])])])]),a("div",{staticClass:"outmain ba_f mar_t20"},[t._m(1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,"element-loading-text":t.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{prop:"type",label:"邀请人信息 "},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex flex-y-top"},[a("div",{},[a("img",{staticClass:"goodlogo bor_rad50",attrs:{src:e.row.portrait}})]),a("div",{staticClass:"mar_l10"},[a("div",{staticClass:"flex"},[a("div",[a("div",[t._v(t._s(e.row.userName))]),a("div",[a("el-tag",{staticClass:"mar_l5",attrs:{size:"mini",type:"info"}},[t._v("(ID:"+t._s(e.row.id)+") ")])],1)])])])])]}}])}),a("el-table-column",{attrs:{prop:"account",label:"邀请人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"subjectcolor2 curs",on:{click:function(a){return t.handleEdit2(e.row)}}},[t._v(t._s(e.row.completeNum))])]}}])}),a("el-table-column",{attrs:{prop:"money",label:"活动完成人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("div",[t._v(t._s(e.row.completeNum))])])]}}])}),a("el-table-column",{attrs:{prop:"completeMoney",label:"活动奖励金额"}}),a("el-table-column",{attrs:{prop:"partakeAt",label:"参与活动时间"}})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}}),a("edit",{ref:"edit",on:{fetchData:t.fetchData}})],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("活动概况")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("邀请记录")])])])}],o=(a("96cf"),a("1da1")),l=a("7cb7"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,"element-loading-text":t.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{prop:"type",label:"用户信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex flex-y-top"},[a("div",{},[a("img",{staticClass:"goodlogo bor_rad50",attrs:{src:e.row.portrait}})]),a("div",{staticClass:"mar_l10"},[a("div",[t._v(t._s(e.row.userName))]),a("div",[a("el-tag",{staticClass:"mar_l5",attrs:{size:"mini",type:"info"}},[t._v("(ID:"+t._s(e.row.bindId)+") ")])],1)])])]}}])}),a("el-table-column",{attrs:{prop:"createdAt",label:"加入时间"}}),a("el-table-column",{attrs:{prop:"state",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.state?a("div",{staticClass:"color-green"},[t._v("已完成")]):t._e(),"2"==e.row.state?a("div",{staticClass:"color-red"},[t._v("未完成")]):t._e()]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)],1)},r=[],c={name:"unitSave",created:function(){},data:function(){return{list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},form:{},actId:"",title:"",dialogFormVisible:!1}},components:{},methods:{showEdit:function(t){t?(this.title="邀请列表",this.form=Object.assign({},t)):this.title="添加",this.dialogFormVisible=!0},showEdit2:function(t){this.actId=t,this.fetchData()},fetchData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(l["ib"])({page:t.page.currentPage,userId:t.form.id,actId:t.actId});case 3:a=e.sent,i=a.data,s=a.count,t.list=i,t.page.total=s,t.listLoading=!1;case 9:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()},close:function(){this.dialogFormVisible=!1},save:function(){this.dialogFormVisible=!1}}},u=c,d=a("2877"),p=Object(d["a"])(u,n,r,!1,null,null,null),f=p.exports,v={components:{Edit:f},data:function(){return{list:[],listLoading:!0,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},actId:"",invitData:{}}},created:function(){this.fetchData(),this.$route.query.id&&(this.actId=this.$route.query.id,this.fetchData())},methods:{fetchData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(l["hb"])({page:t.page.currentPage,actId:t.actId});case 3:a=e.sent,i=a.data,s=a.count,t.list=i.list,t.invitData=i,t.page.total=s,t.listLoading=!1;case 10:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()},handleEdit:function(t){t.id&&this.$router.push("/rewardInfo?id=".concat(t.id))},handleEdit2:function(t){console.log(t),t.id?(this.$refs["edit"].showEdit(t),this.$refs["edit"].showEdit2(this.actId)):this.$refs["edit"].showEdit()}}},_=v,g=Object(d["a"])(_,i,s,!1,null,null,null);e["default"]=g.exports}}]); |