From e8bf04edb39c636eab8ec7819e295630b12f1782 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Wed, 17 Aug 2022 13:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 1 + jero-web/src/common/lang/zh-cn.js | 1 + .../regulationReport/components/modules/fillTable.vue | 9 +++++++++ 3 files changed, 11 insertions(+) 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'),