(window.webpackjsonp=window.webpackjsonp||[]).push([[0],{604:function(t,e,o){"use strict";o(10),o(9),o(7),o(11),o(12);var n=o(3),m=o(4);function r(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 d={name:"sysmodule",props:["data"],computed:function(t){for(var i=1;i2&&void 0!==arguments[2]?arguments[2]:null;this.$emit("editmodule",t,data,e)},editmoitemplugin:function(t,data){this.$emit("editmoitemplugin",t,data)},tagmoitemplugin:function(){this.$emit("tagmoitemplugin")}},watch:{data:{handler:function(t,e){this.getdata=t},deep:!0},devicemonitor:{handler:function(t,e){this.device=t},deep:!0},editmonitor:{handler:function(t,e){this.editstate=t},deep:!0}}},c=o(1),component=object(c.a)(d,(function(){var t=this,e=t.$createelement,o=t._self._c||e;return o("div",["logo"==t.getdata.mitem.name&&t.getdata.item.system&&t.getdata.item.system.logo?o("m-logo",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"菜单"==t.getdata.mitem.name&&t.getdata.item.system&&t.getdata.item.system.nav?o("m-menu",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"登录"==t.getdata.mitem.name&&t.getdata.item.system&&t.getdata.item.system.login?o("m-login",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"语言"==t.getdata.mitem.name&&t.getdata.item.system&&t.getdata.item.system.language?o("m-language",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"版权"==t.getdata.mitem.name?o("m-copyright",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"文章详情"==t.getdata.mitem.name?o("m-docdetails",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"内页产品分类"==t.getdata.mitem.name&&"pc"==t.device?o("m-pronav",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"内页产品列表"==t.getdata.mitem.name&&"pc"==t.device?o("m-prolist",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"产品详情"==t.getdata.mitem.name&&"pc"==t.device?o("m-prodetails",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{editmoitemplugin:t.editmoitemplugin,tagmoitemplugin:t.tagmoitemplugin}}):t._e(),t._v(" "),"内页文章分类"==t.getdata.mitem.name&&"pc"==t.device?o("m-docnav",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"内页文章列表"==t.getdata.mitem.name&&"pc"==t.device?o("m-doclist",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"内页文章列表"==t.getdata.mitem.name&&"pc"!=t.device?o("i-m-doclist",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"产品详情"==t.getdata.mitem.name&&"pc"!=t.device?o("i-m-prodetails",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"内页产品列表"==t.getdata.mitem.name&&"pc"!=t.device?o("i-m-prolist",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"标题"==t.getdata.mitem.name?o("m-title",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"文本"==t.getdata.mitem.name?o("m-text",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"图片"==t.getdata.mitem.name?o("m-img",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"视频"==t.getdata.mitem.name?o("m-video",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"按钮"==t.getdata.mitem.name?o("m-button",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"分割线"==t.getdata.mitem.name?o("m-line",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"图文展示"==t.getdata.mitem.name?o("m-imgtext",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"轮播图"==t.getdata.mitem.name?o("m-focusimg",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"多图列表"==t.getdata.mitem.name?o("m-multiple",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"产品分类"==t.getdata.mitem.name?o("m-productnav",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"文章分类"==t.getdata.mitem.name?o("m-articlenav",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"留言"==t.getdata.mitem.name?o("m-message",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"地图"==t.getdata.mitem.name?o("m-map",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"表单"==t.getdata.mitem.name?o("m-form",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{editmoitemplugin:t.editmoitemplugin,tagmoitemplugin:t.tagmoitemplugin,fun:t.editmodule,slideverify:t.slideverify}}):t._e(),t._v(" "),"图册"==t.getdata.mitem.name&&"pc"==t.device?o("m-photoalbum",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"产品列表"==t.getdata.mitem.name&&"pc"==t.device?o("m-productlist",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"文章列表"==t.getdata.mitem.name&&"pc"==t.device?o("m-articlelist",{attrs:{data:{mo:t.getdata.mitem,type:t.getdata.type}},on:{fun:t.editmodule}}):t._e(),t._v(" "),"图册"==t.getdata.mitem.name&&"pc"!=t.device?o("i-m-photoalbum",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"产品列表"==t.getdata.mitem.name&&"pc"!=t.device?o("i-m-productlist",{attrs:{data:{mo:t.getdata.mitem}}}):t._e(),t._v(" "),"文章列表"==t.getdata.mitem.name&&"pc"!=t.device?o("i-m-articlelist",{attrs:{data:{mo:t.getdata.mitem}}}):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},606:function(t,e,o){"use strict";o(183);var n=o(8),m={props:["type","index"],name:"pickmodule",data:function(){return{swiperload:!1,getindex:this.index,gettype:this.type,material:{},picklayout:{active:0,tab:[this.$t("module.layout"),this.$t("module.material"),this.$t("module.me")],type:[{name:"type1",element:["60"]},{name:"type2",element:["30","30"]},{name:"type3",element:["20","20","20"]},{name:"type4",element:["15","15","15","15"]},{name:"type5",element:["20","40"]},{name:"type6",element:["40","20"]},{name:"type7",element:["15","15","30"]},{name:"type8",element:["30","15","15"]},{name:"type9",element:["15","30","15"]},{name:"type10",element:["12","12","12","12","12"]},{name:"type11",element:["10","10","10","10","10","10"]},{name:"type12",element:["10","40","10"]}]},materialactive:0,collect:!1,templateactive:0,templatetabs:[this.$t("module.ordinary"),this.$t("module.global")],moduledata:json.parse(json.stringify(this.$store.getters.moduledata)),template:json.parse(json.stringify(this.$store.getters.template)),search:"",layoutdata:n.a.blayout,columndata:n.a.column,options:{autoplay:!1,loop:!1,simulatetouch:!1,spacebetween:20,grabcursor:!0,slidespergroup:5,slidesperview:5,navigation:{nextel:".bullet-next",prevel:".bullet-prev"},observer:!0,observeparents:!0,disableoninteraction:!1},scalesize:"?x-oss-process=image/resize,m_lfit,w_270,h_160,limit_0"}},computed:{templatemonitor:function(){return this.$store.getters.template}},mounted:function(){this.getmaterialrow()},methods:{getmaterialrow:function(){var t=this,data={pagerows:200,page:1};0!=t.materialactive&&(data.class_id=t.materialactive),""!=t.search&&(data.keyword=t.search),t.$axios.post(t.$api.getmaterialrow,data).then((function(e){200==e.code&&(t.material=json.parse(json.stringify(e.data)))}))},getrowcode:function(t){var e=this;e.$axios.post(e.$api.getrowcode,{r_id:t.r_id,u_id:t.user_id}).then((function(t){200==t.code&&e.insert(t.data)}))},tagclassify:function(t){this.materialactive=t,this.getmaterialrow()},picktagfun:function(t,i){var e=this;switch(t){case"layout":e.picklayout.active=i,e.swiperload=1==i;break;case"material":e.materialactive=i;break;case"template":e.templateactive=i}},collectmo:function(t){this.$axios.post(this.$api.rowfavoriteup,{id:t.id,is_favorite:t.favorite?0:1}).then((function(e){200==e.code&&(t.favorite=!t.favorite)}))},collecttag:function(){this.collect=!this.collect},showmedia:function(t){this.$fn.showmedia("img",t)},setlayouttype:function(i){var t=this,e="layout"==t.gettype||"add"==t.gettype?"csty":"fsty",view=[];t.picklayout.type[i].element.foreach((function(i){var o=t.$fn.getrannum();view.push({id:o,line:parseint(i),data:t.columndata.data,mo:[]}),t.editmosty("add",{id:o,type:"column",sty:t.columndata,coord:e})}));var o={id:t.$fn.getrannum(),name:"view",data:t.layoutdata.data,view:view};t.editmosty("add",{id:o.id,type:"view",sty:t.layoutdata,coord:e}),t.$emit("getmoduledata",o,t.gettype,t.getindex)},preview:function(){},insert:function(data){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this,o="layout"==e.gettype||"add"==e.gettype?"csty":"fsty",param={};"system"==t?(param.r_id=data.r_id,param.u_id=data.user_id):param.id=data,e.$fn.loading.show(),e.$axios.post(e.$api.getrow,param).then((function(t){if(200==t.code){var n=json.parse(t.data),m=e.$fn.getrannum();e.editmosty("add",{id:m,type:"view",sty:{pc:n.sty.pc[n.code.id].sty,iphone:n.sty.iphone[n.code.id].sty},coord:o}),n.code.id=m,n.code.view.foreach((function(t,m){var r=e.$fn.getrannum();e.editmosty("add",{id:r,type:"column",sty:{pc:n.sty.pc[t.id].sty,iphone:n.sty.iphone[t.id].sty},coord:o}),t.id=r,t.mo.foreach((function(t,m){var r=e.$fn.getrannum();e.editmosty("add",{id:r,type:t.type,sty:{pc:n.sty.pc[t.mid].sty,iphone:n.sty.iphone[t.mid].sty},coord:o}),"form"==t.type&&e.$store.commit("formstyle",{type:"inititem",coord:o,data:{id:r,sty:n.sty.form[t.mid]}}),t.mid=r}))})),e.$emit("getmoduledata",n.code,e.gettype,e.getindex),e.$fn.loading.hide()}}))},del:function(t){var e=this,o="layout"==e.gettype||"add"==e.gettype?"csty":"fsty";e.$confirm(e.$t("message.deltemplate"),e.$t("common.hint"),{confirmbuttontext:e.$t("common.define"),cancelbuttontext:e.$t("common.cancel"),type:"warning"}).then((function(){e.$axios.post(e.$api.delrow,{id:t.id}).then((function(n){200==n.code&&(e.$store.commit("template",json.parse(json.stringify({type:"remove",data:t,coord:o}))),e.$message({message:e.$t("message.delsucceed"),type:"success"}))}))}))},editmosty:function(t,data){var e=this;switch(t){case"add":e.$store.commit("pcstyle",{type:"add",data:{id:data.id,type:data.type,sty:data.sty.pc},coord:data.coord}),e.$store.commit("iphonestyle",{type:"add",data:{id:data.id,type:data.type,sty:data.sty.iphone},coord:data.coord});break;case"remove":e.$store.commit("pcstyle",{type:"remove",data:{id:data.id},coord:data.coord}),e.$store.commit("iphonestyle",{type:"remove",data:{id:data.id},coord:data.coord})}}},watch:{templatemonitor:{handler:function(t){this.template=json.parse(json.stringify(t))},deep:!0}}},r=o(1),component=object(r.a)(m,(function(){var t=this,e=t.$createelement,o=t._self._c||e;return o("div",[o("div",{staticclass:"tabs"},[o("ul",t._l(t.picklayout.tab,(function(e,n){return o("li",{key:n,class:t.picklayout.active==n?"active":"",domprops:{textcontent:t._s(e)},on:{click:function(e){return t.picktagfun("layout",n)}}})})),0)]),t._v(" "),o("div",{staticclass:"con"},[t.picklayout.tab[t.picklayout.active]==t.$t("module.layout")?o("div",{staticclass:"layoutlist"},[o("dl",t._l(t.picklayout.type,(function(e,n){return o("dd",{key:n,class:e.name},t._l(e.element,(function(e,m){return o("em",{key:m,on:{click:function(e){return t.setlayouttype(n)}}})})),0)})),0)]):t.picklayout.tab[t.picklayout.active]==t.$t("module.material")?o("div",{staticclass:"materiallist"},[o("div",{staticclass:"stabs"},[o("div",{staticclass:"left"},[o("dl",t._l(t.material.class,(function(e,n){return o("dd",{key:n,class:0==t.materialactive&&0==n||t.materialactive==e.id?"active":"",domprops:{textcontent:t._s(e.title)},on:{click:function(o){return t.tagclassify(e.id)}}})})),0)])]),t._v(" "),t.swiperload?o("div",{staticclass:"imggroup"},[o("swiper",{staticclass:"swiper",attrs:{options:t.options}},t._l(t.material.data,(function(e,n){return o("swiper-slide",{key:n},[o("div",{staticclass:"pic"},[o("img",{attrs:{src:e.small_pic+t.scalesize}})]),t._v(" "),o("span",{staticclass:"info"},[o("i",{staticclass:"icon jz-zoomin",attrs:{title:"预览"},on:{click:function(o){return t.showmedia(e.pic)}}}),t._v(" "),o("i",{staticclass:"icon jz-download",attrs:{title:"插入"},on:{click:function(o){return t.insert(e,"system")}}})])])})),1),t._v(" "),o("div",{staticclass:"bullet-next",attrs:{slot:"button-next"},slot:"button-next"},[o("i",{staticclass:"el-icon-arrow-right"})]),t._v(" "),o("div",{staticclass:"bullet-prev",attrs:{slot:"button-prev"},slot:"button-prev"},[o("i",{staticclass:"el-icon-arrow-left"})])],1):t._e()]):t.picklayout.tab[t.picklayout.active]==t.$t("module.me")?o("div",{staticclass:"memodule"},[t.template.global.length?o("div",{staticclass:"modulelist"},[o("dl",{staticclass:"listtit"},[o("dt",[o("span",{staticclass:"name"},[t._v(t._s(t.$t("module.modulename")))]),t._v(" "),o("span",{staticclass:"date"},[t._v(t._s(t.$t("module.savedate")))]),t._v(" "),o("span",{staticclass:"operation"},[t._v(t._s(t.$t("module.operate")))])])]),t._v(" "),o("dl",{staticclass:"listcon"},t._l(t.template.global,(function(e,n){return o("dd",{key:n},[o("span",{staticclass:"name",attrs:{title:e.name},domprops:{textcontent:t._s(e.name)}}),t._v(" "),o("span",{staticclass:"date",domprops:{textcontent:t._s(e.create_time)}}),t._v(" "),o("span",{staticclass:"operation"},[o("a",{attrs:{href:"javascript:;"},domprops:{textcontent:t._s(t.$t("module.insert"))},on:{click:function(o){return t.insert(e.id)}}}),t._v(" "),o("a",{attrs:{href:"javascript:;"},domprops:{textcontent:t._s(t.$t("module.del"))},on:{click:function(o){return t.del(e)}}})])])})),0)]):o("div",{staticclass:"nomodule"},[o("p",[t._v(t._s(t.$t("module.nomodule")))]),t._v(" "),o("span",[t._v(t._s(t.$t("module.savedec1"))),o("em",{staticclass:"icon jz-baocun"}),t._v(t._s(t.$t("module.savedec2")))])])]):t._e()])])}),[],!1,null,null,null);e.a=component.exports}}]);