[update] 修改bug78604

This commit is contained in:
lideqin
2023-11-21 16:30:04 +08:00
parent 422fb0a0fd
commit 8d7789109d
3 changed files with 11 additions and 5 deletions
+4
View File
@@ -36,5 +36,9 @@ module.exports = {
standardName: 'Standard Name',
browsingTime: 'Browsing Time',
confirmClearBrowsingHistory: 'confirm to clear browsing history'
},
// 我的消息
myMessage: {
noCanRemarkData: '当前没有可标注的数据'
}
}
+4
View File
@@ -36,5 +36,9 @@ module.exports = {
standardName: '标准名称',
browsingTime: '浏览时间',
confirmClearBrowsingHistory: '确认清除浏览记录'
},
// 我的消息
myMessage: {
noCanRemarkData: '当前没有可标注的数据'
}
}
+3 -5
View File
@@ -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) {