(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22360fa2"],{5638:function(e,t,n){"use strict";n.r(t);n("b64b");var r=n("2dd7"),o=n("ae95");t["default"]={name:"FormForm",props:{statusOptions:{type:Array,required:!1},classTypeOptions:{type:Array,required:!1},renewalPeriodOptions:{type:Array,required:!1},yesNoOptions:{type:Array,required:!1}},components:{AntModal:r["a"]},data:function(){return{open:!1,closeDialog:!0,disabled:!1,formTitle:"新增表单",form:{formId:null,formName:null,formContent:null,remark:null},rules:{formName:[{required:!0,message:"表单名称不能为空",trigger:"blur"}]}}},filters:{},computed:{},watch:{},mounted:function(){},methods:{onClose:function(){this.open=!1,this.reset(),this.$emit("close")},cancel:function(){this.open=!1,this.reset(),this.$emit("close")},reset:function(){this.form={formId:null,formName:null,formContent:null,remark:null}},handleAdd:function(){this.reset(),this.open=!0,this.formTitle="新增表单"},handleUpdate:function(e){var t=this;this.reset(),this.open=!0,this.formTitle="修改表单";var n=e.formId;Object(o["d"])(n).then((function(e){200==e.code&&(t.form=e.data)}))},submitForm:function(e){var t=this,n=this;this.closeDialog=e,this.disabled=!0,this.$refs.form.validate((function(e){if(!e)return t.disabled=!1,!1;var r=JSON.parse(JSON.stringify(t.form));null!=t.form.formId?Object(o["f"])(r).then((function(e){n.$message.success("修改成功",3),n.open=!1,n.$emit("ok"),n.$emit("close"),n.disabled=!1})).catch((function(e){return n.disabled=!1,!1})):Object(o["a"])(r).then((function(e){n.$message.success("新增成功",3),n.open=!1,n.$emit("ok"),n.$emit("close"),n.disabled=!1})).catch((function(e){return n.disabled=!1,!1}))}))}}}},ae95:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l}));var r=n("b775");function o(e){return Object(r["b"])({url:"/flowable/form/list",method:"get",params:e})}function i(e){return Object(r["b"])({url:"/flowable/form/"+e,method:"get"})}function s(e){return Object(r["b"])({url:"/flowable/form",method:"post",data:e})}function u(e){return Object(r["b"])({url:"/flowable/form/edit",method:"post",data:e})}function a(e){return Object(r["b"])({url:"/flowable/form/"+e,method:"post"})}function l(e){return Object(r["b"])({url:"/flowable/form/export",method:"get",params:e})}}}]);