[update] 修改bug78604
This commit is contained in:
@@ -36,5 +36,9 @@ module.exports = {
|
||||
standardName: 'Standard Name',
|
||||
browsingTime: 'Browsing Time',
|
||||
confirmClearBrowsingHistory: 'confirm to clear browsing history'
|
||||
},
|
||||
// 我的消息
|
||||
myMessage: {
|
||||
noCanRemarkData: '当前没有可标注的数据'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,5 +36,9 @@ module.exports = {
|
||||
standardName: '标准名称',
|
||||
browsingTime: '浏览时间',
|
||||
confirmClearBrowsingHistory: '确认清除浏览记录'
|
||||
},
|
||||
// 我的消息
|
||||
myMessage: {
|
||||
noCanRemarkData: '当前没有可标注的数据'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!-- 操作 -->
|
||||
@@ -258,12 +257,11 @@ export default {
|
||||
}
|
||||
},
|
||||
readAll () {
|
||||
if (this.selectedRowKeys.length > 0) {
|
||||
if (this.dataSource.length > 0) {
|
||||
this.$confirm({
|
||||
content: this.$t('message.my.areAllLabelsRead'),
|
||||
onOk: () => {
|
||||
const selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
postAction(this.url.readAllMsg, { ids: selectedRowKeys.join(',') }).then((res) => {
|
||||
postAction(this.url.readAllMsg, {}).then((res) => {
|
||||
if (res.success) {
|
||||
this.selectedRowKeys = []
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
@@ -275,7 +273,7 @@ export default {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning(this.$t('pleaseSelectData'))
|
||||
this.$message.warning(this.$t('personalCenter.myMessage.noCanRemarkData'))
|
||||
}
|
||||
},
|
||||
onSelectChange (value) {
|
||||
|
||||
Reference in New Issue
Block a user