(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ab38"],{bd44:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-button",{attrs:{type:"text"}},[a("el-upload",{attrs:{action:"/admin/uploadImg?cardId="+e.cardId+"&imgType="+e.imgType,headers:e.getHeader(),multiple:!1,"show-file-list":!1,accept:".jpg","on-success":e.handleImageSuccess}},[a("el-button",{staticClass:"mt20",style:{width:e.width},attrs:{type:"primary"}},[e._v(" "+e._s(e.text)+" ")])],1)],1)},n=[],c=a("5530"),d=a("5880"),r=(a("c24f"),a("ed08")),i=(a("8237"),{name:"upload-image",props:["text","width","cardId","imgType"],data:function(){return{}},computed:Object(c["a"])({},Object(d["mapGetters"])("user",["userInfo","token"])),methods:{getHeader:function(){var e=this.token,t=this.userInfo.id;return Object(r["getHeader"])(t,e,"uploadimg")},handleImageSuccess:function(e){console.log("handleImageSuccess",e);var t=e.data;t&&this.$emit("onFinish",t.url)}}}),o=i,u=a("2877"),l=Object(u["a"])(o,s,n,!1,null,"3ec86460",null);t["default"]=l.exports}}]);