diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 72d278ab7..4839ad2e8 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1261,4 +1261,5 @@ module.exports = { currentlyTheFirstOneThatCannotMovedUp:'Currently the first one that cannot be moved up', currentlyTheLastOneCannotmovedDown:'Currently the last one cannot be moved down', weilaiRegulationMonthlyReport:'Weilai Regulation Monthly Report', + thereTitleWhichCannotBeDeleted:'There are new contents under this title, which cannot be deleted', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index bdd85ecab..89622c213 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1363,4 +1363,5 @@ module.exports = { currentlyTheFirstOneThatCannotMovedUp:'当前已是第一个无法进行上移', currentlyTheLastOneCannotmovedDown:'当前已是最后一个无法进行下移', weilaiRegulationMonthlyReport:'蔚来法规月报', + thereTitleWhichCannotBeDeleted:'该标题下存在新增内容,不能删除', } \ No newline at end of file diff --git a/jero-web/src/views/businessSupport/regulationReport/components/modules/fillTable.vue b/jero-web/src/views/businessSupport/regulationReport/components/modules/fillTable.vue index 3a8d0b8d0..cd49be66e 100644 --- a/jero-web/src/views/businessSupport/regulationReport/components/modules/fillTable.vue +++ b/jero-web/src/views/businessSupport/regulationReport/components/modules/fillTable.vue @@ -205,6 +205,15 @@ this.$message.warning(this.$t('thereWhichCannotDeleted')) return } + getAction('/report/lawsMonthlyReportTitleTemplateEO/verifyDelete', { ids: val.id }).then((res) => { + if (res.result == 'true') { + this.deleteBatch(val) + } else { + this.$message.warning(this.$t('thereTitleWhichCannotBeDeleted')) + } + }) + }, + deleteBatch(val) { let _this = this this.$confirm({ content: _this.$t('ConfirmDelete'),