diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index 736bcfbed..2f4186af7 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -3274,6 +3274,10 @@ export default { this.sarStandardsInfoEO.standSystem = checkedData.map(item => item.menuName).join(",") this.sarStandardsInfoEO.standSystemId = checkedIds.join(",") } else { + if (checkedData.parentId == null || checkedData.parentId === '') { + this.$message.error('请选择二级及以下目录') + return + } this.sarStandardsInfoEO.standSystem = checkedData.menuName this.sarStandardsInfoEO.standSystemId = checkedIds } diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index f7d0ffdb9..e25cc6d57 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -2864,6 +2864,10 @@ export default { this.sarStandardsInfoEO.standSystem = checkedData.map(item => item.menuName).join(",") this.sarStandardsInfoEO.standSystemId = checkedIds.join(",") } else { + if (checkedData.parentId == null || checkedData.parentId === '') { + this.$message.error('请选择二级及以下目录') + return + } this.sarStandardsInfoEO.standSystem = checkedData.menuName this.sarStandardsInfoEO.standSystemId = checkedIds }