(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ae0ffc9c"],{"60c4":function(e,a,t){},b3ef:function(e,a,t){"use strict";t("60c4")},d6fd:function(e,a,t){"use strict";t.r(a);var i=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl,headers:e.headers,data:e.params,name:e.name,"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,"on-remove":e.handleRemove,limit:1}},[e.fellUrl?[e.isVideo?t("video",{staticClass:"video",attrs:{src:e.fellUrl,controls:""}},[t("source",{attrs:{src:e.fellUrl,type:"video/mp4"}})]):t("img",{staticClass:"avatar",attrs:{src:e.fellUrl}})]:t("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),e.fellUrl?t("i",{staticClass:"el-icon-delete avatar-uploader-icon",on:{click:function(a){return a.stopPropagation(),e.handleRemove(a)}}}):e._e()],2)],1)},l=[],s=(t("d27c"),t("5889"),t("5f87")),o={name:"Index",props:{value:{type:String,default:""},name:{type:String,default:"file"}},data:function(){return{loading:!1,params:{},labelWidth:"120px",isVideo:!1,uploadUrl:window.global.baseURL+"upload/uploadVideo",headers:{Authorization:Object(s["a"])()},fellUrl:this.value}},watch:{value:function(e){this.fellUrl=Array.isArray(e)?e[0]:e,this.isVideo=this.isVideoLink(e)}},methods:{isVideoLink:function(e){var a=/\.(mp4|m4v|webm|mov|avi|wmv)$/i;return a.test(e)},handleRemove:function(e,a){this.fellUrl="",this.$emit("input","")},handleAvatarSuccess:function(e,a){0===e.code?(this.fellUrl=e.data.path,this.$emit("input",e.data.path)):this.$message.error(e.msg),this.loading=!1},beforeAvatarUpload:function(e){this.loading=!0}}},n=o,r=(t("b3ef"),t("1805")),d=Object(r["a"])(n,i,l,!1,null,"3e8c5127",null);a["default"]=d.exports}}]);