webpackJsonp([34],{MSjX:function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("mvHQ"),n=e.n(i),o=(e("ftAF"),{created:function(){var a=this;this.$route.query.id&&this.$http.get({url:"/testCaidan/getOne",data:{id:this.$route.query.id}}).then(function(t){t.success&&(a.formData=t.data)})},data:function(){return{saving:!1,formData:{},rules:{}}},methods:{onSave:function(){var a=this;this.$refs.form.validate(function(t){if(!t)return!1;a.submit()})},submit:function(){var a=this,t=JSON.parse(n()(this.formData));this.$http.post({url:this.formData.id?"/testCaidan/update":"/testCaidan/save",data:t}).then(function(t){t.success?(a.$message.success("成功"),a.$router.go(-1)):a.$message.warning("失败")})},onDelete:function(){var a=this;this.$alert("删除将无法恢复，确认要删除么？","警告",{type:"error"}).then(function(){return a.$http.post({url:"/testCaidan/del",data:{id:a.formData.id}})}).then(function(){a.$message.success("删除成功"),a.$router.go(-1)}).catch(function(t){"cancel"===t?a.$message.info("删除取消"):a.$message.error("删除失败")})}}}),r={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",[e("el-form",{ref:"form",staticStyle:{"max-width":"500px"},attrs:{model:a.formData,rules:a.rules,"label-width":"80px","label-position":"right",size:"small"}},[e("el-form-item",{attrs:{prop:"sequenceid",label:"SequenceID"}},[e("el-input",{model:{value:a.formData.sequenceid,callback:function(t){a.$set(a.formData,"sequenceid",t)},expression:"formData.sequenceid"}})],1),a._v(" "),e("el-form-item",{attrs:{prop:"id",label:"ID"}},[e("el-input",{model:{value:a.formData.id,callback:function(t){a.$set(a.formData,"id",t)},expression:"formData.id"}})],1),a._v(" "),e("el-form-item",{attrs:{prop:"caidanxiangming",label:"CaiDanXiangMing"}},[e("el-input",{model:{value:a.formData.caidanxiangming,callback:function(t){a.$set(a.formData,"caidanxiangming",t)},expression:"formData.caidanxiangming"}})],1),a._v(" "),e("el-form-item",{attrs:{prop:"caidancixu",label:"CaiDanCiXu"}},[e("el-input",{model:{value:a.formData.caidancixu,callback:function(t){a.$set(a.formData,"caidancixu",t)},expression:"formData.caidancixu"}})],1),a._v(" "),e("el-form-item",{attrs:{prop:"url",label:"URL"}},[e("el-input",{model:{value:a.formData.url,callback:function(t){a.$set(a.formData,"url",t)},expression:"formData.url"}})],1),a._v(" "),e("el-form-item",{attrs:{prop:"caidanshuoming",label:"CaiDanShuoMing"}},[e("el-input",{model:{value:a.formData.caidanshuoming,callback:function(t){a.$set(a.formData,"caidanshuoming",t)},expression:"formData.caidanshuoming"}})],1),a._v(" "),e("el-form-item",{attrs:{prop:"chufatiaojian",label:"ChuFaTiaoJian"}},[e("el-input",{model:{value:a.formData.chufatiaojian,callback:function(t){a.$set(a.formData,"chufatiaojian",t)},expression:"formData.chufatiaojian"}})],1),a._v(" "),e("el-form-item",[e("el-button",{attrs:{loading:a.$store.state.fetchingData,type:"primary"},on:{click:a.onSave}},[a._v("保存")]),a._v(" "),a.formData.id?e("el-button",{attrs:{type:"danger"},on:{click:a.onDelete}},[a._v("删除")]):a._e(),a._v(" "),e("el-button",{on:{click:function(t){a.$router.go(-1)}}},[a._v("取消")])],1)],1)],1)},staticRenderFns:[]};var s=e("VU/8")(o,r,!1,function(a){e("oG6v")},"data-v-3ffd4604",null);t.default=s.exports},oG6v:function(a,t){}});
//# sourceMappingURL=34.b6b73d3963738d7fe71d.js.map