chunk-b29c5d76.e6fd3f80.js 7.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b29c5d76"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,a){var i=o(),s=e-i,u=20,l=0;t="undefined"===typeof t?500:t;var c=function e(){l+=u;var o=Math.easeInOutQuad(l,i,s,t);n(o),l<t?r(e):a&&"function"===typeof a&&a()};c()}},"3a73":function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return i})),a.d(t,"d",(function(){return s})),a.d(t,"g",(function(){return u})),a.d(t,"f",(function(){return l})),a.d(t,"h",(function(){return c})),a.d(t,"e",(function(){return p}));var r=a("b775");a("4328");function n(e){return Object(r["a"])({url:"/api-web/luckDrawGroup/list",method:"get",headers:{"content-type":"application/x-www-form-urlencoded"},data:{},params:e})}function o(e){return Object(r["a"])({url:"/api-web/luckDrawGroup/findAll",method:"get",headers:{"content-type":"application/x-www-form-urlencoded"},data:{},params:e})}function i(e){return Object(r["a"])({url:"/api-web/luckDrawGroup/add",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/api-web/luckDrawGroup/update",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/api-web/luckDrawPrize/list",method:"get",headers:{"content-type":"application/x-www-form-urlencoded"},data:{},params:e})}function l(e){return Object(r["a"])({url:"/api-web/luckDrawPrize/batchAdd",method:"post",data:e})}function c(e){return Object(r["a"])({url:"/api-web/luckDrawPrize/update",method:"post",data:e})}function p(e){return Object(r["a"])({url:"/api-web/luckDrawLog/rewardlist",method:"get",headers:{"content-type":"application/x-www-form-urlencoded"},data:{},params:e})}},a0d2:function(e,t,a){},a48e:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("el-page-header",{staticClass:"setTrophy",attrs:{content:"抽奖记录"},on:{back:e.goBack}}),e._v(" "),a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReset}},[a("el-form-item",{attrs:{prop:"userId"}},[a("el-input",{attrs:{maxlength:"9",clearable:"",placeholder:"请输入学生编号",type:"number"},model:{value:e.searchForm.userId,callback:function(t){e.$set(e.searchForm,"userId",e._n(t))},expression:"searchForm.userId"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入奖项名称"},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"time"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":{firstDayOfWeek:1},type:"daterange",clearable:"","range-separator":"至","start-placeholder":"抽奖开始日期","end-placeholder":"抽奖结束日期"},on:{change:e.onDateChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"user.username",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"user.phone",label:"手机号码"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"user.organName",label:"所属分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"luckDrawPrize.name",label:"奖项"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.luckDrawPrize.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createOn",label:"抽奖时间"}})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)},n=[],o=(a("96cf"),a("1da1")),i=(a("c5f6"),a("333d")),s=a("ce96"),u=a("3a73"),l=a("5a0c"),c=a.n(l),p=a("e3eb"),d=a.n(p),m={components:{pagination:i["a"]},data:function(){return{time:null,searchForm:{userId:null,name:null,startDate:null,organId:null,endDate:null},tableList:[],organList:null,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){var e,t=this.$route.query;this.searchForm.groupId=Number(t.groupId);var a,r=new s["a"](this.$route.path);null!==(e=r.get().form)&&void 0!==e&&e.groupId&&(this.searchForm.groupId=null===(a=r.get().form)||void 0===a?void 0:a.groupId);this.__init()},methods:{__init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$store.dispatch("setBranchs"),this.getList();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onDateChange:function(e){var t=this.searchForm;t.startDate=null,t.endDate=null,e&&(t.startDate=c()(e[0]).format("YYYY-MM-DD"),t.endDate=c()(e[1]).format("YYYY-MM-DD")+" 23:59:59")},getList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=Object.assign({},this.searchForm),t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,e.next=5,Object(u["e"])(d()(t)).then((function(e){200==e.code&&e.data&&(a.tableList=e.data.rows,a.pageInfo.total=e.data.total)}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.pageInfo.page=1,this.getList()},onReset:function(){this.$refs.searchForm.resetFields(),this.time=null,this.searchForm.startDate=null,this.searchForm.endDate=null,this.pageInfo.page=1,this.getList()},goBack:function(){this.$router.push("/luckyDraw/lotteryManager")}}},f=m,h=(a("ecd4"),a("2877")),g=Object(h["a"])(f,r,n,!1,null,"0f0675ae",null);t["default"]=g.exports},ecd4:function(e,t,a){"use strict";a("a0d2")}}]);