(window.webpackjsonp=window.webpackjsonp||[]).push([[8],{696:function(t,e,o){},808:function(t,e,o){"use strict";o(696)},817:function(t,e,o){"use strict";o.r(e);o(10),o(9),o(7),o(11),o(12);var n=o(3),d=o(36),r=o.n(d),l=o(604),c=o(605),m=o(606),y=o(4);function f(object,t){var e=object.keys(object);if(object.getownpropertysymbols){var o=object.getownpropertysymbols(object);t&&(o=o.filter((function(t){return object.getownpropertydescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}var h={name:"pcindex",components:{draggable:r.a,pickmodule:m.a,basemodule:c.a,systemmodule:l.a},data:function(){return{editstate:this.$store.getters.editstate,columndata:this.$store.getters.columndata,device:this.$store.getters.device,layoutedit:this.$store.getters.layoutedit,columnedit:this.$store.getters.columnedit,header:json.parse(json.stringify(this.$store.getters.header)),layout:json.parse(json.stringify(this.$store.getters.layout)),footer:json.parse(json.stringify(this.$store.getters.footer)),pcstyle:json.parse(json.stringify(this.$store.getters.pcstyle)),iphonestyle:json.parse(json.stringify(this.$store.getters.iphonestyle)),setlayout:!1,mosort:!1}},computed:function(t){for(var i=1;i0&&void 0!==arguments[0])||arguments[0];this.$parent.$parent.savachange(t)},editeditor:function(data){this.$parent.$parent.editeditor(data)},editsysmoplugin:function(data){if(!this.editstate)return!1;this.$parent.$parent.editsysmoplugin(data)},tageditsysmoplugin:function(){if(!this.editstate)return!1;this.$parent.$parent.tageditsysmoplugin(0)},editplugin:function(data){if(!this.editstate)return!1;this.$parent.$parent.editplugin(data)},tageditplugin:function(){if(!this.editstate)return!1;this.$parent.$parent.tageditplugin(0)},closeeditplugin:function(){this.$parent.$parent.closeeditplugin()},toolwin:function(t){this.$parent.$parent.toolwin(t)},dragstart:function(t){this.$parent.$parent.dragstart(t)},dragchangeview:function(t,e){this.$parent.$parent.dragchangeview(t,e)},dragchangehead:function(t){this.$parent.$parent.dragchangehead(t)},dragchangebody:function(t){this.$parent.$parent.dragchangebody(t)},dragchangefooter:function(t){this.$parent.$parent.dragchangefooter(t)},dragevent:function(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.$parent.$parent.dragevent(t,e,o,n)},togglelayout:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$parent.$parent.togglelayout(t,e)},getmoduledata:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$parent.$parent.getmoduledata(t,e,o)},closemodule:function(i){this.$parent.$parent.closemodule(i)},deladdlayout:function(i,t){this.$parent.$parent.deladdlayout(i,t)},editmodule:function(t,data){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$parent.$parent.editmodule(t,data,e)},editmoitemplugin:function(data){this.$parent.$parent.editmoitemplugin(data)},tagmoitemplugin:function(){this.$parent.$parent.tagmoitemplugin()},editlayout:function(t,data){this.$parent.$parent.editlayout(t,data)}},watch:{header:{handler:function(t,e){this.$store.commit("header",json.parse(json.stringify(t)))},deep:!0},layout:{handler:function(t,e){this.$store.commit("layout",json.parse(json.stringify(t)))},deep:!0},footer:{handler:function(t,e){this.$store.commit("footer",json.parse(json.stringify(t)))},deep:!0},devicemonitor:{handler:function(t,e){this.device=t},deep:!0},editmonitor:{handler:function(t,e){this.editstate=t},deep:!0},columndatamonitor:{handler:function(t,e){this.columndata=t},deep:!0},layouteditmonitor:{handler:function(t,e){this.layoutedit=t},deep:!0},columneditmonitor:{handler:function(t,e){this.columnedit=t},deep:!0}}},v=(o(808),o(1)),component=object(v.a)(h,(function(){var t=this,e=t.$createelement,o=t._self._c||e;return o("div",{ref:"main",staticclass:"main"},["ipad"==t.device||"iphone"==t.device?[o("i-header",{staticclass:"mheader",nativeon:{mouseenter:function(e){return t.editplugin({mheader:1,item:[]})},mouseleave:function(e){return t.tageditplugin()}},scopedslots:t._u([{key:"tool",fn:function(){return[t.editstate?o("el-tooltip",{staticclass:"mheader-setting",class:"mheader-setting-layout-"+t.mheaderlayout,attrs:{effect:"dark",content:t.$t("operate.layout.setupheader"),placement:"bottom"}},[o("i",{staticclass:"icon jz-setup",on:{click:function(e){return t.editlayout("hsty",t.header[0])}}})]):t._e()]},proxy:!0}],null,!1,987426561)}),t._v(" "),o("div",{staticclass:"molist"},t._l(t.layout,(function(e,n){return o("div",{key:n},["view"==e.name?o("div",{staticclass:"layoutbox",attrs:{"data-type":e.view.length+"_"+t.iphonestyle.csty[e.id].sty.type,"data-id":e.id},on:{mouseenter:function(o){return t.editplugin({type:"layout",coord:"csty",index:[n],item:[e]})},mouseleave:function(e){return t.tageditplugin()}}},t._l(e.view,(function(d,r){return o("div",{key:r,staticclass:"column",attrs:{"data-id":d.id},on:{mouseenter:function(o){return t.editplugin({type:"layout",coord:"csty",index:[n,r],item:[e,d]})}}},[d.mo.length?o("div",t._l(d.mo,(function(l,c){return o("div",{key:c,ref:l.mid,refinfor:!0,staticclass:"mo",class:l.data.cssclass,attrs:{"data-id":l.mid,id:l.data.cssid},on:{mouseenter:function(o){return t.editplugin({type:"layout",coord:"csty",index:[n,r,c],item:[e,d,l]})}}},[o("base-module",{attrs:{data:{type:"csty",item:e,mitem:l}},on:{editmodule:t.editmodule,slideverify:t.slideverify}})],1)})),0):o("div",{staticclass:"nomodule"},[o("i",{staticclass:"icon jz-jia"})])])})),0):t._e()])})),0),t._v(" "),o("div",{staticclass:"i-footer"},t._l(t.footer,(function(e,n){return o("div",{key:n},["view"==e.name?o("div",{staticclass:"layoutbox",attrs:{"data-type":e.view.length+"_"+t.iphonestyle.fsty[e.id].sty.type,"data-id":e.id},on:{mouseenter:function(o){return t.editplugin({type:"footer",coord:"fsty",index:[n],item:[e]})},mouseleave:function(e){return t.tageditplugin()}}},t._l(e.view,(function(d,r){return o("div",{key:r,staticclass:"column",attrs:{"data-id":d.id},on:{mouseenter:function(o){return t.editplugin({type:"footer",coord:"fsty",index:[n,r],item:[e,d]})}}},[d.mo.length?o("div",t._l(d.mo,(function(l,c){return o("div",{key:c,ref:l.mid,refinfor:!0,staticclass:"mo",class:l.data.cssclass,attrs:{"data-id":l.mid,id:l.data.cssid},on:{mouseenter:function(o){return t.editplugin({type:"footer",coord:"fsty",index:[n,r,c],item:[e,d,l]})}}},[o("base-module",{attrs:{data:{type:"fsty",item:e,mitem:l}},on:{editmodule:t.editmodule,slideverify:t.slideverify}})],1)})),0):o("div",{staticclass:"nomodule"},[o("i",{staticclass:"icon jz-jia"})])])})),0):t._e()])})),0)]:"pc"==t.device?[t.columndata&&t.columndata.param.header?o("div",{staticclass:"hbox"},[t.header[0].system.head||t.editstate?o("div",{staticclass:"headermain"}):t._e(),t._v(" "),t.header[0].system.head||t.editstate?o("div",{staticclass:"header",attrs:{"data-id":t.header[0].id,"data-fixed":t.header[0].system.fixedtop?1:0}},[o("div",{class:t.layoutedit?"editstatus":t.columnedit?"columnedit":""},[t._l(t.header,(function(e,n){return o("el-row",{key:n,on:{mouseleave:function(e){return t.tageditplugin()}},nativeon:{mouseenter:function(o){return t.editplugin({type:"header",coord:"hsty",index:[n],item:[e]})}}},t._l(e.view,(function(d,r){return o("el-col",{key:r,class:d.data.cssclass,attrs:{span:d.line,"data-id":d.id,"data-index":r,id:d.data.cssid},nativeon:{mouseenter:function(o){return t.editplugin({type:"header",coord:"hsty",index:[n,r],item:[e,d]})}}},[d.mo.length?o("draggable",{staticclass:"con modulebox mogroup ",attrs:{options:t.dragheader},on:{start:t.dragstart,change:t.dragchangehead,end:t.savachange},model:{value:d.mo,callback:function(e){t.$set(d,"mo",e)},expression:"citem.mo"}},t._l(d.mo,(function(l,c){return o("div",{key:c,ref:l.mid,refinfor:!0,staticclass:"mo",class:[{momove:t.editstate},l.data.cssclass],attrs:{"data-id":l.mid,id:l.data.cssid,index:n+"_"+r+"_"+c},on:{mouseenter:function(o){return t.editplugin({type:"header",coord:"hsty",index:[n,r,c],item:[e,d,l]})}}},[o("base-module",{attrs:{data:{type:"hsty",item:e,mitem:l}},on:{editmodule:t.editmodule,editmoitemplugin:t.editmoitemplugin,tagmoitemplugin:t.tagmoitemplugin,slideverify:t.slideverify}})],1)})),0):o("draggable",{staticclass:"modulebox nomodule",attrs:{options:t.dragheader},on:{end:t.savachange},model:{value:d.mo,callback:function(e){t.$set(d,"mo",e)},expression:"citem.mo"}},[o("div",{staticclass:"addbtn"},[o("em",{on:{click:function(e){return t.toolwin("添加")}}})])]),t._v(" "),r!=e.view.length-1&&t.layoutedit?o("span",{staticclass:"draghandle",on:{mousedown:function(e){return t.dragevent("header",e,r,"null")}}},[o("i",{staticclass:"icon jz-paixu"})]):t._e()],1)})),1)})),t._v(" "),o("div",{directives:[{name:"show",rawname:"v-show",value:!t.header[0].system.head,expression:"!header[0].system.head"}],staticclass:"h-fillbox",on:{mouseenter:function(e){return t.editplugin({type:"header",coord:"hsty",index:0,item:[t.header[0]]})},mouseleave:function(e){return t.tageditplugin()}}},[o("span",[t._v("头部已隐藏")]),t._v(" "),o("el-switch",{attrs:{"active-color":"#0063f8"},model:{value:t.header[0].system.head,callback:function(e){t.$set(t.header[0].system,"head",e)},expression:"header[0].system.head"}})],1)],2)]):t._e()]):t._e(),t._v(" "),o("div",{staticclass:"content"},[o("div",{staticclass:"layout"},[t.layout.length?o("draggable",{class:t.layoutedit?"editstatus":t.columnedit?"columnedit":"",attrs:{options:t.draglayout},on:{change:function(e){return t.dragchangeview(e,"layout")}},model:{value:t.layout,callback:function(e){t.layout=e},expression:"layout"}},[t._l(t.layout,(function(e,n){return["view"==e.name?o("div",{key:n,staticclass:"gmain",class:"addmodule"==e.name?"":e.data.cssclass,attrs:{"data-id":"addmodule"==e.name?"":e.id,id:"addmodule"==e.name?"":e.id},on:{mouseenter:function(o){return t.editplugin({type:"layout",coord:"csty",index:[n],item:[e]})},mouseleave:function(e){return t.tageditplugin()}}},["addmodule"!=e.name&&"video"==e.data.type&&""!=e.data.video?o("div",{staticclass:"videobg"},[o("video",{attrs:{src:e.data.video,poster:e.data.videopic,autoplay:"",muted:"",loop:""},domprops:{muted:!0}})]):t._e(),t._v(" "),o("div",{staticclass:"layoutbg"}),t._v(" "),o("el-row",{attrs:{gutter:e.data.space}},t._l(e.view,(function(d,r){return o("el-col",{key:r,class:d.data.cssclass,attrs:{span:d.line,"data-id":d.id,id:d.data.cssid},nativeon:{mouseenter:function(o){return t.editplugin({type:"layout",coord:"csty",index:[n,r],item:[e,d]})}}},[d.mo.length?o("draggable",{staticclass:"modulebox mogroup",attrs:{disabled:t.mosort,options:t.dragmodule},on:{start:t.closeeditplugin,change:t.dragchangebody},model:{value:d.mo,callback:function(e){t.$set(d,"mo",e)},expression:"citem.mo"}},t._l(d.mo,(function(l,c){return o("div",{key:c,ref:l.mid,refinfor:!0,staticclass:"mo",class:[{momove:t.editstate},l.data.cssclass],attrs:{"data-id":l.mid,id:l.data.cssid,index:n+"_"+r+"_"+c},on:{mouseenter:function(o){return t.editplugin({type:"layout",coord:"csty",index:[n,r,c],item:[e,d,l]})}}},[o("base-module",{attrs:{data:{type:"csty",item:e,mitem:l}},on:{editmodule:t.editmodule,editmoitemplugin:t.editmoitemplugin,tagmoitemplugin:t.tagmoitemplugin,slideverify:t.slideverify}})],1)})),0):o("draggable",{staticclass:"modulebox nomodule",attrs:{options:t.dragmodule},on:{end:t.savachange},model:{value:d.mo,callback:function(e){t.$set(d,"mo",e)},expression:"citem.mo"}},[o("div",{staticclass:"addbtn"},[o("em",{on:{click:function(e){return t.toolwin("添加")}}})])]),t._v(" "),o("div",{staticclass:"columnbg"}),t._v(" "),r!=e.view.length-1&&t.layoutedit?o("span",{staticclass:"draghandle",on:{mousedown:function(e){return t.dragevent("layout",e,n,r)}}},[o("i",{staticclass:"icon jz-paixu"})]):t._e()],1)})),1)],1):"addmodule"==e.name&&t.editstate?o("div",{key:n,staticclass:"addmodule"},[o("div",{staticclass:"setlayout"},[o("span",{staticclass:"close",on:{click:function(e){return t.deladdlayout(n,"layout")}}}),t._v(" "),o("pickmodule",{attrs:{type:"layout",index:n},on:{getmoduledata:t.getmoduledata}})],1)]):t._e()]}))],2):t._e(),t._v(" "),t.editstate?o("div",{staticclass:"addmodule"},[t.setlayout?o("div",{staticclass:"setlayout"},[o("span",{staticclass:"close",on:{click:t.togglelayout}}),t._v(" "),o("pickmodule",{attrs:{type:"add"},on:{getmoduledata:t.getmoduledata}})],1):o("div",{staticclass:"addcontent"},[o("font",{staticclass:"addicon",on:{click:t.togglelayout}}),t._v(" "),o("p",{staticclass:"dec"},[t._v(t._s(t.$t("module.adddec")))])],1)]):t._e()],1)]),t._v(" "),t.columndata&&t.columndata.param.footer?o("div",{staticclass:"fbox"},[o("div",{staticclass:"layout"},[t.footer.length?o("draggable",{class:t.layoutedit?"editstatus":t.columnedit?"columnedit":"",attrs:{options:t.dragfooter},on:{change:function(e){return t.dragchangeview(e,"footer")}},model:{value:t.footer,callback:function(e){t.footer=e},expression:"footer"}},[t._l(t.footer,(function(e,n){return["view"==e.name?o("div",{key:n,staticclass:"gmain",class:"addmodule"==e.name?"":e.data.cssclass,attrs:{"data-id":"addmodule"==e.name?"":e.id,id:"addmodule"==e.name?"":e.data.cssid},on:{mouseenter:function(o){return t.editplugin({type:"footer",coord:"fsty",index:[n],item:[e]})},mouseleave:function(e){return t.tageditplugin()}}},["addmodule"!=e.name&&"video"==e.data.type&&""!=e.data.video?o("div",{staticclass:"videobg"},[o("video",{attrs:{src:e.data.video,poster:e.data.videopic,autoplay:"",muted:"",loop:""},domprops:{muted:!0}})]):t._e(),t._v(" "),o("div",{staticclass:"layoutbg"}),t._v(" "),o("el-row",{attrs:{gutter:e.data.space}},t._l(e.view,(function(d,r){return o("el-col",{key:r,class:d.data.cssclass,attrs:{span:d.line,"data-id":d.id,id:d.data.cssid},nativeon:{mouseenter:function(o){return t.editplugin({type:"footer",coord:"fsty",index:[n,r],item:[e,d]})}}},[d.mo.length?o("draggable",{staticclass:"modulebox mogroup",attrs:{disabled:t.mosort,options:t.dragmodule},on:{start:t.closeeditplugin,change:t.dragchangefooter},model:{value:d.mo,callback:function(e){t.$set(d,"mo",e)},expression:"citem.mo"}},t._l(d.mo,(function(l,c){return o("div",{key:c,ref:l.mid,refinfor:!0,staticclass:"mo",class:[l.data.cssclass,"copyright"!=l.type&&t.editstate?"momove":""],attrs:{"data-id":l.mid,id:l.data.cssid,index:n+"_"+r+"_"+c},on:{mouseenter:function(o){return t.editplugin({type:"footer",coord:"fsty",index:[n,r,c],item:[e,d,l]})}}},[o("base-module",{attrs:{data:{type:"fsty",item:e,mitem:l}},on:{editmodule:t.editmodule,editmoitemplugin:t.editmoitemplugin,tagmoitemplugin:t.tagmoitemplugin,slideverify:t.slideverify}})],1)})),0):o("draggable",{staticclass:"modulebox nomodule",attrs:{options:t.dragmodule},on:{end:t.savachange},model:{value:d.mo,callback:function(e){t.$set(d,"mo",e)},expression:"citem.mo"}},[o("div",{staticclass:"addbtn"},[o("em",{on:{click:function(e){return t.toolwin("添加")}}})])]),t._v(" "),o("div",{staticclass:"columnbg"}),t._v(" "),r!=e.view.length-1&&t.layoutedit?o("span",{staticclass:"draghandle",on:{mousedown:function(e){return t.dragevent("footer",e,n,r)}}},[o("i",{staticclass:"icon jz-paixu"})]):t._e()],1)})),1)],1):"addmodule"==e.name&&t.editstate?o("div",{key:n,staticclass:"addmodule"},[o("div",{staticclass:"setlayout"},[o("span",{staticclass:"close",on:{click:function(e){return t.deladdlayout(n,"footer")}}}),t._v(" "),o("pickmodule",{attrs:{type:"footer",index:n},on:{getmoduledata:t.getmoduledata}})],1)]):t._e()]}))],2):t._e()],1)]):t._e()]:t._e(),t._v(" "),o("system-module",{on:{editsysmoplugin:t.editsysmoplugin,tageditsysmoplugin:t.tageditsysmoplugin}})],2)}),[],!1,null,"2477c09c",null);e.default=component.exports}}]);