(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-451d8524"],{"4b29":function(e,t,r){"use strict";r("9cec")},"7bcf":function(e,t,r){"use strict";r.r(t);var i={name:"widgetImg",components:{uploadFrom:r("b0e7").a},data:function(){return{isChoice:"单选",isChoiceD:"多选",gridPic:{xl:4,lg:4,md:8,sm:12,xs:12},gridBtn:{xl:4,lg:4,md:4,sm:8,xs:8}}},mounted:function(){},methods:{getPicD:function(e){var t=this.$route.query.fodder;if("undefined"!=typeof form_create_helper){var r=window.form_create_helper.get(this.$route.query.fodder)||[];e=e.map((function(e){return e.att_dir}));var i=r.concat(e),o=Array.from(new Set(i));form_create_helper.set(t,o),form_create_helper.close(t)}else{var n=window.parent.$fromSubmit[t].getValue()||[];e=e.map((function(e){return e.att_dir}));var c=n.concat(e),a=Array.from(new Set(c));window.parent.$fromSubmit[t].setValue(a),window.parent.$fromSubmit[t].closeUploadFrame()}},getPic:function(e){var t=this.$route.query.fodder;"undefined"!=typeof form_create_helper?(form_create_helper.set(t,e.att_dir),form_create_helper.close(t)):(window.parent.$fromSubmit[t].setValue(e),window.parent.$fromSubmit[t].closeUploadFrame())}}},o=(r("4b29"),r("2877")),n=Object(o.a)(i,(function(){var e=this._self._c;return e("div",{staticClass:"box"},["dialog"===this.$route.query.fodder||"many"===this.$route.query.type?e("upload-from",{attrs:{isChoice:this.isChoiceD,gridPic:this.gridPic,gridBtn:this.gridBtn},on:{getPicD:this.getPicD}}):e("upload-from",{attrs:{isChoice:this.isChoice,gridPic:this.gridPic,gridBtn:this.gridBtn},on:{getPic:this.getPic}})],1)}),[],!1,null,"1503d355",null);t.default=n.exports},"9cec":function(e,t,r){}}]);