chunk-68e57d78.6f72e89b.js 1.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68e57d78"],{"528c":function(e,r,t){},"7bcf":function(e,r,t){"use strict";t.r(r);var o=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"box"},["dialog"===this.$route.query.fodder||"many"===this.$route.query.type?t("upload-from",{attrs:{isChoice:e.isChoiceD,gridPic:e.gridPic,gridBtn:e.gridBtn},on:{getPicD:e.getPicD}}):t("upload-from",{attrs:{isChoice:e.isChoice,gridPic:e.gridPic,gridBtn:e.gridBtn},on:{getPic:e.getPic}})],1)},i=[],d=t("b0e7"),c={name:"widgetImg",components:{uploadFrom:d["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(){console.log(this.$route.query.fodder)},methods:{getPicD:function(e){if("dialog"===this.$route.query.fodder){for(var r=0;r<e.length;r++)nowEditor.editor.execCommand("insertimage",{src:e[r].att_dir});nowEditor.dialog.close(!0)}else{var t=window.form_create_helper.get(this.$route.query.fodder)||[];e=e.map((function(e){return e.att_dir}));var o=t.concat(e),i=Array.from(new Set(o));form_create_helper.set(this.$route.query.fodder,i),form_create_helper.close(this.$route.query.fodder)}},getPic:function(e){form_create_helper.set(this.$route.query.fodder,e.satt_dir),form_create_helper.close(this.$route.query.fodder)}}},n=c,s=(t("9dff"),t("2877")),a=Object(s["a"])(n,o,i,!1,null,"1f4642a7",null);r["default"]=a.exports},"9dff":function(e,r,t){"use strict";var o=t("528c"),i=t.n(o);i.a}}]);