var $url="/cms/settings/settingsUploadVideo",data=utils.init({siteId:utils.getQueryInt("siteId"),pageType:null,form:null}),methods={apiGet:function(){var i=this;utils.loading(this,!0),$api.get($url,{params:{siteId:this.siteId}}).then(function(t){var e=t.data;i.form={siteId:i.siteId,videoUploadDirectoryName:e.value.videoUploadDirectoryName,videoUploadDateFormatString:e.value.videoUploadDateFormatString,isVideoUploadChangeFileName:e.value.isVideoUploadChangeFileName,videoUploadExtensions:e.value.videoUploadExtensions,videoUploadTypeMaxSize:e.value.videoUploadTypeMaxSize}}).catch(function(i){utils.error(i)}).then(function(){utils.loading(i,!1)})},apiSubmit:function(){var i=this;utils.loading(this,!0),$api.post($url,this.form).then(function(i){i.data;utils.success("视频上传设置保存成功！")}).catch(function(i){utils.error(i)}).then(function(){utils.loading(i,!1)})},btnSubmitClick:function(){var i=this;this.$refs.form.validate(function(t){t&&i.apiSubmit()})}},$vue=new Vue({el:"#main",data:data,methods:methods,created:function(){this.apiGet()}});