(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4dcc27cd"],{c4b9:function(module,__webpack_exports__,__webpack_require__){"use strict";var _components_fromSubmit_fromSubmit_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("524f"),_api_setting__WEBPACK_IMPORTED_MODULE_1__=__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={name:"businessConfig",components:{fromSubmit:_components_fromSubmit_fromSubmit_vue__WEBPACK_IMPORTED_MODULE_0__.a},props:{configType:{type:String,required:!0}},data:function(){return{ruleValidate:{},rules:[],url:"",title:"",type:this.configType,titleMap:{integral:"积分配置",balance:"余额配置",experience:"经验值配置"}}},watch:{configType:function(){this.type=this.configType,this.getBusinessConfigForm()}},mounted:function(){this.getBusinessConfigForm()},methods:{getBusinessConfigForm:function getBusinessConfigForm(){var _this=this;this.title=this.titleMap[this.configType]||"业务配置",Object(_api_setting__WEBPACK_IMPORTED_MODULE_1__.c)(this.configType).then((function(res){var data=res.data||{};_this.rules=data.rules||[],_this.url=data.url||"";var validate=data.validate||{};Object.keys(validate).forEach((function(key){"object"===_typeof(validate[key])&&validate[key].forEach((function(item){void 0!==item.pattern&&(item.pattern=eval(item.pattern))}))})),_this.ruleValidate=validate})).catch((function(t){_this.$Message.error(t&&t.msg||"获取配置失败")}))},backPage:function(){this.$router.back()}}}},cedf:function(t,e,i){"use strict";i.r(e);var s=i("c4b9").a,n=i("2877"),a=Object(n.a)(s,(function(){var t=this._self._c;return t("div",[t("div",{staticClass:"mb-14",staticStyle:{color:"#17233d"}},[t("div",{staticClass:"flex-y-center bg--w111-fff rd-6px p-16 pointer"},[t("div",{on:{click:this.backPage}},[this._m(0)]),t("span",{staticClass:"fs-18 mr-20 ml-16 fw-600",domProps:{textContent:this._s(this.title)}})])]),t("from-submit",{attrs:{validate:this.ruleValidate,url:this.url,title:this.title,rules:this.rules}})],1)}),[function(){var t=this._self._c;return t("div",{staticClass:"font-sm after-line"},[t("span",{staticClass:"iconfont iconfanhui"}),t("span",{staticClass:"pl10"},[this._v("返回")])])}],!1,null,null,null);e.default=a.exports}}]);