(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-355601be"],{"374e":function(e,t,n){"use strict";n("3a26")},"3a26":function(e,t,n){},"5e91":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),e.status?n("div",{staticClass:"m-core"},[n("organInfo",{ref:"organInfo",attrs:{data:e.info,type:"update",tenantInfo:"SETTING"}}),e._v(" "),e.$helpers.permission("tenantInfo/update/info")?n("div",{staticStyle:{display:"flex",width:"100%"}},[n("i",{staticClass:"icon_admin_home"}),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onNext}},[e._v("确认")])],1):e._e()],1):e._e()])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 机构管理\n ")])}],a=n("c7eb"),s=n("5530"),c=n("15fd"),i=(n("96cf"),n("1da1")),h=n("a21b"),p=n("6ef4"),u=n("8617"),f=["config","productInfo"],m=["theme","themeColor","corporateChops","corporateFinanceChops","id"],l=["theme","themeColor","configId","corporateChops","corporateFinanceChops"],b={components:{organInfo:p["a"]},data:function(){return{tableList:[],form:{},info:{},status:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,n,r,o,i,p,u,l,b;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["h"])({id:this.$helpers.tenantId});case 3:t=e.sent,this.status=!0,n=t.data,r=n.config,n.productInfo,o=Object(c["a"])(n,f),i=r.theme,p=r.themeColor,u=r.corporateChops,l=r.corporateFinanceChops,b=r.id,Object(c["a"])(r,m),this.info=Object(s["a"])(Object(s["a"])({},o),{},{theme:i,themeColor:p,corporateChops:u,corporateFinanceChops:l,configId:b}),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](0);case 12:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(){return e.apply(this,arguments)}return t}(),onNext:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,n,r,o,i,p,f,m,b,d,C,g;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$refs.organInfo.onSubmit();case 2:if(t=e.sent,t){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this.$refs.organInfo.getValues();case 7:return n=e.sent,r=n.theme,o=n.themeColor,i=n.configId,p=n.corporateChops,f=n.corporateFinanceChops,m=Object(c["a"])(n,l),b={theme:r,themeColor:o,corporateChops:p,corporateFinanceChops:f,id:i},d=Object(s["a"])(Object(s["a"])({},m),{},{config:b}),e.prev=11,e.next=14,Object(h["k"])(d);case 14:e.sent,this.$message.success("修改更新成功"),C=sessionStorage.getItem("baseTenantId"),C>0&&(Object(u["a"])({theme:r,themeColor:o}),g=sessionStorage.getItem("tenantConfig"),g=g?JSON.parse(g):{},sessionStorage.setItem("tenantConfig",JSON.stringify(Object(s["a"])(Object(s["a"])({},g),{},{theme:r,themeColor:o})))),e.next=22;break;case 20:e.prev=20,e.t0=e["catch"](11);case 22:case"end":return e.stop()}}),e,this,[[11,20]])})));function t(){return e.apply(this,arguments)}return t}()},beforeDestroy:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,n,r;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=sessionStorage.getItem("tenantConfig"),t=t?JSON.parse(t):{},e.next=4,this.$refs.organInfo.getValues();case 4:n=e.sent,r=n.theme,n.themeColor,r!=t.theme&&Object(u["a"])({theme:t.theme,themeColor:t.themeColor});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},d=b,C=(n("374e"),n("2877")),g=Object(C["a"])(d,r,o,!1,null,"092ebdbc",null);t["default"]=g.exports}}]);