(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uploadFile/index"],{"24b7":function(e,t,n){},"40f0":function(e,t,n){"use strict";(function(e,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("0c59"),i=n("dc92"),l={props:{title:{type:String,default:"附件"},flag:{type:Boolean,default:!1},fileList:{type:Array,default:[]},isEdit:{type:Boolean,default:!0}},data:function(){return{BASE_IMG_URL:a.BASE_IMG_URL}},methods:{toUploadFile:function(){var t=this;e.chooseMessageFile({count:1,success:function(e){var n=e.tempFiles[0];t.Upload(n.path,n.name)}})},Upload:function(e,t){var n=this;o.uploadFile({url:i.uploadUrl,name:"file",header:{token:o.getStorageSync("token")},filePath:e,formData:{name:t},success:function(e){var a=JSON.parse(e.data);if(1==a.code){var i=a.data;i.name=t,i.file_path=i.url,console.log(i,"上传文件"),n.$emit("uploadFile",i)}else o.showToast({title:"上传失败",icon:"none"})},fail:function(e){console.log(e)}})},toLookFile:function(e){this.openCommonFile(e)},delFile:function(e,t){console.log("删除文件"),this.$emit("delFile",t)}}};t.default=l}).call(this,n("bc2e")["default"],n("543d")["default"])},"8e1f":function(e,t,n){"use strict";var o=n("24b7"),a=n.n(o);a.a},"9d85":function(e,t,n){"use strict";n.r(t);var o=n("ba08"),a=n("c92d");for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("8e1f");var l=n("f0c5"),u=Object(l["a"])(a["default"],o["b"],o["c"],!1,null,"056334eb",null,!1,o["a"],void 0);t["default"]=u.exports},ba08:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},a=[]},c92d:function(e,t,n){"use strict";n.r(t);var o=n("40f0"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=a.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/uploadFile/index-create-component',
    {
        'components/uploadFile/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("9d85"))
        })
    },
    [['components/uploadFile/index-create-component']]
]);
