(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d3c502a"],{"46c1":function(t,e,a){},af41: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",{staticStyle:{"margin-bottom":"20px"}},[a("el-button",{on:{click:function(e){t.dialogVisible=!0}}},[t._v("新增")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.data,"highlight-current-row":"",border:""}},[a("el-table-column",{attrs:{prop:"PrizeName",label:"奖品"}}),a("el-table-column",{attrs:{prop:"PrizeType",label:"类型"}}),a("el-table-column",{attrs:{prop:"Stock",label:"数量"}}),a("el-table-column",{attrs:{prop:"Picture",label:"图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{attrs:{src:t.row.Picture,width:"60",alt:""}})]}}])})],1),a("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"60%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{attrs:{"label-width":"120px",model:t.formData}},[a("el-form-item",{attrs:{label:"名称"}},[a("el-input",{model:{value:t.formData.PrizeName,callback:function(e){t.$set(t.formData,"PrizeName",e)},expression:"formData.PrizeName"}})],1),a("el-form-item",{attrs:{label:"类型"}},[a("el-input",{attrs:{placeholder:"一等奖, 二等奖"},model:{value:t.formData.PrizeType,callback:function(e){t.$set(t.formData,"PrizeType",e)},expression:"formData.PrizeType"}})],1),a("el-form-item",{attrs:{label:"数量"}},[a("el-input-number",{attrs:{min:1},model:{value:t.formData.Stock,callback:function(e){t.$set(t.formData,"Stock",e)},expression:"formData.Stock"}})],1),a("el-form-item",{attrs:{label:"图片"}},[a("el-upload",{attrs:{action:t.uploadAction,"on-success":t.onSuccess,"list-type":"picture"}},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("确定")])],1)],1)],1)],1)},l=[],o=a("cebc"),r=(a("cadf"),a("551c"),a("097d"),{name:"setting",props:["data","uploadAction"],data:function(){return{dialogVisible:!1,formData:{PrizeId:0,PrizeType:"",PrizeName:"",Picture:"",Stock:1}}},methods:{onSubmit:function(){this.$emit("submit",Object(o["a"])({},this.formData)),this.dialogVisible=!1},onSuccess:function(t){this.formData.Picture=t.message.url}}}),n=r,c=(a("c164"),a("2877")),s=Object(c["a"])(n,i,l,!1,null,null,null);s.options.__file="prize.vue";e["default"]=s.exports},c164:function(t,e,a){"use strict";var i=a("46c1"),l=a.n(i);l.a}}]);
//# sourceMappingURL=chunk-6d3c502a.44263295.js.map