chunk-2d0e276e.f278e507.js 1.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e276e"],{"7f8a":function(a,e,t){"use strict";t.r(e);var n=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"divBox"},[t("el-card",{staticClass:"box-card"},[a.FormData?t("form-create",{directives:[{name:"loading",rawName:"v-loading",value:a.loading,expression:"loading"}],ref:"fc",staticClass:"formBox",attrs:{option:a.option,rule:a.FormData.rule,"handle-icon":"false"},on:{submit:a.onSubmit}}):a._e()],1)],1)},o=[],r=(t("96cf"),t("1da1")),s=t("30ba"),i=t.n(s),c=t("2801"),u=t("0c6d"),l=(t("83d6"),{name:"payType",data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(a,e){200===a.status&&(e.url=a.data.src)}}}}},FormData:null,loading:!1}},components:{formCreate:i.a.$form()},mounted:function(){this.getFrom()},methods:{getFrom:function(){var a=this;this.loading=!0,Object(c["j"])().then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.FormData=t.data,a.loading=!1;case 2:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}()).catch((function(e){a.$message.error(e.message),a.loading=!1}))},onSubmit:function(a){var e=this;u["a"][this.FormData.method.toLowerCase()](this.FormData.api,a).then((function(a){e.$message.success(a.message||"提交成功")})).catch((function(a){e.$message.error(a.message||"提交失败")}))}}}),m=l,d=t("2877"),f=Object(d["a"])(m,n,o,!1,null,"c11bae1c",null);e["default"]=f.exports}}]);