You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
23 KiB
1 line
23 KiB
12 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-160ceedc"],{"0bf5":function(t,s,a){"use strict";a.r(s);var i=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"divBox"},[a("div",[1==t.cardShow||2==t.cardShow?a("div",{staticClass:"product_tabs",style:"padding-right:"+(t.menuCollapse?105:20)+"px"},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",[a("el-button",{staticClass:"bnt",attrs:{type:"primary",loading:t.loadingExist},on:{click:t.submit}},[t._v("保存")]),t._v(" "),a("el-button",{staticClass:"bnt ml20",on:{click:t.reast}},[t._v("重置")])],1)])]):t._e()]),t._v(" "),a("el-row",{staticClass:"ivu-mt box-wrapper"},[a("el-col",{staticClass:"left-wrapper",attrs:{span:3}},[a("el-menu",{attrs:{"default-active":"0",width:"auto"}},t._l(t.menuList,(function(s,i){return a("el-menu-item",{key:i,attrs:{name:s.id,index:i.toString()},nativeOn:{click:function(s){return t.bindMenuItem(i)}}},[t._v("\n "+t._s(s.name)+"\n ")])})),1)],1),t._v(" "),a("el-col",{staticClass:"right-wrapper",attrs:{span:21}},[0==t.cardShow?a("el-card",{attrs:{shadow:"never"}},[0==t.cardShow?a("el-row",[t.isDiy?a("el-col",{staticStyle:{width:"350px",height:"550px","margin-right":"10px",position:"relative"}},[a("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{id:"iframe",src:t.imgUrl,frameborder:"0"}}),t._v(" "),a("div",{staticClass:"mask"})]):t._e(),t._v(" "),a("el-col",{staticClass:"table",attrs:{span:24}},[a("div",{staticClass:"acea-row row-between-wrapper"},[a("el-row",{attrs:{type:"flex"}},[a("el-col",t._b({},"el-col",t.grid,!1),[a("div",{staticClass:"button acea-row row-middle"},[a("el-button",{staticStyle:{"font-size":"12px"},attrs:{type:"primary"},on:{click:t.add}},[a("i",{staticClass:"el-icon-plus",staticStyle:{"margin-right":"4px"}}),t._v("添加")])],1)])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"tables",attrs:{data:t.list,size:"mini"}},[a("el-table-column",{attrs:{prop:"id",label:"页面ID","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板名称","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"add_time",label:"添加时间","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"update_time",label:"更新时间","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(s){return[(s.row.status||s.row.is_diy)&&0==s.row.is_default?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.edit(s.row)}}},[t._v("编辑")]):t._e(),t._v(" "),1!=s.row.id&&s.row.is_diy&&0==s.row.is_default?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.del(s.row.id,s.$index)}}},[t._v("删除")]):t._e(),t._v(" "),1!=s.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.setStatus(s.row,s.$index)}}},[t._v("设为首页")]):t._e(),t._v(" "),s.row.is_diy?t._e():a("div",{staticStyle:{display:"inline-block"}},[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.recovery(s.row,s.$index)}}},[t._v("恢复初始设置")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.del(s.row,s.$index)}}},[t._v("删除")])],1),t._v(" "),s.row.status||s.row.is_diy?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDiyCopy(s.row)}}},[t._v("复制")]):t._e()]}}],null,!1,1878188763)})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.diyFrom.limit,"current-page":t.diyFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1):t._e()],1):1==t.cardShow?a("shopStreet",{ref:"shopStreet",on:{parentFun:t.getChildData}}):a("users",{ref:"users",on:{parentFun:t.getChildData}})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.modal,title:"预览"},on:
|