From f6a98e4169279c56410dd9ed316ee482439f1895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Wed, 15 Sep 2021 13:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Head/NoticeContent.jsx | 2 +- src/forge/Notice/Index.jsx | 26 +------ src/forge/SecuritySetting/Index.jsx | 4 +- .../SecuritySetting/notice/myNotice/Index.jsx | 74 +++++++++++-------- .../notice/myNotice/Index.scss | 39 +++++----- src/forge/users/Material/Index.jsx | 4 +- 6 files changed, 68 insertions(+), 81 deletions(-) diff --git a/src/forge/Head/NoticeContent.jsx b/src/forge/Head/NoticeContent.jsx index 3f5ef254c..ff715ad42 100644 --- a/src/forge/Head/NoticeContent.jsx +++ b/src/forge/Head/NoticeContent.jsx @@ -226,7 +226,7 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user: ) }) : "暂无数据" : ""} */}
- 全部消息 + 全部消息 所有{noticeType === "notification" ? "系统消息" : noticeType === "letter" ? "私信" : "@我"}一键已读
diff --git a/src/forge/Notice/Index.jsx b/src/forge/Notice/Index.jsx index 3f61688fb..73a2561bd 100644 --- a/src/forge/Notice/Index.jsx +++ b/src/forge/Notice/Index.jsx @@ -10,10 +10,6 @@ const Apply = Loadable({ loader: () => import("./Apply"), loading: Loading, }); -const Notify = Loadable({ - loader: () => import("./Notify"), - loading: Loading, -}); const UndoEvent = Loadable({ loader: () => import("./UndoEvent"), loading: Loading, @@ -23,7 +19,7 @@ function Index(props){ const pathname = props.history.location.pathname; const user = props.user; - const [ menu , setMenu ] = useState("notify"); + const [ menu , setMenu ] = useState("undo"); const [ messagesCount , setMessagesCount ] = useState(0); const [ transferCount , setTransferCount ] = useState(0); const [ applyCount , setApplyCount ] = useState(0); @@ -48,10 +44,6 @@ function Index(props){ useEffect(()=>{ if(pathname && username){ if(pathname === `/${username}/notice`){ - setMenu("notify"); - changeNum(user.undo_messages); - } - if(pathname === `/${username}/notice/undo`){ setMenu("undo"); } if(pathname === `/${username}/notice/apply`){ @@ -83,14 +75,8 @@ function Index(props){ return (
- e.target.checked ? setOnlyUnread(1) : setOnlyUnread()}>仅看未读{noticeType === "1" ? `私信(12)` : noticeType === "0" ? `消息(${noticeUnreadCount})` : `消息(${atUnreadCount})`} + {onlyUnread===1 || messageList.length>0 ? e.target.checked ? setOnlyUnread(1) : setOnlyUnread()}>仅看未读{noticeType === "1" ? `私信(12)` : noticeType === "0" ? `消息(${noticeUnreadCount})` : `消息(${atUnreadCount})`}:""}
- {noticeType === "2" && messageList.length > 0 ? : ""} + {noticeType === "2" && messageList.length > 0 ? : ""}
{messageList.length===0 ? :""} @@ -157,7 +169,7 @@ function MyNotice(props) {    已选择 {selectedNum} 项
-      +     
} @@ -171,7 +183,7 @@ function MyNotice(props) {
{item.status === 1 ? : } - window.open("https://"+`${item.notification_url}`)}>{item.content} + {item.notification_url && window.open("https://"+`${item.notification_url}`)}} dangerouslySetInnerHTML={{__html: item.content}}>
{item.time_ago} @@ -189,7 +201,7 @@ function MyNotice(props) { {item.sender && }
{item.status === 1 ? : }
-
{item.content}
+
{item.notification_url && window.open("https://"+`${item.notification_url}`)}} dangerouslySetInnerHTML={{__html: item.content}}>
@@ -203,7 +215,7 @@ function MyNotice(props) { })} {/* 分页 */} -
+ {!isBatchDelete &&
-
+
} {/* 私信 */} {/*
diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.scss b/src/forge/SecuritySetting/notice/myNotice/Index.scss index b4a02b351..1805021bf 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.scss +++ b/src/forge/SecuritySetting/notice/myNotice/Index.scss @@ -138,12 +138,17 @@ button:active { position: relative; margin-left: 12px; max-width: 48rem; + word-break: break-all; & .at-badge{ position:absolute; } & .highlightSpan{ - margin-left: 12px; + // margin-left: 12px; + &:hover{ + color: #466AFF; + cursor: pointer; + } } } } @@ -180,6 +185,10 @@ button:active { button{ padding:0px 12px; } + .batchDeleteBut{ + border:1px solid #466AFF; + color: #466AFF; + } } .private-letter-right { @@ -191,13 +200,6 @@ button:active { } } -.highlightSpan{ - &:hover{ - color: #466AFF; - cursor: pointer; - } -} - .letter-length-limit{ max-width: 50rem; overflow: hidden; @@ -207,6 +209,7 @@ button:active { .sysNotice-length{ max-width: 52rem; + word-break: break-all; } @@ -228,19 +231,11 @@ button:active { margin-right: 10px; } -.paging{ - float: right; - margin: 12px; +.float-right-little{ + margin-left: 12px; } -// .invisible_checkGroup{ -// & .ant-checkbox-inner{ -// display: none; -// } -// } -// .notice01{ -// & .ant-checkbox-group{ -// display: flex; -// flex-direction: column; -// } -// } \ No newline at end of file +.paging{ + text-align: center; + margin: 12px; +} \ No newline at end of file diff --git a/src/forge/users/Material/Index.jsx b/src/forge/users/Material/Index.jsx index 869c1877f..8833c6543 100644 --- a/src/forge/users/Material/Index.jsx +++ b/src/forge/users/Material/Index.jsx @@ -1,10 +1,10 @@ import React , { useEffect , useState } from 'react'; -import './Index.scss'; -import '../../SecuritySetting/notice/manager/Index.scss' import { Menu } from 'antd'; import { Link } from 'react-router-dom'; import Base from './Base'; import Password from './Password'; +import './Index.scss'; +import '../../SecuritySetting/notice/manager/Index.scss'; function Index(props){ // const { username } = props && props.match && props.match.params;