|
|
|
@ -13,6 +13,8 @@ import UserEditor from "../userEdit"
|
|
|
|
|
import MicroApps from '@/microhost/system/apps'
|
|
|
|
|
import { SystemData } from '@/microhost/models/system'
|
|
|
|
|
import { string } from 'prop-types';
|
|
|
|
|
import { FrameMessage as message1 } from '@/library/union';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 头部右侧内容区
|
|
|
|
@ -47,8 +49,7 @@ const RightInfo = () => {
|
|
|
|
|
}
|
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
const msglog=()=>
|
|
|
|
|
{
|
|
|
|
|
const msglog = () => {
|
|
|
|
|
setmsgnum("0");
|
|
|
|
|
// console.log("开始请求");
|
|
|
|
|
|
|
|
|
@ -225,7 +226,8 @@ const RightInfo = () => {
|
|
|
|
|
}> */}
|
|
|
|
|
<Dropdown overlay={
|
|
|
|
|
<Menu items={[
|
|
|
|
|
{key: "changePassword", icon: <KeyOutlined style={{color: "var(--daye-primary-color)"}} />, label: <span style={{color: "var(--daye-primary-color)"}}>修改密码</span>, onClick: () => {
|
|
|
|
|
{
|
|
|
|
|
key: "changePassword", icon: <KeyOutlined style={{ color: "var(--daye-primary-color)" }} />, label: <span style={{ color: "var(--daye-primary-color)" }}>修改密码</span>, onClick: () => {
|
|
|
|
|
setShowFuncs(false)
|
|
|
|
|
Modal.confirm({
|
|
|
|
|
prefixCls: "daye-modal",
|
|
|
|
@ -250,8 +252,10 @@ const RightInfo = () => {
|
|
|
|
|
await changePassword()
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}},
|
|
|
|
|
{key: "logout", icon: <LogoutOutlined style={{color: "var(--daye-primary-color)"}} />, label: <span style={{color: "var(--daye-primary-color)"}}>退出系统</span>, onClick: () => {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "logout", icon: <LogoutOutlined style={{ color: "var(--daye-primary-color)" }} />, label: <span style={{ color: "var(--daye-primary-color)" }}>退出系统</span>, onClick: () => {
|
|
|
|
|
setShowFuncs(false)
|
|
|
|
|
Modal.confirm({
|
|
|
|
|
title: '确认退出系统?',
|
|
|
|
@ -264,7 +268,8 @@ const RightInfo = () => {
|
|
|
|
|
Runtime.logout()
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
]}></Menu>
|
|
|
|
|
}>
|
|
|
|
|
{/* <div className={styles.info_content} onClick={() => {
|
|
|
|
@ -275,7 +280,41 @@ const RightInfo = () => {
|
|
|
|
|
<div className={styles.info_content} style={{}}>
|
|
|
|
|
|
|
|
|
|
<span><UserOutlined /></span>
|
|
|
|
|
<div style={{marginLeft: 8, whiteSpace: "nowrap"}}>{!nickname ? "-" : `${nickname},您好!`}<span id='MSGNUM' style={{fontSize:'16PX',color:'rgb(225 70 70)'}}>{`您有${msgnum}条待办`}</span></div>
|
|
|
|
|
<div style={{ marginLeft: 8, whiteSpace: "nowrap" }}>{!nickname ? "-" : `${nickname},您好!`}<span
|
|
|
|
|
|
|
|
|
|
onClick={(event) => {
|
|
|
|
|
// Cookies.set('InputListData', JSON.stringify(record));
|
|
|
|
|
|
|
|
|
|
let body: message1 = new message1();
|
|
|
|
|
body.code = '@host#control#openPage';
|
|
|
|
|
body.data = {
|
|
|
|
|
newPage: false,
|
|
|
|
|
params: {
|
|
|
|
|
// recordData: JSON.stringify(record),
|
|
|
|
|
},
|
|
|
|
|
moduleId: '41f852c5-dfa3-3057-c62d-197d82f71b58', //要打开的模块id(系统配置-导航菜单-找到所在模块的id)
|
|
|
|
|
};
|
|
|
|
|
body.msg = '跳转';
|
|
|
|
|
body.to = 'iBKLinker-union-framework';
|
|
|
|
|
body.from = 'prd';
|
|
|
|
|
window.top?.postMessage(body, '*');
|
|
|
|
|
// history.replace({
|
|
|
|
|
// pathname: '/NewProductCalculation/InputList/InputList',
|
|
|
|
|
// state: {
|
|
|
|
|
// recordData: record,
|
|
|
|
|
// },
|
|
|
|
|
// });
|
|
|
|
|
// setTab(() => {
|
|
|
|
|
// let titles: any = [];
|
|
|
|
|
// titles.push(
|
|
|
|
|
// '新成本测算输入表',
|
|
|
|
|
// '/NewProductCalculation/InputList/InputList',
|
|
|
|
|
// '/新成本测算/输入表数据回显',
|
|
|
|
|
// );
|
|
|
|
|
// return titles;
|
|
|
|
|
// });
|
|
|
|
|
}}
|
|
|
|
|
id='MSGNUM' style={{ fontSize: '16PX', color: 'rgb(225 70 70)' }}>{`您有${msgnum}条待办`}</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</Dropdown>
|
|
|
|
|