diff --git a/src/main/webapp/admin/entityhub/field-edit.jsp b/src/main/webapp/admin/entityhub/field-edit.jsp index 3ed0633b8..a7e225f0e 100644 --- a/src/main/webapp/admin/entityhub/field-edit.jsp +++ b/src/main/webapp/admin/entityhub/field-edit.jsp @@ -235,7 +235,7 @@
- 加载中 + 加载中
diff --git a/src/main/webapp/assets/js/charts/charts.jsx b/src/main/webapp/assets/js/charts/charts.jsx index 3da3a3b14..6baf5d639 100644 --- a/src/main/webapp/assets/js/charts/charts.jsx +++ b/src/main/webapp/assets/js/charts/charts.jsx @@ -16,7 +16,7 @@ class BaseChart extends React.Component { render() { const opers = (
- {!this.props.builtin && } + {!this.props.builtin && } this.loadChartData()}> {this.props.editable && ( @@ -560,7 +560,7 @@ class ApprovalList extends BaseChart { {item[2]} - {item[4]} + {item[4]} {item[6]} @@ -643,7 +643,7 @@ class FeedsSchedule extends BaseChart { return - +
{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 &&
diff --git a/src/main/webapp/assets/js/files/files.jsx b/src/main/webapp/assets/js/files/files.jsx index 3c789a28a..9c1e434b3 100644 --- a/src/main/webapp/assets/js/files/files.jsx +++ b/src/main/webapp/assets/js/files/files.jsx @@ -58,7 +58,7 @@ class FilesList extends React.Component { renderExtras(item) { return {item.fileSize} - {item.relatedRecord && $stopEvent(e)} href={`${rb.baseUrl}/app/list-and-view?id=${item.relatedRecord[0]}`}>{item.relatedRecord[1]}} + {item.relatedRecord && $stopEvent(e)} href={`${rb.baseUrl}/app/list-and-view?id=${item.relatedRecord[0]}`}>{item.relatedRecord[1]}} } diff --git a/src/main/webapp/assets/js/notifications.jsx b/src/main/webapp/assets/js/notifications.jsx index 1c47c6fc1..764c10a31 100644 --- a/src/main/webapp/assets/js/notifications.jsx +++ b/src/main/webapp/assets/js/notifications.jsx @@ -41,9 +41,13 @@ class MessageList extends React.Component { {(this.state.page > 1 || msglist.length >= this.state.pageSize) && }
@@ -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 || [] }) }) }) }