var $url="/cms/settings/settingsCreate",data=utils.init({siteId:utils.getQueryInt("siteId"),pageType:null,form:null}),methods={apiGet:function(){var e=this;utils.loading(this,!0),$api.get($url,{params:{siteId:this.siteId}}).then(function(t){var a=t.data;e.form={siteId:e.siteId,isCreateContentIfContentChanged:a.value.isCreateContentIfContentChanged,isCreateChannelIfChannelChanged:a.value.isCreateChannelIfChannelChanged,isCreateShowPageInfo:a.value.isCreateShowPageInfo,isCreateIe8Compatible:a.value.isCreateIe8Compatible,isCreateBrowserNoCache:a.value.isCreateBrowserNoCache,isCreateJsIgnoreError:a.value.isCreateJsIgnoreError,isCreateWithJQuery:a.value.isCreateWithJQuery,isCreateDoubleClick:a.value.isCreateDoubleClick,createStaticMaxPage:a.value.createStaticMaxPage,isCreateUseDefaultFileName:a.value.isCreateUseDefaultFileName,createDefaultFileName:a.value.createDefaultFileName,isCreateStaticContentByAddDate:a.value.isCreateStaticContentByAddDate,createStaticContentAddDate:a.value.createStaticContentAddDate}}).catch(function(e){utils.error(e)}).then(function(){utils.loading(e,!1)})},apiSubmit:function(){var e=this;utils.loading(this,!0),$api.post($url,this.form).then(function(e){e.data;utils.success("页面生成设置保存成功！")}).catch(function(e){utils.error(e)}).then(function(){utils.loading(e,!1)})},btnSubmitClick:function(){var e=this;this.$refs.form.validate(function(t){t&&e.apiSubmit()})}},$vue=new Vue({el:"#main",data:data,methods:methods,created:function(){this.apiGet()}});