(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-9e433a02"],{1184:function(t,e,a){"use strict";a.d(e,"g",(function(){return n})),a.d(e,"f",(function(){return o})),a.d(e,"i",(function(){return l})),a.d(e,"d",(function(){return c})),a.d(e,"c",(function(){return u})),a.d(e,"e",(function(){return s})),a.d(e,"j",(function(){return i})),a.d(e,"l",(function(){return d})),a.d(e,"a",(function(){return f})),a.d(e,"b",(function(){return m})),a.d(e,"h",(function(){return p})),a.d(e,"k",(function(){return b}));var r=a("b6bd");function n(t){return Object(r.a)({url:"lottery/list",method:"get",params:t})}function o(t){return Object(r.a)({url:"lottery/list",method:"get",params:t})}function l(t){return Object(r.a)({url:"lottery/set_status/".concat(t.id,"/").concat(t.status),method:"post"})}function c(t){return Object(r.a)({url:"lottery/detail/".concat(t),method:"get"})}function u(t){return Object(r.a)({url:"lottery/add",method:"post",data:t})}function s(t,e){return Object(r.a)({url:"lottery/edit/".concat(t),method:"put",data:e})}function i(t){return Object(r.a)({url:"lottery/set_status/".concat(t.id,"/").concat(t.status),method:"post"})}function d(t){return Object(r.a)({url:"lottery/record/list",method:"get",params:t})}function f(t){return Object(r.a)({url:"lottery/factor/list",method:"get"})}function m(t){return Object(r.a)({url:"lottery/factor/use",method:"post",data:t})}function p(t){return Object(r.a)({url:"lottery/record/deliver",method:"post",data:t})}function b(t){return Object(r.a)({url:"export/luckRecordExport",method:"get",params:t})}},"2cc3":function(t,e,a){},"760f":function(t,e,a){"use strict";a("2cc3")},d2b7:function(t,e,a){"use strict";a.r(e);var r=a("1184"),n={name:"lotteryConfig",data:function(){return{formData:{evaluate:"",pay:"",point:"",follow:""},list:{evaluate:[],pay:[],point:[],follow:[]}}},computed:{},created:function(){this.getList()},methods:{getList:function(){var t=this;Object(r.a)().then((function(e){t.list=e.data,t.formData=e.data.info}))},save:function(){var t=this;Object(r.b)(this.formData).then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))}}},o=(a("760f"),a("2877")),l=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",[e("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[e("div",{staticClass:"acea-row row-middle",attrs:{slot:"title"},slot:"title"},[e("span",{staticClass:"mr20",domProps:{textContent:t._s("抽奖配置")}})])]),e("Card",{staticClass:"mt-16",attrs:{bordered:!1,"dis-hover":""}},[e("Form",{attrs:{model:t.formData,"label-width":100}},[e("FormItem",{attrs:{label:"积分抽奖："}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.formData.point,callback:function(e){t.$set(t.formData,"point",e)},expression:"formData.point"}},t._l(t.list.point,(function(t){return e("Option",{key:t.id,attrs:{value:t.id,label:t.name}})})),1)],1),e("FormItem",{attrs:{label:"支付抽奖："}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.formData.pay,callback:function(e){t.$set(t.formData,"pay",e)},expression:"formData.pay"}},t._l(t.list.pay,(function(t){return e("Option",{key:t.id,attrs:{value:t.id,label:t.name}})})),1)],1),e("FormItem",{attrs:{label:"评价抽奖："}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.formData.evaluate,callback:function(e){t.$set(t.formData,"evaluate",e)},expression:"formData.evaluate"}},t._l(t.list.evaluate,(function(t){return e("Option",{key:t.id,attrs:{value:t.id,label:t.name}})})),1)],1),e("FormItem",{attrs:{label:"关注公众号："}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.formData.follow,callback:function(e){t.$set(t.formData,"follow",e)},expression:"formData.follow"}},t._l(t.list.follow,(function(t){return e("Option",{key:t.id,attrs:{value:t.id,label:t.name}})})),1)],1),e("FormItem",[e("Button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保存")])],1)],1)],1)],1)}),[],!1,null,"7fd79731",null);e.default=l.exports}}]);