1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c3ae3ee"],{"4b51":function(t,e,a){},"4f90":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mainBox"},[a("div",{staticClass:"layerBox_search"},[a("div",{staticClass:"layerBoxLine"},[a("el-row",[a("el-col",{attrs:{span:8}},[a("div",{staticClass:"searchBox"},[a("div",{staticClass:"searchTitle"},[t._v("网站名称:")]),a("el-input",{attrs:{placeholder:"请输入网站名称"},model:{value:t.getApiData.website_name,callback:function(e){t.$set(t.getApiData,"website_name",e)},expression:"getApiData.website_name"}})],1)]),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"searchBox"},[a("div",{staticClass:"searchTitle"},[t._v("应用状态:")]),a("el-select",{attrs:{placeholder:"请选择应用状态.."},model:{value:t.getApiData.status,callback:function(e){t.$set(t.getApiData,"status",e)},expression:"getApiData.status"}},[a("el-option",{attrs:{label:"未构建",value:"0"}}),a("el-option",{attrs:{label:"未应用",value:"1"}}),a("el-option",{attrs:{label:"已应用",value:"2"}})],1)],1)]),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"searchBtnBox"},[a("el-button",[t._v("重置")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getData("search")}}},[t._v("搜索")])],1)])],1)],1)]),a("div",{staticClass:"layerBox"},[a("tableTitle",{attrs:{name:t.tableDivTitle}}),a("el-row",[[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{fixed:"",prop:"website_id",label:"网站id",width:"80"}}),a("el-table-column",{attrs:{prop:"website_name",label:"网站名称"}}),a("el-table-column",{attrs:{prop:"name",label:"风格名称",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[""==e.row.name||null==e.row.name?a("div",[t._v("未选择")]):a("div",[t._v(t._s(e.row.name))])]}}])}),a("el-table-column",{attrs:{prop:"page_type",label:"模板页面"},scopedSlots:t._u([{key:"default",fn:function(e){return[""==e.row.page_type||null==e.row.page_type?a("div",[t._v("未选择")]):a("div",[t._v(t._s(e.row.page_type))])]}}])}),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[""==e.row.created_at||null==e.row.created_at?a("div",[t._v("未创建")]):a("div",[t._v(t._s(e.row.created_at))])]}}])}),a("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[""==e.row.updated_at||null==e.row.updated_at?a("div",[t._v("未更新")]):a("div",[t._v(t._s(e.row.updated_at))])]}}])}),a("el-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.template_status?a("div",[t._v("未构建")]):t._e(),1==e.row.template_status?a("div",[t._v("未应用")]):t._e(),2==e.row.template_status?a("div",[t._v("已应用")]):t._e()]}}])}),a("el-table-column",{attrs:{fixed:"right",label:"操作","header-align":"center",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"listBtnBox"},[null!=e.row.action_id?a("div",{staticClass:"listEditBtn",on:{click:function(a){return t.getDataMain(e.row.website_id,e.row.action_id)}}},[a("i",{staticClass:"el-icon-edit-outline"}),t._v("编辑")]):a("div",{staticClass:"listSaveBtn",on:{click:function(a){return t.creatWebsite(e.row.website_id)}}},[a("i",{staticClass:"el-icon-brush"}),t._v("构建")]),a("div",{staticClass:"listMainBtn"},[a("i",{staticClass:"el-icon-link"}),t._v("应用")])])]}}])})],1)]],2)],1),a("div",{staticClass:"alignBox"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-pagination",{attrs:{"current-page":t.getApiData.page,"page-size":10,layout:"total, prev, pager, next, jumper",total:t.allCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)])},i=[],l=a("b85c"),n=(a("a15b"),a("bf09")),r=(a("4b51"),a("f2c7")),o={components:{tableTitle:n["default"],step:r["default"]},data:function(){return{templateStepTitle:"仅需四步,即可完成模板创建",tableDivTitle:"模板列表",useTemplateName:"已选择风格",windowStatus:!1,tableData:[],getApiData:{website_name:"",status:"",page:1,pageSize:10},allCount:20}},methods:{goBase:function(){this.$router.push({path:"/templateBase",query:{id:this.editId}})},goCreat:function(t){this.$router.push({path:"/templateCreat",query:{id:this.editId}})},getData:function(){var t=this;this.$store.dispatch("template/getWebsiteintel",this.getApiData).then((function(e){if(200!=e.code)t.$message.error(e.message),t.tableData=[],t.page=1,t.allCount=0;else{var a,s=[],i=Object(l["a"])(e.data.rows);try{for(i.s();!(a=i.n()).done;){var n=a.value;if(null!=n.page_type){for(var r=0;r<n.page_type.length;r++)"1"==n.page_type[r]&&(n.page_type[r]="首页"),"2"==n.page_type[r]&&(n.page_type[r]="分类页"),"3"==n.page_type[r]&&(n.page_type[r]="列表页"),"4"==n.page_type[r]&&(n.page_type[r]="详情页"),"5"==n.page_type[r]&&(n.page_type[r]="搜索页"),"6"==n.page_type[r]&&(n.page_type[r]="自定义列表页"),"7"==n.page_type[r]&&(n.page_type[r]="自定义详情页");n.page_type=n.page_type.join(", ")}s.push(n)}}catch(o){i.e(o)}finally{i.f()}t.tableData=s,t.allCount=e.data.count}}))},handleSizeChange:function(t){this.getApiData.page=t,this.getData()},handleCurrentChange:function(t){this.getApiData.page=t,this.getData()},creatWebsite:function(t){var e=this;this.$store.dispatch("template/addWebsiteTemplateintel",{website_id:t}).then((function(a){200!=a.code?e.$message.error(a.message):e.$router.push({path:"/templateBase",query:{website_id:t}})}))},getDataMain:function(t,e){1==e&&this.$router.push({path:"/templateBase",query:{website_id:t,step:e}}),1==e&&this.$router.push({path:"/templateBase",query:{website_id:t,step:e}}),2==e&&this.$router.push({path:"/templateStyle",query:{website_id:t,step:e}}),e>2&&this.$router.push({path:"/templateCreat",query:{website_id:t,step:e}})}},mounted:function(){this.getData()}},p=o,u=(a("dca3"),a("2877")),c=Object(u["a"])(p,s,i,!1,null,"289be7ab",null);e["default"]=c.exports},"8f10":function(t,e,a){"use strict";a("d825")},bf09:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tableTitle"},[a("span",{staticClass:"tableFloatLine"}),t._v(" "+t._s(t.name)+" ")])},i=[],l={props:{name:{type:String,required:!0}},data:function(){return{someData:""}}},n=l,r=(a("8f10"),a("2877")),o=Object(r["a"])(n,s,i,!1,null,"4f7f779e",null);e["default"]=o.exports},d170:function(t,e,a){"use strict";a("f3d1")},d825:function(t,e,a){},dca3:function(t,e,a){"use strict";a("f6b0")},f2c7:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"stepBox"},[a("div",{staticClass:"stepBoxText",on:{click:t.hiddenStepStatus}},[a("i",{staticClass:"el-icon-close"})]),a("el-steps",{attrs:{active:t.activeNumber,"align-center":""}},[a("el-step",{attrs:{title:"填写模板基本信息",description:"类型和网站底部信息"}}),a("el-step",{attrs:{title:"选择模板风格",description:"网站整体风格和样式"}}),a("el-step",{attrs:{title:"构建模板模块",description:"展示哪些模块到模板上"}}),a("el-step",{attrs:{title:"应用网站模板",description:"应用该模板到您的站点"}})],1)],1)},i=[],l=(a("a9e3"),{props:{activeNumber:{type:Number,required:!0}},data:function(){return{someData:""}},methods:{hiddenStepStatus:function(){console.log(123),console.log(this.$store.state.template.stepStatus),this.$store.commit("template/hiddenStepStatus")}}}),n=l,r=(a("d170"),a("2877")),o=Object(r["a"])(n,s,i,!1,null,"4efdf9a8",null);e["default"]=o.exports},f3d1:function(t,e,a){},f6b0:function(t,e,a){}}]);
|