You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
11 KiB
1 line
11 KiB
4 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59220e72"],{"0747":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},_typeof(t)}__webpack_exports__["a"]={mounted:function(){this.getNewFormBuildRule()},methods:{getNewFormBuildRule:function getNewFormBuildRule(){var _this=this;Object(_api_setting__WEBPACK_IMPORTED_MODULE_0__["o"])(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 n=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=n.setRulesValue(t.componentsModel,e))})),"object"===_typeof(t.control)&&t.control.map((function(t){void 0!==t.componentsModel&&(t.componentsModel=n.setRulesValue(t.componentsModel,e))})),"object"===_typeof(t.componentsModel)&&(t.componentsModel=n.setRulesValue(t.componentsModel,e))})),t}}}},"31fa":function(t,e,n){"use strict";var o=n("b771"),r=n.n(o);r.a},"8ecf":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("from-submit",{attrs:{validate:t.ruleValidate,url:t.url,title:t.title,rules:t.rules}})},r=[],u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-submit"},[n("Form",{ref:"formSubmit"+t.field,attrs:{model:t.submitValue,"label-width":124}},[n("use-component",{attrs:{errorsValidate:t.errorsValidate,validate:t.validate,rules:t.rules},on:{changeValue:t.changeValue}}),t._t("content"),n("div",{staticStyle:{height:"2px"}}),t.buttonHide?n("Card",{staticClass:"fixed-card",style:{left:"200px"},attrs:{bordered:!1,"dis-hover":""}},[n("FormItem",[n("Button",{staticClass:"btn-add",attrs:{type:"primary",disabled:t.disabled,loading:t.loading},on:{click:t.submit}},[t._v(t._s(t.butName))])],1)],1):t._e(),t._t("button")],2)],1)},i=[],a=n("2a95"),c=n("e069"),s=n("b6bd"),l=n("2f62");function d(t){return d="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},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(n,!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b={name:"fromSubmit",components:{useComponent:function(){return n.e("chunk-2a05b746").then(n.bind(null,"05f7"))}},provide:function(){return{}},props:{rules:{type:Array,default:function(){return[]}},validate:{type:Object,default:function(){return{}}},butName:{type:String,default:"提交"},field:{type:String,default:function(){return""+Math.random()}},url:{type:String,default:""},method:{type:String,default:"POST"},buttonHide:{type:Boolean,default:!0},on:{type:Object,default:function(){return{}}}},data:function(){return{submitValue:{},disabled:!1,loading:!1,errorsValidate:[]}},computed:{},watch:{rules:{handler:function(){this.submitValue=this.getRuleV
|