(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa22f"],{1071:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"main"},[i("div",{staticClass:"form-tips"},[t._v(t._s(t.page.tips))]),i("v-form",{ref:"form",attrs:{model:t.formModel,fields:t.page.form.fields},on:{submit:t.onSubmit}}),i("div",{staticClass:"fixed-box"},[i("div",{staticClass:"fixed-inner"},[i("div",{staticClass:"fixed-button",on:{click:t.handleSubmit}},[t._v("提交")])])])],1)},r=[],o=(i("ac1f"),i("5319"),i("c84f")),a=i("8477"),s=i("365c"),u={name:"Edit",components:{VForm:a["a"]},metaInfo:function(){return{title:this.page.title}},data:function(){return{formModel:{}}},watch:{$route:{immediate:!0,deep:!0,handler:function(t){var e=this;t.query.channel||this.$dialog.alert({message:"请选择事务"}).then((function(){e.$router.replace({name:"index",query:e.$route.query})}))}}},computed:{page:function(){var t=this.$route.query.channel;return o["a"][t]?o["a"][t]["edit"]:{}},channelId:function(){return this.$route.query.channel_id},viewId:function(){return this.$route.query.view_id}},methods:{handleSubmit:function(){this.$refs.form.submit()},onSubmit:function(){var t=this,e=this.$refs.form.ruleForm;e.affair_id=this.channelId,s["h"](this.viewId,e).then((function(){t.$dialog.alert({confirmButtonText:"确定",message:"修改成功"}).then((function(){t.$router.push({name:"list",query:t.$route.query})}))}))},getDetail:function(){var t=this,e=this.$toast.loading({message:"加载中...",forbidClick:!0,duration:0});s["c"](this.viewId).then((function(i){t.formModel=i.form,e.clear()}))}},beforeMount:function(){this.getDetail()}},c=u,f=i("2877"),l=Object(f["a"])(c,n,r,!1,null,null,null);e["default"]=l.exports}}]);
//# sourceMappingURL=chunk-2d0aa22f.42788f2c.js.map