webpackJsonp([45],{AytH:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={data:function(){return{visible:!1,url:"",num:0,successNum:0,fileList:[],folder:"系统文件"}},methods:{init:function(t){this.url=this.$http.adornUrl("/ftp/file/upload?token="+this.$cookie.get("token")+"&folder="+this.folder),console.log(this.url),this.visible=!0},beforeUploadHandle:function(t){this.num++},successHandle:function(t,e,s){var i=this;this.fileList=s,console.log(this.fileList),this.successNum++,t&&0===t.code?this.num===this.successNum&&this.$confirm("操作成功, 是否继续操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).catch(function(){i.visible=!1}):this.$message.error(t.msg)},closeHandle:function(){this.fileList=[],this.$emit("refreshDataList")}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:"上传文件","close-on-click-modal":!1,visible:t.visible},on:{close:t.closeHandle,"update:visible":function(e){t.visible=e}}},[s("el-upload",{staticStyle:{"text-align":"center"},attrs:{drag:"",action:t.url,"before-upload":t.beforeUploadHandle,"on-success":t.successHandle,multiple:"","file-list":t.fileList}},[s("i",{staticClass:"el-icon-upload"}),t._v(" "),s("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处，或"),s("em",[t._v("点击上传")])]),t._v(" "),s("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只支持jpg、png、gif格式的图片！")])])],1)},staticRenderFns:[]},n=s("VU/8")(i,l,!1,null,null,null);e.default=n.exports}});