var $url="/cms/contents/contentsLayerHits",data=utils.init({page:utils.getQueryInt("page"),form:{siteId:utils.getQueryInt("siteId"),channelId:utils.getQueryInt("channelId"),channelContentIds:utils.getQueryString("channelContentIds"),isAdd:!0,hits:1}}),methods={apiSubmit:function(){var t=this;utils.loading(this,!0),$api.post($url,this.form).then(function(n){n.data;parent.$vue.apiList(t.form.channelId,t.page,"内容点击量设置成功!"),utils.closeLayer()}).catch(function(t){utils.error(t)}).then(function(){utils.loading(t,!1)})},btnSubmitClick:function(){var t=this;this.$refs.form.validate(function(n){n&&t.apiSubmit()})},btnCancelClick:function(){utils.closeLayer()}},$vue=new Vue({el:"#main",data:data,methods:methods,created:function(){utils.loading(this,!1)}});