-
+
|
{item.scheduleTime}
diff --git a/src/main/webapp/assets/js/feeds/feeds-list.jsx b/src/main/webapp/assets/js/feeds/feeds-list.jsx
index c56705895..596a1bb41 100644
--- a/src/main/webapp/assets/js/feeds/feeds-list.jsx
+++ b/src/main/webapp/assets/js/feeds/feeds-list.jsx
@@ -414,7 +414,7 @@ function __renderRichContent(e) {
}
{e.relatedRecord &&
}
{e.type === 3 &&
@@ -63,7 +67,8 @@ class MessageList extends React.Component {
{item[2]}
- {append && 查看}
+ {append
+ && 查看}
}
@@ -79,22 +84,14 @@ class MessageList extends React.Component {
type: type || this.state.type
}, () => {
$.get(`/notification/messages?type=${this.state.type}&pageNo=${this.state.page}`, (res) => {
- this.setState({ list: res.data || [] }, this.__loadAfter)
+ this.setState({ list: res.data || [] }, () => {
+ if (focusItem) setTimeout(() => $gotoSection($('.notification.focus').offset().top - 66), 200)
+ focusItem = null
+ })
})
})
}
- __loadAfter = () => {
- $(this._list).find('.notification-info a')
- .attr('target', '_blank')
- .addClass('link')
- .click('click', (e) => {
- if (e && e.stopPropagation) e.stopPropagation()
- })
- setTimeout(() => $gotoSection(), 200)
- focusItem = null
- }
-
gotoPage(p) {
if (p === -1 && this.state.page === 1) return
if (p === 1 && (this.state.list || []).length < this.state.pageSize) return
@@ -127,7 +124,7 @@ class ApprovalList extends MessageList {
page: page || this.state.page
}, () => {
$.get(`/notification/approvals?pageNo=${this.state.page || 1}`, (res) => {
- this.setState({ list: res.data || [] }, this.__loadAfter)
+ this.setState({ list: res.data || [] })
})
})
}
|