(("undefined"!==typeof self?self:this)["webpackJsonpvcolorpicker"]=("undefined"!==typeof self?self:this)["webpackJsonpvcolorpicker"]||[]).push([[0],{e1f7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-spin",{staticStyle:{height:"100%"},style:e.bodyStyle,attrs:{spinning:0!==e.spinning}},["form"===e.formType?n("a-card",{attrs:{bordered:!1}},[n("form-redirect",{ref:"formRedirect",attrs:{func:e.func,formId:e.formId,formCode:e.formCode,fks:e.fks,parentValue:e.parentValue,saveInPage:e.saveInPage,disQueryDB:e.disQueryDB,record:e.record,stores:e.stores,isTab:!0},on:{close:e.close,hideDialogButtons:e.hideDialogButtons,addParentSpinning:e.addSpinning,delParentSpinning:e.delSpinning,refreshParent:e.refreshParent,handleOk:e.handleOk,setFormTitle:e.setFormTitle}})],1):"view"===e.formType?n("view-layout-redirect",{ref:"viewRedirect",attrs:{formOption:e.formOption,"view-code":e.formCode,stores:e.stores,isShowInTab:!0},on:{closeFromView:e.close,hideDialogButtonsFromView:e.hideDialogButtons,addParentSpinningFromView:e.addSpinning,delParentSpinningFromView:e.delSpinning,refreshParent:e.refreshParent,handleOkFromView:e.handleOk,setFormTitleFromView:e.setFormTitle}}):e._e()],1)},r=[],s=n("9ef9"),o=n("6bf9"),a={name:"FormRedirectTab",components:{FormRedirect:s["default"],ViewLayoutRedirect:()=>Promise.resolve().then(n.bind(null,"5edf"))},props:{func:String,formCode:String,formId:String,record:Object,formType:{type:String,default:"form"},fks:{type:Array,default:()=>[]},parentValue:{type:Object,default:()=>{}},disQueryDB:{type:Boolean,default:!1},stores:{type:Object,default:()=>({})}},computed:{formOption(){return{func:this.func,formId:this.formId,fks:this.fks,parentValue:this.parentValue,saveInPage:this.saveInPage,disQueryDB:this.disQueryDB,record:this.record,isTab:!0,needClose:!1}},bodyStyle(){return"view"===this.formType?{background:"#F0F2F5"}:{}}},data(){return{spinning:0,saveInPage:!1,needClose:!1}},inject:["closeCurrent","removeCache"],methods:{setFormTitle(e){let t=e||o["a"].getLocale("m.eform.formDesign.label.biao-dan"),n=o["a"].getLocale("m.common.button.add");"edit"===this.func?n=o["a"].getLocale("m.common.button.update"):"detail"===this.func&&(n=o["a"].getLocale("m.common.title.detail")),this.$route.meta.title=n+" "+t},handleCancel(){this.spinning>0?this.needClose=!0:this.closeCurrent()},handleOk(e,t){const n=this;this.addSpinning(),e.save(this.afterSave,null,t),setTimeout((function(){n.delSpinning()}),500)},afterSave(e,t){t?this.$message.success(t):this.$message.success(o["a"].getLocale("m.eform.formDesign.label.bao-cun-cheng-gong"))},hideDialogButtons(){},close(){this.handleCancel()},refreshParent(e,t,n){this.removeCache(this.$route.meta.parentFullPath)},addSpinning(){this.spinning++},delSpinning(){this.spinning--,0===this.spinning&&this.needClose&&(this.needClose=!1,this.handleCancel())}},activated(){"view"===this.formType&&this.$refs.viewRedirect&&this.$refs.viewRedirect.doResize()}},d=a,l=n("2877"),c=Object(l["a"])(d,i,r,!1,null,null,null);t["default"]=c.exports}}]);
//# sourceMappingURL=vcolorpicker.umd.min.0.js.map