(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e1e9c522"],{2908:function(e,t,o){},4777:function(module,__webpack_exports__,__webpack_require__){"use strict";var _api_setting__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("90e7");function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}__webpack_exports__.a={mounted:function(){this.getNewFormBuildRule()},methods:{getNewFormBuildRule:function getNewFormBuildRule(){var _this=this;Object(_api_setting__WEBPACK_IMPORTED_MODULE_0__.v)(this.type?this.type:this.typeMole).then((function(res){_this.rules=res.data.rules,_this.url=res.data.url;var validate=res.data.validate;Object.keys(validate).map((function(key){"object"===_typeof(validate[key])&&validate[key].map((function(item){void 0!==item.pattern&&(item.pattern=eval(item.pattern))}))})),_this.ruleValidate=validate}))},setRulesValue:function(e,t){var o=this;return e.map((function(e){void 0!==e.field&&(e.value=t[e.field]||""),"object"===_typeof(e.options)&&e.options.map((function(e){void 0!==e.componentsModel&&(e.componentsModel=o.setRulesValue(e.componentsModel,t))})),"object"===_typeof(e.control)&&e.control.map((function(e){void 0!==e.componentsModel&&(e.componentsModel=o.setRulesValue(e.componentsModel,t))})),"object"===_typeof(e.componentsModel)&&(e.componentsModel=o.setRulesValue(e.componentsModel,t))})),e}}}},"6cfd":function(e,t,o){"use strict";o("2908")},"8ecf":function(e,t,o){"use strict";o.r(t);var n=o("524f"),i=o("4777"),l={name:"commonForm",components:{fromSubmit:n.a},mixins:[i.a],data:function(){return{ruleValidate:{},rules:[],url:"",title:"",type:""}},props:{typeMole:{type:String,default:""}},watch:{typeMole:function(e){this.rules=[],this.getNewFormBuildRule()}}},u=(o("6cfd"),o("2877")),s=Object(u.a)(l,(function(){return(0,this._self._c)("from-submit",{attrs:{validate:this.ruleValidate,url:this.url,title:this.title,rules:this.rules}})}),[],!1,null,"146f3d5e",null);t.default=s.exports}}]);