var $url="/cms/settings/settingsUploadImage",data=utils.init({siteId:utils.getQueryInt("siteId"),pageType:null,form:null}),methods={apiGet:function(){var t=this;utils.loading(this,!0),$api.get($url,{params:{siteId:this.siteId}}).then(function(i){var a=i.data;t.form={siteId:t.siteId,imageUploadDirectoryName:a.value.imageUploadDirectoryName,imageUploadDateFormatString:a.value.imageUploadDateFormatString,isImageUploadChangeFileName:a.value.isImageUploadChangeFileName,imageUploadExtensions:a.value.imageUploadExtensions,imageUploadTypeMaxSize:a.value.imageUploadTypeMaxSize,photoSmallWidth:a.value.photoSmallWidth,photoMiddleWidth:a.value.photoMiddleWidth}}).catch(function(t){utils.error(t)}).then(function(){utils.loading(t,!1)})},apiSubmit:function(){var t=this;utils.loading(this,!0),$api.post($url,this.form).then(function(t){t.data;utils.success("图片上传设置保存成功！")}).catch(function(t){utils.error(t)}).then(function(){utils.loading(t,!1)})},btnSubmitClick:function(){var t=this;this.$refs.form.validate(function(i){i&&t.apiSubmit()})}},$vue=new Vue({el:"#main",data:data,methods:methods,created:function(){this.apiGet()}});