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