From 38a42e7505d94f4354678a451d3ae6227fe45650 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Fri, 17 Nov 2023 17:39:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BD=E6=A0=87=E5=A4=96=E6=A0=87?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BD=93=E7=B3=BB=E6=A0=91=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=A0=B9=E8=8A=82=E7=82=B9=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domesticStandardsAndRegulations/index.vue | 4 ++++ .../foreignStandardsAndRegulations/index.vue | 4 ++++ 2 files changed, 8 insertions(+) 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 }