var $url="/cms/contents/contentsLayerView",data=utils.init({siteId:utils.getQueryInt("siteId"),channelId:utils.getQueryInt("channelId"),contentId:utils.getQueryInt("contentId"),content:null,channelName:null,state:null,columns:null,siteUrl:null,groupNames:null,tagNames:null,editorColumns:null,activeName:"attributes"}),methods={apiGet:function(){var t=this;utils.loading(this,!0),$api.get($url,{params:{siteId:this.siteId,channelId:this.channelId,contentId:this.contentId}}).then(function(e){var n=e.data;t.content=n.content,t.channelName=n.channelName,t.state=n.state,t.columns=n.columns,t.siteUrl=n.siteUrl,t.groupNames=n.groupNames,t.tagNames=n.tagNames,t.editorColumns=n.editorColumns}).catch(function(t){utils.error(t)}).then(function(){utils.loading(t,!1)})},isDisplay:function(t){return"Sequence"!==t&&"Title"!==t&&"ChannelId"!==t},getUrl:function(t){return t?_.replace(t,"@/",this.siteUrl+"/"):""},getContentUrl:function(t){return t.checked?utils.getRootUrl("redirect",{siteId:t.siteId,channelId:t.channelId,contentId:t.id}):$apiUrl+"/preview/"+t.siteId+"/"+t.channelId+"/"+t.id},btnAdminClick:function(t){utils.openLayer({title:"管理员查看",url:utils.getCommonUrl("adminLayerView",{adminId:t}),full:!0})},btnCancelClick:function(){utils.closeLayer()}},$vue=new Vue({el:"#main",data:data,methods:methods,created:function(){this.apiGet()}});