var data=utils.init({siteId:utils.getQueryInt("siteId"),index:utils.getQueryString("index"),form:{text:""}}),methods={load:function(){this.index&&(this.form.text=parent.$vue.messages[parseInt(this.index)].text),utils.loading(this,!1)},btnSubmitClick:function(){var t=this;this.$refs.form.validate(function(e){e&&(parent.$vue.runLayerText(t.form.text,t.index),utils.closeLayer())})},btnCancelClick:function(){utils.closeLayer()}},$vue=new Vue({el:"#main",data:data,methods:methods,created:function(){this.load()}});