1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6693cb05"],{"422a":function(e,t,n){"use strict";n("cdb2")},"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"),f=n("8617"),h={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,f,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=sessionStorage.getItem("tenantConfig"),t=t?JSON.parse(t):{},console.log(t,t.tenantId),e.next=6,Object(i["b"])({id:t.tenantId});case 6:n=e.sent,this.status=!0,r=n.data,a=r.config,r.productInfo,c=Object(s["a"])(r,["config","productInfo"]),u=a.theme,f=a.themeColor,h=a.id,Object(s["a"])(a,["theme","themeColor","id"]),this.info=Object(o["a"])(Object(o["a"])({},c),{},{theme:u,themeColor:f,configId:h}),e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](0);case 15:case"end":return e.stop()}}),e,this,[[0,13]])})));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,h,m,d;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"]),h={theme:r,themeColor:a,id:c},m=Object(o["a"])(Object(o["a"])({},u),{},{config:h}),e.prev=11,e.next=14,Object(i["e"])(m);case 14:e.sent,this.$message.success("修改更新成功"),d=sessionStorage.getItem("baseTenantId"),d>0&&Object(f["a"])({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}()}},m=h,d=(n("422a"),n("2877")),l=Object(d["a"])(m,r,a,!1,null,"8b487672",null);t["default"]=l.exports},cdb2:function(e,t,n){}}]);
|