代办跳转

master
wuzuowei 8 months ago
parent c899972071
commit 8d8d798ad6

@ -72,10 +72,10 @@ const RightInfo = () => {
.post("http://172.15.89.222:8081/WF/API/EmpWorksNums?UserNo=" + loginName) .post("http://172.15.89.222:8081/WF/API/EmpWorksNums?UserNo=" + loginName)
.then(({ data }) => { .then(({ data }) => {
setmsgnum(data.replace("EmpWorksNums:", "")); setmsgnum(data.replace("EmpWorksNums:", ""));
setTimeout(() => { // setTimeout(() => {
document.getElementById('MSGNUM').style.display = 'none'; // document.getElementById('MSGNUM').style.display = 'none';
// setIsVisible(false); // 2000ms后将isVisible设置为不可见状态 // // setIsVisible(false); // 2000ms后将isVisible设置为不可见状态
}, 60000); // }, 60000);
}) })
.catch((reason) => { .catch((reason) => {
message.error('推送代办信息报错' + reason); message.error('推送代办信息报错' + reason);
@ -98,21 +98,6 @@ const RightInfo = () => {
body.to = 'iBKLinker-union-framework'; body.to = 'iBKLinker-union-framework';
body.from = 'prd'; body.from = 'prd';
window.top?.postMessage(body, '*'); window.top?.postMessage(body, '*');
// history.replace({
// pathname: '/NewProductCalculation/InputList/InputList',
// state: {
// recordData: record,
// },
// });
// setTab(() => {
// let titles: any = [];
// titles.push(
// '新成本测算输入表',
// '/NewProductCalculation/InputList/InputList',
// '/新成本测算/输入表数据回显',
// );
// return titles;
// });)
}, 300000) }, 300000)
, []) , [])
@ -261,7 +246,9 @@ const RightInfo = () => {
<Dropdown overlay={ <Dropdown overlay={
<Menu items={[ <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) setShowFuncs(false)
Modal.confirm({ Modal.confirm({
prefixCls: "daye-modal", prefixCls: "daye-modal",
@ -314,16 +301,20 @@ const RightInfo = () => {
<div className={styles.info_content} style={{}}> <div className={styles.info_content} style={{}}>
<span><UserOutlined /></span> <span><UserOutlined /></span>
<div style={{ marginLeft: 8, whiteSpace: "nowrap" }}>{!nickname ? "-" : `${nickname},您好!`}<span <div style={{ marginLeft: 8, whiteSpace: "nowrap" }}>{!nickname ? "-" : `${nickname},您好!`}
onClick={(event) => { </div>
gomsglog()
// Cookies.set('InputListData', JSON.stringify(record));
}}
id='MSGNUM' style={{ fontSize: '16PX', color: 'rgb(225 70 70)' }}>{`您有${msgnum}条待办`}</span></div>
</div> </div>
</Dropdown > </Dropdown >
<span
onClick={(event) => {
gomsglog()
// Cookies.set('InputListData', JSON.stringify(record));
}}
id='MSGNUM' style={{ fontSize: '16PX', color: 'rgb(225 70 70)' }}>{`您有${msgnum}条待办`}
</span>
{/* </Popover> */} {/* </Popover> */}
< UserEditor visible={showEditor} userData={userInfo} callback={(ret: any) => { < UserEditor visible={showEditor} userData={userInfo} callback={(ret: any) => {

Loading…
Cancel
Save