徐总多门店
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.
jiuhaoshenghuo/public/view_admin/js/chunk-1825ab49.b0167f16.js

1 line
15 KiB

4 months ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1825ab49"],{"073b":function(t,e,n){},"524f":function(t,e,n){"use strict";var r={components:{app:function(){return n.e("chunk-b7a4eef8").then(n.bind(null,"739f"))},routine:function(){return n.e("chunk-a01784ae").then(n.bind(null,"23b3"))},wechat:function(){return n.e("chunk-00e85ce4").then(n.bind(null,"1402"))},work:function(){return n.e("chunk-04aa6a1a").then(n.bind(null,"629a"))}}},u=n("2a95"),o=n("e069"),c=n("b6bd"),a=n("2f62");function i(t){return(i="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)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f={name:"fromSubmit",mixins:[r],components:{useComponent:function(){return n.e("chunk-2a05b746").then(n.bind(null,"05f7"))}},provide:function(){return{type:this.type,guideButton:this.guideButton}},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:[],guideTitle:this.$parent.title,type:this.$parent.typeMole||this.$parent.type,guideShow:!1}},computed:{guideButton:function(){return["app","wechat","work"].includes(this.type)}},watch:{rules:{handler:function(){this.submitValue=this.getRuleValue(this.rules)},deep:!0}},mounted:function(){var t=this;this.submitValue=this.getRuleValue(this.rules),this.setCopyrightShow({value:!1}),this.bus.$on("settingGuideShow",(function(){t.guideShow=!0})),this.$once("hook:beforeDestroy",(function(){t.setCopyrightShow({value:!0}),t.bus.$off("settingGuideShow")}))},destroyed:function(){this.setCopyrightShow({value:!0})},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(n,!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(a.d)("admin/layout",["setCopyrightShow","isMobile","menuCollapse"]),{changeValue:function(t){this.submitValue[t.field]=t.value,this.rules=this.setRuleValue(this.rules,t.field,t.value)},setRuleValue:function(t,e,n){var r=this;return t.map((function(t){void 0!==t.field&&t.field===e&&(t.value=n),"object"===i(t.options)&&t.options.map((function(t){void 0!==t.componentsModel&&(t.componentsModel=r.setRuleValue(t.componentsModel,e,n))})),"object"===i(t.control)&&t.control.map((function(t){void 0!==t.componentsModel&&(t.componentsModel=r.setRuleValue(t.componentsModel,e,n))})),"object"===i(t.componentsModel)&&(t.componentsModel=r.setRuleValue(t.componentsModel,e,n))})),t},getRuleValue:function(t){var e=this,n={};return t.map((function(t){if(void 0!==t.field&&(n[t.field]=t.value),"object"===i(t.options)&&t.options.map((function(t){if(void 0!==t.componentsModel){var r=e.getRuleValue(t.componentsModel);Object.assign(n,r)}})),"object"===i(t.control)&&t.control.map((function(t){if(void 0!==t.componentsModel){var r=e.getRuleValue(t.componentsModel);Object.assign(n,r)}})),"object"===i(t.componentsModel)){var r=e.getRuleValue(t.componentsModel);Object.assign(n,r)}})),n},submit:function(){var t=this;new u.a(this.validate).validate(this.submitValue,(function(e){if(void 0===e||null===e)if(t.errorsValidate=[],t.disabled=!0,t.loading=!0,t.on.save)try{t.on.save(t.submitValue,(function(){return t.disabled=!1}),(function(){return t.