|
@@ -39,8 +39,9 @@ function SysChoose({history}) {
|
|
|
const id = e.target.value;
|
|
|
const checkOrg = orgList.find((it)=>it.id===id);
|
|
|
const his =checkOrg.hospitals;
|
|
|
- setSysId(id);
|
|
|
- setHisList(his);
|
|
|
+ setSysId(id); ////选中的平台id
|
|
|
+ setHisList(his); //医院列表
|
|
|
+ setSysName(checkOrg.name); //选中的平台名称
|
|
|
setCookie('isPlacefile',id == 2?0:1);
|
|
|
}
|
|
|
//获取组织列表
|
|
@@ -50,7 +51,7 @@ function SysChoose({history}) {
|
|
|
const data = res.data.data;
|
|
|
const { software,userInfo } = data;
|
|
|
setOrgList(software);
|
|
|
- setSysName(software[0].name)
|
|
|
+ setSysName(software[0].name);
|
|
|
setSysId(software[0].id);
|
|
|
setCookie('userId',userInfo.id);
|
|
|
setCookie('userName',userInfo.name);
|
|
@@ -75,6 +76,7 @@ function SysChoose({history}) {
|
|
|
dispatch(setSys({sysId,sysName,hisId:id}));
|
|
|
setCookie('systemId', sysId || sysid);
|
|
|
setCookie('hospitalId',id);
|
|
|
+ setCookie('systemName',sysName);
|
|
|
setCookie('hosType', type);
|
|
|
interceptors();
|
|
|
history.push("/manage");
|