webpackJsonp([76],{dnsO:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s("uAC3"),l=s.n(i),a={data:function(){return{visible:!1,url:"",fileList:[]}},methods:{init:function(){this.url=window.SITE_CONFIG.baseURL+"/act/process/deploy?token="+l.a.get("token"),this.fileList=[],this.visible=!0},beforeUploadHandle:function(e){if("application/zip"!==e.type&&"text/xml"!==e.type&&!/.+\.bar$/.test(e.name)&&!/.+\.bpmn$/.test(e.name))return this.$message.error("只支持zip、xml、bar、bpmn格式文件！"),!1},successHandle:function(e,t,s){var i=this;e&&0===e.code&&(this.fileList=s,this.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){i.visible=!1,i.$emit("refreshDataList")}}))}}},n={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{title:"部署流程文件","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[s("el-upload",{staticStyle:{"text-align":"center"},attrs:{drag:"",action:e.url,name:"processFile","before-upload":e.beforeUploadHandle,"on-success":e.successHandle,"file-list":e.fileList}},[s("i",{staticClass:"el-icon-upload"}),e._v(" "),s("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处，或"),s("em",[e._v("点击上传")])]),e._v(" "),s("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只支持zip、xml、bar、bpmn格式文件！")])])],1)},staticRenderFns:[]},o=s("C7Lr")(a,n,!1,null,null,null);t.default=o.exports}});