chunk-129bbc73.f3b4ba84.js 2.0 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-129bbc73"],{4578:function(t,e,o){"use strict";o.r(e);var n=o("524f"),i=o("4777"),l={name:"setting",components:{fromSubmit:n.a},mixins:[i.a],data:function(){return{ruleValidate:{},rules:[],url:"",title:"配送设置",type:"city_deliver"}}},s=(o("8b15"),o("2877")),u=Object(s.a)(l,(function(){var t=this.$createElement;return(this._self._c||t)("from-submit",{attrs:{validate:this.ruleValidate,url:this.url,title:this.title,rules:this.rules}})}),[],!1,null,"19612616",null);e.default=u.exports},4777:function(module,__webpack_exports__,__webpack_require__){"use strict";var _api_setting__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("90e7");function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}__webpack_exports__.a={mounted:function(){this.getNewFormBuildRule()},methods:{getNewFormBuildRule:function getNewFormBuildRule(){var _this=this;Object(_api_setting__WEBPACK_IMPORTED_MODULE_0__.w)(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(t,e){var o=this;return t.map((function(t){void 0!==t.field&&(t.value=e[t.field]||""),"object"===_typeof(t.options)&&t.options.map((function(t){void 0!==t.componentsModel&&(t.componentsModel=o.setRulesValue(t.componentsModel,e))})),"object"===_typeof(t.control)&&t.control.map((function(t){void 0!==t.componentsModel&&(t.componentsModel=o.setRulesValue(t.componentsModel,e))})),"object"===_typeof(t.componentsModel)&&(t.componentsModel=o.setRulesValue(t.componentsModel,e))})),t}}}},"525d":function(t,e,o){},"8b15":function(t,e,o){"use strict";var n=o("525d");o.n(n).a}}]);