1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3436c9b9"],{"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()])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 机构管理\n ")])}],o=n("5530"),s=n("15fd"),c=(n("96cf"),n("1da1")),i=n("a21b"),u=n("6ef4"),h=n("8617"),f={components:{organInfo:u["a"]},data:function(){return{tableList:[],form:{},info:{},status:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a,c,u,h,f,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(i["d"])({id:this.$helpers.tenantId});case 3:t=e.sent,this.status=!0,n=t.data,r=n.config,n.productInfo,a=Object(s["a"])(n,["config","productInfo"]),c=r.theme,u=r.themeColor,h=r.corporateChops,f=r.corporateFinanceChops,p=r.id,Object(s["a"])(r,["theme","themeColor","corporateChops","corporateFinanceChops","id"]),this.info=Object(o["a"])(Object(o["a"])({},a),{},{theme:c,themeColor:u,corporateChops:h,corporateFinanceChops:f,configId:p}),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(c["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a,c,u,f,p,m,l;return regeneratorRuntime.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,a=n.themeColor,c=n.configId,u=Object(s["a"])(n,["theme","themeColor","configId"]),f={theme:r,themeColor:a,id:c},p=Object(o["a"])(Object(o["a"])({},u),{},{config:f}),e.prev=11,e.next=14,Object(i["g"])(p);case 14:e.sent,this.$message.success("修改更新成功"),m=sessionStorage.getItem("baseTenantId"),m>0&&(Object(h["a"])({theme:r,themeColor:a}),l=sessionStorage.getItem("tenantConfig"),l=l?JSON.parse(l):{},sessionStorage.setItem("tenantConfig",JSON.stringify(Object(o["a"])(Object(o["a"])({},l),{},{theme:r,themeColor:a})))),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(c["a"])(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.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(h["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}()},p=f,m=(n("7d31"),n("2877")),l=Object(m["a"])(p,r,a,!1,null,"6bc36285",null);t["default"]=l.exports},"7d31":function(e,t,n){"use strict";n("e2c9")},e2c9:function(e,t,n){}}]);
|