[update 88398] 标准比对,发布时删除提示语

This commit is contained in:
danshihao
2024-08-12 13:36:58 +08:00
parent 981d062d12
commit 1d1e445372
3 changed files with 7 additions and 0 deletions
@@ -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') {