[update 88398] 标准比对,发布时删除提示语
This commit is contained in:
@@ -125,6 +125,7 @@ module.exports = {
|
||||
confirmWithdraw: 'Confirm to Withdraw?',
|
||||
confirmWithdrawContent: 'Confirm the withdrawal of this data?',
|
||||
doNotHavePermissionDeleteData: 'Do not have permission to delete this data',
|
||||
publishedAndCannotDeleted: 'Published and cannot be deleted',
|
||||
noData: 'No Data',
|
||||
dataLoading: 'Data loading...',
|
||||
confirmDelete: 'Confirm the listing title you want to delete?',
|
||||
|
||||
@@ -125,6 +125,7 @@ module.exports = {
|
||||
confirmWithdraw: '确认撤回?',
|
||||
confirmWithdrawContent: '确认撤回该条数据?',
|
||||
doNotHavePermissionDeleteData: '没有权限删除此数据',
|
||||
publishedAndCannotDeleted: '已发布不能删除',
|
||||
noData: '暂无数据',
|
||||
dataLoading: '数据加载中...',
|
||||
confirmDelete: '确定删除?',
|
||||
|
||||
@@ -259,6 +259,11 @@ export default {
|
||||
onOk: () => {
|
||||
const idList = []
|
||||
const selectionRows = JSON.parse(JSON.stringify(this.selectionRows))
|
||||
// 发布状态不能删除
|
||||
if (selectionRows.some(item => item.releaseState !== 'draft')) {
|
||||
this.$message.warning(this.$t('publishedAndCannotDeleted'))
|
||||
return
|
||||
}
|
||||
for (let i = 0; i < selectionRows.length; i++) {
|
||||
if (selectionRows[i].createBy === this.userInfo.username &&
|
||||
selectionRows[i].releaseState === 'draft') {
|
||||
|
||||
Reference in New Issue
Block a user